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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad6818b1cb0641df553b96ea5a6a81a2964f6ddf | 1078c61f2c6d9fe220117d4c0fbbb09f1a67f84c | /paws/lib/python2.7/site-packages/euca2ools-3.4.1_2_g6b3f62f2-py2.7.egg/EGG-INFO/scripts/euare-instanceprofilelistbypath | c55ad41537406ff822d69daf820d23cc6176d1e1 | [
"MIT"
] | permissive | cirobessa/receitas-aws | c21cc5aa95f3e8befb95e49028bf3ffab666015c | b4f496050f951c6ae0c5fa12e132c39315deb493 | refs/heads/master | 2021-05-18T06:50:34.798771 | 2020-03-31T02:59:47 | 2020-03-31T02:59:47 | 251,164,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | #!/media/ciro/LOCALDRV/A_DESENVOLVIMENTO/AWS/receitas/paws/bin/python -tt
import euca2ools.commands.iam.listinstanceprofiles
if __name__ == '__main__':
euca2ools.commands.iam.listinstanceprofiles.ListInstanceProfiles.run()
| [
"cirobessa@yahoo.com"
] | cirobessa@yahoo.com | |
4d137f2610e281cad85b0440573d0513db16ccdb | fe3a29aefb4f9bb38d6d4bc61ef9839521823dc2 | /server/src/oscarbundles/migrations/0009_auto_20180319_1116.py | f8f0a02a9366aa3258ef06133916ac5a59f7ae57 | [
"ISC"
] | permissive | thelabnyc/django-oscar-bundles | a5f73edd26d3c930a32cdaa4a2142cfd44a74294 | d8dc00edbcc57cbe18b274905beef533a8a642f7 | refs/heads/master | 2023-05-25T01:13:10.769112 | 2023-05-16T15:42:01 | 2023-05-16T15:42:01 | 81,470,009 | 6 | 3 | ISC | 2023-03-14T17:27:07 | 2017-02-09T16:24:45 | Python | UTF-8 | Python | false | false | 1,077 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-19 15:16
from __future__ import unicode_literals
from django.db import migrations
def make_group_trigger_data_unique(apps, schema_editor):
Bundle = apps.get_model("oscarbundles", "Bundle")
for bundle in Bundle.objects.order_by("id").all():
... | [
"crgwbr@gmail.com"
] | crgwbr@gmail.com |
d82b63b927f20bd2f9ea34dd627297fedd1bd24d | cb6b1aa2d61b80cba29490dfe8755d02c7b9a79f | /lobbyapp/dbmangr/root.py | 68b7357ed39d3aeacd4c771556566af010222663 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | piotrmaslanka/Ninja-Tower | c127a64888bc3306046e4b400ce3a8c6764b5481 | 7eca86e23513a8805dd42c3c542b7fae0499576b | refs/heads/master | 2021-12-06T07:56:13.796922 | 2015-10-15T08:10:35 | 2015-10-15T08:10:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | import MySQLdb
from satella.instrumentation.counters import PulseCounter
from satella.instrumentation import CounterCollection
from satella.db.pool import DatabaseDefinition, ConnectionPool
from lobbyapp.selectlayer.api import PDBHelperInterface as SelectLayerInterface
from lobbyapp.dbmangr.proxies import SelectLayer... | [
"piotr.maslanka@henrietta.com.pl"
] | piotr.maslanka@henrietta.com.pl |
0f039a2e0f17e114b92b8c5b5137e444e7ab0e25 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/eve/client/script/ui/services/viewStateSvc.py | 164db4014bef2482b98bbdd32051a37548e7548a | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,220 | py | #Embedded file name: eve/client/script/ui/services\viewStateSvc.py
"""
The view manager is tasked with controlling the transitions between fullscreen views
"""
from service import Service
import uicls
import carbonui.const as uiconst
import blue
import uthread
import localization
import memorySnapshot
import log
class... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
67685bc853b72f28dfc50d9e13c6874b050911f5 | 0c89b4b021d469f5209753f2ab75de06c4925497 | /setup.py | d92ceb35d542fabdf9f5253fce19017a14c8b384 | [
"BSD-3-Clause"
] | permissive | mrusoff/sos | 6fc474a7a8da49f7d0ff6f4ae11ce8ea3d5283ea | e60f2944d4f4c623191dbe7b1ba6a092f0dc5e94 | refs/heads/master | 2020-07-01T19:54:28.724508 | 2019-08-08T13:52:12 | 2019-08-08T13:52:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,404 | py | #!/usr/bin/env python
#
# Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center
# Distributed under the terms of the 3-clause BSD License.
import sys
from setuptools import find_packages, setup
from setuptools.command.bdist_egg import bdist_egg
_py_ver = sys.version_info
if _py_ver.major == 2 o... | [
"ben.bog@gmail.com"
] | ben.bog@gmail.com |
fc03332dcbf0200d0f9e90b5bfe070525ec87bf7 | 1336896824c8937cc744a112661061c7b89beb73 | /Tag02/dozent_pool.py | 5500d3d8b5f588eca1e8359d02afe868322021ae | [] | no_license | anna-s-dotcom/python01-python08 | df457fc1f93b74d91037fd7d62db5fa53baa8616 | cf3d539800ee7e83f1d32010481c7a9ee2d58858 | refs/heads/master | 2020-12-30T06:12:10.785131 | 2020-02-07T09:40:01 | 2020-02-07T09:40:01 | 238,888,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import os
from multiprocessing import Pool
import time
def quadfunc(n):
time.sleep(0.2)
return n*n
if __name__ == '__main__':
print(os.cpu_count())
t = time.time()
p = Pool(processes = 5)
result = p.map(quadfunc, [1, 2, 3, 4, 5])
p.close()
print('Pool time:', time.time(... | [
"noreply@github.com"
] | anna-s-dotcom.noreply@github.com |
a49b401854cc2d03d3f273fcc6b393095b8453c6 | 41ef6fe769664ee8531306e4da94b333359c77bd | /ml_jobcontrol/ml_jobcontrol/migrations/0001_initial.py | 20b17210101fa812fbef8da129035ddd6ea87a34 | [
"BSD-2-Clause"
] | permissive | ephes/ml_jobcontrol | 85e24736b2cf6e3c587d9a994c4b42a2f04d205b | 854d9582d537f82f16d7ba7775e88948abb4d66d | refs/heads/master | 2021-01-20T05:08:10.340387 | 2014-07-22T20:02:45 | 2014-07-22T20:02:45 | 21,605,675 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,491 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'MLDataSet'
db.create_table(u'ml_jobcontrol_mldataset', (
... | [
"jochen@wersdoerfer.de"
] | jochen@wersdoerfer.de |
cf67b46f033723c3e6c4b4a18b3594092ee467a7 | 53c3462ff265b6273f4a4fa17f6d59688f69def0 | /数据结构/quick_sort.py | 9b98643d357f31d649bf67308b1db09a87523eb6 | [] | no_license | 17764591637/jianzhi_offer | b76e69a3ecb2174676da2c8d8d3372a3fc27b5c4 | 27e420ee302d5ab6512ecfdb8d469b043fb7102d | refs/heads/master | 2023-08-03T01:32:51.588472 | 2019-10-13T07:56:21 | 2019-10-13T07:56:21 | 197,692,548 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | '''
快速排序使用分治法来把一个串(list)分为两个子串(sub-lists)。
具体算法描述如下:
1.从数列中挑出一个元素,称为 “基准”(pivot);
2.重新排序数列,所有元素比基准值小的摆放在基准前面,所有元素比基准值大的摆在基准的后面(相同的数可以到任一边)。
在这个分区退出之后,该基准就处于数列的中间位置。这个称为分区(partition)操作;
3.递归地(recursive)把小于基准值元素的子数列和大于基准值元素的子数列排序。
时间复杂度:O(nlogn) 不稳定
'''
def quick_sort(nums,start,end):
#递归退出的条件
if start >= end:
... | [
"17764591637@163.com"
] | 17764591637@163.com |
72b224e612831d78026a2b1d1c2e5fa5338f40d2 | 60f96f12bcac952de88e1f62a785149a4e0a6746 | /mixins_views/views.py | b9029128c1818ea8e61d60eadd773cc8c72674d8 | [] | no_license | jayednahain/Django-Rest_api-with-mixins. | 6242e5d4678ef6b77a4f3ced16f791f8997b6748 | 4536fad0ded80d70453ab46ce185e9d8ce16d2e1 | refs/heads/main | 2023-03-24T20:08:58.916183 | 2021-03-21T14:06:21 | 2021-03-21T14:06:21 | 350,015,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | from django.shortcuts import render
# Create your views here.
from django.shortcuts import render
from mixins_views.models import Student
from mixins_views.serializers import StudentSerializer
from rest_framework.response import Response
from rest_framework import status
from rest_framework.views import APIView #use... | [
"jayednahian@yahoo.com"
] | jayednahian@yahoo.com |
46e14b52afac31c58275483a6c07f10b3a257261 | 1179cd00f986bbdb71950e796c7418beda2f124a | /Contents/Code/common.py | db9315c85b7ff89049138abe2510cabd1146b24a | [] | no_license | coder-alpha/DesiTelly.bundle | 5a7a7a92402d1e52f09174c3fd20df1f0f0a9613 | 3f700fd37523a0d93f5c6d6cd84f3d6b7f5e8cfa | refs/heads/master | 2021-01-16T23:06:38.674286 | 2018-10-16T10:39:40 | 2018-10-16T10:39:40 | 69,209,707 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,541 | py | ################################################################################
TITLE = L('Title')
VERSION = '0.13' # Release notation (x.y - where x is major and y is minor)
GITHUB_REPOSITORY = 'coder-alpha/DesiTelly.bundle'
PREFIX = "/video/desitelly"
#################################################################... | [
"coderalphaakv@gmail.com"
] | coderalphaakv@gmail.com |
35b3a29158681480060f348b5446d99387856c6b | 998c2105908e0a4463075a84f9e3f1678ffcdfb3 | /keras_video_object_detector/library/yolo_utils.py | ca0e5e348b8fcb14721858d241185efece4ba0ac | [
"MIT"
] | permissive | chen0040/keras-video-object-detector | a4bb2a080d62c0ecb56c12096ffe1f161b6d2c71 | 52f07ff4047dcc8732015c3debba1fa3eb7f2c56 | refs/heads/master | 2021-09-03T09:38:01.520006 | 2018-01-08T03:22:42 | 2018-01-08T03:22:42 | 116,548,809 | 15 | 9 | null | null | null | null | UTF-8 | Python | false | false | 3,459 | py | import colorsys
import imghdr
import os
import random
from keras import backend as K
import numpy as np
from PIL import Image, ImageDraw, ImageFont
def read_classes(classes_path):
with open(classes_path) as f:
class_names = f.readlines()
class_names = [c.strip() for c in class_names]
return class... | [
"xs0040@gmail.com"
] | xs0040@gmail.com |
2adc6545b8d6dcc6760907fe667129c5002aca2a | c14debb710242571769587d9e8fb1d0ecfbcd15b | /query_csv/utils.py | ea9bf421ec92f261c090af6872c3e1b44db13cf2 | [] | no_license | jayrbolton/query_csv | f464a6ad714372c41390b15f838c99c1e4c250ec | 4299f9e179d9fcaf41560c30372cb65b57d1756f | refs/heads/master | 2022-10-03T18:23:33.052523 | 2020-06-06T14:42:36 | 2020-06-06T14:42:36 | 270,006,356 | 0 | 0 | null | 2020-06-06T14:42:37 | 2020-06-06T14:29:59 | Python | UTF-8 | Python | false | false | 2,809 | py | import gzip
import shutil
import tempfile
import csv
import os
from typing import Union, List, Generator
# yielded by the CSV parsers below. Generator of lists of column values for
# every row in a CSV
Rows = Generator[List[str], None, None]
def convert_col_type(val: str) -> Union[str, float, int]:
"""
Conve... | [
"jayrbolton@gmail.com"
] | jayrbolton@gmail.com |
220ec570d9a918a4ca8be2737dd79bd8c314fc0d | 810305a5f4d9592e81381c252ab24be43d33817e | /aishack/migrations/0023_auto__del_field_category_slug.py | a2dbc477883840398a3834247c0b3cb65afee002 | [] | no_license | awal123/aishack | 9dbfcbb329b35674c6f0a15c6dfc9de39ba34d05 | 5a16efca42899f3ec1495a509fe801348f3933ac | refs/heads/master | 2021-01-22T21:23:11.168117 | 2014-08-31T05:02:36 | 2014-08-31T05:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,364 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Category.slug'
db.delete_column(u'aishack_category', 's... | [
"sinha.utkarsh1990@gmail.com"
] | sinha.utkarsh1990@gmail.com |
ada3a03be028e3b915389cada419c859da69736d | eb42558f56fdb41526cc31ac4ef3a6937bf39e96 | /ConfigDefinitions/UserConfigs/SMHTT_2018_Configs_Deep/ST_tW_antitopConfig.py | 378774e807e5da7f892c2a679902bc63f061b479 | [] | no_license | samhiggie/Jesterworks | 6906b042d3e200efb9bd10b70284ccd30661aa53 | 562e8cbb20d7e4b1d5b9bdba3715578cc66f097d | refs/heads/master | 2020-09-11T19:35:59.770456 | 2019-11-16T12:37:35 | 2019-11-16T12:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | from ConfigDefinitions.JesterworksConfigurations import JesterworksConfiguration as Config
from ConfigDefinitions.BranchAdditions.UserDefinedCollections.SMHTT_2018_MC_Collection import MCCollection as BranchCollection
from ConfigDefinitions.CuttingDefinitions.UserCutConfigs.SMHTT2018Cuts_MC_NoEmbeddedOverlap_wDeep imp... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
cdd87b5b84d7dc7c907de04cbd185430dfb253e2 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/Taustar/Taustar_TauG_L10000_m4000_13TeV_pythia8.py | 9cdc43d01bf5f29ac69ce08fdf5c53e3f219175d | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,257 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
maxEventsToPrint = cms.untracked.int32(1),
pyth... | [
"dnash@cern.ch"
] | dnash@cern.ch |
cc3756f9d748169d46b374c902c181e512a382fa | eafabc5e332f5fc0153e166d992ac0711cf90cd6 | /BOJ/11021/11021.py | 196aea58fa768861cb7e5f8f574957c8f0801695 | [] | no_license | PARKINHYO/Algorithm | 96038ce21bd9f66208af0886208ef6ed925c23e2 | 0ed8687fe971fc2b05e2f50f62c0d0e47c368a6c | refs/heads/master | 2021-12-23T23:48:25.247979 | 2021-08-20T01:52:50 | 2021-08-20T01:52:50 | 196,219,508 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | T = int(input())
AB = [[int(x) for x in input().split()] for y in range(T)]
for i in range(T):
C = AB[i][0] + AB[i][1]
print("Case #%d: %d" % (i+1, C)) | [
"you@example.com"
] | you@example.com |
323135bcedfd94ec7cd2eae4703e33dde6537de0 | ab1c920583995f372748ff69d38a823edd9a06af | /shultais_courses/data_types/type_conversion/type_conversion.py | 1adc77061b934ef1b1a664bba675429f0fe1b226 | [] | no_license | adyadyat/pyprojects | 5e15f4e33892f9581b8ebe518b82806f0cd019dc | c8f79c4249c22eb9e3e19998d5b504153faae31f | refs/heads/master | 2022-11-12T16:59:17.482303 | 2020-07-04T09:08:18 | 2020-07-04T09:08:18 | 265,461,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | salary = "50000"
salary1 = "50000.5"
year_salary = int(salary) * 12
year_salary1 = float(salary1) * 12
print(year_salary, year_salary1)
print("Ваша годовая зарплата: " + str(year_salary))
# Преобразование типов | [
"omorbekov.a@gmail.com"
] | omorbekov.a@gmail.com |
632df10af90453376bd5a9c07308d6d702f9eab6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_318/ch23_2019_03_31_22_15_03_222154.py | ababaf32eacb836c1ef4fd1dcb5fe1051412ae6a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | def verifica_idade(x):
if(x>20):
print("Liberado EUA e BRASIL")
return x
elif(x>17 and x<21):
print("Liberado BRASIL")
return x
else:
print("Não está liberado")
return x | [
"you@example.com"
] | you@example.com |
e731f34764d4a0c183cb174840d6cc907ce618bd | b4a58df63b7e42085d7b4a90cce184bab4039e97 | /src/config_29.py | 0b783d5a2b9d9b38f8b373fc503a67e5a2acd268 | [] | no_license | shinglyu/MusicPupil | 4f82a2240b99c98ec7eb8db1017cfa232cf21bb9 | edfc6da085e9433f347301d7f6ccc49eab45d14f | refs/heads/master | 2021-01-10T03:50:32.670628 | 2013-08-14T08:52:37 | 2013-08-14T08:52:37 | 51,300,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,595 | py | import os.path
#DEBUG = True
DEBUG = False
defaultTrainSampleList= "../training_samples/trainSampleList.txt"
unittestTrainSampleList="../training_samples/trainSampleList.txt"
defaultGenScore= "../testing_scores/chop_nc_phrase001"
#defaultTrainFeatsFilename="../output/trainFeats.json" #may need to prepend file... | [
"shing.lyu@gmail.com"
] | shing.lyu@gmail.com |
8c9f827f7dd01ae5a14d2a256505ffc43d563601 | 605c10db2f950a506af60d57a2074f97ebcf89ab | /code/MODULE/img_processing/record.py | 224137ab62610a7abcbd7067dcc47e6f658b24e3 | [] | no_license | MulongXie/Research-ReverselyGeneratingWebCode | 928f90d6b4f80ebff40a9a3a48f8b564277a0987 | 2c1598a765166f30786b0e6a22c485358ca2e98d | refs/heads/master | 2020-05-17T18:14:02.241209 | 2020-04-10T00:19:16 | 2020-04-10T00:19:16 | 183,857,077 | 0 | 3 | null | 2020-02-03T04:31:34 | 2019-04-28T04:51:24 | Python | UTF-8 | Python | false | false | 2,173 | py | import cv2
import numpy as np
def find_contour():
img = cv2.imread('0.png')
img = cv2.blur(img, (3,3))
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
ret, binary = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY)
cv2.imwrite('bb.png', binary)
binary, contours, hierarchy = cv2.findContours(binary,... | [
"dsh15325@163.com"
] | dsh15325@163.com |
9e2bb78f520aa42abdeaba0e0225c1e8624c96cd | 496d3438c33196bc62a15a009cc892b69bef3fd6 | /hataripy/modflow/mfflwob.py | c2cf7cba57724d4979749c06c1e232e039ed5b2f | [
"MIT"
] | permissive | hatarilabs/hataripy | 9cb7749a93a5f35a71a4ee4538ce4686e13c3b77 | 7db7869f34b875c9f76d42b7a4801b0c23738448 | refs/heads/master | 2021-11-23T08:06:39.912715 | 2019-10-18T20:09:55 | 2019-10-18T20:09:55 | 216,093,522 | 4 | 1 | MIT | 2021-11-16T21:11:54 | 2019-10-18T19:27:15 | Python | UTF-8 | Python | false | false | 12,194 | py | import numpy as np
from ..pakbase import Package
class ModflowFlwob(Package):
"""
Head-dependent flow boundary Observation package class. Minimal working
example that will be refactored in a future version.
Parameters
----------
nqfb : int
Number of cell groups for the head-dependent ... | [
"hatariresearchlabs@gmail.com"
] | hatariresearchlabs@gmail.com |
b0cc2ba9fac7cba1d33ade5d24feafd1c573bf99 | 1caf4418f3549567637f5e9893a445f52a38c6a0 | /CmsAdmin/media_content/app/dtos/__init__.py | ac09cc699e3fea3eea9f4320bb74d14a43fcd5c7 | [] | no_license | Final-Game/social_network_backend | c601563e08c0fd7de72a614944f354ef8d2d31d8 | 8111787d1d20eb87733ae360d8baa745a65e2743 | refs/heads/master | 2023-03-04T21:12:43.147084 | 2021-02-23T03:45:22 | 2021-02-23T03:45:22 | 290,542,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from .media_dto import MediaDto
from .create_media_list_dto import CreatePostMediaListDto | [
"kakavip.198.kaka@gmail.com"
] | kakavip.198.kaka@gmail.com |
6fd957dec3b88887df1e62ab9b4bc131e1c557b1 | b8461afd9d11457a91ae803987bde74337ad4fd1 | /docs/source/reference-core/channels-shutdown.py | dcd35767ae1921678a10099dd6e99150a70a52b7 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abispo/trio | d9750920091fc4b77e4d8386def45ea727eb2218 | 5bcfb1b9b90cc6bbf517468251597e8b262ca789 | refs/heads/master | 2020-06-20T21:10:38.474717 | 2019-07-15T05:56:33 | 2019-07-15T05:56:33 | 197,250,586 | 1 | 0 | NOASSERTION | 2019-07-16T18:53:03 | 2019-07-16T18:53:03 | null | UTF-8 | Python | false | false | 582 | py | import trio
async def main():
async with trio.open_nursery() as nursery:
send_channel, receive_channel = trio.open_memory_channel(0)
nursery.start_soon(producer, send_channel)
nursery.start_soon(consumer, receive_channel)
async def producer(send_channel):
async with send_channel:
... | [
"njs@pobox.com"
] | njs@pobox.com |
5d1f056703f1b727bc1edd6a7ae06a89636722a4 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/BlendLuxCore/ui/halt.py | 07a3ec885fcf3cd6db5a21ef53e0815aa858c782 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,668 | py | from bl_ui.properties_render import RenderButtonsPanel
from bl_ui.properties_render_layer import RenderLayerButtonsPanel
from bpy.types import Panel
from ..utils import ui as utils_ui
from . import icons
def draw(layout, context, halt):
layout.active = halt.enable
row = layout.row()
row.prop(halt, "use_t... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
adc9e3d8973dbb3380952f23d6606d8fea4fa7a0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03425/s431844808.py | f6ac9253a929b3316b46eab8732c3022a81c6fb6 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | n = int(input())
s = [input() for i in range(n)]
l = [0] * 5
for i in range(n):
if s[i][0] == "M":
l[0] += 1
elif s[i][0] == "A":
l[1] += 1
elif s[i][0] == "R":
l[2] += 1
elif s[i][0] == "C":
l[3] += 1
elif s[i][0] == "H":
l[4] += 1
ans = 0
for j in range(3):
for k in range(j+1, 4):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5ef99950fd6011c61d4088bd8fe2d21e6a1acc15 | f2601a5678fbc04738eff8393a42c07c87ca4d9c | /licenses/management/commands/upload_license_messages.py | e69e87ba92c4d6da391efd55cd87d58d77121df6 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"LicenseRef-scancode-public-domain",
"CC0-1.0",
"CC-BY-NC-4.0",
"CC-BY-NC-ND-4.0",
"LicenseRef-scancode-unknown"
] | permissive | sp35/cc-licenses | 1c2e713fbc4ec96a90bdb6f5c8b5c4750fee3632 | 42573273bac4136adf9f482db75314d81efdcdcf | refs/heads/main | 2023-03-08T11:28:06.885986 | 2021-02-25T21:23:14 | 2021-02-25T21:23:14 | 342,029,287 | 0 | 0 | MIT | 2021-02-24T20:38:45 | 2021-02-24T20:38:45 | null | UTF-8 | Python | false | false | 303 | py | from django.core.management import BaseCommand
from licenses.models import License
class Command(BaseCommand):
def handle(self, **options):
for license in License.objects.filter(
version="4.0", license_code__startswith="by"
):
license.tx_upload_messages()
| [
"dpoirier@caktusgroup.com"
] | dpoirier@caktusgroup.com |
ec737f98eaab6f5935ea821568169b9097114b80 | cfd9fa1af735ac3572954704a47e35543850b244 | /run.py | 5dcf8a98e292f9b7dbf746fb300f36d20052741f | [] | no_license | xingyueGK/hjsg | c1844ea8161d254f6d6cf70f42d1ac849e117438 | be0c4c457bdfaa9178f25f9f722dc78d88f24540 | refs/heads/master | 2022-12-12T08:28:55.823357 | 2020-12-05T12:02:06 | 2020-12-05T12:02:06 | 147,184,573 | 0 | 1 | null | 2022-01-06T22:26:48 | 2018-09-03T09:47:04 | HTML | UTF-8 | Python | false | false | 2,701 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/5/21 11:15
# @Author : xingyue
# @File : run.py
#运行方法
import threading
import os,time,apscheduler
from task.base import SaoDangFb
from task.talent import Talent
from task.hero_soul import DragonBoat,GoBoat
from task.glory_front import glory_fro... | [
"a413728161@vip.qq.com"
] | a413728161@vip.qq.com |
4bf49fded33b7c4a27f087f75b6783e70d7a0f6f | 4ec1eda7669dbe2dd67ac7218421fae62b5ef741 | /userauth/urls.py | d8645c6d93d55fb5f15ec3a2f8a0d8f8793391d7 | [] | no_license | atul8727/medical_helper | 075284335644343d71d4c4d92f1e4e92b67089aa | 2e03f70b82834b95cb4d424d22f2bd5b82f652c8 | refs/heads/master | 2023-07-01T03:15:46.146540 | 2021-08-01T19:06:03 | 2021-08-01T19:06:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from django.urls import path,include
from .views import dashboard_view,register_user
from app.views import *
urlpatterns = [
path('dashboard/', dashboard_view, name='dashboard'),
path('register/',register_user, name='register'),
path('oauth/',include('social_django.urls')),
] | [
"xaidmetamorphos@gmail.com"
] | xaidmetamorphos@gmail.com |
9696a8447135bae26d4e81268979efa949782a04 | cc8416a20b3aa9832dabf29112e52b5dfb367157 | /stable_nalu/layer/regualized_linear_nac.py | 295fd28e4264cbe51423d12d827218e558f7c0b5 | [
"MIT"
] | permissive | AndreasMadsen/stable-nalu | ff877592ec965dca49a48bf94b38e343ba407411 | b3296ace137ffa4854edeef3759f1578b7650210 | refs/heads/master | 2023-05-22T04:53:17.495712 | 2021-08-19T18:15:14 | 2021-08-19T18:23:45 | 177,330,156 | 149 | 19 | MIT | 2020-01-15T08:06:12 | 2019-03-23T19:13:34 | HTML | UTF-8 | Python | false | false | 1,824 | py |
import scipy.optimize
import numpy as np
import torch
from ..abstract import ExtendedTorchModule
from ._abstract_recurrent_cell import AbstractRecurrentCell
class RegualizedLinearNACLayer(ExtendedTorchModule):
"""Implements the RegualizedLinearNAC
Arguments:
in_features: number of ingoing features
... | [
"amwebdk@gmail.com"
] | amwebdk@gmail.com |
993bb6fb588f69bf3dbc7122e9b8a916a0de47ce | 134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2 | /desktop/core/ext-py/Twisted/twisted/internet/epollreactor.py | 0031e50b6adcc505e65831ddb8be2d3d8d84ef4e | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | civascu/hue | 22637f13a4cfc557716557661523131b6ac16da4 | 82f2de44789ff5a981ed725175bae7944832d1e9 | refs/heads/master | 2020-03-31T01:50:39.449966 | 2010-07-21T01:05:50 | 2010-07-21T01:07:15 | 788,284 | 0 | 0 | Apache-2.0 | 2019-02-04T07:03:12 | 2010-07-21T07:34:27 | Python | UTF-8 | Python | false | false | 8,517 | py | # Copyright (c) 2001-2007 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
An epoll() based implementation of the twisted main loop.
To install the event loop (and you should do this before any connections,
listeners or connectors are added)::
from twisted.internet import epollreactor
epollreactor... | [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
a2f9ac6a7a2e1e0f0409cdcdb101ee1a3326ccff | ca1e432c66ca9289cc25039f6c035c292e298d15 | /content_management_portal/migrations/0002_auto_20200629_1454.py | 98fb46bcc42bd507c329ea7f4728238c6de54c3e | [] | no_license | raviteja1766/ib_mini_projects | 9bf091acf34e87d7a44bec51a504bdb81aceae27 | 3fa36b97cfa90b5f5853253480934cf27714aa15 | refs/heads/master | 2022-11-19T07:08:27.061315 | 2020-07-02T16:54:42 | 2020-07-02T16:54:42 | 272,033,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # Generated by Django 2.2.1 on 2020-06-29 14:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('content_management_portal', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='question',
old_name='user'... | [
"ravitejak125@gmail.com"
] | ravitejak125@gmail.com |
42dc09e71e7b06ee6b54b705f7a5d017856157c3 | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/catapult/third_party/gsutil/gslib/cloud_api.py | b7af6b6eeac56ac0457c213753aa18d7878f5edb | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 24,923 | py | # -*- coding: utf-8 -*-
# Copyright 2013 Google Inc. All Rights Reserved.
#
# 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 require... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
14fa26d61098fd50e84ed8cab47b9e770689805e | 8f8498bb6f56b19d45a1989c8113a077348c0a02 | /백준/Silver/미로 탐색.py | d234250c529ddb20d32d95135c9f6906a5932cda | [] | no_license | gjtjdtn201/practice | a09b437c892b0b601e156c09cb1f053b52fab11b | ea45582b2773616b2b8f350b927559210009d89f | refs/heads/master | 2021-01-01T13:29:46.640740 | 2020-11-28T00:55:37 | 2020-11-28T00:55:37 | 239,299,485 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import sys
sys.stdin = open('미로 탐색.txt', 'r')
from collections import deque
def BFS(y,x):
queue = deque()
queue.append((y,x))
visit[y][x] = 1
while queue:
a, b = queue.popleft()
if (a, b) == (N-1, M-1):
print(visit[a][b])
return
for i in range(4):
... | [
"gjtjdtn201@naver.com"
] | gjtjdtn201@naver.com |
8a5a13a59d69a8b4e360050051c66440c9475be8 | 00b1fe62aff1bbad885a1b13354239b07925c5c1 | /catalyst_rl/dl/callbacks/inference.py | 0e865e1f3b6ece6a4f57fa06a27b1a96f3d7c224 | [
"Apache-2.0"
] | permissive | catalyst-team/catalyst-rl | a78675c477bef478d73cd1e7101be6dbb7b586aa | 75ffa808e2bbb9071a169a1a9c813deb6a69a797 | refs/heads/master | 2021-09-22T08:36:12.161991 | 2021-09-13T05:59:12 | 2021-09-13T05:59:12 | 247,928,934 | 50 | 8 | null | null | null | null | UTF-8 | Python | false | false | 4,901 | py | from collections import defaultdict
import os
import imageio
import numpy as np
from skimage.color import label2rgb
import torch
import torch.nn.functional as F
from catalyst_rl.dl import Callback, CallbackOrder, State, utils
# @TODO: refactor
class InferCallback(Callback):
def __init__(self, out_dir=None, out... | [
"scitator@gmail.com"
] | scitator@gmail.com |
807ce2ef2b7594044dfcedb3be33a7a555fbea60 | f24c35bb0919f9ad75f45e7906691c3189536b33 | /chengbinWorkSpace/droneLanding/python/Tello/path-plan.py | a09ea6ba4b28dcee3cbd474fc8a53b485a698cdf | [] | no_license | mfkiwl/supreme-xcb | 9b941f49bab5a811d23a0cd75790d1e5722aa9f0 | d1287657607bf86d4b1393acf285951760670925 | refs/heads/main | 2023-03-07T12:10:28.288282 | 2021-03-02T11:46:00 | 2021-03-02T11:46:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | '''
brief:
Version:
Autor: shuike
Date: 2021-01-12 19:23:39
LastEditors: shuike
LastEditTime: 2021-01-12 19:23:39
FilePath: /droneLanding/python/Tello/path-plan.py
'''
#!/usr/bin/python
import pygame
import json
import math
"""
how many pixel = actual distance in cm
70px = 360cm --> 360/70 = MAP_SIZE_COEFF
"""
MAP_... | [
"xiechengbinin@gmail.com"
] | xiechengbinin@gmail.com |
c9316b33117f1c9cc1e359f48d5e48384095555c | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /N_Queue/MonotonicQueue/L3_862_Shortest_Subarray_with_Sum_at_Least_K.py | 75b2d94429dd60dfa0b738814446722e2d7d5e6d | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 813 | py | """ https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/
Transform the problem to find the shortest sliding window with sum >= k,
we can use a monotonic increasing queue to maintain the prefix sum,
and try to make queue head as small(but larger than k) as possible and queue tail as large as possible.
""... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
d79b390ee107b353b56586cffd43e1fbeba7d65e | 8998a6cf66578453249544ca10b4239615751c53 | /setup.py | 6b66ea18fd958460305ba03c5534b4cbfac428fa | [
"MIT"
] | permissive | kwaegema/jicirodsmanager | be7c3857989c78a0cde4d8d41da45559dcc15499 | aca97415acb8f1b40bbb72c1c05b25fe20808d84 | refs/heads/master | 2021-04-15T18:39:25.766088 | 2017-11-15T11:19:57 | 2017-11-15T11:19:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from setuptools import setup
url = "https://github.com/JIC-CSB/jicirodsmanager"
version = "1.1.0"
readme = open('README.rst').read()
dsc = "Python tools to manage users/groups/quotas/namespaces in an iRODS zone",
setup(name="jicirodsmanager",
packages=["jicirodsmanager"],
version=version,
descriptio... | [
"tjelvar.olsson@jic.ac.uk"
] | tjelvar.olsson@jic.ac.uk |
20d0d8ba1ae8681a0c74b1b4783294fcc0c6f309 | c058f51b99f91faebf27183b2b579e9f96e0d8f5 | /botorch/utils/multi_objective/box_decompositions/box_decomposition.py | 5b1450dd1a1caf433a06fb4e7627e1cfb00b8c39 | [
"MIT"
] | permissive | pytorch/botorch | 255d62f698cc615c750e9343c278a63c7e96a586 | 4cc5ed59b2e8a9c780f786830c548e05cc74d53c | refs/heads/main | 2023-08-22T15:23:51.071048 | 2023-08-22T05:30:38 | 2023-08-22T05:30:38 | 142,940,093 | 2,891 | 373 | MIT | 2023-09-13T00:16:13 | 2018-07-30T23:59:57 | Jupyter Notebook | UTF-8 | Python | false | false | 13,382 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
r"""Box decomposition algorithms.
References
.. [Lacour17]
R. Lacour, K. Klamroth, C. Fonseca. A box decomposit... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ed67f09cdd0c79e6d529bf5923da918fd286314f | 5492374aeb1df9fb5a2cbef8eb8a48af47556f18 | /galaga/galaga.py | 794facec78d3a8fd39356a25dad30224681820b0 | [] | no_license | HeeeeeJinJeong/Practice_Python | 136397f43a7ba525ff2561adb85de353c1f1cc21 | 1e8a0c525bf35324d5e9f3f1ff7747b2352de7b3 | refs/heads/master | 2020-08-07T02:59:55.583054 | 2019-10-16T03:40:29 | 2019-10-16T03:40:29 | 213,265,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,075 | py | import pygame # pygame 라이브러리 임포트
import random # random 라이브러리 임포트
from time import sleep
# 게임에 사용되는 전역변수 정의
BLACK = (0, 0, 0) # 게임 바탕화면의 색상
RED = (255, 0, 0)
pad_width = 480 # 게임화면의 가로크기
pad_height = 640 # 게임화면의 세로크기
player_width = 36
player_height = 38
enemy_width = 26
enmey_height = 20
# 적을 맞춘 개수 계산하는 함수
def ... | [
"misakiyoshikuni@gmail.com"
] | misakiyoshikuni@gmail.com |
8dcb9d84c112c2909facdc43f23f166eb593f67d | 9a9e739dcc559476ba796510182374ad460f2f8b | /PA2/PA2 2013/PA2-12/Asitha/pa2-12-2013.py | 417b2661135cadcac82806c583d3fe2709b266e0 | [] | no_license | Divisekara/Python-Codes-First-sem | 542e8c0d4a62b0f66c598ff68a5c1c37c20e484d | e4ca28f07ecf96181af3c528d74377ab02d83353 | refs/heads/master | 2022-11-28T01:12:51.283260 | 2020-08-01T08:55:53 | 2020-08-01T08:55:53 | 284,220,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | def getText():
try:
FileOpen=open("FileIn.txt","r")
L=[]
while True:
L.append(FileOpen.readline().split())
if L[-1]==[]:
break
FileOpen.close()
except IOError:
print "File Not Found"
else:
L.pop(-1)
retur... | [
"9asitha7@gmail.com"
] | 9asitha7@gmail.com |
cd0d6330ebfe7555e50056381334270665abfb7c | 30a2a924eb32e7297b5a99785950467f25ea785d | /ppgmle.py | 65d92e6491d2764ae34a67f18c76334f0b21e094 | [] | no_license | zshwuhan/Reinforcement-Learning-of-Spatio-Temporal-Point-Processes | 1a794e83491b52dea5db3926de91779a9e661a17 | a3f98e77b56c03839dcdb545b17b3675e7c43878 | refs/heads/master | 2020-07-22T16:18:10.020860 | 2019-07-02T18:49:02 | 2019-07-02T18:49:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,065 | py | import sys
import arrow
import utils
import numpy as np
import tensorflow as tf
from tfgen import SpatialTemporalHawkes
from ppgrl import RL_Hawkes_Generator
from stppg import GaussianMixtureDiffusionKernel, HawkesLam, SpatialTemporalPointProcess, StdDiffusionKernel
class MLE_Hawkes_Generator(object):
"""
Rei... | [
"woodielove@163.com"
] | woodielove@163.com |
776052160c7f3ab8cc4d0d503dc7aeded2f1e521 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /headless/lib/browser/devtools_api/client_api_generator.py | 59a8510ca628b7ac406e3f1ae63c04013130d0c3 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 20,376 | py | # Copyright 2016 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.
import argparse
import collections
import functools
import os.path
import re
import sys
try:
import json
except ImportError:
import simplejson as json
... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
28acd089a5318eca2c288aeb6b39ea6b02b19415 | c036befbd9a4b81c0f082273dd0eb007e7f9582d | /dort-core/protocols/full_node_protocol.py | 79a277910c3f61ce22c0a990b22b93f0b6596264 | [
"Apache-2.0"
] | permissive | Dortchain/dort-blockchian | 889f52f36dcdeffe0f852b413cdd32879741462f | 14f16e321a60f9d70f849f58e4e9964fa337a084 | refs/heads/main | 2023-06-16T01:31:30.718415 | 2021-07-11T03:03:12 | 2021-07-11T03:03:12 | 384,694,718 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,240 | py | from dataclasses import dataclass
from typing import List, Optional
from Dort.types.blockchain_format.sized_bytes import bytes32
from Dort.types.blockchain_format.vdf import VDFInfo, VDFProof
from Dort.types.end_of_slot_bundle import EndOfSubSlotBundle
from Dort.types.full_block import FullBlock
from Dort.types.peer_i... | [
"welllinks@outlook.com"
] | welllinks@outlook.com |
64c8fbf46fb22fc14a9bf06a229215fef2968c1d | bd87d8947878ccb2f5b720e70a22493b00868fd3 | /fluent/17_concurrency_with_futures/flags2.py | 8f780b17b279566b83594808af0ab947b0b18362 | [] | no_license | damiansp/completePython | 4cbf12ef682a1d4a5498f77e407dc02e44a7d7ac | 3f5e2f14d79c93df5147b82d901190c054535158 | refs/heads/master | 2023-09-01T20:50:03.444440 | 2023-08-28T00:27:57 | 2023-08-28T00:27:57 | 99,197,610 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | py | '''Download 20 flag images sequentially (synchronous) for baseline comparison'''
import os
import sys
import time
import requests
POP20_CC = ('CN IN US ID BR PK NG BD RU JP MX PH VN ET EG DE IR TR CD FR')\
.split()
BASE_URL = 'http://flupy.org/data/flags'
DEST_DIR = 'images'
def save_flag(img, filename)... | [
"damiansp@gmail.com"
] | damiansp@gmail.com |
27dcf8647fd0983da8e44125393eb3cc04a7340d | 9dfb3372a1e4516d970a6e9d0a9fd8360580eae7 | /python patten find/patten_find_of_know_type.py | 5c17066891d4009fc74c65a7643b516f6664d7aa | [] | no_license | clambering-goat/cameron_pyton | d1cd0e7b04da14e7ba4f89dcb4d973f297a4626c | df0b0365b86e75cfcfc2c1fc21608f1536a3b79f | refs/heads/master | 2021-07-14T20:37:37.021401 | 2019-02-28T07:52:11 | 2019-02-28T07:52:11 | 137,251,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,049 | py |
#works but if the tail data is in the data packet the code will think that is the end of the data packet
import random
data=""
head="123"
tail="789"
parrton_data="456646849861"
parrton=head+parrton_data+tail
lenth_data=len(parrton)
print("looking for",parrton)
#data maker
#v1
'''
random_noise=5
parrt... | [
"camerondrain@gmail.com"
] | camerondrain@gmail.com |
fb5f3c5055468c0cafdccaa22346bea873c241e8 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/comic.py | 20bdd3de8ea7b48341d0023677451135cdd02ef7 | [] | 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 | 794 | py | ii = [('EmerRN.py', 1), ('CookGHP3.py', 1), ('MarrFDI.py', 1), ('WilbRLW.py', 1), ('KembFJ1.py', 5), ('WilbRLW5.py', 2), ('LeakWTI3.py', 1), ('PettTHE.py', 2), ('GellWPT.py', 3), ('FitzRNS3.py', 4), ('WilbRLW2.py', 1), ('ClarGE2.py', 2), ('GellWPT2.py', 4), ('CarlTFR.py', 1), ('LyttELD.py', 2), ('CrokTPS.py', 3), ('Cla... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
72d95d9d79cef5cbeca6ee583d2ebc7314606d6e | 54d2887e3c910f68366bd0aab3c692d54245e22a | /arc/arc025/a.py | bbcdf5f5008d4ea5e2a27ebd6595406ba81f4c0e | [] | no_license | Kevinrobot34/atcoder | 7aec367fd2c6b589e9d583dae7b3c7520ce9fa12 | 482ea508f098f81e4f19522fe518dd22c781aca9 | refs/heads/master | 2022-07-10T23:44:45.290022 | 2022-06-29T11:30:26 | 2022-06-29T11:30:26 | 158,081,477 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | d = list(map(int, input().split()))
j = list(map(int, input().split()))
ans = 0
for i in range(7):
if d[i] > j[i]:
ans += d[i]
else:
ans += j[i]
print(ans)
| [
"kevinrobot34@yahoo.co.jp"
] | kevinrobot34@yahoo.co.jp |
eb5616cfb71f50d5ece42954779cc6d30ab2fd09 | 19ce218477449ece043c0e40fb47ba55c4bfd38e | /network/tagged_delegate.py | 2d321c1ae60e772d8f2caa140fde192c45bd4de7 | [] | no_license | vickylunna/PyAuthServer | 7aef8b86f3a748bdd1b50a8c10872cfa39d6cdef | 9b6be1a805938f48292a231bad3f9006c667e06b | refs/heads/master | 2021-01-18T04:50:15.790653 | 2014-12-01T18:27:02 | 2014-12-01T18:27:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | from .decorators import get_tag, has_tag
from .metaclasses.register import TypeRegister
from .world_info import WorldInfo
__all__ = ['DelegateByNetmode', 'DelegateByTag', 'FindByTag']
class FindByTag(metaclass=TypeRegister):
"""Provides an interface to select a subclass by a tag value"""
@classmethod
de... | [
"goosey15@gmail.com"
] | goosey15@gmail.com |
05769004316d5852da9887d9c1d227590ba3f3ea | 45a0356aaaf338d929b6e620fcc2b9386beb6b50 | /rally/openstack/common/strutils.py | f512fbf8465b3d0fd0d56853c3a379d0ab338d1f | [
"Apache-2.0"
] | permissive | pombredanne/rally | 6e182dd0dfa9e94e899f1b156967b6778805c6f2 | 3921b4faa535ef141259a7076b414178836528f2 | refs/heads/master | 2020-12-11T05:54:59.049744 | 2013-11-27T14:47:27 | 2013-11-27T14:47:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,352 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack Foundation.
# All Rights Reserved.
#
# 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.apac... | [
"boris@pavlovic.me"
] | boris@pavlovic.me |
1775764213fa055a85117b3e4513753453f10093 | 45fc3ca374b15e63fee49a78c54d1a7d5949ebd6 | /vega/core/evaluator/gpu_evaluator.py | 00caec4c26234cd3c8f389fc5f8fbe1b036e6a3b | [
"MIT"
] | permissive | 1ziyanW1/vega | d0849d09ba9dea85f1e135f515202e90533972aa | 9640a32d3cbb22e39593e2786b825b946aa6b281 | refs/heads/master | 2022-11-25T20:30:50.517879 | 2020-08-04T08:17:28 | 2020-08-04T08:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
0731c42c5febe59fc7aa48a0d10201bb653fca1c | 42dce5a3a1ace43022968ec059df1b17f94776ba | /tat_aws_creator_auto_tag/tests/__init__.py | a989bb3d56e264743ade2655c449c9e32a1eec94 | [
"MIT"
] | permissive | techantllc/aws-creator-auto-tagger | 647db1c5cbed275608c0cb1f28622ef3d11c92bb | 413c9f6c91cfaa088bbc45bed0f6c9f09e02f48a | refs/heads/master | 2020-08-22T13:40:05.495905 | 2019-10-30T18:27:52 | 2019-10-30T18:27:52 | 216,407,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | # -*- coding: utf-8 -*-
import boto3
aws_profile = "tat_sanhe"
boto_ses = boto3.Session(profile_name=aws_profile)
iam_client = boto_ses.client("iam")
s3_client = boto_ses.client("s3")
| [
"husanhe@gmail.com"
] | husanhe@gmail.com |
a0a756527c4bea878ec4ec9a51f27f2aa7b0e709 | 0c9ec5d4bafca45505f77cbd3961f4aff5c10238 | /openapi-python-client/openapi_client/models/multi_form_variable_binary_dto.py | 5b444e02f29acbb121a3784c4daa78f23cced18b | [
"Apache-2.0"
] | permissive | yanavasileva/camunda-bpm-examples | 98cd2930f5c8df11a56bf04845a8ada5b3bb542d | 051f8f28c62845e68ce4059ab64264c5a0bdc009 | refs/heads/master | 2022-10-19T20:07:21.278160 | 2020-05-27T15:28:27 | 2020-05-27T15:28:27 | 267,320,400 | 0 | 0 | Apache-2.0 | 2020-05-27T14:35:22 | 2020-05-27T13:00:01 | null | UTF-8 | Python | false | false | 5,035 | py | # coding: utf-8
"""
Camunda BPM REST API
OpenApi Spec for Camunda BPM REST API. # noqa: E501
The version of the OpenAPI document: 7.13.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openapi_client.configuration import Configuration
clas... | [
"noreply@github.com"
] | yanavasileva.noreply@github.com |
66ec8c7f71b6759f16016e52cff49cb461b2a215 | 78518b65b6823ac42b20515ae7716ada4b59db3d | /手写代码/第2章 数据处理与可视化/Pex2_12.py | b0c9c2b22908f384e5fe922680d7a77078d6e2a7 | [] | no_license | YunHao-Von/Mathematical-Modeling | 70d6ad8f2f543751883afdc85aa19b1c80a106a0 | 4fe153453cccb4b474166c104e08d13ed72bc5ac | refs/heads/master | 2023-03-02T23:16:40.839865 | 2021-02-15T09:52:24 | 2021-02-15T09:52:24 | 339,029,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | import numpy as np
a=np.arange(4).reshape(2,2)
b=np.arange(4,8).reshape(2,2)
c1=np.vstack([a,b])
c2=np.r_[a,b]
d1=np.hstack([a,b])
d2=np.c_[a,b]
print(c1)
print(c2)
print(d1) | [
"Alctrain@163.com"
] | Alctrain@163.com |
d6ae188b2c356f7e8c7b1e9f6b73323adeed445a | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-google-analytics-data-api/setup.py | d93d394a43545a29e58da42374364ee3ea361f13 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 679 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = ["airbyte-cdk", "PyJWT==2.4.0", "cryptography==37.0.4", "requests"]
TEST_REQUIREMENTS = [
"freezegun",
"pytest~=6.1",
"pytest-mock~=3.6.1",
"requests-mock",
]
setup(
name... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
000792c8fe2398359388109a569bf6af56d0fdf1 | a543274065774256020081702b9a18b2be098bc8 | /examples/adwords/v201809/shopping/add_product_partition_tree.py | d66f135f4d0fec6729e23c89eb50dc2b0cbb3fd1 | [
"Apache-2.0"
] | permissive | Bhanditz/googleads-python-lib | 0b6326c7496adfee08fe98d3aa647c85cd4f7d85 | 188785c7003c03d8b408e48ef891e3a15ec1e1b1 | refs/heads/master | 2023-04-15T23:40:44.699676 | 2019-03-28T14:33:37 | 2019-03-28T14:33:37 | 178,733,156 | 0 | 0 | Apache-2.0 | 2023-03-24T18:56:03 | 2019-03-31T19:32:48 | Python | UTF-8 | Python | false | false | 8,380 | py | #!/usr/bin/env python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# 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 requir... | [
"msaniscalchi@users.noreply.github.com"
] | msaniscalchi@users.noreply.github.com |
f5d44c1fcfada39187884766cab499aa2b45c3d8 | 1b36425f798f484eda964b10a5ad72b37b4da916 | /ee/clickhouse/materialized_columns/test/test_query.py | c78623a831c3ed5c5ef9a4c39315d40ea239b639 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | dorucioclea/posthog | 0408baa2a7ae98e5bea352c516f741ddc17c0a3e | 8848981baf237117fb22d28af0770a0165881423 | refs/heads/master | 2023-01-23T11:01:57.942146 | 2023-01-13T09:03:00 | 2023-01-13T09:03:00 | 241,222,000 | 0 | 0 | MIT | 2020-02-17T22:34:37 | 2020-02-17T22:34:36 | null | UTF-8 | Python | false | false | 945 | py | from posthog.test.base import APIBaseTest, ClickhouseTestMixin
class TestQuery(ClickhouseTestMixin, APIBaseTest):
def test_get_queries_detects(self):
# some random
with self.capture_select_queries() as queries:
self.client.post(
f"/api/projects/{self.team.id}/insights/... | [
"noreply@github.com"
] | dorucioclea.noreply@github.com |
a1bffc2fe20ca4257e795c2a592f63257efca427 | 76d27bfccbd24c86c8a528d634e8c53a884bd331 | /blinking_image.py | bb94efc930b23102ec429ef8a70f687c4f2d0028 | [] | no_license | nickdelgrosso/SSVEP-CardGui | 07bb2d539ffe0bd46e4a80959466422c7e79e63b | edbccaccbe93f088019a545111b2fbf0f2af54bd | refs/heads/master | 2023-06-24T22:47:31.656748 | 2021-07-22T21:15:21 | 2021-07-22T21:15:21 | 388,243,533 | 0 | 1 | null | 2021-07-21T22:38:39 | 2021-07-21T20:55:53 | Jupyter Notebook | UTF-8 | Python | false | false | 764 | py | from psychopy import visual, core
class BlinkingImage:
def __init__(self, win, blink_frequency = 10., **kwargs):
self.win = win
self.image = visual.ImageStim(win=win, **kwargs)
self.clock = core.CountdownTimer(1. / blink_frequency)
self.blink_frequency = blink_frequency
@p... | [
"delgrosso.nick@gmail.com"
] | delgrosso.nick@gmail.com |
038c9de59e5023434470e6b497ccc1ec1fa1b609 | d4b454d67a02af66c7622f77e538a1f1f95f5bdf | /rhalphalib/sample.py | 0f84abc88812a2513b00073445377bbcdd2de57d | [] | no_license | lgray/rhalphalib | 89c98708789222b69466f018901bd0e1a0cd092d | 6082c4f045b0de679c429ca06673a655f13ff3d9 | refs/heads/master | 2020-05-07T19:09:58.177414 | 2019-07-22T14:50:27 | 2019-07-22T14:50:27 | 180,800,992 | 0 | 0 | null | 2019-04-11T13:43:53 | 2019-04-11T13:43:53 | null | UTF-8 | Python | false | false | 16,132 | py | import numpy as np
import numbers
from .parameter import NuisanceParameter, DependentParameter, Observable
from .util import _to_numpy, _to_TH1
class Sample(object):
"""
Sample base class
"""
SIGNAL, BACKGROUND = range(2)
def __init__(self, name, sampletype):
self._name = name
sel... | [
"nick.smith@cern.ch"
] | nick.smith@cern.ch |
6a47ec21f205e0e2961b22fcd6f376cc90061d1b | 8c730ccb9ec23fd9cbcb5903abecda86bf50e6ab | /config/memory_network_adeb.py | a9d6fef7a06170bbbae130786c8052f74d71095d | [] | no_license | JimStearns206/taxi | 93278b49e485bbe2feaa08a3e11f0f79e884bd0d | b6566c010be7c871a5b6c199feaf1dfda0910ade | refs/heads/master | 2021-01-21T07:07:59.274279 | 2015-07-16T22:59:50 | 2015-07-16T22:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from blocks.initialization import IsotropicGaussian, Constant
from blocks.algorithms import AdaDelta, CompositeRule, GradientDescent, RemoveNotFinite, StepRule, Momentum
import data
from model.memory_network import Model, Stream
n_begin_end_pts = 5 # how many points we consider at the beginning and end of the known ... | [
"adbrebs@gmail.com"
] | adbrebs@gmail.com |
053626d020f792d2a77cd4ec679ef747ea630e2d | f7139e3979fc32d96de0082d6402d94be64f0f2e | /Exercise-3/sensor_stick/scripts/segmentation.py | 6c7fc70194ee0bd5fa128ec4b7da45cd26ff2b2e | [
"MIT"
] | permissive | jaycode/RoboND-Perception-Exercises | 9eb652b15ad5eccd171b4894035fbcbaa185b4a1 | 8918730423fa4e788dc01352872644c065d58b4c | refs/heads/master | 2021-01-16T20:04:15.198564 | 2018-02-14T06:30:44 | 2018-02-14T06:30:44 | 100,196,660 | 0 | 1 | null | 2017-08-13T18:30:43 | 2017-08-13T18:30:43 | null | UTF-8 | Python | false | false | 3,791 | py | #!/usr/bin/env python
# Import modules
from pcl_helper import *
# TODO: Define functions as required
# Callback function for your Point Cloud Subscriber
def pcl_callback(pcl_msg):
# TODO: Convert ROS msg to PCL data
pcl_data = ros_to_pcl(pcl_msg)
# TODO: Voxel Grid Downsampling
vox = pcl_data.make_... | [
"teguhwpurwanto@gmail.com"
] | teguhwpurwanto@gmail.com |
9d38d3cb8de2e003c85e45d93eff2ac7cf72a2b1 | 9e780f17eb49171d1f234944563225ca22b3c286 | /postgresqleu/membership/migrations/0008_membermail.py | 1d9ae5505932c90b5884e9723a0702bec6d8cd49 | [
"MIT"
] | permissive | pgeu/pgeu-system | e5216d5e90eec6c72770b88a5af4b3fd565cda59 | 885cfdcdadd4a721f72b699a39f26c94d1f636e0 | refs/heads/master | 2023-08-06T13:03:55.606562 | 2023-08-03T12:47:37 | 2023-08-03T12:47:37 | 161,434,221 | 15 | 27 | MIT | 2023-05-30T11:21:24 | 2018-12-12T04:48:14 | Python | UTF-8 | Python | false | false | 812 | py | # Generated by Django 3.2.11 on 2022-02-07 12:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('membership', '0007_meeting_reminders'),
]
operations = [
migrations.CreateModel(
name='MemberMail',
fields=[
... | [
"magnus@hagander.net"
] | magnus@hagander.net |
53ea2685d2b68240d10424f11046e839be8682ef | b72d0900bec98fcee6c725cef035c02ca29bbf1b | /Python/VirtualEnvironment/portfolio/.history/portfolio/views_20201119102645.py | b701bf886f4d03f578254db395f0d10035583ba1 | [
"MIT"
] | permissive | sugamkarki/NAMI-Year-II-TERM-I-Group_Project | 68b8808c8607858a313e8b4d601d8d12c6edda2b | f0a9a5f219ccbec024eb5316361db3fca46e171c | refs/heads/master | 2023-06-28T19:07:19.330236 | 2021-07-24T03:05:42 | 2021-07-24T03:05:42 | 312,819,148 | 0 | 0 | MIT | 2021-07-24T12:45:06 | 2020-11-14T13:08:08 | Python | UTF-8 | Python | false | false | 183 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the polls index.")
def cat():
| [
"sugamkarki7058@gmail.com"
] | sugamkarki7058@gmail.com |
49defc368cb5599babac9b0973cbb3f3da2485e8 | acad69f0abe162eea0cb13cbe15bfd88f6da08b4 | /down-stream-tasks/mmdetection/tests/test_models/test_dense_heads/test_tood_head.py | 9d8c79c47fd1d441b368e1d7246d27775dd50d7e | [
"Apache-2.0"
] | permissive | zhangzjn/EMO | 69afcac53800d8b9a390f1214e178e2ca4da3b24 | 141afbdbce04683790f0699f256327ec420be442 | refs/heads/main | 2023-08-27T19:04:23.313676 | 2023-08-15T04:09:55 | 2023-08-15T04:09:55 | 584,987,542 | 139 | 9 | null | null | null | null | UTF-8 | Python | false | false | 5,070 | py | # Copyright (c) OpenMMLab. All rights reserved.
import mmcv
import torch
from mmdet.models.dense_heads import TOODHead
def test_tood_head_loss():
"""Tests paa head loss when truth is empty and non-empty."""
s = 256
img_metas = [{
'img_shape': (s, s, 3),
'scale_factor': 1,
... | [
"186368@zju.edu.cn"
] | 186368@zju.edu.cn |
5b115168345a1652c56f759de440862388473ee0 | 5da988c176252fca1b558190eff74ef3b89afc9f | /instrumentation/opentelemetry-instrumentation-falcon/tests/test_falcon.py | fe33a2f2dd1cca06c37f6d6179aa05655d9378c6 | [
"Apache-2.0"
] | permissive | kinvolk/opentelemetry-python | 3801376ee6bdb46d85d8876a97713e698e1241ce | 47483865854c7adae7455f8441dab7f814f4ce2a | refs/heads/master | 2023-05-25T19:36:05.130267 | 2020-11-02T17:29:59 | 2020-11-02T17:29:59 | 201,488,070 | 1 | 2 | Apache-2.0 | 2023-05-16T18:48:46 | 2019-08-09T14:56:28 | Python | UTF-8 | Python | false | false | 7,123 | py | # Copyright The OpenTelemetry Authors
#
# 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 applicable law or agreed to in ... | [
"noreply@github.com"
] | kinvolk.noreply@github.com |
7b3ef0762b6b97c6ae1824d7ea35d51ffab78fdd | 70054615f56be28373b00c9df96544ec822be683 | /res/scripts/client/gui/prb_control/restrictions/limits.py | 24bec330b4cc11c9dfd3ffdd2f4533d7eab4872a | [] | no_license | wanyancan/WOTDecompiled | c646ad700f5ec3fb81fb4e87862639ce0bdf0000 | 9ffb09007a61d723cdb28549e15db39c34c0ea1e | refs/heads/master | 2020-04-17T23:13:15.649069 | 2013-11-15T16:37:10 | 2013-11-15T16:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,198 | py | from collections import defaultdict
import weakref
from CurrentVehicle import g_currentVehicle
from constants import PREBATTLE_ACCOUNT_STATE, PREBATTLE_TYPE
from gui.prb_control import getClassLevelLimits, getTotalLevelLimits
from gui.prb_control import getPrebattleRosters, getMaxSizeLimits
from gui.prb_control.restric... | [
"james.sweet88@googlemail.com"
] | james.sweet88@googlemail.com |
b8c18f0363ba38923dd3d1d02986cb5781e661f1 | fc5fa8501e8a62291a48c82611e1b74b961ca561 | /nopad_inception_v3_fcn/model.py | 393c286132aa65d20952d7d7f3f4fab539db0815 | [
"Apache-2.0"
] | permissive | hitesh-hk/google-research | fa3d3e31cce995fa6da89322dab4993bf1c1ead8 | ddc22300c4cb3223654c9a981f892dc0f6286e35 | refs/heads/master | 2021-02-17T18:57:31.267570 | 2020-01-17T14:49:25 | 2020-01-17T14:54:27 | 245,119,290 | 1 | 1 | Apache-2.0 | 2020-03-05T09:24:01 | 2020-03-05T09:24:00 | null | UTF-8 | Python | false | false | 19,851 | py | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
c41b811032ac7e36dd9d4ab116a69cd029889b32 | ec726dac5bcd01ea807a3b24c9e25f9951f6e910 | /scripts/Lock.py | 42e6bcceb8660339fc43fc88988d5086f2b9182d | [] | no_license | cms-sw/int-build | 06d7fd680b0fcc06cce58869b928f2547b4731b1 | c0f2ca0ef96cdd46d9588ef908d11e9a9cab6618 | refs/heads/master | 2021-01-01T18:02:04.757560 | 2015-10-26T08:28:17 | 2015-10-26T08:28:17 | 11,394,116 | 0 | 3 | null | 2015-10-16T15:02:19 | 2013-07-13T21:00:45 | Python | UTF-8 | Python | false | false | 2,432 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from os import getpid, makedirs, kill
from os.path import join, getmtime
from commands import getstatusoutput
from time import sleep, time
def isProcessRunning(pid):
running = False
try:
kill(pid, 0)
running = True
except:
pass
return r... | [
"giulio.eulisse@cern.ch"
] | giulio.eulisse@cern.ch |
6912fbc6262eef219acef4bb0f46fcdca0cde550 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1544+107/sdB_PG_1544+107_coadd.py | d34ff0b3147d3f6d2c4257e6a18c9c3868d100a4 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[236.659375,10.503742], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_PG_1544+107/sdB_PG_1544+107_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
345cefe5bc1a3363f162b744cdfbff6621c1c3c1 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/compute/v20180930/_inputs.py | 6b8bf7813d4f67dd8aa5cd7584ba4d0bd3b9ba67 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 14,859 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
55e9e54940ecf7d642f3da6d4a45d111c723a725 | 0a091d537701f93cbab5c7f76c7bf8d117c93887 | /alembic/versions/138007156428_fix_komm_fylke_mapping.py | d97348a0a5fe9f5cdfe87180d6ed2538ad1ffdc7 | [
"MIT"
] | permissive | atlefren/beerdatabase | 61ecfc8b9de6e6b202c50b501ccded87387de289 | d3acf2b02966e058d3840cd167c1c787c0cb88ce | refs/heads/master | 2021-05-04T11:01:47.117527 | 2016-09-14T22:00:34 | 2016-09-14T22:00:34 | 45,804,354 | 10 | 3 | null | 2016-01-25T20:45:08 | 2015-11-08T23:38:31 | JavaScript | UTF-8 | Python | false | false | 1,164 | py | """fix komm fylke mapping
Revision ID: 138007156428
Revises: 13603cc8e9a7
Create Date: 2015-12-06 23:12:25.241712
"""
# revision identifiers, used by Alembic.
revision = '138007156428'
down_revision = '13603cc8e9a7'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade(... | [
"atle@frenviksveen.net"
] | atle@frenviksveen.net |
e9f551acfb12c47aa1548d24eee4b522ceb8073b | 8cd15fba24b6dfa431f3764932101969f5fb524f | /JAMediaImagenes/gtk2/Interfaz/ToolbarPrincipal.py | 01fb926646a3946f16ca0652c42039c7313e706a | [] | no_license | srevinsaju/JAMediaSuite | c872b4781657bf1bcf63908f71abeca799b8c666 | 1813d1205cf31f89be3c4512eb495baed427494f | refs/heads/master | 2020-12-04T12:14:53.794749 | 2019-01-05T12:52:13 | 2019-01-05T12:52:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,462 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import gtk
import gobject
import commands
class ToolbarPrincipal(gtk.Toolbar):
__gsignals__ = {
"accion": (gobject.SIGNAL_RUN_LAST,
gobject.TYPE_NONE, (gobject.TYPE_STRING,))}
def __init__(self):
gtk.Toolbar.__init__(self)
... | [
"fdanesse@gmail.com"
] | fdanesse@gmail.com |
5cf5686aab6d2c0ad688cea8069de3ca8a68b512 | 2df47589ca457d16fbffd4e1bccf5133174a0b97 | /highcharts/core/tests/test_product_json_view.py | b51a7fddda42ab847b32c19939890f918833a368 | [] | no_license | bguerbas/highcharts | a805419cb8d5a00bc3f82b5c4df285598f7685d8 | 571fba58465136c5040266b3d4ba2d65a5cc740c | refs/heads/master | 2022-02-12T19:33:12.244474 | 2016-06-04T05:00:24 | 2016-06-04T05:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | from django.test import TestCase
from highcharts.core.models import Category, Product
class TestGet(TestCase):
def setUp(self):
category = Category.objects.create(category='Papelaria')
Product.objects.create(
product='A4',
price=4.2,
category=category
)... | [
"cuducos@gmail.com"
] | cuducos@gmail.com |
92bca2bb4a0d14e571d6c8140331872c810d61c0 | de066f2aaf7810a9377020a2d25d674a52547a15 | /Cap05_GUI_Tkinter/extras/03_Barron_Stone/Chap05_Advanced_Widgets/06_configuring_widgets_styles.py | 08de715b89e479ed091ff2a6fa3d1a6052b49cc0 | [] | no_license | frclasso/2nd_Step_Python_Fabio_Classo | 91092b24c442cced4f7c5c145e1e9e8e5f7483d9 | ad6eefaeb4e6283c461562e7fddcb0aa81f2d90e | refs/heads/master | 2022-12-10T09:42:52.724283 | 2019-07-27T20:28:17 | 2019-07-27T20:28:17 | 146,759,779 | 1 | 0 | null | 2022-12-08T05:55:53 | 2018-08-30T14:13:49 | Python | UTF-8 | Python | false | false | 2,311 | py | #!/usr/bin/env python3
# Configurando o estilo dos widgetes
# styles descreve como o widget vai ser exibido de acordo com com o estado em que se
# econtra
# active, disabled, focus, pressed, selected, background, readonly, alternate, invalid, hover
# Vamos trabalhar com temas, que são uma coleção de estilos para wid... | [
"frclasso@yahoo.com.br"
] | frclasso@yahoo.com.br |
88f772fda60dad89eacffbe396367d9c5fd3de8f | fd67592b2338105e0cd0b3503552d188b814ad95 | /egoi_api/apis/paths/__init__.py | d0fcf2e17c920e939c549a52c875cecfa03fb1db | [] | no_license | E-goi/sdk-python | 175575fcd50bd5ad426b33c78bdeb08d979485b7 | 5cba50a46e1d288b5038d18be12af119211e5b9f | refs/heads/master | 2023-04-29T20:36:02.314712 | 2023-04-18T07:42:46 | 2023-04-18T07:42:46 | 232,095,340 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # do not import all endpoints into this module because that uses a lot of memory and stack frames
# if you need the ability to import all endpoints from this module, import them with
# from egoi_api.apis.path_to_api import path_to_api
| [
"integrations@e-goi.com"
] | integrations@e-goi.com |
1efc75fd3a62326bea8b5dfc1ee2e3d82520b1cc | 18887a0808c0a06a69be3e66c6337295bfc7d99e | /menus/models.py | b9443c0e078dc25a3ecb36e23f2231136700b1d8 | [] | no_license | teedee22/tobyd | 78adf69d7a02cce42dc5a94e0e58007b8e6be196 | 5c54a817608a3911dd44840be82d2bbea44f35c3 | refs/heads/master | 2022-12-14T08:29:12.952292 | 2019-09-25T20:13:31 | 2019-09-25T20:13:31 | 205,281,622 | 0 | 0 | null | 2022-12-08T06:35:44 | 2019-08-30T01:33:39 | Python | UTF-8 | Python | false | false | 1,776 | py | from django.db import models
from django_extensions.db.fields import AutoSlugField
from modelcluster.fields import ParentalKey
from modelcluster.models import ClusterableModel
from wagtail.admin.edit_handlers import (
MultiFieldPanel,
InlinePanel,
FieldPanel,
PageChooserPanel,
)
from wagtail.core.model... | [
"tdudleyoffice@gmail.com"
] | tdudleyoffice@gmail.com |
d21cd8904bb3eea88d7fd3e5c4a93fff99003a16 | 26dd0732426322eb7c411b7f53d72ec3dddd63fe | /ABC_169/B.py | 42659b9159cc54e9ceb89999a6cf9a30bc723e12 | [] | no_license | Jinmin-Goh/AtCoder | 417290531bf92f79e1285052eb82d9a8a3c7b138 | 68d3f7840748814123beebabf478c9316268f166 | refs/heads/master | 2022-12-10T21:31:41.411567 | 2020-08-29T15:02:18 | 2020-08-29T15:02:18 | 262,826,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Contest No.: ABC169
# Problem No.: B
# Solver: JEMINI
# Date: 20200531
import sys
import heapq
def main():
n = int(input())
nums = list(map(int, sys.stdin.readline().split()))
ans = 1
for i in nums:
if i == 0:
ans = 0
break
if ans > 10 ** 18:
... | [
"eric970901@gmail.com"
] | eric970901@gmail.com |
ca05b371020a184e2d08e3162cf7c33c53f0a712 | 1fa2ad5ad57f08f805b9175ab2a961a24d621101 | /src/test_net.py | 6808c27a0db116df6527ec8343064fde04b06359 | [] | no_license | ZQPei/Lenet_cifar10_pytorch | e61626bdcadd1abec4389b5f1e40edd665db68fd | 911fd66e41d4ad7c03f13b603df8bc7c187acb38 | refs/heads/master | 2020-03-16T17:36:24.723685 | 2018-05-10T02:55:00 | 2018-05-10T02:55:00 | 132,839,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | import torch
import torch.nn as nn
import torchvision
import numpy as np
import matplotlib.pyplot as plt
from Net import Net
# load net
mynet = torch.load('model/net.pth')
print(mynet)
#import ipdb; ipdb.set_trace()
# show me the weight
weight_conv1 = list(mynet.parameters())[0]
weight_conv1 = (weight_conv1-weight... | [
"dfzspzq@163.com"
] | dfzspzq@163.com |
7921cac556470b0a4ac9583697ede3ba8d7170d3 | 2d58c1351ab970eb55f4832b09582592e96468d5 | /p74.py | 7dbccc89adfe89703af596f378511832a3be92eb | [] | no_license | 0x0400/LeetCode | 832bc971c2cae9eecb55f5b14e8c34eaec0d9e26 | 94bb9fedc908490cc52d87def317c057fadaeceb | refs/heads/master | 2023-02-24T20:13:11.345873 | 2023-02-10T16:46:31 | 2023-02-10T16:46:31 | 84,653,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # https://leetcode.com/problems/search-a-2d-matrix/
from typing import List
class Solution:
def searchMatrix(self, matrix: List[List[int]], target: int) -> bool:
rowLen = len(matrix)
colLen = len(matrix[0])
for rowIdx in range(0, rowLen):
if matrix[rowIdx][colLen-1] < target:
... | [
"0x0400@users.noreply.github.com"
] | 0x0400@users.noreply.github.com |
f0890b75c3c25dfcbb281f0881f8e215f9a72c1e | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_23844.py | c65bb53c5f20a6b1517566f9d2447106889237be | [] | 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 | 138 | py | # Python create tuples using function returning multiple values
new_list = [(name, value) + extra_info(name) for name, value in old_list]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
43082e96c8ebbd7f7616eece51e9a54b4937c2c7 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/clouds_20200703155604.py | 15b31a2ea014762a7c9ddce1050ddf21dfc44820 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | def jumpingClouds(c):
i = 0
jumps = 0
while i < len(c)-2:
if c[i] == 0 and c[i+2] == 0:
print('here')
print('c---->',c[i],'i-->')
jumps +=1
elif c[i] == 0 and c[i+1] == 0:
jumps +=1
i +=1
print(jumps)
jumpingClo... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
3f0ed451120ff0dd0158c67eff2f9059a8e2aa1d | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Dilepton_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Dilepton_pseudoscalar_LO_Mchi-1_Mphi-150_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Dilepton_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_260000_5_cff.py | db44454d063b108e8986c360d27b91c8a1df2c8b | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:32873', '1:32891', '1:25573', '1:34291', '1:27705', '1:34076',... | [
"Nicole.Stefanov@cern.ch"
] | Nicole.Stefanov@cern.ch |
80e5a14b25950761d13f38e235d30d5e4bf02c98 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/cultu.py | f75285b1c2c8d5c7c0f1708402c098b18e105f8c | [] | 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 | 120 | py | ii = [('SadlMLP.py', 1), ('FitzRNS3.py', 1), ('ClarGE2.py', 1), ('WestJIT2.py', 1), ('GodwWLN.py', 1), ('SoutRD.py', 2)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
25a4d8eb546827e8520c4882b124731d98a7838a | 9080e6e53da365b0d811099e2e992041cf4b5b47 | /0x06-python-classes/0-square.py | a28766ef62fd1c5a8882dd34a656adb8aff3a88f | [] | no_license | benjamesian/holbertonschool-higher_level_programming | 213ad8c39d1fc2ee81843124a46914be166445d3 | 99f00414833757e3b156c148927a858ce38baa0e | refs/heads/master | 2020-07-23T00:52:46.858544 | 2020-02-11T22:03:24 | 2020-02-11T22:03:24 | 207,389,880 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | #!/usr/bin/python3
"""Noot
"""
class Square:
"""Empty Square class
"""
pass
| [
"808@holbertonschool.com"
] | 808@holbertonschool.com |
071413884073143eac16e6b991abd4fee106fc0e | 9bcb5032d27ca321f489c035f7d46019ffdf4b85 | /numericalFunctions/ptwXY/Python/Test/UnitTesting/thicken/thicken.py | e40b151f77d3bf9074457d4b03816df30afbfdc4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/gidiplus | 128ef4d4acbcb264e31794a535cd95e8c77d8a96 | e1c6f0e4de51bc4d7616c5c4676b9818c4b9817c | refs/heads/master | 2023-08-31T06:21:14.519577 | 2023-02-13T18:35:20 | 2023-02-13T18:35:20 | 187,251,526 | 10 | 3 | NOASSERTION | 2021-12-23T00:28:07 | 2019-05-17T16:48:24 | C++ | UTF-8 | Python | false | false | 2,306 | py | # <<BEGIN-copyright>>
# Copyright 2019, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: MIT
# <<END-copyright>>
import os
from numericalFunctions import pointwiseXY_C
if( 'CHECKOPTIONS' in os.environ ) :
options = os.environ['CHECKOPTIONS']... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
9c3991a7edb65b7ffd45e10112c675d5522eafdc | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/malvern.py | 6e7a9b4b78daa025f614d595cd55f674ae95c7f1 | [] | 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 | 103 | py | ii = [('WilbRLW5.py', 4), ('ClarGE2.py', 2), ('BuckWGM2.py', 1), ('HowiWRL2.py', 2), ('DibdTRL.py', 4)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
686f9dae605c6b38e4db127878cb0fbcd0360617 | b665374878dd4a0b565afb3be8f41c97515b9d33 | /elifecrossref/preprint.py | 71cc91577a502fd31e407296fa7b1751fd1ebd91 | [
"MIT"
] | permissive | elifesciences/elife-crossref-xml-generation | e5ab62fec56653fee32ba7b9a2751df37b691b66 | 56440ebc20d4a652201011c9511ed64dfcc80c3d | refs/heads/develop | 2023-08-21T16:34:24.019886 | 2023-08-12T00:50:17 | 2023-08-12T00:50:17 | 95,716,515 | 5 | 4 | MIT | 2023-09-07T19:45:58 | 2017-06-28T22:21:40 | Python | UTF-8 | Python | false | false | 753 | py | from xml.etree.ElementTree import Element, SubElement
from elifearticle import utils as eautils
from elifecrossref import related
def set_preprint(parent, preprint):
"""
add rel:inter_work_relation tag for a preprint
"""
related_item_tag = SubElement(parent, "rel:related_item")
related_item_type =... | [
"gnott@starglobal.ca"
] | gnott@starglobal.ca |
38916d27a6cbfea28a51061f2baec16d7065fd62 | 3056736f013b25d1e70adb355082c578e5091314 | /ml_quality/datasets/shit/snake_board_test.py | 92a2badc6ac91075e56ab0ca18e1394e5e96ab35 | [] | no_license | flerchy/codestyle-core | dcad1385b76678e4473f0804d2ecfaa03866d124 | a009bcd2f17dadd440ea5ff24bd3167e38948bff | refs/heads/master | 2021-01-20T03:21:16.694322 | 2017-06-05T05:52:35 | 2017-06-05T05:52:35 | 89,524,181 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,825 | py | import pygame, sys, random
from pygame.locals import *
from basics import snake,point,board, food
from basics.direction import Direction
def encrypt_snake(snake):
"""Returns encrpted Body list to send over netowrk."""
enc_data = "%%body%%"
for point in snake.get_body_points():
enc_data += str(point.get_x()) + "%... | [
"flerchy@gmail.com"
] | flerchy@gmail.com |
99e2f8abf29c8d3a63efa35b197921747f42b243 | d3cdceb672f3ffa9d0f7cddfb03062d48a118427 | /hoods/admin.py | cde1e05c3f36d0a160cd75f271913491702fc12e | [] | no_license | sethmuriuki/Nights-Watch | e6e4020276ab87801f964e59da3f29f47b4e5c88 | 57a5bd3444b88442cb5ea988fc0ea5d64f44df2f | refs/heads/master | 2021-05-02T02:28:23.335867 | 2018-03-22T05:49:46 | 2018-03-22T05:49:46 | 120,884,306 | 0 | 1 | null | 2018-06-19T09:30:41 | 2018-02-09T09:18:05 | Python | UTF-8 | Python | false | false | 198 | py | from django.contrib import admin
from . import models
# Register your models here.
class GroupMemberInline(admin.TabularInline):
model = models.GroupMember
admin.site.register(models.Group) | [
"sethkrm@gmail.com"
] | sethkrm@gmail.com |
20e8adc9925eb8056ebdcc7f534d23ae41fd9216 | a9fc496e0724866093dbb9cba70a8fdce12b67a9 | /scripts/field/enter_23210.py | e4c56b74040134ab83fbaa561d5a188a8226e0a2 | [
"MIT"
] | permissive | ryantpayton/Swordie | b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0 | ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e | refs/heads/master | 2022-12-01T09:46:47.138072 | 2020-03-24T10:32:20 | 2020-03-24T10:32:20 | 253,997,319 | 2 | 0 | MIT | 2022-11-24T08:17:54 | 2020-04-08T05:50:22 | Java | UTF-8 | Python | false | false | 123 | py | # Mastema | Demon 2nd job
sm.spawnMob(9001036, 640, -14, False)
sm.waitForMobDeath(9001036)
sm.warpInstanceOut(931050110)
| [
"thijsenellen@outlook.com"
] | thijsenellen@outlook.com |
35bb586667a937f6c2d36795e7b13b063fa3de4d | 0466559817d3a1be9409da2c83db99c4db3bacfe | /hubcheck/pageobjects/widgets/members_profile_website.py | 7aae462a94a557e4bcab95a0af413cd84964ba13 | [
"MIT"
] | permissive | ken2190/hubcheck | 955cf9b75a1ee77e28256dfd3a780cfbc17de961 | 2ff506eb56ba00f035300862f8848e4168452a17 | refs/heads/master | 2023-03-20T15:17:12.949715 | 2015-09-29T16:11:18 | 2015-09-29T16:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | from hubcheck.pageobjects.basepageelement import Select
from hubcheck.pageobjects.basepageelement import Text
from hubcheck.pageobjects.widgets.members_profile_element import MembersProfileElement
class MembersProfileWebsite(MembersProfileElement):
def __init__(self, owner, locatordict={}):
super(MembersPr... | [
"telldsk@gmail.com"
] | telldsk@gmail.com |
f6aab59774f510e241f1046f6ec4b42798bd38b4 | 8633ec7985ffd7f849210b93bc20e632f8ae8707 | /tree/CMSSW_4_2_8_patch7/src/Validation/RecoTrack/test/borisTests/MTV.py | 4f90e6fb5980d818f54e52ed358645a99d9d285f | [] | no_license | liis/el_track | 2ed5b3b7a64d57473328df0e5faf28808bab6166 | cd7978e5fa95d653bab5825b940911b465172c1a | refs/heads/master | 2016-09-10T20:09:07.882261 | 2015-01-08T14:41:59 | 2015-01-08T14:41:59 | 14,494,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,494 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("MULTITRACKVALIDATOR")
# message logger
process.MessageLogger = cms.Service("MessageLogger",
default = cms.untracked.PSet( limit = cms.untracked.int32(-1) )
)
# source
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = ... | [
"polaarrebane@gmail.com"
] | polaarrebane@gmail.com |
0c167adf308cbd963e674e936b502ec49de9948c | 8010b4640a79c5c1fb58dd9b011723b744b3dd47 | /src/unv/web/helpers.py | 3399a083be504cc40f7d81610d2c57ed2b2bf153 | [
"MIT"
] | permissive | c137digital/unv_web | 277578e2a128e193b12e88465fe7c93a4a2019f1 | 52bea090c630b4e2a393c70907d35c9558d259fa | refs/heads/master | 2020-04-15T07:39:27.027454 | 2019-08-29T20:50:53 | 2019-08-29T20:50:53 | 164,498,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import urllib
from aiohttp import web
from unv.utils.files import calc_crc32_for_file
from .deploy import SETTINGS as DEPLOY_SETTINGS
async def render_template(
request, template_name, context=None, status=web.HTTPOk.status_code):
template = request.app['jinja2'].get_template(template_name)
return ... | [
"morty.space@gmail.com"
] | morty.space@gmail.com |
b945ff417f597ac2d5502e5f5d09f0d02334f7d4 | d44d11bb5e8a3245a8f2db39f9e460eae2b50c82 | /HKDataBase/tests.py | ec3068a14f0c6b395c56965e5930bdedf44af2db | [] | no_license | banziha104/HKServerA1 | 636f50de907ed5a8764b678b434acbc37bb7ee65 | 14a20432fdf3bcb6574e249f95b8c3662a30ee26 | refs/heads/master | 2021-08-10T12:42:49.889987 | 2017-11-12T11:55:46 | 2017-11-12T11:55:46 | 110,443,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from django.test import TestCase
import os
# Create your tests here.
from os.path import abspath, dirname, join
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = dirname(dirname(dirname(abspath(__file__))))
print(os.path.join(BASE_DIR, 'db.sqlite3'))
print(os.environ.setdefault("DJANGO... | [
"they6687@naver.com"
] | they6687@naver.com |
2f392a90b98f1dbc100c0fdd1c399ce2843eddef | 700f9f9e319ebd26d2557d64ea3827808dfad2f5 | /tests/fixtures/test_appendices_json/content_02_expected.py | 23c6bae8a17b15b59da7860417ea52c7ae82ffa6 | [
"MIT"
] | permissive | elifesciences/elife-tools | 1b44e660e916a82ef8ff64dd5a6ee5506e517359 | bc16e7dd5d6245077e39f8561b99c9acd510ddf7 | refs/heads/develop | 2023-03-06T08:37:47.424282 | 2023-02-20T20:40:49 | 2023-02-20T20:40:49 | 30,274,058 | 13 | 11 | MIT | 2023-02-20T20:40:50 | 2015-02-04T01:14:41 | Python | UTF-8 | Python | false | false | 3,392 | py | from collections import OrderedDict
expected = [
OrderedDict(
[
("id", u"app1"),
(
"title",
u"Appendix 1: Details of the automated linear stability analysis",
),
(
"content",
[
... | [
"gnott@starglobal.ca"
] | gnott@starglobal.ca |
702e48c2aa3d8d52708984ce1249139d83d40039 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /FJk4mJwRk2TYZhkeQ_11.py | f8eebc3f73f01afb69527a31188520efad9b25d1 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | """
Create a function that takes a string and returns a new string with each new
character accumulating by +1. Separate each set with a dash.
### Examples
accum("abcd") ➞ "A-Bb-Ccc-Dddd"
accum("RqaEzty") ➞ "R-Qq-Aaa-Eeee-Zzzzz-Tttttt-Yyyyyyy"
accum("cwAt") ➞ "C-Ww-Aaa-Tttt"
### Notes
* Ca... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f5c64a21035dbbdf79fe9300cdf1ba736915177c | 29afbde1e2d5497f5ab023a99ea37b0c59e6bb09 | /password.py | d86fbaee471a50c76295435c6499e1e6078e8bdb | [
"MIT"
] | permissive | kahenya-anita/Password-Manager | 5358fc048ba90d0827e4ff8c7f54919107c5aa95 | b3e7683e61e55574b846dfe49bf5d4016085261c | refs/heads/master | 2022-12-15T08:04:08.350058 | 2020-09-08T19:42:48 | 2020-09-08T19:42:48 | 293,597,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import string
import random
class Password:
"""
Class that generates system given passwords.
"""
password_letters=list(string.ascii_letters)
password_nums=list(string.digits)
password_symbols=["#","@","&","$","%"]
password_chars=[]
password_chars.extend(password_letters)
password... | [
"anitakahenya1@gmail.com"
] | anitakahenya1@gmail.com |
ee28a8aa66f3d6fec24591cae31c80251e0b6f07 | 4bf5f83a8e5cd4c3ee700569e4a6f07a87dd209c | /students/11th/jiwonko/project/User/migrations/0003_auto_20200812_1307.py | 88bb82d97b9338ddd0609dc2118a3630dbab1049 | [] | no_license | gledong12/westagram-backend | 6e066f4c741aa19df13224ba530b0d9f43a405f7 | 1842f065c599885ad5dcb9ec5fb267eaf3295872 | refs/heads/master | 2023-03-11T20:32:47.055525 | 2021-03-04T01:04:31 | 2021-03-04T01:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # Generated by Django 3.0.8 on 2020-08-12 13:07
import User.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('User', '0002_auto_20200805_1106'),
]
operations = [
migrations.AlterField(
model_name='user',
... | [
"lsheon93@gmail.com"
] | lsheon93@gmail.com |
598fa7f17dd1d125cc395d7e717deb6f7a89dab0 | 685fa2cb16ff8bce96b603dee8117ed3e9a1adcb | /dlib-find-min-global/parse_xml.py | 6a073916c47463b9d891a91cdabd8ad99ff0a563 | [] | no_license | albertofernandezvillan/pyimagesearch | 352ec1ec678cb628524c476fdcc86c22238a1a2f | 8c87e6c5d218e42a8864778c032c0fd20261bcdd | refs/heads/master | 2023-02-27T22:02:25.581660 | 2021-02-08T15:15:15 | 2021-02-08T15:15:15 | 338,087,397 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | # ------------------------
# USAGE
# ------------------------
# python parse_xml.py --input ibug_300W_large_face_landmark_dataset/labels_ibug_300W_train.xml
# --output ibug_300W_large_face_landmark_dataset/labels_ibug_300W_train_eyes.xml
# python parse_xml.py --input ibug_300W_large_face_landmark_dataset/labels_ibug_... | [
"silva.mfpedro@gmail.com"
] | silva.mfpedro@gmail.com |
9a24020666e786dd930310c84812123cc468ef3a | c5758c1f4c880f4530df1a5ffb4c30ee2da445ee | /pytracking/vot_ep/sk3x3_meanmax_adaptive/vot_wrapper_sk3x3_meanmax_adaptive_ep0020.py | 68408effc2c17172004adef9bfbecef3d34e37ef | [] | no_license | bfjei2825401/d3s | 6d662fc301181a0e3ad831b0db6111e3cf8f4097 | 32140a3c67252f0e98cbfbf6ad6d2a79267c221b | refs/heads/master | 2023-02-27T09:57:25.692878 | 2021-01-27T14:20:57 | 2021-01-27T14:20:57 | 297,217,521 | 0 | 0 | null | 2020-09-21T03:23:09 | 2020-09-21T03:23:09 | null | UTF-8 | Python | false | false | 2,523 | py | import pytracking.vot as vot
import sys
import cv2
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
from pytracking.tracker.segm_sk3x3_meanmax_adaptive import SegmSK3x3MeanMaxAdaptive
from pytracking.parameter.segm_sk3x3_meanmax_adaptive import default_params_ep as vot_... | [
"752958525@qq.com"
] | 752958525@qq.com |
c2e007ef13501c87c7fc8e93c7490f29a01b9e1d | 8d06729522dbdf7c6391ffcd608d1f1bba3f3ae0 | /bricks/utils/__init__.py | 2a8d9c7b0e42ccc4c9d85c6758134e58f7b0da08 | [] | no_license | seler/django-bricks | 14d9b1de356b698cd0c17574a8f0304e682febb0 | fe1713971d0c881c0f0352217a69b196553f11aa | refs/heads/master | 2021-04-05T04:26:47.311914 | 2013-01-21T05:45:52 | 2013-01-21T05:45:52 | 248,519,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py |
def inheritors(klass):
"""
Returns all inheritors of `klass`.
source: `http://stackoverflow.com/a/5883218/708764`
"""
subclasses = set()
work = [klass]
while work:
parent = work.pop()
for child in parent.__subclasses__():
if child not in subclasses:
... | [
"rafal@selewonko.com"
] | rafal@selewonko.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.