blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe54aba99af7334fa816a9c0282b522dea6e026c | 8d55d41a4f5c0b89331cac714c1525e9581d9720 | /WalkingFoot/main_RevisionExamples2.py | 18a2303fe1a6b91bde48556986a9ae98c1b31b48 | [
"Apache-2.0"
] | permissive | hpgit/HumanFoot | 8cf35ceeeb35a0371e03eaf19d6da58dc01487eb | f9a1a341b7c43747bddcd5584b8c98a0d1ac2973 | refs/heads/master | 2022-04-13T23:38:19.072203 | 2019-12-06T06:36:10 | 2019-12-06T06:36:10 | 41,348,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,724 | py | from fltk import *
import copy, os.path, cPickle, time
import numpy as np
import sys
if '../PyCommon/modules' not in sys.path:
sys.path.append('../PyCommon/modules')
import Math.mmMath as mm
import Math.csMath as cm
import Math.ysFunctionGraph as yfg
import Renderer.ysRenderer as yr
import Renderer.csVpRenderer as... | [
"garethvlf@gmail.com"
] | garethvlf@gmail.com |
2aa099e77ec976eea8a2ce7424afac7d5124999a | b0c2a8c77fc0e025690e59f990950b6eb347c4c3 | /corpus_builder/spiders/newspaper/janakantha.py | f0a39957ada5c7a106bab473fa6104a3258d95fb | [
"MIT"
] | permissive | ibraheem-moosa/corpus-builder | 1b31cbc501026436e5ebde2e363379b6fc094dd0 | 5f09835f9aa62abb5f891c4d3896206eedd9fe12 | refs/heads/master | 2020-08-06T21:39:31.700339 | 2018-08-24T14:00:18 | 2018-08-24T14:00:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | # -*- coding: utf-8 -*-
import datetime
import urlparse
import scrapy
from corpus_builder.templates.spider import CommonSpider
class JanakanthaSpider(CommonSpider):
name = "janakantha"
allowed_domains = ["dailyjanakantha.com"]
base_url = 'https://www.dailyjanakantha.com'
start_request_url = base_url... | [
"aniruddha@adhikary.net"
] | aniruddha@adhikary.net |
f8f2a2c16488ab7b2db5c75b3e3384fe28779156 | c5458f2d53d02cb2967434122183ed064e1929f9 | /sdks/python/test/test_generate_commitments_request.py | 8c5a96d5277ec4d96a679c0c58dcd09553377df4 | [] | no_license | ross-weir/ergo-node-api-sdks | fd7a32f79784dbd336ef6ddb9702b9dd9a964e75 | 9935ef703b14760854b24045c1307602b282c4fb | refs/heads/main | 2023-08-24T05:12:30.761145 | 2021-11-08T10:28:10 | 2021-11-08T10:28:10 | 425,785,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | """
Ergo Node API
API docs for Ergo Node. Models are shared between all Ergo products # noqa: E501
The version of the OpenAPI document: 4.0.15
Contact: ergoplatform@protonmail.com
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import openapi_client
from openapi_cli... | [
"29697678+ross-weir@users.noreply.github.com"
] | 29697678+ross-weir@users.noreply.github.com |
57c861cd16af96f077cd25db431a46f4feb6d0b2 | c30d4f174a28aac495463f44b496811ee0c21265 | /python/helpers/python-skeletons/multiprocessing/__init__.py | de9d1ddfa3ca0c043f71519ec442d5c291506ae8 | [
"Apache-2.0"
] | permissive | sarvex/intellij-community | cbbf08642231783c5b46ef2d55a29441341a03b3 | 8b8c21f445550bd72662e159ae715e9d944ba140 | refs/heads/master | 2023-05-14T14:32:51.014859 | 2023-05-01T06:59:21 | 2023-05-01T06:59:21 | 32,571,446 | 0 | 0 | Apache-2.0 | 2023-05-01T06:59:22 | 2015-03-20T08:16:17 | Java | UTF-8 | Python | false | false | 4,217 | py | """Skeleton for 'multiprocessing' stdlib module."""
from multiprocessing.pool import Pool
class Process(object):
def __init__(self, group=None, target=None, name=None, args=(), kwargs={}):
self.name = ''
self.daemon = False
self.authkey = None
self.exitcode = None
self.id... | [
"andrey.vlasovskikh@jetbrains.com"
] | andrey.vlasovskikh@jetbrains.com |
6b354ee59c681faf08710f4c4a73bf94b911ddca | 33af6185b48bd76f97f0a74390a3a812ee216c78 | /angr/angr/procedures/glibc/__libc_start_main.py | 12aa852769b769b404e992c1b45228fc1eb2aa92 | [
"BSD-2-Clause"
] | permissive | Ruide/angr-dev | dab0cabd907fce47ac698f890c3f3a8b80ab7e2a | 964dc80c758e25c698c2cbcc454ef5954c5fa0a0 | refs/heads/master | 2022-11-10T11:27:13.355024 | 2017-10-07T14:29:09 | 2017-10-07T14:29:09 | 104,417,044 | 0 | 1 | BSD-2-Clause | 2022-10-16T04:48:10 | 2017-09-22T01:35:12 | C | UTF-8 | Python | false | false | 8,177 | py |
import logging
import pyvex
import angr
l = logging.getLogger("angr.procedures.glibc.__libc_start_main")
######################################
# __libc_start_main
######################################
class __libc_start_main(angr.SimProcedure):
#pylint:disable=arguments-differ,unused-argument,attribute-define... | [
"rd.cheung.bupt.sms@gmail.com"
] | rd.cheung.bupt.sms@gmail.com |
d1ef46174618edcfd908c875a157a06da832d91a | 602ea0c05970cbd766df068b003671c561f59661 | /tools/perf/benchmarks/jetstream2.py | 19f31f16c1bc952e688b1bb19284defef99e3e9d | [
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"MIT",
"BSD-3-Clause",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.0-only",
"APSL-2.0",
"LicenseRef-scancode-unknown",
"Zlib"
] | permissive | VitalyKononenko/chromium | 088de78a639375b073cabb7665afc638334e8672 | b8ad2cadb6a163269cd7851bc7962744743785bd | refs/heads/master | 2023-03-01T10:15:00.815394 | 2019-08-15T19:51:40 | 2019-08-15T19:51:40 | 202,603,102 | 1 | 0 | BSD-3-Clause | 2019-08-15T19:54:34 | 2019-08-15T19:54:33 | null | UTF-8 | Python | false | false | 1,655 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs Apple's JetStream 2 benchmark.
JetStream 2 combines together a variety of JavaScript and Web Assembly
benchmarks, covering a variety of advanced wor... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
d9f3996fc6b6e11676bb6d73c8c96a5562d5fcec | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/tank_setup/ammunition_setup_vehicle.py | 572f09c20630d76920f59564d58da4e89187b639 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 972 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/tank_setup/ammunition_setup_vehicle.py
from CurrentVehicle import g_currentVehicle
from helpers import dependency
from skeletons.gui.shared import IItemsCache
class _TankSetupVehicle(object):
__sl... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
b001592fbd0025106b5c0de3a8e0852a6fb0006e | 226b1c73a706f4734834196d18305d4d2c873589 | /synlib/descriptions/EDFFXL.py | 206bab5d4710ad637b02fca8e34e937d415a73fb | [] | no_license | ocakgun/vlsistuff | 43b4b07ae186b8d2360d11c57cd10b861e96bcbe | 776c07f5d0c40fe7d410b5c85e7381017d4dab64 | refs/heads/master | 2022-06-13T14:40:22.641310 | 2020-05-08T11:09:00 | 2020-05-08T11:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | Desc = cellDescClass("EDFFXL")
Desc.properties["cell_leakage_power"] = "1762.140420"
Desc.properties["cell_footprint"] = "edff"
Desc.properties["area"] = "76.507200"
Desc.pinOrder = ['CK', 'D', 'E', 'IQ', 'IQN', 'Q', 'QN', 'next']
Desc.add_arc("CK","D","setup_rising")
Desc.add_arc("CK","D","hold_rising")
Desc.add_arc("... | [
"greenblat@mac.com"
] | greenblat@mac.com |
021e4fcee7a62e92f84e0a057de120f6f6d67961 | 6c8f3ab5f952d986a17edda582c5a039bf65c632 | /django/consolidate_project/consolidate_project/settings.py | 08a82252a1c6016afd3b14e4b91661d7bd5f4c59 | [] | no_license | phillipn/coding_bootcamp_projects | 3d3bd697728dd4502267e0cd2be7a090952029a8 | 278f96df9d256364583654a00fe585d474ea86a1 | refs/heads/master | 2021-01-17T17:30:14.607944 | 2017-03-19T18:12:32 | 2017-03-19T18:12:32 | 82,971,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | """
Django settings for consolidate_project project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
""... | [
"phillipn101@gmail.com"
] | phillipn101@gmail.com |
4e3e8013222191f5557eeefbb7ca5e65131aeece | aebc347ff9a8ad739111f13aa8d4cf9d48a1e4bd | /data/170818/170818_074301_spectral_scan/0019_electron_loading_trap_studies_E5071C.py | b1d29626c5ebe7e0216866f17a237346e2a494bb | [] | no_license | geyang/170422_EonHe_M018V6 | f01a60d3b8a911ba815a0fcc0bf1b6e2aa8f5f17 | ce189e22f99942e46fce84a0dca714888e44bc69 | refs/heads/master | 2021-06-22T21:01:23.257239 | 2017-08-25T09:48:17 | 2017-08-25T09:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,239 | py | from data_cache import dataCacheProxy
from time import sleep, time, strftime
from setup_instruments import fridge, seekat, yoko1, nwa, filament
from resonance_fitting import fit_res_gerwin
import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
import os
from shutil import copyfile
import quicktimetrac... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
580f96d5338bff027bec064c4f87a82504567a6d | 9cd9e89359f0da1750a19f0609619e3bbe4c536e | /tests/fork_test.py | 61c0e16d67a73a9a7ee9b0fcc4c582058fe208d0 | [
"BSD-3-Clause"
] | permissive | ph448/mitogen | e961c95578c852908e33861da7226919547070f0 | c24d29d3676aa122e25716450246306aaf4a797b | refs/heads/master | 2020-03-19T01:48:11.362786 | 2018-05-28T05:00:57 | 2018-05-28T05:00:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py |
import ctypes
import os
import random
import ssl
import struct
import sys
import mitogen
import unittest2
import testlib
import plain_old_module
IS_64BIT = struct.calcsize('P') == 8
PLATFORM_TO_PATH = {
('darwin', False): '/usr/lib/libssl.dylib',
('darwin', True): '/usr/lib/libssl.dylib',
('linux2', Fa... | [
"dw@botanicus.net"
] | dw@botanicus.net |
426610fdd1399339d2e3a2442398b51ab5209027 | c5146f60c3a865050433229ba15c5339c59a9b68 | /zhaquirks/plaid/__init__.py | 203efe3bfb31a25162bfb3a165e8d609307592a0 | [
"Apache-2.0"
] | permissive | Shulyaka/zha-device-handlers | 331505618a63691a86b83977b43508b0e3142af2 | 84d02be7abde55a6cee80fa155f0cbbc20347c40 | refs/heads/dev | 2023-02-22T10:17:09.000060 | 2023-02-04T15:57:17 | 2023-02-04T15:57:17 | 194,286,710 | 1 | 0 | Apache-2.0 | 2023-02-04T22:59:20 | 2019-06-28T14:25:54 | Python | UTF-8 | Python | false | false | 72 | py | """Quirks for Plaid Systems devices."""
PLAID_SYSTEMS = "PLAID SYSTEMS"
| [
"noreply@github.com"
] | Shulyaka.noreply@github.com |
3726da4b6e8c640f2c1e4980ff8758f66e31bb14 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/lag82/504-tideGauge.py | f6cdd6a41e7cde5295cbc1bf322d1a52927b4360 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
d0f805cd5b4c54300491e93aef4f4b816517393e | ea872f0a2bcc4270b7089120e3eb2f8dd32a165e | /Baxter/build/planning_baxter/catkin_generated/pkg.develspace.context.pc.py | e788f2c9fa75bd9400e0e1903a35e10d75c2678c | [] | no_license | ZhenYaGuo/Warehouse-Robotic-System | 2def137478911f499c45276aa3103a0b68ebb8d7 | 47b78d111b387102e29d2596bd5dc7c704f74f8f | refs/heads/master | 2021-08-24T04:12:43.379580 | 2017-12-08T01:48:09 | 2017-12-08T01:48:09 | 113,405,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "planning_baxter"
PROJECT_SPACE_DIR = ... | [
"31947861+ZhenYaGuo@users.noreply.github.com"
] | 31947861+ZhenYaGuo@users.noreply.github.com |
541499ca55be3f2e1263c133d3499ab8864a3f6e | 0649c9b00358dd7b3ca418f7ce15ff88507ed6b3 | /storage_data.py | bbaf647ccba897a5ed812da12c2ddb2007fc1b50 | [] | no_license | Aaron9477/sky_lake | 9c9b7904dbd3e36a366508aa0d3beccedd7355d9 | baaba25bc72c81cf0868136a623036529eb9a840 | refs/heads/master | 2021-08-08T00:02:03.903907 | 2017-11-09T06:54:31 | 2017-11-09T06:54:31 | 109,121,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import src.utils as u
if __name__ == '__main__':
for m in u.get_malls():
u.get_data(m) | [
"869788668@qq.com"
] | 869788668@qq.com |
f5b45500bb75688f6f3ca574206f37660a15e559 | e9ef558d04f39f0e82ad63e955dd8772e63c99c3 | /chat_project/chat_project/settings.py | a728c23923310ab703ec61e0f1b5ef83ec5c8de4 | [
"MIT"
] | permissive | nahidsaikat/Chat | 5634ff91eef394ec2b6288d1adff17f0eb867b15 | 7d314195b03d355844767f7c89cca34f0fad95c9 | refs/heads/master | 2022-12-14T03:44:01.105994 | 2021-06-30T15:19:21 | 2021-06-30T15:19:21 | 177,983,242 | 0 | 0 | MIT | 2022-12-08T07:44:46 | 2019-03-27T11:49:48 | Python | UTF-8 | Python | false | false | 3,434 | py | """
Django settings for chat_project project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import ... | [
"nahidsaikatft40@gmail.com"
] | nahidsaikatft40@gmail.com |
d05b8fe31cb2b3669e6ffacc405b55cbda7ff8b4 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/tunnel/lsite.py | cf53b4bf12e69f5b767bc243bd15658320be6f5d | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 5,189 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
1f62074c0c85f84ac88700f413546240cba19622 | ec78979fd8479e884ab93d723360744db5152134 | /wechat_stat.py | e05254f8304d487894b38f59d8004251e12e30bd | [] | no_license | xushubo/learn-python | 49c5f4fab1ac0e06c91eaa6bd54159fd661de0b9 | 8cb6f0cc23d37011442a56f1c5a11f99b1179ce6 | refs/heads/master | 2021-01-19T17:00:05.247958 | 2017-09-03T03:22:28 | 2017-09-03T03:22:28 | 101,032,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import itchat
from echarts import Echart, Legend, Pie
itchat.login() #登录
friends = itchat.get_friends(update=True)[0:] #获取好友列表
male = female = other = 0 #初始化计数器,男、女、不填的
for i in friends[1:]: #遍历好友列表,列表第一个是自己,所以从1开始计算 1表示男性,2女性
sex = i['Sex']
if sex == 1:
male +=1
elif sex == 2:
female += 1
else:
other += 1
... | [
"tmac523@163.com"
] | tmac523@163.com |
c3a0d221d0881ea417f3e5b03fd1a8fe558c52c1 | 632d58b9f7ae470d9ec2b0e88af0aa8054dfa40e | /src/ryzom_django/management/commands/ryzom_bundle.py | 48c255b344ea621534b03d56660dbf76563dd28f | [] | no_license | yourlabs/ryzom | 8d06bf829ee9d31d33fa9353fdf187241c82b6ef | 425859e2de30c3b939756a23a064fb1affe04b02 | refs/heads/master | 2023-05-13T10:27:09.766272 | 2023-05-02T14:49:25 | 2023-05-02T14:49:25 | 192,992,635 | 5 | 1 | null | 2022-10-11T20:19:52 | 2019-06-20T22:03:37 | Python | UTF-8 | Python | false | false | 873 | py | import os
from django.core.management.base import BaseCommand, CommandError
from ryzom_django import bundle
class Command(BaseCommand):
help = 'Write JS & CSS bundles to ryzom_django/static/bundle.*'
def handle(self, *args, **options):
static_path = os.path.abspath(
os.path.join(
... | [
"jpic@yourlabs.org"
] | jpic@yourlabs.org |
a291c7bfaadb64ce0f0f8fe7ff044a54344a7ba5 | 77c8d29caad199fb239133e6267d1b75bd2dfe48 | /packages/pyright-internal/typeshed-fallback/stdlib/builtins.pyi | 78b29c5aa7e794980ce9212e92a26b6fbb0c2072 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | simpoir/pyright | 9c80e596f99dfd1341a55373a96d8795cb72fb56 | 320a0a2fd31e4ffc69d4bd96d7202bbe8d8cb410 | refs/heads/master | 2023-04-18T06:42:16.194352 | 2021-04-29T15:20:19 | 2021-04-29T15:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,998 | pyi | import sys
import types
from _typeshed import (
AnyPath,
OpenBinaryMode,
OpenBinaryModeReading,
OpenBinaryModeUpdating,
OpenBinaryModeWriting,
OpenTextMode,
ReadableBuffer,
SupportsDivMod,
SupportsKeysAndGetItem,
SupportsLessThan,
SupportsLessThanT,
SupportsRDivMod,
S... | [
"erictr@microsoft.com"
] | erictr@microsoft.com |
b9dac58212d011f1c76f030f0631c55f20b3f02f | 77ab593ed55a6d46b1778f6d41bc70ced3f8cd46 | /face_ID_net/face_1024s/face_1024_vals.py | 2b929cc2b67254c5a37f697a6093fc0d6f3d68f1 | [] | no_license | wosxcc/bot | e93b92fbca79a915feb186160f3f72c99218ffcb | c097f5455bc6264c9f778fb72900475963836153 | refs/heads/master | 2021-06-12T12:43:47.314071 | 2018-12-14T08:51:43 | 2018-12-14T08:51:43 | 128,619,488 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | import os
import cv2 as cv
import numpy as np
import random
import tensorflow as tf
from face_ID_net.face_1024s.ID_pb_net1024s import face_net
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
IMG_H=64
IMG_W =64
N_CLASSES =1024
learning_rate =0.001
def face_val(image_arr,run_train):
print('搞毛线啊')
log_dir = './face72... | [
"821022156@qq.com"
] | 821022156@qq.com |
77e79f9ef67d7b2a99e8a1c2d037a274848b9c17 | ea3272d707f3a6e5d097301d300a0ea97ddd82b5 | /psm/oop1/oop1_2/info_hiding_property.py | b12f77b06d357a78fd4c81646ba553fa9c6dce8c | [] | no_license | gambler1541/BootCamp | d05850f256ed7a8baa02545551176959a66a9bb3 | b025dd07a8fedd58366f96c9b516f134a95138f1 | refs/heads/master | 2020-04-07T07:21:51.363439 | 2019-06-08T11:10:27 | 2019-06-08T11:10:27 | 158,173,790 | 1 | 0 | null | 2018-11-19T06:38:36 | 2018-11-19T06:38:36 | null | UTF-8 | Python | false | false | 830 | py | class Account:
def __init__(self, name, money):
self.user = name
# 인스턴스 멤버 선언이 아니라 setter 메서드를 호출
self.balance = money
@property
def balance(self):
return self._balance
@balance.setter
def balance(self, money):
if money < 0:
return
# 실제 ... | [
"sungmin3231@gmail.com"
] | sungmin3231@gmail.com |
b4b2aa8f7d0110d5a1ee9b8e0de04c1e02146c12 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_zoologists.py | d5eaad0aa4529df66ccc13452502429859ae6960 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _ZOOLOGISTS():
def __init__(self,):
self.name = "ZOOLOGISTS"
self.definitions = zoologist
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['zoologist']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
29459d2f2495bd6eabb00953ccd6e2064a3749f5 | d82a8844c7d46c752e567cca41a8ae1c15c975f7 | /API/urls.py | aaae4d1d1c0b11959a544fed6876085e896c1700 | [] | no_license | golammahmud/job_evaluations_project | f1be9f8f8b27c0f9db6539294ccff25254ff08f3 | fe362f2d6bc57e1d550c39263312ef046eb7754c | refs/heads/master | 2023-08-04T10:20:59.442703 | 2021-09-27T02:31:03 | 2021-09-27T02:31:03 | 410,347,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from django.contrib import admin
from django.urls import path,include
from rest_framework import routers
from .views import UserInputView,UserBasedInputView
from rest_framework_simplejwt.views import TokenObtainPairView,TokenRefreshView
router=routers.DefaultRouter()
router.register('all-userinputs',UserInputView)
r... | [
"golam.mahmud99@gmail.com"
] | golam.mahmud99@gmail.com |
f7863d8927d006aaf6bb1f2450af7fe6550ab070 | e34d4bf879910b8f41068c1efb90915897e53d53 | /system_design_ladder/GeoHashII.py | b15bec1dd5ca21a631b684b5a96092a0772cec5f | [] | no_license | ZhouningMan/LeetCodePython | 6cfc30f0b76f6162502410fef5639fde4801bd74 | cad9585c440efb329c9321648f94c58ded198438 | refs/heads/master | 2020-12-10T03:53:48.824344 | 2020-01-13T02:29:02 | 2020-01-13T02:29:02 | 233,494,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | class GeoHash:
BASE32 = "0123456789bcdefghjkmnpqrstuvwxyz"
"""
@param: geohash: geohash a base32 string
@return: latitude and longitude a location coordinate pair
"""
def decode(self, geohash):
binary = self._to_bin(geohash)
lon_bin = [binary[i] for i in range(0, len(binary), 2)... | [
"linfenglee321@gmail.com"
] | linfenglee321@gmail.com |
f6b693f1370e3d80c736a6b08d507d671d4a8bc5 | 008c065391d766fec2f2af252dd8a5e9bf5cb815 | /Even Matrix.py | 7e545a6a78adeb1c5ec75a406ef4644cbe57e481 | [] | no_license | 22Rahul22/Codechef | b261ab43ff5ff64648a75ad1195e33cac2cfec52 | 1f645c779a250a71d75598e1eabad7e52dd6b031 | refs/heads/master | 2022-11-29T21:51:09.578798 | 2020-08-19T06:20:23 | 2020-08-19T06:20:23 | 288,650,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | t = int(input())
for _ in range(t):
n = int(input())
arr = [[0 for i in range(n)] for j in range(n)]
sr = 0
er = n
sc = 0
ec = n
z = 0
num = 1
if n % 2 == 0:
x = n // 2
else:
x = 1 + (n // 2)
while z != x:
j = sc
while j < ec:
arr[s... | [
"rahulbhl22@gmail.com"
] | rahulbhl22@gmail.com |
30afeecf7a442f626392bcc9b54728254bb8a8be | 60d5ea4f007d49768d250ef394003f554003e4d0 | /python/Linked List/142.Linked List Cycle II.py | dec51f534aabccb931d8e8932d39d11aac643c6f | [] | no_license | EvanJamesMG/Leetcode | dd7771beb119ea1250dbb3b147a09053298cd63b | fa638c7fda3802e9f4e0751a2c4c084edf09a441 | refs/heads/master | 2021-01-10T17:11:10.896393 | 2017-12-01T16:04:44 | 2017-12-01T16:04:44 | 46,968,756 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | # coding=utf-8
'''
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Note: Do not modify the linked list.
'''
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
'''
使用快慢指针。若链表存在环,两指... | [
"Evan123mg@gmail.com"
] | Evan123mg@gmail.com |
6f54f5939a8fda03c24dfa9d9dbe33c08f498424 | 096ccaca86872b03a137edf58221413073d770cb | /helpers/24_web_apis_sources.py | 0a219f85661a944bd17fb1db67075e5cf05ea372 | [] | no_license | DH-heima/webscrapping | f142962b50deed2628052dd7a48098a4afbcbada | 1dc8f81f45db0d4366391c3052c5ab36f4d4bc5d | refs/heads/master | 2022-02-02T23:26:22.520064 | 2019-06-13T13:38:10 | 2019-06-13T13:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | import os
# from ers import shops, COLLECTION_DATE, web_apis_traffic_sources_csv, web_apis_traffic_sources_aggregates_csv
import os.path as op
import numpy as np
import pandas as pd
BASE_DIR = "/code/mhers"
WAVE_NUMBER = 8
shops = pd.read_excel(op.join(BASE_DIR, "ressources/ERS-referential-shops.xlsx"), index_col=No... | [
"pierre.chevalier@epitech.eu"
] | pierre.chevalier@epitech.eu |
baba79af33bbf688b0cc90d14d78060c6b946973 | 3a771b72dae1aae406b94726bcbcf73915577b18 | /q56.py | e7701a5af9e0d8749ed043cc4977a73042423870 | [] | no_license | SHANK885/Python-Basic-Programs | 4fcb29280412baa63ffd33efba56d9f59770c9dc | 157f0f871b31c4523b6873ce5dfe0d6e26a6dc61 | refs/heads/master | 2021-07-18T18:24:10.455282 | 2018-11-19T07:02:27 | 2018-11-19T07:02:27 | 138,009,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | unicodeString =u"Heello world"
print(unicodeString) | [
"shashankshekhar885@gmail.com"
] | shashankshekhar885@gmail.com |
41255f5976ab13155649263d540c618488794b94 | 08a329d07172a384be41eb58a0586032b18787d2 | /if1.py | c5867a5c4dee5850f5bb2049812193dbe20c31e6 | [] | no_license | atsuhisa-i/Python_study1 | 9bc39d058fe8bdd00adb35324758ad8fa08f4ca1 | 439a654f09e81208658355d99c8ce1c3cd4bcc4e | refs/heads/main | 2023-04-06T12:44:12.099067 | 2021-04-14T13:24:56 | 2021-04-14T13:24:56 | 348,309,405 | 0 | 0 | null | 2021-04-14T13:24:57 | 2021-03-16T10:45:48 | Python | UTF-8 | Python | false | false | 69 | py | number = '123456'
if number == '123456':
print('1st Prize:Money') | [
"atsuhisa.1124@gmail.com"
] | atsuhisa.1124@gmail.com |
f7e2098e769e91b1838c62aee43d87264b9aa9cb | 052d6ac57f2026aba22249368149b18027c78342 | /frontstage_api/resources/register/confirm_organisation_survey.py | 6331b7150306a3ab3887cebaf9c1d5eb733780ca | [
"MIT"
] | permissive | ONSdigital/ras-frontstage-api | c34b41185cc825b49262c1879ad559778a54dbfc | 7bb32a85868e2a241b8a0331b884155a36450669 | refs/heads/master | 2018-07-15T00:35:22.130352 | 2018-06-01T14:09:13 | 2018-06-01T14:09:13 | 105,001,932 | 2 | 1 | MIT | 2018-06-01T14:09:14 | 2017-09-27T09:54:26 | Python | UTF-8 | Python | false | false | 1,917 | py | import logging
from flask import jsonify, make_response, request
from flask_restplus import Resource, fields
from structlog import wrap_logger
from frontstage_api import auth, register_api
from frontstage_api.controllers import case_controller, collection_exercise_controller, iac_controller, party_controller, survey_... | [
"noreply@github.com"
] | ONSdigital.noreply@github.com |
6e55abddbe446bbbe2e2f07ae0edd692a27197ed | b3ac12dfbb8fa74500b406a0907337011d4aac72 | /goldcoin/full_node/weight_proof.py | c12b097a836dbee13ac9816cccf3f9361015586b | [
"Apache-2.0"
] | permissive | chia-os/goldcoin-blockchain | ab62add5396b7734c11d3c37c41776994489d5e7 | 5c294688dbbe995ae1d4422803f6fcf3e1cc6077 | refs/heads/main | 2023-08-11T23:58:53.617051 | 2021-09-12T15:33:26 | 2021-09-12T15:33:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,454 | py | import asyncio
import dataclasses
import logging
import math
import random
from concurrent.futures.process import ProcessPoolExecutor
from typing import Dict, List, Optional, Tuple
from goldcoin.consensus.block_header_validation import validate_finished_header_block
from goldcoin.consensus.block_record import BlockRec... | [
"faurepierre78@yahoo.com"
] | faurepierre78@yahoo.com |
a6feea4e0041758fbcfcdf08169d6272e1d4ea41 | bdba52c756cc09f192b720ea318510c265665dcd | /swagger_client/api/character_api.py | c1e1cd12abcec0f72554fd46436981b2dad6fbd7 | [
"MIT"
] | permissive | rseichter/bootini-star | 6b38195890f383615cc2b422c365ac28c5b87292 | a80258f01a05e4df38748b8cb47dfadabd42c20d | refs/heads/master | 2020-03-14T03:17:11.385048 | 2018-06-28T17:23:23 | 2018-06-28T17:23:23 | 131,416,504 | 0 | 0 | MIT | 2018-05-01T14:26:04 | 2018-04-28T14:28:46 | Python | UTF-8 | Python | false | false | 94,170 | py | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online # noqa: E501
OpenAPI spec version: 0.8.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
impo... | [
"github@seichter.de"
] | github@seichter.de |
6dd47cf9abf6588f76b33b1300c80b06fe34f86b | 304e75224229786ba64c6ef2124007c305019b23 | /src/easy/test_build_array_from_permutation.py | 8fd8efbd03f279c3c5d2f1ed987d934e5687eadc | [] | no_license | Takuma-Ikeda/other-LeetCode | 9179a8100e07d56138fd3f3f626951195e285da2 | 499616d07011bee730b9967e9861e341e62d606d | refs/heads/master | 2023-04-14T06:09:35.341039 | 2023-04-10T02:29:18 | 2023-04-10T02:29:18 | 226,260,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import unittest
from answer.build_array_from_permutation import Solution
class TestSolution(unittest.TestCase):
def setUp(self):
self.nums = [
[0, 2, 1, 5, 3, 4],
[5, 0, 1, 2, 3, 4],
]
self.answers = [
[0, 1, 2, 4, 5, 3],
[4, 5, 0, 1, 2, 3],... | [
"el.programdear@gmail.com"
] | el.programdear@gmail.com |
d8cb4d738e3fca2d4ddb17040fa4fe5a789e0334 | 63e2bed7329c79bf67279f9071194c9cba88a82c | /SevOneApi/python-client/test/test_flow_falcon_visualization.py | 51a57732e471078c158cccc29b73d4aae5586ecf | [] | no_license | jsthomason/LearningPython | 12422b969dbef89578ed326852dd65f65ab77496 | 2f71223250b6a198f2736bcb1b8681c51aa12c03 | refs/heads/master | 2021-01-21T01:05:46.208994 | 2019-06-27T13:40:37 | 2019-06-27T13:40:37 | 63,447,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # coding: utf-8
"""
SevOne API Documentation
Supported endpoints by the new RESTful API # noqa: E501
OpenAPI spec version: 2.1.18, Hash: db562e6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
... | [
"johnsthomason@gmail.com"
] | johnsthomason@gmail.com |
652e8c01463ca031788666db93024bbc761ec75d | 14856ffe01c711af7a41af0b1abf0378ba4ffde6 | /Python/Fundamentals/Fun_with_Functions.py | 4db600213841d74d4382c1514cc6f369abdc29a8 | [] | no_license | sharonanchel/coding-dojo | 9a8db24eec17b0ae0c220592e6864510297371c3 | d6c4a7efd0804353b27a49e16255984c4f4b7f2a | refs/heads/master | 2021-05-05T18:17:48.101853 | 2017-06-23T23:53:51 | 2017-06-23T23:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Odd/Even
def odd_even():
for i in range(1,2001):
if i%2 == 0:
type = 'even'
else:
type = 'odd'
print 'Number is',i, 'This is an',type,'number.'
odd_even()
# Multiply
def multiply(arr, num):
for i in range(0,len(arr)):
arr[i] *= num
return arr
print multiply([2,4,10,16],5)
# Hacker Challenge
def l... | [
"jao.colin@gmail.com"
] | jao.colin@gmail.com |
b0a496a2adad7d4299f3c94ceb3f5651a373a629 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/manage.py | 436b9b54ecb5b87023cfad764e11bb94a803445a | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('manage', __name__, url_prefix='/manage')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('republi... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
79c1cfdd225efbe367313be720d75fd7941a44b2 | 4eebce0d0c1132aed8227325bd58faf61a4010c7 | /CONTEXT_178/d2.py | 7a83e4ac92f0948ab14911f4a674624665be9101 | [] | no_license | xu1718191411/AT_CODE_BEGINNER_SELECTION | 05836cfcc63dab2a0a82166c8f4c43c82b72686b | e4e412733d1a632ce6c33c739064fe036367899e | refs/heads/master | 2021-07-17T00:59:46.315645 | 2020-09-22T06:14:27 | 2020-09-22T06:14:27 | 214,153,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | def calculate(n):
arr = [0 for i in range(2000 + 1)]
arr[3] = 1
arr[4] = 1
arr[5] = 1
for i in range(6, n + 1):
arr[i] = (arr[i - 2] + arr[i - 3] + arr[i - 4]) % (1000000000 + 7)
print(arr[n])
calculate(int(input())) | [
"xu1718191411@gmail.com"
] | xu1718191411@gmail.com |
5038904bb1fd03747bf1c26a2daa2a87b5a5bcd8 | fee88a67d4706bddb8999ce2701315c5f62f6e78 | /onmt/modules/extensions/mlp/mlp_gelu.py | a1a1d998fa59cc0685f65e54bba7b2fe97e1aee0 | [
"MIT"
] | permissive | Dan-hbd/NMTGMinor | 5cade7d3b6de83cc45a618ab59420274bcd86f15 | 84e59ac8391ee78852d7c71afc60c3c8b8e3d44d | refs/heads/master | 2023-05-30T16:22:58.148920 | 2021-06-15T14:28:48 | 2021-06-15T14:28:48 | 372,408,488 | 0 | 0 | NOASSERTION | 2021-05-31T06:44:22 | 2021-05-31T06:44:22 | null | UTF-8 | Python | false | false | 15,164 | py | from copy import copy, deepcopy
import math
import torch
from torch import nn
import torch.nn.functional as F
import unittest
from time import time
import numpy as np
import random
import silu_cuda
try:
import apex.amp as amp
from apex.amp import half_function
except (ModuleNotFoundError, ImportError) as e:
... | [
"quanpn90@gmail.com"
] | quanpn90@gmail.com |
4199440910460a422c013a0c40e9ecddfe383267 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnbelt.py | a561c79d95be99afc054e24528da2a296c42f2e6 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,067 | py | ii = [('LyelCPG2.py', 1), ('MarrFDI.py', 1), ('CoolWHM2.py', 2), ('KembFFF.py', 1), ('RogePAV.py', 4), ('RennJIT.py', 1), ('LeakWTI2.py', 1), ('LeakWTI3.py', 1), ('PettTHE.py', 1), ('TennAP.py', 1), ('PeckJNG.py', 1), ('BailJD2.py', 1), ('FitzRNS3.py', 2), ('WilkJMC2.py', 3), ('CarlTFR.py', 4), ('LyttELD.py', 1), ('Bai... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
1d04d3d4f51fb6e30bcbf047d655a4f3121f14ce | 73dc6b3fdb07592f10b8e02b7ca053deb61a2dc9 | /msof_api/comments/admin.py | 4e3be735e10ca856e607a6d04ccf86bad757bf99 | [] | no_license | likelion-kookmin/msof_api | 4143c09f93b68d219aa20de3bd57ec544c2bdf32 | f9fec7d31ebdb465a8935711da715db6d87c0fce | refs/heads/develop | 2023-06-28T15:35:45.240871 | 2021-07-31T16:38:35 | 2021-07-31T16:38:35 | 347,298,658 | 3 | 1 | null | 2021-07-31T16:38:36 | 2021-03-13T07:02:56 | Python | UTF-8 | Python | false | false | 784 | py | """# comments admin
- CommentAdmin
"""
from django.contrib import admin
from .models import Comment
@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
"""## CommentAdmin
- admin에서 관리할 Comment 모델 설정
"""
list_display = [
'author',
'question',
'parent',
'... | [
"singun11@kookmin.ac.kr"
] | singun11@kookmin.ac.kr |
b089edef3519feb7f892bdd66d7ebb57fe321c27 | d214b72b3ae340d288c683afe356de6846a9b09d | /动态规划/最大矩形_85.py | d5fa9f35ee7dab90956eab9b4c2c0e9f34d1993c | [] | no_license | Xiaoctw/LeetCode1_python | 540af6402e82b3221dad8648bbdcce44954a9832 | b2228230c90d7c91b0a40399fa631520c290b61d | refs/heads/master | 2021-08-29T15:02:37.786181 | 2021-08-22T11:12:07 | 2021-08-22T11:12:07 | 168,444,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | from typing import *
class Solution:
def maximalRectangle(self, matrix: List[List[str]]) -> int:
m, n = len(matrix), len(matrix[0])
num_up = [[0] * n for _ in range(m)]
for i in range(n):
if matrix[0][i] == '1':
num_up[0][i] = 1
for i in range(1, m):
... | [
"m18846183092@163.com"
] | m18846183092@163.com |
19907e7cb61cd025d174242e51357e774a777801 | d257ddf7e6959d0989d76080a8a048e82393657f | /002_TemplateMatching/002_template_match_implemented.py | 112464bcd0690858ab97442b59d77b3d552eca7f | [
"MIT"
] | permissive | remichartier/027_selfDrivingCarND_ObjectDetectionExercises | d210f37b7baf306dd034c09f62e125b263f8270d | ccd853c975d35df5f31e1a445a1a8757b8bd13f5 | refs/heads/main | 2023-04-17T08:09:55.465143 | 2021-05-03T07:11:16 | 2021-05-03T07:11:16 | 362,013,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
image = mpimg.imread('bbox-example-image.jpg')
#image = mpimg.imread('temp-matching-example-2.jpg')
templist = ['cutout1.jpg', 'cutout2.jpg', 'cutout3.jpg',
'cutout4.jpg', 'cutout5.jpg', 'cutout6.jpg']
# Here is... | [
"remipr.chartier@gmail.com"
] | remipr.chartier@gmail.com |
76958178b7438bb05a58d4bf3edd04bf9ee28403 | cc212540f928a95fa56f4679e3eb58e2ad329ca5 | /annpy/training/trainer.py | c93d497850a77427e0a1ba0888254a24da4a10e7 | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | nirvguy/annpy | ec05e07316bddd4bc5fbbd3d9e73ec94dc52a4b9 | ea5f92048173d0ebd1ad134cf626fa623569905e | refs/heads/master | 2018-06-03T06:11:21.911758 | 2018-05-30T16:16:46 | 2018-05-30T16:16:48 | 118,555,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | # See LICENSE file for copyright and license details.
import torch
class Trainer(object):
def __init__(self, learning_rule):
self._learning_rule = learning_rule
self._epoch = 0
self._hooks = []
self._remaining_epochs = 0
@property
def epoch(self):
return self._epoch... | [
"nirvguy@gmail.com"
] | nirvguy@gmail.com |
1f57a94143af972a289bfc920a65f67f1bd6adf6 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_17171.py | 41ccf0e53304977e412d274d7efa76fe1482d35e | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | # Integer to Boolean
return a != b
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
f841e9e9170838ca8c2972ca807eedb0e4ecd954 | e905abd9bb7bd7017657d0a0c4d724d16e37044c | /.history/article/settings_20210208181317.py | 5959719e37fa4bb9dcbc2f1420a4a206f030284f | [] | no_license | tabdelbari/articles | a8b921841f84fb473f5ed1cdcda743863e6bc246 | f0e1dfdc9e818e43095933139b6379a232647898 | refs/heads/main | 2023-03-05T10:21:35.565767 | 2021-02-10T13:35:14 | 2021-02-10T13:35:14 | 325,654,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | # -*- coding: utf-8 -*-
# Scrapy settings for article project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/top... | [
"abdelbari1996@hotmail.com"
] | abdelbari1996@hotmail.com |
30bcc49e425481fed6a6df0a85ca78f5255b3b93 | 200abee8ebb5fa255e594c8d901c8c68eb9c1a9c | /venv/03_old/hello_world.py | 3ef7463bc3ca43192af6add6ec132d91cd3a73f7 | [] | no_license | Vestenar/PythonProjects | f083cbc07df57ea7a560c6b18efed2bb0dc42efb | f8fdf9faff013165f8d835b0ccb807f8bef6dac4 | refs/heads/master | 2021-07-20T14:14:15.739074 | 2019-03-12T18:05:38 | 2019-03-12T18:05:38 | 163,770,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,760 | py | '''def sum(param1, param2):
return param1 + param2 # return result to the function caller
param1 = int(input())
param2 = int(input())
c = sum(param1, param2)
print(c)
nlen=0
def checkPalindrome(inputString):
nlen = len(inputString)
if nlen == 1:
t = True
else:
for i in range... | [
"vestenar@gmail.com"
] | vestenar@gmail.com |
c42d909697d0db5a72ae51a3c5d635841a1787f8 | a8fca7b6bc1f0eeaba12b682a81d880dc71cc929 | /FlaskEndpoint/tests/system/test_home.py | 38225c4925d80136cac8cbc7e3a04b5a0ac7ca4e | [] | no_license | sineczek/Automated-Software-Testing-with-Python | cb74d8714ad5b2ec9a6ffc013a400f0181f8095b | 2e7c4ff4bb5acfd53afb43a4bfa7191eb58a899c | refs/heads/main | 2023-04-14T08:15:53.917614 | 2021-04-24T17:18:23 | 2021-04-24T17:18:23 | 345,342,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from tests.system.base_test import BaseTest
import json
class TestHome(BaseTest):
def test_home(self):
with self.app() as c:
resp = c.get('/')
self.assertEqual(
resp.status_code, 200
)
self.assertEqual(
json.loads(resp.get_dat... | [
"michalzaitz@gmail.com"
] | michalzaitz@gmail.com |
d8a49d368a82b0008bacdd568c57aa745bde3133 | d86ed2c37a55b4a3118131a04f9a68dbd3b51a7f | /sherpatest/lev3fft-bar.py | 384437c626b0fbb39addb9d1c5274f6e57b5fd62 | [] | no_license | hamogu/sherpa-test-data | f745cc907c2535a721d46472b33f7281bd6e6711 | 77d9fc563875c59a4acff2960d46180ee7a8ec14 | refs/heads/master | 2023-06-18T22:30:44.947033 | 2020-08-03T12:07:13 | 2020-08-03T12:07:13 | 275,202,255 | 0 | 0 | null | 2020-06-26T16:38:19 | 2020-06-26T16:38:19 | null | UTF-8 | Python | false | false | 1,244 | py | #!/usr/bin/env python
from sherpa.astro.ui import *
image_file = "acisf07999_000N001_r0035_regevt3_srcimg.fits"
psf_file = "acisf07999_000N001_r0035b_psf3.fits"
reg_file = "ellipse(3145.8947368421,4520.7894736842,37.0615234375,15.3881587982,92.2273254395)"
srcid = 1
load_data(srcid, image_file)
load_psf("psf%i" % sr... | [
"olaurino@cfa.harvard.edu"
] | olaurino@cfa.harvard.edu |
77c55d04b0a750c8b0c0dc571cf5927a6d78e179 | 356f3f1b7caf0ccb20cc830d40821dfb2cbda046 | /sfit/sfit/doctype/items/items.py | c1943c13dec9e21c63e99267eb3e87e7de102726 | [
"MIT"
] | permissive | vignesharumainayagam/sfit | f4b75b9a8b2de08d0eaa4eadbcd3d5e432ffba56 | a96afbf35b0e1635e44cb5f83d7f86c83abedb8f | refs/heads/master | 2021-09-05T18:22:43.494208 | 2018-01-30T07:23:02 | 2018-01-30T07:23:02 | 104,332,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Valiant Systems and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Items(Document):
pass
| [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
8f885274db507628a34e8f8f094526a25c935972 | cc9d1aeb8aefe3d4f86c94b4279a64e70bf5fd80 | /setup.py | be0365371238e8e2c7a86eb0bd4aa3c81f749446 | [
"MIT"
] | permissive | sdelquin/sendgrify | a520a2da7d6c6d7c4707c325f6d67523e53803eb | fe8ee1d0efd0c8d8034d1c57cfc07672f77d7e8e | refs/heads/main | 2023-06-11T15:49:27.284693 | 2023-05-28T12:54:34 | 2023-05-28T12:54:34 | 342,843,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # read the contents of your README file
from pathlib import Path
from setuptools import setup
this_directory = Path(__file__).parent
long_description = (this_directory / 'README.md').read_text()
REQUIREMENTS = (
'sendgrid==5.3.0',
'markdown',
)
setup(
name='sendgrify',
version='2.0.3',
url='http... | [
"sdelquin@gmail.com"
] | sdelquin@gmail.com |
0886616bd81e0a2e31e16fed2ae9620947223dac | ae326c4e6a2b2d5b67fa8d175249ef90f6a3021a | /leo/external/rope/ropetest/refactor/extracttest.py | 167f7984d254f4be25e2554d9f39807e0827d542 | [
"GPL-2.0-only",
"GPL-1.0-or-later",
"MIT"
] | permissive | frakel/leo-editor | f95e6c77d60485d80fddfbeaf35db961cf691177 | b574118ee3b7ffe8344fa0d00dac603096117ac7 | refs/heads/master | 2020-03-28T10:40:24.621077 | 2018-10-23T14:39:31 | 2018-10-23T14:39:31 | 148,132,817 | 0 | 0 | MIT | 2018-09-10T09:40:18 | 2018-09-10T09:40:18 | null | UTF-8 | Python | false | false | 42,781 | py | try:
import unittest2 as unittest
except ImportError:
import unittest
import rope.base.codeanalyze
import rope.base.exceptions
from rope.refactor import extract
from ropetest import testutils
class ExtractMethodTest(unittest.TestCase):
def setUp(self):
super(ExtractMethodTest, self).setUp()
... | [
"edreamleo@gmail.com"
] | edreamleo@gmail.com |
39d7269798832e93cc7391c6516b8df87b50ca36 | 59c0669a38c4178f2f5cf8f9dca7553849c286a2 | /MyPro/pythonScript/QRCodeDetect/Invoice/hough_tansform_bad.py | 437f292bb460649c54b3fb981f99722309b81288 | [] | no_license | AUGUSTRUSH8/ImageProcess | f33ceaabaac67436df47fd1e1f115a8f44a6f556 | 46fc85b61dab52c3876dfacb4dfd22c962dc13bf | refs/heads/master | 2023-04-27T21:39:36.044320 | 2022-07-04T14:59:35 | 2022-07-04T14:59:35 | 174,789,186 | 31 | 17 | null | 2022-07-06T20:07:14 | 2019-03-10T07:01:13 | Java | UTF-8 | Python | false | false | 4,007 | py | # -*- coding: utf-8 -*-
import cv2
import numpy as np
from matplotlib import pyplot as plt
import math
def rotate_about_center2(src, radian, scale=1.):
#入参:弧度
w = src.shape[1]
h = src.shape[0]
angle = radian * 180 / np.pi
# now calculate new image width and height
nw = (abs(np.sin(radian)*h) + ... | [
"l"
] | l |
4080d41a60b85ff5500efacfc8fa63c51b33899f | 2d1ffb862ec65116f88b0986e4f36d36110cbfe5 | /app/views.py | ced21fb3eae0537fbf78312e2c9f3eb801e59a90 | [] | no_license | stkc282/wedding | c38afc7861119b8cf4490fa35007841d58e161c7 | 1799b72820787a59d0d5b7edf7748b1ab7af9a98 | refs/heads/master | 2021-06-18T04:15:20.293547 | 2019-08-19T10:17:13 | 2019-08-19T10:17:13 | 202,826,952 | 0 | 0 | null | 2021-06-10T21:52:12 | 2019-08-17T02:48:38 | JavaScript | UTF-8 | Python | false | false | 3,288 | py | # from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from django.views.generic import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django_filters.views import FilterView
from .filters import ItemFilter
from .forms import ItemForm
f... | [
"you@example.com"
] | you@example.com |
e396119de92c2a9d0442f560d6abcdd894436e17 | 484f111548e9d7192a5748eb202c08802484d747 | /fw/flash.py | 8361fc57a27f60367e21952493f6068dcb8a037a | [
"Apache-2.0"
] | permissive | cmcmurrough/moteus | dafb2e5224409aaf1d57b66f58965d298845678d | 6780967ec40ad7f1ab76cdbd7021f2d07b739efe | refs/heads/main | 2023-07-11T10:29:58.645291 | 2021-08-13T13:38:32 | 2021-08-13T13:38:32 | 396,627,837 | 2 | 0 | Apache-2.0 | 2021-08-16T05:07:08 | 2021-08-16T05:07:07 | null | UTF-8 | Python | false | false | 2,193 | py | #!/usr/bin/python3
# Copyright 2021 Josh Pieper, jjp@pobox.com.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"jjp@pobox.com"
] | jjp@pobox.com |
bb6e52fee441903389167e2b4292125b69cdb8b8 | ce3964c7195de67e07818b08a43286f7ec9fec3e | /dl_poly/get_pvt.py | 6fd5f7613ff6286470a47abe111c368b60d57ff7 | [] | no_license | zhuligs/physics | 82b601c856f12817c0cfedb17394b7b6ce6b843c | 7cbac1be7904612fd65b66b34edef453aac77973 | refs/heads/master | 2021-05-28T07:39:19.822692 | 2013-06-05T04:53:08 | 2013-06-05T04:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | #!/usr/bin/env python
# Try retrieving P,V,T, etc. from the STATIS file, may be easier than from OUTPUT...
import os, sys, commands
def readlines(FILE,n):
'''Read n lines from FILE'''
for i in range(n):
FILE.readline()
try:
s = open('STATIS','r')
header1 = s.readline()
header2 = ... | [
"boates@gmail.com"
] | boates@gmail.com |
fbb7c0b773c663b598397c813719054f055a6897 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/openpyxl/worksheet/pivot.py | b1905be6298ea1c57f774cae821fbc482b8bf25b | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 4,984 | py | from __future__ import absolute_import
# Copyright (c) 2010-2015 openpyxl
from openpyxl.descriptors import (
Bool,
Integer,
String,
Set,
NoneSet,
)
from openpyxl.descriptors.serialisable import Serialisable
class PivotSelection(Serialisable):
pane = Set(values=("bottomRight", "topRight", "bo... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
40b5a7f814ed68cbc12969cb867747a1687e0e1b | ac1e60fd4bb3b7cc04e413ae394836abad8947b1 | /email_verification_api/wsgi.py | e60483842d64ef833b28dfd12be0cfe5d6bf9eba | [] | no_license | Taycode/email-verification-api | 9c48642f34671232c388a7c763541f02ff9ae614 | f3abe35a010d5b2d3d2c269fa728eb40f26630a0 | refs/heads/master | 2020-08-04T11:00:29.103892 | 2019-10-01T14:49:14 | 2019-10-01T14:49:14 | 212,114,710 | 0 | 0 | null | 2019-10-01T14:16:59 | 2019-10-01T14:16:58 | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for email_verification_api project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"tay2druh@gmail.com"
] | tay2druh@gmail.com |
490df8c8807c725fdf915ccba2ff1496bd0ac937 | 60cb975f3e0251c73c457271bce8a7b2036e422b | /studysrc/mytest/websppider/transtest.py | 23c308fa3b1c83bba1c6cd379e0c29e746a2f19d | [] | no_license | 49257620/reboot | 0a2341f23bc1a6f3ae47b59f772919228c623544 | 86b348228d1a25d78c45b0e9022d7c773544373b | refs/heads/master | 2018-11-17T19:19:58.969710 | 2018-09-25T03:15:57 | 2018-09-25T03:15:57 | 125,727,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # encoding: utf-8
# Author: LW
import urllib.request
import urllib.parse
import time
import random
import hashlib
content = 'what fuck'
url = 'http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule'
data = {}
'''
1523493384696
1523493371204
351ac046404e1bbcb9442615f964a96d
cb2731255a15489013919b3788953b... | [
"49257620@qq.com"
] | 49257620@qq.com |
08273d87152e339e41af2407ff4bbad8cc28e79c | f2b91692a434ee79ff5d68ed3111d60d90315f00 | /src/command_modules/azure-cli-servicebus/azure/cli/command_modules/servicebus/_validators.py | 6a4509e9f662b17fe8494f89fce3441aa9719205 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cal5barton/azure-cli | f883bc7d481b163d4c4af1fa154a990182e5de80 | 6ebc6f810f32b8fce30a360633a70fcfdea15e7b | refs/heads/dev | 2023-05-24T18:12:36.151238 | 2018-07-12T16:16:29 | 2018-07-12T16:16:29 | 140,749,210 | 0 | 0 | MIT | 2023-05-15T18:58:31 | 2018-07-12T18:13:18 | Python | UTF-8 | Python | false | false | 4,322 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tjprescott@users.noreply.github.com"
] | tjprescott@users.noreply.github.com |
9ec5875503577bf114e6521a6174ca229c968b95 | c1e0874f55d05ee990ed2d637c2910701b32d246 | /soft_uni_OOP/Defining Classes/lab/scope_mess_3.py | 03d81f4774c92bdc435a7583da245e72d79f8461 | [] | no_license | borislavstoychev/Soft_Uni | 5d047bef402c50215e0abc825476326889ffd0be | ccc0b2fb18f8ad6809b475eb20e82a9e4eb4b0b0 | refs/heads/master | 2023-05-11T12:27:08.672058 | 2021-05-28T18:00:10 | 2021-05-28T18:00:10 | 277,556,731 | 3 | 2 | null | 2021-02-11T19:57:37 | 2020-07-06T13:58:23 | Python | UTF-8 | Python | false | false | 311 | py | x = "global"
def outer():
x = "local"
def inner():
nonlocal x
x = "nonlocal"
print("inner:", x)
def change_global():
global x
x = "global: changed!"
print("outer:", x)
inner()
print("outer:", x)
change_global()
print(x)
outer()
print(x) | [
"stoy4ew@gmail.com"
] | stoy4ew@gmail.com |
4d641b7b452b7e43378724205d8c5690b44cd11a | 5b9c50baaa3182868c9f4a744a7361abe422a510 | /tests/test_base.py | f7f5133f7951074f1287e3257df0b73b129805e8 | [
"MIT"
] | permissive | jasontangxf/geometer | 3307889c087a1f498d58b5ae6bbf1b037119ca46 | 931df0aff6c680ad13a6c5989f2a89c276370c5e | refs/heads/master | 2023-01-06T17:39:41.837342 | 2020-11-07T15:42:10 | 2020-11-07T15:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,251 | py | import numpy as np
from geometer.base import TensorDiagram, Tensor, TensorCollection, LeviCivitaTensor, KroneckerDelta
class TestTensor:
def test_arithmetic(self):
a = Tensor(2, 3)
b = Tensor(5, 4)
# vector operations
assert a + b == Tensor(7, 7)
assert a - b == Tensor(-3... | [
"jan.rv@t-online.de"
] | jan.rv@t-online.de |
4c10f5dbe66a1ecd6b2cb0e0d1cb6a3481ac2ca0 | 1b94c7cfd66804fe8d40b5def35e4b9b18d69ba2 | /old_py2/controllers/apiai_controller.py | dfff3930d0c210a7d0d4eb8c2af95d15d9d7e374 | [
"MIT"
] | permissive | the-blue-alliance/the-blue-alliance | 3dc210a9611ce9b240907ffd420f78040318dcdc | 6d42f3cdb2f785d192f2871419e58aaae3445029 | refs/heads/py3 | 2023-08-22T21:02:36.398100 | 2023-08-22T19:14:01 | 2023-08-22T19:14:01 | 888,427 | 344 | 263 | MIT | 2023-09-14T18:35:20 | 2010-09-04T20:34:11 | HTML | UTF-8 | Python | false | false | 635 | py | import json
from base_controller import LoggedInHandler
from helpers.apiai_helper import APIAIHelper
from models.sitevar import Sitevar
class APIAIHandler(LoggedInHandler):
def __init__(self, *args, **kw):
super(APIAIHandler, self).__init__(*args, **kw)
def post(self):
if self.request.headers... | [
"noreply@github.com"
] | the-blue-alliance.noreply@github.com |
e03dd7cf9f30096a3fcd724160094c5729decd0e | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/coghq/DistributedBanquetTable.py | a40dee6c0601918967b38ce75552be557387627e | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 50,791 | py | # File: t (Python 2.4)
import math
import random
from pandac.PandaModules import NodePath, Point3, VBase4, TextNode, Vec3, deg2Rad, CollisionSegment, CollisionHandlerQueue, CollisionNode, BitMask32, SmoothMover
from direct.fsm import FSM
from direct.distributed import DistributedObject
from direct.distributed.ClockDel... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
d716a64d25d8ed53904876bd54c1a98a7b88deb5 | 9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d | /python/uline/uline/uline/handlers/app/distributor/balance/distributorBalanceList.py | 4116d637e99da40fb08daa5c8fdc82a1bdbb023b | [] | no_license | apollowesley/Demo | f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8 | 471c4af95d3a7222d6933afc571a8e52e8fe4aee | refs/heads/master | 2021-02-15T04:01:51.590697 | 2018-01-29T01:44:29 | 2018-01-29T01:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | # -*- coding: utf-8 -*-
from __future__ import division
import tornado.web
import tornado.gen
from uline.handlers.baseHandlers import DtAdminHandler
from .form import DistributorBalanceList
from uline.public.constants import TO_PAY, PAY_CHANNEL
from datetime import timedelta, datetime
from uline.public.permit import ch... | [
"36821277@qq.com"
] | 36821277@qq.com |
8b37209b33d201b789d2658845aa87843ef7a8e0 | db144fdc9a1948cce066bed20912c32e1a18a8aa | /accounts/views.py | 49c0aa25bf7c13a2faa3ed61bf4acc3c6a75f458 | [] | no_license | masato932/django-blog3 | cd01101cbffdbaa33d2cb9bf696e5a5cdf8cd6fa | 769068ba356cf8e0cc0bbde76e82e116e58b8bab | refs/heads/main | 2023-05-13T20:14:43.706480 | 2021-06-05T14:03:13 | 2021-06-05T14:03:13 | 365,480,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django.shortcuts import render, redirect
from allauth.account import views
class LoginView(views.LoginView):
template_name = 'accounts/login.html'
class LogoutView(views.LogoutView):
template_name = 'accounts/logout.html'
def post(self, *args, **kwargs):
if self.request.user.is_authenticate... | [
"masatowada66@gmail.com"
] | masatowada66@gmail.com |
b62893ee1712e3ddf4365071e6596e2d820ac5dc | cf57cd3355471f035ca429302742b4eb4baf1214 | /Comparações/SHI-TOMASI/SHI-TOMASI_sift.py | 7a91ba9cb2b4ae56f47b6d8069c64cbee54c797b | [] | no_license | RobotColony-UEFS/feature-match | c56d78230d86948e5612a9645c71a0647eb94604 | ac421989aa1ee3893243122a0cf041b30e038a28 | refs/heads/master | 2022-11-27T15:31:20.570505 | 2020-08-04T19:24:17 | 2020-08-04T19:24:17 | 285,063,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | #coding: utf-8
import cv2
import numpy as np
import mysql.connector
import math
mydb = mysql.connector.connect(
host="localhost",
user="descritores",
passwd="12345678",
database="referencias"
)
def desvio (vetResult):
# Desvio padrão populacional
soma = float(sum(vetResult))
media = soma/len(vetResult)
r... | [
"samuelreboucas07@hotmail.com"
] | samuelreboucas07@hotmail.com |
9c85a3150d50dce18e37c4fd3faae85c74370fc8 | 32b628faa8b8ca8d11d8837cc495c0013f58b71a | /scripts/matrix2matrix.py | db91bd6468fb706939d9b97cc2c5810de2e084d0 | [
"BSD-2-Clause"
] | permissive | jaquol/cgat | 40b81617625ae9f0ba352caf38c2afd6a13c58f6 | d26fab0dff2192d4accc128d2895e668254d7b65 | refs/heads/master | 2021-01-12T22:33:46.186451 | 2016-01-15T16:56:43 | 2016-01-15T16:56:43 | 49,868,597 | 1 | 0 | null | 2016-01-18T10:10:24 | 2016-01-18T10:10:24 | null | UTF-8 | Python | false | false | 17,852 | py | '''
matrix2matrix.py - operate on matrices
======================================
:Author: Andreas Heger
:Release: $Id$
:Date: |today|
:Tags: Python
Purpose
-------
* full: full matrix with row and column headers (unless --no-headers is given.)
* sparse: sparse matrix
* phylip: phylip formatted matrix, but ... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
24d38b1c79dc504b389b64276c398a8a39f2423d | d7016f69993570a1c55974582cda899ff70907ec | /sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2022_02_01_preview/aio/operations/_operations.py | 2a6e7c95997bb3ead85375c355f3241e726885e6 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 4,963 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
3ec19460ce437a87592c19e706dffcfc90cf10ba | 70b1c91530b28d86e0fe8f46187b33322a6b9228 | /backend/manage.py | 00289a0b69ac55cbdc207727fa8d516788743952 | [] | no_license | crowdbotics-apps/satsuscreen-dev-1528 | 34fd3d6a3c4a717dcc657eb8ef055e736f33b70d | 9b910435fc4ef034efe521985446055c688d52d7 | refs/heads/master | 2022-04-04T20:58:24.447428 | 2020-01-21T17:16:51 | 2020-01-21T17:16:51 | 235,398,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'satsuscreen_dev_1528.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6430ad985b5c08e8f0e7f98428386d3713eb65b2 | c45c9e74ffafcceebf395cc1c5f5d31659988c19 | /answer_search.py | ff4bf3d7d7e148d57a000bb5cd58779991814eb8 | [] | no_license | tedrepo/QABasedOnMedicalKnowledgeGraph | f68ca297254218c72ef18a26c98f1910610f7154 | f690b80e2a7fb85455b45d3829b6998be9ebc739 | refs/heads/master | 2020-03-30T23:14:39.416415 | 2018-10-05T04:12:19 | 2018-10-05T04:12:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/env python3
# coding: utf-8
# File: answer_search.py
# Author: lhy<lhy_in_blcu@126.com,https://huangyong.github.io>
# Date: 18-10-5
from py2neo import Graph,Node
class AnswerSearcher:
def __init__(self):
self.g = Graph(
host="127.0.0.1",
http_port=7474,
user=... | [
"lhy_in_blcu@126.com"
] | lhy_in_blcu@126.com |
b47c9a85013089dec45758e6489eb731972070ee | 4ece3041f2ed0cd312dc70fd3c7c240924dbb6ae | /pyathena/__init__.py | 8335fb21281d596d87e5bc8a90d091895483fde9 | [
"MIT"
] | permissive | ivssh/PyAthena | 175c5dfff0289a7ceccfe9a47ac490985535f669 | 156c51f19b46ea2f89612b3383937d78942bc990 | refs/heads/master | 2020-03-27T13:07:58.417397 | 2018-07-21T13:08:41 | 2018-07-21T13:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import datetime
from pyathena.error import * # noqa
__version__ = '1.3.0'
# Globals https://www.python.org/dev/peps/pep-0249/#globals
apilevel = '2.0'
threadsafety = 3
paramstyle = 'pyformat'
class DBAPITypeObj... | [
"laughingman7743@gmail.com"
] | laughingman7743@gmail.com |
2a012620dfe09c0f6c1c04320e49696991285bed | 8e6203db7383475f1c24a590f0456330b969bb4b | /optbinning/binning/distributed/plots.py | dba20f0cab79a00b42588937c020ed96d925680e | [
"Apache-2.0"
] | permissive | guillermo-navas-palencia/optbinning | 6fdfc764a214052b4d7d8e0b59114f0a63e6d5a8 | 73aee82008ebe88b732430e7c5764da57fb4d3ae | refs/heads/master | 2023-08-28T13:33:43.536143 | 2023-08-22T19:20:18 | 2023-08-22T19:20:18 | 231,076,826 | 377 | 91 | Apache-2.0 | 2023-09-05T20:14:14 | 2019-12-31T11:17:44 | Python | UTF-8 | Python | false | false | 1,370 | py | """
Binning sketch plots.
"""
# Guillermo Navas-Palencia <g.navas.palencia@gmail.com>
# Copyright (C) 2020
import matplotlib.pyplot as plt
import numpy as np
def plot_progress_divergence(df, divergence):
n = len(df)
n_add = df.n_add
n_records = df.n_records
div = df.divergence
mv_div_mean = div... | [
"g.navas.palencia@gmail.com"
] | g.navas.palencia@gmail.com |
142b4edaf5e0cb5022cd5869f8cbdf4542e77689 | a4df0ee67d0d56fc8595877470318aed20dd4511 | /vplexapi-6.2.0.3/vplexapi/models/health_state.py | 819d13f492a6fb68862c506a14264a4633267ac3 | [
"Apache-2.0"
] | permissive | QD888/python-vplex | b5a7de6766840a205583165c88480d446778e529 | e2c49faee3bfed343881c22e6595096c7f8d923d | refs/heads/main | 2022-12-26T17:11:43.625308 | 2020-10-07T09:40:04 | 2020-10-07T09:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | # coding: utf-8
"""
VPlex REST API
A defnition for the next-gen VPlex API # noqa: E501
OpenAPI spec version: 0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class HealthState(object):
"""NOTE: This class is auto ... | [
"anil.degwekar@emc.com"
] | anil.degwekar@emc.com |
56b442f8b7bfc47ef533d1a9d1c90373518ecca3 | df7736726d5b041e46b490e409a1d4481ef8c7f1 | /tools/rosmaster/src/rosmaster/threadpool.py | 1261e2f5e4aa3947450c12ff477e0830735e537e | [] | no_license | strawlab/ros_comm | 62f5d2bc68d6cbe85c071eabb7487164d6c328be | 6f7ea2feeb3c890699518cb6eb3d33faa15c5306 | refs/heads/master | 2020-05-18T02:26:43.463444 | 2012-08-05T07:10:58 | 2012-08-05T07:10:58 | 5,301,610 | 13 | 31 | null | 2019-09-24T22:49:12 | 2012-08-05T07:10:44 | Python | UTF-8 | Python | false | false | 8,088 | py | # Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above... | [
"strawman@astraw.com"
] | strawman@astraw.com |
05f98c995114c13d415121f855678ae770c9123b | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /AtCoder/ABC-D/107probD.py | 261c5013ca5189665dd06803268802f1623a399f | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # 足す時は0~iまで一律に足し、返すのはi番目の値
class imosBIT():
def __init__(self, N):
self.N = N
self.bit = [0 for _ in range(self.N+1)]
def __str__(self):
ret = []
for i in range(1, self.N+1):
ret.append(self.__getitem__(i))
return "[" + ", ".join([str(a) for a in ret]) + ... | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
9afa4e20081e1cfa380b6474b33c811305e13c9a | 29623d43b2ab99e55a5d102e8d718015053073a3 | /aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/QueryCensorJobListRequest.py | 8bb5ce2996660555cc680f7e5f65657a90cfa511 | [
"Apache-2.0"
] | permissive | zxsted/aliyun-openapi-python-sdk | ed41e1d93c63557ecfbcffb6c84f87d4ed2a7f59 | a539d6e268fc07f314c5114c21ced4c8ead51dee | refs/heads/master | 2021-05-13T19:58:10.000697 | 2018-01-09T11:16:55 | 2018-01-09T11:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
16526d6d991321e879d46e8d8cd308ef7e4677b9 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Difference/trend_MovingMedian/cycle_5/ar_/test_artificial_1024_Difference_MovingMedian_5__20.py | f424dd4077963cad7c75f615bce42289c823621a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 274 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 5, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
2d9579c4f46e697e49c1ff2919d1f2e549706639 | 51305c54f8a316b6878a4462e1ba58a55c8e320f | /manager/thumbgen.py | 49950650252902242789d77d34a36ed34f1f3ad4 | [] | no_license | coinmenace/gck | 5b15b460335c0b52925f1875ccb4fecd416008e7 | fade84780cda218291cb2066808310c4871a06c8 | refs/heads/master | 2020-03-27T06:58:54.878353 | 2018-10-22T12:32:20 | 2018-10-22T12:32:20 | 146,153,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | from PIL import Image, ImageFile
import glob, os
from threading import *
ImageFile.LOAD_TRUNCATED_IMAGES = True
class Thumbgen:
def __init__(self,file,fullname,identifier):
sizes = [(32, 32),(64, 64),(128, 128),(256, 256),(512, 512),(1024, 1024),(2048, 2048)]
self.generateThumb(identifier,file,fulln... | [
"webframes@gmail.com"
] | webframes@gmail.com |
82a203f3a27ae3767dc8c58441b3f4644e5a1399 | a2e607593dcbe5feaeedd9e9bd4caeaf06e46733 | /tests/ui/menus/test_opmenu.py | 464f5422d23c0778525972d3ce32d53d5aa537af | [] | no_license | all-in-one-of/Houdini-Toolbox | dd05b2c869e663b185c1997d326bfe7548fbf55f | c10663c46c0f1249a9b3c6b32d4384a4399849ed | refs/heads/master | 2020-06-13T01:10:11.832715 | 2019-08-30T07:24:47 | 2019-08-30T07:24:47 | 194,484,242 | 0 | 0 | null | 2019-06-30T06:42:17 | 2019-06-30T06:42:17 | null | UTF-8 | Python | false | false | 1,738 | py | """Tests for ht.ui.menus.opmenu module."""
# =============================================================================
# IMPORTS
# =============================================================================
# Python Imports
from mock import MagicMock, patch
import unittest
# Houdini Toolbox Imports
import ht.u... | [
"captainhammy@gmail.com"
] | captainhammy@gmail.com |
08de1f917dace86cb7124d6906b69f3af922f184 | 7b55cfc4ffa7678e4c7b8f2312831ebbd549e54f | /proj1/tests/other-tests/strictfp_tests/error/test_if_continue.py | 99887a16a7eb4db8dd94fbe0fc70562f84d77ea9 | [] | no_license | czchen1/cs164-projects | 0d330efef85421e611a436b165428ba0ddfb3512 | a04cafbcaafd32e518227dacf89a6d7837bf9f57 | refs/heads/master | 2020-03-27T04:03:31.727524 | 2018-08-23T21:43:46 | 2018-08-23T21:43:46 | 145,909,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | if 1:
continue
| [
"czchen@mit.edu"
] | czchen@mit.edu |
cfbc0b358cbc8a73771ab602b38fe9a5b825e242 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/488/usersdata/341/112971/submittedfiles/AvF_Parte3.py | 25d6392521b197f54357fe6d625293d8a2655e93 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # -*- coding: utf-8 -*-
n = int(input('Digite a quantidade de números: '))
a = []
for i in range (n):
a.append('Digite os respectivos números: ')) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b524fe5caa3d77e5a88deb2e1aca3844f930eedf | 40491d4649bc8f981cfd531657b0970e2577edd1 | /Policy_Gradient/Tank_1/params.py | 591b4c09a4383ccea277dcc219593c967ce568b8 | [] | no_license | emedd33/Reinforcement-Learning-in-Process-Control | d82ddab87dc6727a70ee38d53889aa8af87ade25 | 24bc1d9b72c0762bd92c215837347d6548099902 | refs/heads/master | 2022-07-12T02:53:52.208320 | 2022-04-05T15:23:48 | 2022-04-05T15:23:48 | 161,691,463 | 29 | 11 | null | 2022-06-21T21:39:15 | 2018-12-13T20:29:27 | Python | UTF-8 | Python | false | false | 1,408 | py | MAIN_PARAMS = {
"EPISODES": 20000,
"MEAN_EPISODE": 50,
"MAX_TIME": 200,
"RENDER": True,
"MAX_MEAN_REWARD": 200, # minimum reward before saving model
}
AGENT_PARAMS = {
"N_TANKS": 1,
"SS_POSITION": 0.5,
"VALVE_START_POSITION": 0.2,
"ACTION_DELAY": [5],
"INIT_ACTION": 0.3,
"V... | [
"eskild.emedd33@gmail.com"
] | eskild.emedd33@gmail.com |
c3a893c3d848b53fed2af2a0af5ef2a746813b2d | 352f7d1258e51d3b7e8cfcbb4b527c3e27a68fe5 | /tests/test_img_server.py | b8eca0fb172da1de0c121455a4bcb1751b25020c | [] | no_license | lidingke/fiberGeometry | 67b53535ca1060af1ab29de915f1190258d7986e | 1455fd815884a735d5b9e87aff07244ca9a95a23 | refs/heads/master | 2020-05-21T16:45:06.374649 | 2018-02-25T06:30:15 | 2018-02-25T06:30:15 | 62,809,512 | 1 | 1 | null | 2017-08-29T03:21:54 | 2016-07-07T13:37:45 | C | UTF-8 | Python | false | false | 2,947 | py | # coding:utf-8
from setting.config import SIMULATOR_IMG_SERVER_COFIG
from SDK.simulator.client import Client
from SDK.simulator.server import ImgServer, SeverMain, SharpSever
from threading import Thread
import multiprocessing
from tornado.ioloop import IOLoop
from functools import partial
from util.getimg import getIm... | [
"lidingke@hust.edu.cn"
] | lidingke@hust.edu.cn |
ccffdde7de02461543a3f4f909b19626b7520c9f | f516b7561b93f640bcb376766a7ecc3440dcbb99 | /leetcode/easy/add-binary.py | a7a66ad52358184d587c15dba4b509ef2bcc902c | [
"Apache-2.0"
] | permissive | vtemian/interviews-prep | c41e1399cdaac9653c76d09598612f7450e6d302 | ddef96b5ecc699a590376a892a804c143fe18034 | refs/heads/master | 2020-04-30T15:44:42.116286 | 2019-09-10T19:41:41 | 2019-09-10T19:41:41 | 176,928,167 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | class Solution(object):
def addBinary(self, a, b):
"""
:type a: str
:type b: str
:rtype: str
"""
if len(b) > len(a):
a, b = b, a
a = a[::-1]
b = b[::-1]
count = 0
remainder = 0
result = ""
while count < l... | [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
3bc801af96cf998efd961d2ff892da8cd5f95e93 | 3de11c5630cad4ca816ad17dd2f6c743b8799108 | /djangorestframework/tutorial/tutorial/settings.py | 57a3ef605fb5ea039f858ff6b08cc8fa7ff71296 | [] | no_license | greenfrog82/TIL_Python | a6f03b0ae6f2260310faa5ef59d4bd01dcf6a1ed | 015116c5ff4a14f531e3693f9cfd3a921a674b81 | refs/heads/master | 2022-12-09T22:34:49.485937 | 2021-05-11T10:59:41 | 2021-05-11T10:59:41 | 154,969,150 | 0 | 1 | null | 2022-12-08T01:20:11 | 2018-10-27T13:44:56 | Python | UTF-8 | Python | false | false | 4,216 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
i... | [
"greenfrog82@naver.com"
] | greenfrog82@naver.com |
01fa61b61414d147b0eea7f2609800fd9d303acb | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/codeabbey/_Python_Problem_Solving-master/Greatest Common Divisor.py | a5d6275ab69ff29ca8c3202f4e265872f942f71d | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 363 | py | a = int(input())
string = ''
for i in range(a):
temp1,temp2 = num1, num2 = [int(ele) for ele in input().split()]
while num1 != num2:
if num1 > num2:
num1 = num1 - num2
else:
num2 = num2 - num1
lcm = temp1 * temp2 / num1
string += '('+str(num1)+' '+str(int(... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b85d7944f883d5fc1dae7e069f5d5cb234104815 | 0df124c41cbaa94750df79fc70bf911d298610a7 | /train_kFold.py | af272569fc2d9f5c6934814ab1624fffa7f18f92 | [] | no_license | bcaitech1/p2-klue-HYLee1008 | 7093a9245fe3ad9bf29251a4c12f12a801b9f4f5 | c22d1a1ba8e3aa89198d786845a0ad6efc69e27c | refs/heads/main | 2023-04-10T11:18:11.500052 | 2021-04-22T11:23:23 | 2021-04-22T11:23:23 | 360,466,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,318 | py | import argparse
import pickle as pickle
import os
import pandas as pd
import numpy as np
import torch
import random
import transformers
import glob
import time
import json
import wandb
from sklearn.metrics import accuracy_score
from transformers import AutoTokenizer, BertForSequenceClassification, Trainer,... | [
"discone1008@gmail.com"
] | discone1008@gmail.com |
b8e2120fcd66ff56ce5658f05e466269e248c642 | 99459cd11263f721155316164afddd1accf6419f | /stack.py | 7dd3b5ad53c0b158b87031a28ec838fc68eca0de | [] | no_license | dvmazuera/cs-data-structures-assessment | 5dc767241bb8a1821726c5b13a96140a59d0babf | 21082045955fa23cf26dd9dd52fdf9c22c0db31b | refs/heads/master | 2021-01-22T11:29:32.020412 | 2017-05-29T03:55:31 | 2017-05-29T03:55:31 | 92,704,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | class StackEmptyError(IndexError):
"""Attempt to pop an empty stack."""
class Stack(object):
"""LIFO stack.
Implemented using a Python list; since stacks just need
to pop and push, a list is a good implementation, as
these are O(1) for native Python lists. However, in cases
where performance ... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
0a81afd1bccfde119b3571c2a5ba4395ebb7b44f | e5cd01fd620e8e746a20b883de7ac32bec4feb5c | /Ejercicios python/PE4/PE4E3.py | 53f599b8b515986576a6731ce8932f4c3575fac2 | [] | no_license | eazapata/python | 0f6a422032d8fb70d26f1055dc97eed83fcdc572 | 559aa4151093a120527c459a406abd8f2ff6a7d8 | refs/heads/master | 2020-08-27T09:19:29.395109 | 2019-11-23T20:11:14 | 2019-11-23T20:11:14 | 217,314,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #PE4E3 Eduardo Antonio Zapata Valero
#Pida al usuario si quiere calcular el área de un triángulo o un cuadrado,
#y pida los datos según que caso y muestre el resultado.
fig=(input("Quieres calcular el área de un triángulo (t) o de un cuadrado (c) "))
if (fig=="t"):
print ("Ha elegido triángulo, introduce base y alt... | [
"you@example.com"
] | you@example.com |
88f3a978e1ccdf33914b845f1988779d03433a82 | 3a2af7b4b801d9ba8d78713dcd1ed57ee35c0992 | /zerver/migrations/0051_realmalias_add_allow_subdomains.py | dec9cce79560fb47f11fae6a6962e964cc2a4a00 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | timabbott/zulip | 2b69bd3bb63539adbfc4c732a3ff9d52657f40ac | 42f239915526180a1a0cd6c3761c0efcd13ffe6f | refs/heads/master | 2023-08-30T21:45:39.197724 | 2020-02-13T23:09:22 | 2020-06-25T21:46:33 | 43,171,533 | 6 | 9 | Apache-2.0 | 2020-02-24T20:12:52 | 2015-09-25T19:34:16 | Python | UTF-8 | Python | false | false | 541 | py | # Generated by Django 1.10.5 on 2017-01-25 20:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0050_userprofile_avatar_version'),
]
operations = [
migrations.AddField(
model_name='realmalias',
name='al... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
1176757494ee948beb10dc386770bfbd2a823956 | a29310948867f5f07109fcd225a84282ad7eea16 | /design_models/template_method.py | c4f800913310ae0c850b9c6b745efc7ed06b179d | [] | no_license | likeweilikewei/Python-study-demo | 09b266c0756b6e340e8b8e3153a7e497be8ee1a9 | 7dd4bc851273a5815d8980f9857828abfa5364a7 | refs/heads/master | 2020-06-26T21:17:27.095532 | 2019-07-31T02:17:43 | 2019-07-31T02:17:43 | 199,760,324 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | #!/usr/bin/python
# coding:utf8
'''
Template Method
模板方法模式:
应用特性:重复做相同逻辑的事情,但是具体细节不同的场景
结构特性:相同逻辑抽取至父类,具体细节留置子类。可以说是对逻辑的抽象
'''
ingredients = "spam eggs apple"
line = '-' * 10
# Skeletons
def iter_elements(getter, action):
"""Template skeleton that iterates items"""
for element in getter():
action(ele... | [
"1293120583@qq,com"
] | 1293120583@qq,com |
056c9e4811f80752b17207d170437781ff891727 | ad553dd718a8df51dabc9ba636040da740db57cf | /.history/app_20181213160433.py | 0cdeeb5a5dad82ce5b51349eae825d57abecf7ae | [] | no_license | NergisAktug/E-Commerce-PythonWithFlask-Sqlite3 | 8e67f12c28b11a7a30d13788f8dc991f80ac7696 | 69ff4433aa7ae52ef854d5e25472dbd67fd59106 | refs/heads/main | 2023-01-01T14:03:40.897592 | 2020-10-19T20:36:19 | 2020-10-19T20:36:19 | 300,379,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,372 | py | import datetime
from flask import Flask,flash, request, render_template_string, render_template
from flask import Flask, url_for, render_template, request, redirect, session, escape, render_template_string
from flask_babelex import Babel
from flask_sqlalchemy import SQLAlchemy
from flask_user import current_user, login... | [
"nergis.aktug2014@gmail.com"
] | nergis.aktug2014@gmail.com |
3d58de779e6e9ce278cac6d0c11ec7646a8fb43e | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/maximum-average-subarray-i.py | a92f4789fc9c877e00d034b9d34aa0c4a577f269 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 398 | py | # Time: O(n)
# Space: O(1)
class Solution(object):
def findMaxAverage(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: float
"""
result = total = sum(nums[:k])
for i in xrange(k, len(nums)):
total += nums[i] - nums[i-k]
... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
a81da2eb335b9334d5ffe13dc3ee8929dd6a7c6e | 31b83dbd1098fbba49a1d559f9ecac4d3b118fc8 | /pyEX/premium/wallstreethorizon/__init__.py | 5cfb183f73a4383b500379e1896460420d585f9a | [
"Apache-2.0"
] | permissive | briangu/pyEX | 438f777bdf7661f47fe7b63a0a848d6e90f8e9df | 2eacc322932f4b686817b3d162cb1e4f399fd696 | refs/heads/main | 2023-07-15T16:15:17.277704 | 2021-08-17T16:36:36 | 2021-08-17T16:36:36 | 331,754,038 | 0 | 0 | Apache-2.0 | 2021-01-21T21:01:48 | 2021-01-21T21:01:48 | null | UTF-8 | Python | false | false | 23,317 | py | # *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from functools import wraps
... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
308bff52ce577ba49c9ba46d0fd7277f04669f7f | 0e94b21a64e01b992cdc0fff274af8d77b2ae430 | /spider/004_kekeenglish_daysentence.py | 35df50ab90f89a35b0fc40370d4b4fef02e20b22 | [] | no_license | yangnaGitHub/LearningProcess | 1aed2da306fd98f027dcca61309082f42b860975 | 250a8b791f7deda1e716f361a2f847f4d12846d3 | refs/heads/master | 2020-04-15T16:49:38.053846 | 2019-09-05T05:52:04 | 2019-09-05T05:52:04 | 164,852,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 11 13:18:16 2018
@author: Administrator
"""
import re
from lxml import etree
import urllib.request
import xlwt
response=urllib.request.urlopen('http://www.kekenet.com/kouyu/primary/chuji/')
html = response.read().decode("utf-8")
tr = etree.HTML(html)
#//div[@class="tb-b... | [
"ityangna0402@163.com"
] | ityangna0402@163.com |
3dbf3e87b4b004b83e913dd989ed2ab900c5eb16 | b9e9c89567894fd7e5ddfd27fe9068a074a92df7 | /pyramid_signup/tests/test_init.py | d1de398dc5429102f7465cb8ee45667f5212c697 | [] | no_license | AnneGilles/pyramid_signup | 8aeea113176dd64a326caa5f7704026e0538c94a | 0622d951e686f0926291d98559a6b4afa2c81241 | refs/heads/master | 2021-01-18T17:48:48.260300 | 2011-12-09T04:56:44 | 2011-12-09T04:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | from pyramid import testing
from pyramid_signup.models import User
from pyramid_signup.tests import UnitTestBase
from mock import patch
from mock import Mock
class TestInitCase(UnitTestBase):
def test_root_factory(self):
from pyramid_signup import RootFactory
from pyramid.security import Everyone... | [
"sontek@gmail.com"
] | sontek@gmail.com |
36d1cdb0cf14edfe05793a672c0556d8c5875baa | d1e4f29e583ee964d63bc48554eaa73d67d58eb2 | /zerver/migrations/0222_userprofile_fluid_layout_width.py | 3b5c232bee7088bb888cc76437ff9bc3df92ee7b | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | hygolei/zulip | 299f636f9238f50b0d2746f1c371748f182f1f4e | 39fe66ab0824bc439929debeb9883c3046c6ed70 | refs/heads/master | 2023-07-11T22:50:27.434398 | 2021-08-09T10:07:35 | 2021-08-09T10:07:35 | 375,401,165 | 1 | 1 | Apache-2.0 | 2021-08-09T10:07:36 | 2021-06-09T15:20:09 | Python | UTF-8 | Python | false | false | 428 | py | # Generated by Django 1.11.20 on 2019-04-15 17:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("zerver", "0221_subscription_notifications_data_migration"),
]
operations = [
migrations.AddField(
model_name="userprofile",
... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
590d2207a922188f883dab5476511635e22f0ab1 | 408f8c561a695ac20b792ba0c4a230c154dad347 | /scripts/slurm.py | 1526201ab8cdf66bbed803e8fe3ad1e4f9c182d0 | [] | no_license | andnp/acceleration-v2 | a407888c74a247e6d441259d50d77cf6194f728b | 52b8a42c3e315ddbb4549a3a941afda81e92be9b | refs/heads/master | 2022-11-26T05:42:17.680125 | 2020-08-02T23:25:01 | 2020-08-02T23:25:01 | 204,991,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | import time
import sys
import os
sys.path.append(os.getcwd())
from src.utils.model import loadExperiment
from PyExpUtils.runner import SlurmArgs
from PyExpUtils.results.paths import listResultsPaths
from PyExpUtils.utils.generator import group
from PyExpUtils.runner.Slurm import schedule, slurmOptionsFromFile
if len(... | [
"andnpatterson@gmail.com"
] | andnpatterson@gmail.com |
14147605374f069cff8d2de50567bb9cf4e835a8 | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/building/DistributedDoor.py | c8656242ed57b765f03716bc377f99ceb20175d6 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 28,605 | py | # File: t (Python 2.4)
from toontown.toonbase.ToonBaseGlobal import *
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from toontown.toonbase import ToontownGlobals
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import Classi... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.