blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
5b6a322622daf5e9f5f5cee667ca90a7cb898570
6c87c85b3312676736ef380f537569e1db2f85d8
/src/FigCap_1.2.py
62853f20a03deb6cd63111d896c8cf897aece15f
[]
no_license
uic-evl/curation-pipeline
ea3cfb7038b341416c7854fdd81634d019fd18ed
f5010a258fd924210b093b534e8cee595de0aa45
refs/heads/master
2023-07-13T12:04:05.519947
2019-04-12T16:20:07
2019-04-12T16:20:07
169,825,949
0
3
null
2021-04-27T05:18:59
2019-02-09T02:58:30
Python
UTF-8
Python
false
false
5,391
py
""" main code page structure (xpdf_process): 1. Read pdfs from input folder 2. Figure and caption pair detection 2.1. graphical content detection 2.2 page segmentation 2.3 figure detetion 2.4 caption association 3. Mess up pdf processing Writen by Pengyuan Li Start from 19/10/2017 1.0 version 28/02/...
[ "juantrelles@gmail.com" ]
juantrelles@gmail.com
d0937042128d79d674014cedb1e645c5c9178ab9
19e7f2f407b9eb320ef62ada367618e7e0efb123
/trackingapp/migrations/0005_auto_20171118_1520.py
67aba69fc1cba85b6da55712d5ed26415cd709b1
[]
no_license
rscbugtrack/rscbugtrack
0d7450fff5544bb796bd192e9efffea7fb6803d3
bc81b9b9fc7d128076106706d6e972e8837c1c84
refs/heads/master
2021-08-23T04:11:34.564056
2017-12-03T05:49:55
2017-12-03T05:49:55
111,312,800
0
0
null
null
null
null
UTF-8
Python
false
false
463
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-11-18 15:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trackingapp', '0004_auto_20171118_1437'), ] operations = [ migrations.Alter...
[ "rscbugtrack@gmail.com" ]
rscbugtrack@gmail.com
965773072c28b7f10421a7561848c035128628ec
6f8300bf9ad1e8c578f03674c75a327712acaeb7
/data/speech_samples.py
55fe2ab82df84a6ec3bf6c33f447a711e7c7b52a
[]
no_license
l0rd11/PepperCreativeWorkshop
ee21eed6b74255ad1df8a5d0fbea378d5faed043
b9fe18499a66b436fe42b5ca53f13b6a9956a2fa
refs/heads/master
2022-02-13T07:13:35.072931
2019-10-04T05:44:04
2019-10-04T05:44:04
173,118,783
0
1
null
2022-01-21T19:49:55
2019-02-28T13:39:23
Shell
UTF-8
Python
false
false
1,667
py
# -*- coding: utf-8 -*- """ Predefined texts that can later be said by pepper. Feel free to add any new texts. """ dobrze = """ Nie ma tak że dobrze, albo że niedobrze... Gdybym miał powiedzieć co cenię w życiu najbardziej, powiedziałbym, że ludzi. Ludzi, którzy podali mi pomocną dłoń, kiedy sobie nie radził...
[ "filipsondej@protonmail.com" ]
filipsondej@protonmail.com
08b5119c9f47bf63a434c58fee04dca678c5a115
976a9e4e23b3f2e61290d150c2e18e941051a406
/de_sale_product_group/models/product.py
3907568f31ee4fe826c1e3abe95506db8eaac62d
[]
no_license
suningwz/ftld-14
9eea65a8ee57bb5693ff5b1bb0069cff45b0bdc9
554b814b1c8d37e78ea74f281449e81059eb4545
refs/heads/main
2023-08-10T18:54:41.967097
2021-09-21T01:35:46
2021-09-21T01:35:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,879
py
# -- coding: utf-8 -- from odoo import models, fields, api class ProductGroup(models.Model): _name = 'product.group' _description = 'Product Group' name = fields.Char(string="Group Name", required=True) class Product(models.Model): _inherit = 'product.product' group_id = fields.Many...
[ "dmontero@quanam.com" ]
dmontero@quanam.com
b6c5a90a13ad76f77b873cf252dfb7bbcd8eed8f
4a1715d0ac467015afeb19bba541c441d75f5e3a
/3_1 operator.py
45ee3256b0c7daccbdd93111e2cbebd6ec2929cf
[]
no_license
nemo-park/Python
dc805cb98a40c01a502a07b7f5f46ff49cc8925a
de385554c9355e07a5c8e2798a13e930096f8603
refs/heads/master
2023-08-21T07:53:06.352537
2021-10-23T13:43:49
2021-10-23T13:43:49
418,110,774
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
print(1+1) # 2 print(3-2) # 1 print(5*2) # 10 print(6/3) # 2 print(2**3) # 2^3 = 8 print(5%3) # 나머지 구하기 2 print(10%3) # 1 print(5//3) # 몫 구하기 1 print(10//3) # 3 print(10 > 3) # True print(4 >= 7) # False print(10 < 3) # False print(5 <= 5) # True print(3 == 3) # 앞, 뒤가 동일한지 비교 True print(4 == 2) # False print(3 + 4 =...
[ "pklemontree@gmail.com" ]
pklemontree@gmail.com
e6b3122cae2eea32a1497cad723378411956ceb0
952049bf1b96f8b964dc239932af0e046a0807ea
/gui/menu_filme.py
f2b00c175b7ac852796695d5a12be83fa7cd77df
[]
no_license
ttenorio92/APD1_Cinema
18e3bfb63ce7b90353533c41729fd1da88b70fb5
fe8d19725e21fbaf500a702908add0dd0c0e6a5d
refs/heads/master
2021-01-20T15:58:31.880347
2017-05-16T21:32:03
2017-05-16T21:32:03
90,806,366
0
0
null
null
null
null
UTF-8
Python
false
false
2,203
py
# -*- coding: utf-8 -*- from logica import filme def imprimir_filme(filme): print ("Código: ", filme[0]) print ("Título: ", filme[1]) print ("Duraçao: ", filme[2]) print ("Classificação: ", filme[3]) print ("Diretor: ", filme[4]) print ("Distribuidora: ", filme[5]) print ("status: ", fil...
[ "ttenorio92@outlook.com" ]
ttenorio92@outlook.com
fb8a1445699331f925683dbd999d5a4054e78cd8
6d45ba4adff74b2cb1b6764dc684f37407b41ba9
/PirateBoxMessageBoard/settings.py
1193cea6cdedb820fe1d514892d7e3735830b66f
[]
no_license
bussiere/PirateBoxMessageBoard
bbf478af1886caf811f38802bde5528593bba2c4
8626a8a44d5bdbf06486fac65682a50e4209396d
refs/heads/master
2021-01-23T11:56:22.905167
2013-03-08T16:33:08
2013-03-08T16:33:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,926
py
# Django settings for DrakBus project. try : import dj_database_url except : pass import os.path PROJECT_ROOT = '/home/pi/PirateBox/PirateBoxMessageBoard' # The '/..' is needed to work with Django 1.4+, remove for older versions. DEBUG = False TEMPLATE_DEBUG = DEBUG INTERNAL_IPS = ('127.0.0.1',) ADMINS = ...
[ "bussiere@gmail.com" ]
bussiere@gmail.com
8bf8364c09f32fb5416540839a122458c2545c4d
cc540d311ad43ff3a51f9ea95f98ec0d3b449777
/ImgDCTfilter.py
b648ccaada9e4fae8519566dc0d62c40487028a9
[]
no_license
aste-4/ImgDCTfilter-py
b2f27fb53b2e266cdc1309613e5e85a382fce6a0
1ae332e5ba091bdd4563b248897b0818907b03d3
refs/heads/master
2022-01-25T18:34:35.778673
2019-07-25T15:19:53
2019-07-25T15:19:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,349
py
#!/usr/bin/env python from PIL import Image import numpy as np import random import argparse def parseArgs(): parser = argparse.ArgumentParser() parser.add_argument('-f', '--filename', default='./lena.tiff', help='Target image file name (default=\'./lena.tiff\')') parser.add_argume...
[ "34529552+aste-github@users.noreply.github.com" ]
34529552+aste-github@users.noreply.github.com
2b5132148b1c6b95e83b4287c1143da05c26ebc8
6cb2e19d055d31917a3c3b72072674cb16531625
/formp2/formp2/urls.py
6f4e1f5e8580a363cd19ee96cc0f68d0e6be6bc7
[]
no_license
ramLrn33/mydjango-deployments-examples
9c4f5ec9ae160de163f52e0d515478ef91c3b47d
343949ec429eec1f5d6d68028ae75c1c1f60783d
refs/heads/master
2022-10-25T09:26:46.887304
2020-06-20T16:21:18
2020-06-20T16:21:18
273,742,171
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
"""formp2 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "ram@Rams-MBP.attlocal.net" ]
ram@Rams-MBP.attlocal.net
35621c90838b16917a4be9435ba704d38daa5885
a81f6dd9fed6dbcb8f421f9bb14b9ce8b74b2fdc
/wish_swap/transfers/serializers.py
cfaaebda4ad3875d885f820fedc4ee204be75245
[]
no_license
krypt0x/wish_swap_backend
037393b4143fb3cd967a3f80c6fb8d35ab0e777c
644676b098d2b5d89329c3a83b6e64ca491fff7f
refs/heads/master
2023-03-03T05:28:26.432472
2021-02-13T09:43:29
2021-02-13T09:43:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,215
py
from rest_framework import serializers from wish_swap.transfers.models import Transfer class TransferSerializer(serializers.ModelSerializer): payment_hash = serializers.SerializerMethodField('get_payment_hash') payment_amount = serializers.SerializerMethodField('get_payment_amount') token_address = serial...
[ "khalitov.yulian@yandex.ru" ]
khalitov.yulian@yandex.ru
4dcf22aef50d12f600e611f9cbcbe3756ebf6bec
0f86610702a8afcb6d6ee6ace5a75316c1d0f56b
/hm4.py
4fb7eed0eccaf3eccd7dffa5ab4125365c2c6e22
[]
no_license
someshsharma63/Hospital-Project
4e70b8a1034092d46821def7cce104d38f74dd41
10ea960fdfdbc51537e5e2c17ef502babc1d4f13
refs/heads/master
2020-08-07T23:38:46.869678
2019-10-08T12:07:51
2019-10-08T12:07:51
213,626,545
0
0
null
null
null
null
UTF-8
Python
false
false
5,025
py
from tkinter import * root=Tk() root.geometry("1200x700") root.title("Project Pack") frame101=Frame(root,height="190",bg="White") frame101.pack(side=TOP,fill=X); frame201=Label(frame101,text="Hospital Name",bg="White",fg="blue",width="35",font=("calibri",18,"bold")) frame201.pack(anchor="center") frame300...
[ "noreply@github.com" ]
noreply@github.com
d4fb38ce7c704fe36eabf2f5a37e338645c5e772
1c1f1c44b4f17d8091ad04e5e1b779f817603379
/src/Train.py
0aa57458d53dd353c97e5e398f551dd57f4ffd3a
[]
no_license
MengMeng96/DRLS
7d4cd323374c76f6b5f020d255a1996452751ecf
69abd6f5f53d9fdf7fb6fd0a3e9c33d3c7baaa95
refs/heads/master
2023-03-12T06:00:57.796160
2021-03-05T03:06:48
2021-03-05T03:06:48
317,798,893
29
1
null
null
null
null
UTF-8
Python
false
false
17,327
py
import tensorflow.contrib.layers as tl import time from gcn import GraphCNN from agent import Agent from Environment import * from Data.Random import * from Data.A380 import * from Data.Ladder import * # import sys # 系统路径进入到上层目录,可以引用上层目录的库 # sys.path.append("..") from param import * from utils import * from tf_op imp...
[ "18801130730@163.com" ]
18801130730@163.com
ce8165a62002fac757e8f7088ea961563a701df2
7a1240e7fec86c83884817d8faec7b33fdaf2c89
/programmers/12918.py
d9514ab09e98ddbfba02176dfa56a388a2de5055
[]
no_license
kiryong-lee/Algorithm
03d9200d77e25e5709937dd5ea687b0b46f4f329
96ebc8edaeb33eec28eef046363dc5cb190dc21a
refs/heads/master
2023-04-13T15:47:14.880853
2023-04-08T05:19:35
2023-04-08T05:19:35
160,622,801
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
import re def solution(s): if re.search('[a-zA-Z]', s) == None: if len(s) == 4 or len(s) == 6: return True else: return False else: return False
[ "noreply@github.com" ]
noreply@github.com
06e6a38e865091a553dcec1b2b286abf65848f83
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_344/ch53_2019_03_31_15_57_40_910628.py
842c153c78e87eff9b5ce32522a0897f56a27f48
[]
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
101
py
def inverte_lista(lista): i=0 while i<len(lista): lista=lista[::-1] return lista
[ "you@example.com" ]
you@example.com
34833ae0a867adb2d4909ddddabc66b49e05d468
305e98071b8482b7799d68f7b5030deaf3a52918
/src/estimators/estimator_noisers.py
054ab80df76c4c1f1d23929f6428496208ca7b40
[ "Apache-2.0" ]
permissive
world-federation-of-advertisers/cardinality_estimation_evaluation_framework
fca14f98110671d2b25c3c1a18402b82468add39
1727e9545a8f219b543c1b67da6b6653e36d931e
refs/heads/master
2023-07-19T19:05:56.956931
2022-04-01T20:21:07
2022-04-01T20:21:07
250,087,781
21
8
Apache-2.0
2023-07-06T22:37:46
2020-03-25T20:46:53
Python
UTF-8
Python
false
false
5,040
py
# # 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 writing, software # distributed under...
[ "noreply@github.com" ]
noreply@github.com
c820b316b97a608906fac1208a50a52e7571c31a
85373d32f01b78aed81d2c68b937759eb91ad984
/program85.py
80451056457a724aeb87bba39110feffb4071a94
[]
no_license
VISUJOHN/Pattern_Programs
11b74c2037659ffcfdd44d2cb6300db88757fd55
ec6c5635ad35f92034aee2cd16e9e734388ccdbf
refs/heads/master
2021-08-08T19:18:03.667549
2020-04-07T05:20:50
2020-04-07T05:20:50
146,262,320
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
''' sample output * * * * * * * * * ''' n=int(input('Enter no of rows: ')) for i in range(n): if i==0: print(' '*(n-i),end='') print('*') else: print(' '*(n-i),end='') print('*',end='') print(' '*(2*i-1),end='') print('*')
[ "noreply@github.com" ]
noreply@github.com
f079a3d42e2b8c1fb9a545d2de0384281eb2e1bf
e021d254d53dadb46b980eceef2d88fd9127e88d
/common/optimizer.py
1d149b6fbe6bde99fb8f1633b93fe363a2146fac
[]
no_license
kwmt/zero-dl
b5f8017e2768e3c1475be9721d33de926308d18a
1ab1e1f584941b430a78e696f3421e41000fad6b
refs/heads/main
2023-02-13T00:03:02.601943
2021-01-02T15:49:04
2021-01-02T15:49:04
326,215,822
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
import numpy as np class Momentum: def __init__(self, lr=0.01, momentum=0.9): self.lr = lr self.momentum = momentum self.v = None def update(self, params, grads): if self.v is None: self.v = {} for key, val in params.items(): self...
[ "kwmt27@gmail.com" ]
kwmt27@gmail.com
e159a2847a7e49bd983756e5cfe07aefc4287589
b74d0909a218eae8073986d2a0c97051dd7d57a3
/test_project/test_app/management/__init__.py
a742e8e677152ca826a0dbf8a65ef5cf1ab2551e
[ "MIT" ]
permissive
mpasternak/django-multiseek
a09de7547be7eab25dc00e821d7e622ce55a694e
1485f103d26a4162667a4f6fe4e5739bf13c472f
refs/heads/develop
2022-10-25T01:09:47.816650
2022-09-28T18:03:49
2022-09-28T18:03:49
13,572,699
9
3
MIT
2021-01-09T22:57:15
2013-10-14T20:40:32
Python
UTF-8
Python
false
false
27
py
# -*- encoding: utf-8 -*-
[ "mpasternak@MacBook-Pro-Michala.local" ]
mpasternak@MacBook-Pro-Michala.local
532900bebd339267ebc10dfaff3592998f41e76f
5b22437902bffa0f62b375d56bfb2b4485ef43f0
/src/video_inpainting/create_padded_masked_video_dataset.py
2550634c0f8d379f97bcce53a9e71e7662817ff7
[ "MIT", "CC-BY-SA-3.0", "CC-BY-SA-4.0" ]
permissive
JohnsonzxChang/devil
eafa09f5258b4f33eda9564077814c6e63473a0f
296115cd5f4952c7dc65bbcaaf2d1d5c55ef5d35
refs/heads/public
2023-07-03T12:07:58.917440
2021-08-10T00:06:38
2021-08-10T00:06:38
555,846,483
1
0
MIT
2022-10-22T13:22:43
2022-10-22T13:22:42
null
UTF-8
Python
false
false
820
py
import os from .padded_masked_video_folder_dataset import PaddedMaskedVideoFolderDataset from .padded_masked_video_tar_dataset import PaddedMaskedVideoTarDataset def create_padded_masked_video_dataset(frames_dataset_path, masks_dataset_path): if os.path.isdir(frames_dataset_path) and os.path.isdir(masks_dataset_...
[ "szetor@umich.edu" ]
szetor@umich.edu
84a87d6e4b41771b32af9ab7f427c45a5b4aec99
d3bdcc3682703cded3cf1d78fc17f965b7260d69
/Exec_Kadai_01.py
44062b419597e468082927c7d0d713b25769fb8a
[]
no_license
takahiroKw/SampleRepo
7ec415da4fdad14f14582bc2a565e4d40d32102c
73bb3e61408c5942a41dfd2723d13190bf1b5c61
refs/heads/master
2023-03-09T11:13:12.301048
2021-02-23T07:34:16
2021-02-23T07:34:16
338,770,210
0
0
null
null
null
null
UTF-8
Python
false
false
4,195
py
from util import MyTimer # 課題01で使用するリスト g_source: str = ["たんじろう", "ぎゆう", "ねずこ", "むざん", "ぜんいつ"] # CSVファイルのパス CHAR_LIST_CSV: str = "Data/kadai01_charaList.csv" # 課題01のメイン制御関数 def exec_kadai_01(sub_num: int): if sub_num == 1: exec01() elif sub_num == 2: exec02() elif sub_nu...
[ "––mail.takahiro.kw@gmail.com" ]
––mail.takahiro.kw@gmail.com
7523b8d8a94341a8b22a714ee145b4ad826e6dd2
b419e3f43379dab3f1920bdccf339dd16c27039c
/main.py
6c11a5b8408eb468e16280b323c783e84827edc5
[ "MIT" ]
permissive
Kulikovpavel/IstraHistory
8bcf85802e9384270cd39221491bb8fd0876d7ec
df04d42ee9369fc9468af036eff254a31df181f5
refs/heads/master
2021-01-18T23:30:30.689727
2016-06-14T13:01:45
2016-06-14T13:01:45
7,413,461
0
0
null
null
null
null
UTF-8
Python
false
false
17,984
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import webapp2 import jinja2 import urllib import logging import json import random from helpers import * from google.appengine.ext import blobstore from google.appengine.ext.webapp import blobstore_handlers from google.appengine.api import images from google.appengine...
[ "kulikovpavel@gmail.com" ]
kulikovpavel@gmail.com
ae4083e317dc49cf541d1f2cf18b8fe1740c3add
172385696a81012bb353330e6ee327dd490159d5
/fhirpipe/cli/cli_run.py
69a4e0a3312cd67bab91a7b5b8a3248ac3aeed4b
[ "Apache-2.0" ]
permissive
arkhn/fhir-pipe
dbc340409071dfece96858c738cf18873cef8fe9
fd54e1910f6f037b12e60cd8d29c033971fe1de0
refs/heads/master
2021-07-23T11:22:45.816653
2020-05-04T12:35:09
2020-05-04T12:35:09
153,113,731
27
2
Apache-2.0
2020-05-04T12:35:11
2018-10-15T13:01:51
Python
UTF-8
Python
false
false
645
py
from fhirpipe import set_global_config, setup_logging from fhirpipe.cli import parse_args, WELCOME_MSG from fhirpipe.run import run def cli_run(): print(WELCOME_MSG) # Parse arguments args = parse_args() # Define global config set_global_config(config_path=args.config) # Setup logging confi...
[ "noreply@github.com" ]
noreply@github.com
1275e689c888a310da6cbf8c42c663d2f2b49143
619059401dbec35ffc4068d87281fcb9360b5446
/automatedSurveyingServer/pdfserver/pdfserver/asgi.py
608b30f791f850cfc06244cd2a72cbcce99b305e
[]
no_license
JKhan01/AutomatedSurveying
0bb68e36d26f24d41cd68e5a01bab5d3a522d4ff
c097d99182111c674142494c5640f1588111c728
refs/heads/master
2023-04-27T03:37:40.164120
2021-05-18T06:45:36
2021-05-18T06:45:36
297,945,641
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" ASGI config for pdfserver project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
[ "jkhan266@gmail.com" ]
jkhan266@gmail.com
dc18ae2c3e855e772bfabb6d12120afe6251e59a
d0a7cc27be30e6e3820d8d89c3c603e9e116b898
/binary_line_plots_for_illustrator.py
56657df63f625e2daac7ab8f86f4a45f1f593dcf
[]
no_license
slsong1/BEER-Run-Assay
72cdf9644fa7347808941fe0a4abd7577a05863d
963e7871596c698cc5d728937aa7f5c5a2a58617
refs/heads/master
2018-11-13T03:33:00.500775
2018-08-24T15:17:06
2018-08-24T15:17:06
103,267,680
0
0
null
2017-09-12T12:41:48
2017-09-12T12:27:36
null
UTF-8
Python
false
false
21,864
py
# -*- coding: utf-8 -*- """ Created on Mon Jul 24 12:39:56 2017 @author: Tapster """ # -*- coding: utf-8 -*- """ Created on Thu Jun 22 15:35:40 2017 @author: Tapster """ import csv import matplotlib.pyplot as plt import pandas as pd import numpy as np import sys import matplotlib import os import matplotlib.patche...
[ "31889353+slsong1@users.noreply.github.com" ]
31889353+slsong1@users.noreply.github.com
ba50dd86cdaa99cd34695548a76e5f6592516bc7
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2696/60765/305370.py
3d1f7821f1511367fc86d5ab1dbfcfe888cd8ca5
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,954
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import math import sys import re from collections import * from itertools import * from functools import * def solve(): # =list(map(int,input().split())) # =int(input()) # def root(i): # if unions[i]<0: # return i # else: # ...
[ "1069583789@qq.com" ]
1069583789@qq.com
175a95df1b171942b913d77561029a1915f14dea
7162c36b73d97c82b165d6fd14d568552a0269d8
/setup.py
37f71d57aab9125965f253b2077c743f7b916d16
[]
no_license
welbornprod/findfunc
d90cbe0110a0f9b656b0ff70846e0c29a583f703
0247cba193fb3193c60399c3d2f9910e85319493
refs/heads/master
2021-01-19T09:29:10.707496
2019-04-02T23:14:08
2019-04-02T23:14:08
87,763,285
0
0
null
null
null
null
UTF-8
Python
false
false
2,355
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ FindFunc Setup -Christopher Welborn 04-09-2017 """ try: from setuptools import setup except ImportError: from distutils.core import setup # Try using the latest DESC.txt. shortdesc = 'Finds function definitions/signatures from the command line.' try: wi...
[ "cj@welbornprod.com" ]
cj@welbornprod.com
c9a402754b6b08c557c8854d4a4fd73dc5db45bd
841c1403e4f224841d87baeb91009da1c85734cf
/prac_01/prac_01/temperatures.py
42452984b14de5f3709e86117817d2a5f34f41c7
[]
no_license
LIAOTINGFENG/jc538239
16409ced9c1e64ce757ec43a31855c1f6bfb8850
8e51990a173797ce31fd2601d6701dba42edfe69
refs/heads/master
2020-07-04T11:57:03.297573
2019-08-14T10:36:13
2019-08-14T10:36:13
202,280,745
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
Celsius=float(input("Enter Celsius")) Fahrenheit=Celsius*1.8+32 print(Fahrenheit)
[ "noreply@github.com" ]
noreply@github.com
b014ffe7925c5e1b472df0d10c58651c62546634
e2f255401ad647c405ea989043fcff2f3d75f217
/scrapy_example/middlewares.py
3f86ab2293de4af3d21d6800268f27089633e8d4
[]
no_license
haomeihao/scrapy_example
72cc0672952aea1bc6367b16b393d88dbddc491c
c8c9a36fbe48654bada4bf86ff47dcb7a04e292d
refs/heads/master
2022-08-22T11:48:20.173749
2019-06-22T15:14:07
2019-06-22T15:14:07
166,390,543
2
0
null
2022-07-29T22:32:16
2019-01-18T10:51:53
Python
UTF-8
Python
false
false
10,918
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html import random import redis from scrapy import signals from scrapy.downloadermiddlewares.cookies import CookiesMiddleware from scrapy.downloadermiddlew...
[ "2305863389@qq.com" ]
2305863389@qq.com
8329a74b965cf27116a1ccac5d225cd26f230626
8f9307bea638a3defd74a12e76dcddb860b6dc73
/excercises interview cake/product_except_index.py
f28d3a1b8c541e3bd7a1d673341ffd5dbb0ce583
[]
no_license
zuliya/intervew_prep
edf244c1d4cc3cf5177299e7f1d3243dac284000
333f874103e0a78d18ebb55a0aebc68cd7fdc141
refs/heads/master
2020-07-25T07:33:52.671737
2019-11-13T10:25:27
2019-11-13T10:25:27
208,216,196
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
arr = [1, 7, 3, 4] def get_all_products_except_at_index(arr): if len(arr) < 2: raise IndexError('Getting the product of numbers at other ' 'indices requires at least 2 numbers') total_product = [1] * len(arr) # Calculate beginning product curr_product = 1 for i in...
[ "zulia_shavaeva@hotmail.com" ]
zulia_shavaeva@hotmail.com
9b39d0aaef737701e4cb66f809cfa899cc141f76
8a1a0faad3c06d2bec25e0ff5252a03fb021d660
/FindPositionGenomeMinimizingSkew.py
5896990ccecfc85896cb03d91b78969f317e5558
[]
no_license
SethCommichaux/Rosalind_Problems
33e9884a0ffc4cde59d3e1503ad9fc265b277352
8cbc31cbc0cbc010f07d88b119f38dfe1e73b601
refs/heads/master
2021-05-10T15:36:08.547997
2018-01-23T04:39:40
2018-01-23T04:39:40
118,555,853
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
seq = ''.join(open('Rosalind.txt').read().split()) skew = [0 for i in range(len(seq)+1)] for i in range(len(seq)): if seq[i] == 'C': skew[i+1] = skew[i] -1 elif seq[i] == 'G': skew[i+1] = skew[i] +1 else: skew[i+1] = skew[i] for i,j in enumerate(skew): if j == min(skew): print i
[ "noreply@github.com" ]
noreply@github.com
f2179e553891daab0735a07542f23342efba7bbd
4b9276bcd15b9d40ef73f92425fb0b68e5a89339
/lic.py
8cf6a656e0d0c950240409d3d3dca6399eda46c6
[]
no_license
githublic/git_study
0548615268af4d87db5332bb92e7614201f8a759
3832f03cee1bcbf0eda4dacd08bf93c14e0cd99c
refs/heads/master
2020-08-02T20:02:21.926333
2019-09-28T14:48:02
2019-09-28T14:48:02
211,486,088
0
0
null
null
null
null
UTF-8
Python
false
false
1,351
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/9/28 22:04 # @Author : 树上老娃娃 # @Site : # @File : lic.py # @Software: PyCharm from lxml import etree import requests import csv fp=open('D://JHW/doubanbook.csv','wt',newline='',encoding='utf-8') writer=csv.writer(fp) writer.writerow(('name','url','...
[ "875261448@qq.com" ]
875261448@qq.com
fba74dcf5a52806a1bc8f2b48a29386c2701f116
76fb436213fd41bf0c2fada06cb7c23377368c38
/1.py
3a70a952a0e631952cecbe26ffb0d2efa7f30daa
[]
no_license
stzvst/HWgeek8
47d51a30c000b86a3a1a551fc3b76f0d58182e1f
ad14fc4b899dd885cf4b17683fcf9c619a6a4ff3
refs/heads/master
2022-06-19T22:11:15.992216
2020-05-13T15:56:04
2020-05-13T15:56:04
263,676,743
0
0
null
null
null
null
UTF-8
Python
false
false
1,348
py
#Задание 1 class Data: def __init__(self, day_month_year): self.day_month_year = str(day_month_year) @classmethod def extract(cls, day_month_year): my_date = [] for i in day_month_year.split(): if i != '-': my_date.append(i) print(my_date) return int(m...
[ "stalker.zveroboi47@gmail.com" ]
stalker.zveroboi47@gmail.com
63837ffe4e4202c1c3093144522150630f9d3fc7
e12da0a2ac100983b9c488f3a08de2d30deb9636
/listings/migrations/0003_auto_20210517_1310.py
f34707fb4a8e037f72924e90eef83c6bfe22b63f
[]
no_license
GeeeTech95/bookingengine
a4f9519d3f2ef6134fa18e29637f80ef680df7e8
cb14f6eef7f1c0bae4515cd814487664575a2e47
refs/heads/main
2023-05-06T06:48:56.922956
2021-05-21T11:44:00
2021-05-21T11:44:00
369,516,140
0
0
null
null
null
null
UTF-8
Python
false
false
1,654
py
# Generated by Django 3.2 on 2021-05-17 20:10 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('listings', '0002_auto_20210517_1244'), ] operations = [ migrations.AddField( ...
[ "geeetech.inc@gmail.com" ]
geeetech.inc@gmail.com
46cb1c572815f8a6d20635acff1d237fcd0d8db4
215bf668b69b5ebea1b538be217a7cd91db1772a
/bin/condor-compute-psd
7e2e02878351d44edbb14260ba2a9af208a2b15f
[ "MIT" ]
permissive
reedessick/exposure
a2fce2e0a2ff059200d0498ae68e81a6e2bb1b9c
10aeb1fb29befbbb305d65c379d983fd8bad5693
refs/heads/master
2022-04-05T09:36:15.969152
2020-02-28T23:24:05
2020-02-28T23:24:05
105,042,945
0
0
MIT
2019-08-08T16:09:08
2017-09-27T16:35:52
Python
UTF-8
Python
false
false
6,825
#!/usr/bin/env python __doc__ = "a very basic wrapper that schedules `compute-psd` jobs. The resulting DAG should run to completion if everything worked correctly (i.e. nodes should not raise exceptions" __author__ = "Reed Essick (reed.essick@ligo.org)" #------------------------------------------------- import os im...
[ "reed.essick@ligo.org" ]
reed.essick@ligo.org
d375ed17058f7f10e9b4b31436c483ce20476ef0
3933b7868ee3c9de313d58e28af88fb815832450
/0x04-python-more_data_structures/5-number_keys.py
2f56223ba6573cc998c79623bfafb157dc2220da
[]
no_license
Jhon112/holbertonschool-higher_level_programming
ce16cdf7d90bb6e52ddcedc8fe990bf7be1598cd
8db62a3507099854d223d087554952dda153a7fb
refs/heads/master
2020-07-23T00:58:21.649574
2020-02-14T04:16:14
2020-02-14T04:16:14
207,390,507
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
#!/usr/bin/python3 def number_keys(a_dictionary): result = len(a_dictionary) return (result)
[ "jhonarmont@hotmail.com" ]
jhonarmont@hotmail.com
42c5f9db30567097bc2bfb0f4424be748d2301fc
0b5be4b9162c19cf0d98972e52ce80aa8af47f0a
/Thread/thread/concurrent_futures.py
5b0040e31097304271f9bf34a179dee1e60395c7
[]
no_license
Air-Zhuang/Test35
374c974a2a7693fff21be81278c1bb59a050f7ee
d9f92b7a025c91b7503f02afc896ac769f818a84
refs/heads/master
2021-06-19T12:36:13.383878
2019-09-21T08:02:43
2019-09-21T08:02:43
147,629,865
0
0
null
null
null
null
UTF-8
Python
false
false
2,004
py
''' 用于线程池和进程池编程(顶层的包,高度封装) 主线程中可以获取某一个线程的状态或者某一个任务的状态,以及返回值 当一个线程完成的时候我们主线程能立即知道 futures可以让多线程和多进程编码接口一致 ''' from concurrent.futures import ThreadPoolExecutor,as_completed,wait import time def get_html(times): time.sleep(times) print("get page {} success".format(times)) return str(times) ...
[ "737248514@qq.com" ]
737248514@qq.com
596ae26f080c92c460486163523417cd97a08e80
05a1176fac8c8db5baf8c9d1a1b4e927fa6718c6
/language/models.py
d460d956fbc0207426e645e496725ebc98bf7e0a
[]
no_license
coltonbishop/wengga
b4f788346bedec8d821095c847284d08d712ebf9
3c5185e9e36b58dce8eaace1c2b54015634d512e
refs/heads/master
2022-12-11T01:22:36.106717
2020-10-27T05:18:30
2020-10-27T05:18:30
192,551,667
0
0
null
2022-12-08T02:33:16
2019-06-18T14:02:31
JavaScript
UTF-8
Python
false
false
1,227
py
import datetime from django.db import models from django.utils import timezone class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text def was_published_recently(self): ...
[ "cmbishop@princeton.edu" ]
cmbishop@princeton.edu
c52d224e402e87d8d7bbd7f8372abf8d931c4167
02338bb8111fc1aa88e830ac09a11664720eb2d4
/tmp/azure_rm_jobversion.py
544592c6f9d2166c6ff192b0e8a5c5bd17aecd3a
[]
no_license
Fred-sun/fred_yaml
a49977b0e8505c7447df23dd80c7fef1be70e6bc
295ca4cd2b59b8d2758f06eb7fd79920327ea524
refs/heads/master
2023-04-28T05:51:56.599488
2023-04-25T13:52:10
2023-04-25T13:52:10
131,376,340
0
1
null
2020-07-06T14:22:46
2018-04-28T05:34:49
TSQL
UTF-8
Python
false
false
7,350
py
#!/usr/bin/python # # Copyright (c) 2020 GuopengLin, (@t-glin) # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
[ "xiuxi.sun@qq.com" ]
xiuxi.sun@qq.com
3afff6728a236e2632fe988b4148a94c837edced
e1b09412691d9d375637760f9226e97a9927f108
/day20 进程/生产者消费者模型-异步阻塞.py
9564eaf86bdcda884397de6dab1afd02a2f08121
[]
no_license
fallencrasher/python-learning
572988c5d3cb6f97dcefdcdaf27101283756ebc7
ec712211a4e8895b31212ff750731be60781d0ca
refs/heads/master
2021-05-20T19:35:07.485620
2020-05-18T13:11:45
2020-05-18T13:11:45
252,392,628
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
import requests from multiprocessing import Process,Queue url_dic = { 'cnblogs':'https://www.cnblogs.com/Eva-J/articles/8253549.html', 'douban':'https://www.douban.com/doulist/1596699/', 'baidu':'https://www.baidu.com', 'gitee':'https://gitee.com/old_boy_python_stack__22/teaching_plan/issues/IXSRZ', } ...
[ "fallencrasher" ]
fallencrasher
e9dd804637f4c422c1a19e32a97b0cd74d43e825
ff5b981d5aa9fa7dad877fad91c8bc1bd6f41290
/server.py
fc26940ff4a60b6ecc15a7f5efa0397c6eef2956
[]
no_license
ramimoshe/image-comparer
c5611a46004c3e7a4ec995f508455d3ad6b8568b
b2641653b5b3fb6edd63812855713c4f319e23c2
refs/heads/master
2022-07-11T14:03:29.804101
2019-05-07T12:05:06
2019-05-07T12:05:06
180,586,468
3
0
null
2022-06-21T21:52:23
2019-04-10T13:21:19
Python
UTF-8
Python
false
false
1,522
py
import json import os from src import image_comparer from aiohttp import web # ============================================================================= # Helpers def get_utf8_json_response(value): res = web.Response(body=json.dumps(value, ensure_ascii=False).encode('utf-8')) res.content_type = 'applicat...
[ "rms.rami.m@gmail.com" ]
rms.rami.m@gmail.com
ec1c456fe524dbf82d8b9efb5cfe9555abc430db
4cc9f5e1017d8a492632c2d8696b42c71ebc378b
/pages/base_page.py
cf9ab4f105e251f6b8aa73fef5334e7658348878
[]
no_license
ekaterina-ved/FinalProject
418f1cac55ee36a5bdebb4647f76b64cf2b86066
a8877c0f5c98f99d13a022fad36ebf048f6ba929
refs/heads/master
2023-01-24T06:56:25.494926
2020-11-19T10:24:21
2020-11-19T10:24:21
307,950,860
0
0
null
null
null
null
UTF-8
Python
false
false
2,410
py
from selenium.common.exceptions import NoSuchElementException, TimeoutException from selenium.common.exceptions import NoAlertPresentException from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import math from .locators import BasePageLocators cla...
[ "fedor.vedernikov@nordigy.ru" ]
fedor.vedernikov@nordigy.ru
14d18e07ad425489df3f6b99c3da6c034e9a28a0
cfe06235db15a783365669935741db54886ad6af
/git.py
28992ec82c7227e123212ecaaa57a9c2c704e35a
[]
no_license
aleksashaaa/git1
5268b3ca9277bd4cdf89f595e36042b29cdeb92c
50090476455c81e15307702d761535bf7cb1410c
refs/heads/main
2023-01-14T12:24:53.311912
2020-11-18T09:06:35
2020-11-18T09:06:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import QPainter, QColor import random class Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setGeometry(400, 400, 400, 400) self.setWindowTitle('Круги') self.btn = Q...
[ "sabalinaaleksandra36@gmail.com" ]
sabalinaaleksandra36@gmail.com
d847da23b7e6d85cf75a567aed241de0441c7062
1450e1dc312d83138a774ea393357dab4bc3102a
/settings.py
e1decdfd7f8976e17cb80a911665d9df5a8816fc
[]
no_license
LukaLypt/Topdown-Tilebased-
93ac8efe01d1bb004ca7b3455f9e3d55ffd9099f
e2a31ef46813c08b2929b5da9e52204cdbccc98e
refs/heads/master
2021-08-23T21:27:21.079774
2017-12-06T16:32:54
2017-12-06T16:32:54
113,341,273
0
0
null
null
null
null
UTF-8
Python
false
false
926
py
import pygame as pg #define colours BLACK = (0,0,0) WHITE = (255,255,255) RED = (180, 0, 0) YELLOW = (255, 200, 0) GREEN = (0, 180, 0) BLUE = (0, 0, 180) DARKGREY = (78, 77, 83) LIGHTGREY = (100,100,100) BROWN = (106, 55, 5) SPRITESHEET_MOVE = 'BODY_skeleton.png' SPRITESHEET_BOW = 'BOW_skeleton.png' #game options/se...
[ "LukaLypt@users.noreply.github.com" ]
LukaLypt@users.noreply.github.com
41199df35a297e31c593e8e4485c87c2f1b163e0
1199165d4db7f64bd1fbf8d8de6d26f35d9adc44
/tesseract_server/webapp/migrations/0001_initial.py
d652e4387bb362e873ef920773a1ccd15f497ef9
[]
no_license
Backseungchan/LG_SoftIndia_Hackathon
b9a5d3371bfce5b88868e9490a1c1bf68b01aeee
d927b699be9891af14fe2f224d42d809f40ada88
refs/heads/main
2023-09-04T00:44:11.443945
2021-10-18T09:50:35
2021-10-18T09:50:35
385,818,859
3
5
null
2021-07-20T05:45:26
2021-07-14T05:00:51
JavaScript
UTF-8
Python
false
false
510
py
# Generated by Django 3.2.5 on 2021-07-19 08:13 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Ocr_Image', fields=[ ('id', models.BigAutoF...
[ "bsu0541@naver.com" ]
bsu0541@naver.com
eaa4c8d12cc27330b466e36a02741f5a947d8c42
ddc32226df51aa1a5796fa9df74c3e92fd0ace42
/django_workflow/migrations/0008_auto_20180117_1455.py
4c8573e53778b95b7db27bdb597101af094b6889
[ "BSD-3-Clause" ]
permissive
dani0805/django_workflow
fc2dbf086fecc946f0cae19bd81583e77724335d
4eb20fefa95c5d917628fc32b5479879d119a7e1
refs/heads/master
2021-07-06T13:20:31.560791
2019-10-15T13:41:10
2019-10-15T13:41:10
101,757,229
8
0
BSD-3-Clause
2021-06-10T20:49:54
2017-08-29T12:11:49
Python
UTF-8
Python
false
false
865
py
# Generated by Django 2.0 on 2018-01-17 14:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('django_workflow', '0008_auto_20180117_1236'), ] operations = [ migrations.AlterField( model_name=...
[ "vsanelli@Danieles-MacBook-Pro.local" ]
vsanelli@Danieles-MacBook-Pro.local
2879f172e4ccbb8984c2a34a46e166279a15aedd
e7e97c7e5258c4ef0aa98acd5703eb31652dccd1
/stnb/membres/admin.py
052f57dfa372cb84cf04db6b325a4c094532464e
[]
no_license
stnb/stnb
bcba3cd2779d00da5d1a2b5d24f1b67146770c14
84e24c4a346efd1cd9b9a587fe4025e7e5552fbd
refs/heads/master
2020-04-12T23:03:41.043229
2017-01-19T19:11:31
2017-01-19T19:11:31
6,734,149
0
1
null
2017-01-19T19:11:32
2012-11-17T10:37:26
Python
UTF-8
Python
false
false
346
py
# -*- coding: utf-8 -*- from django.contrib import admin from hvad.admin import TranslatableAdmin from .models import Membre class MembreAdmin(TranslatableAdmin): model = Membre list_display = ('nom_complet', 'membre_des_de', 'afiliacio', 'membre_actual', 'amagar_perfil') admin.site.regis...
[ "hds@caffeineconcepts.com" ]
hds@caffeineconcepts.com
37174ab51eac747f46c0d8aa873a7562a247f817
c2c9282ff39ec3cba2b52214777e9055e924d28f
/jobclean.py
1530fde4f04b45dee95539c8d948996fc030a6b0
[]
no_license
FrankFang0813/TOPIC
f105f5c4f75e4e0903d835d626626b917c807a1f
b304633104d30835ed2b4f20d622661d69269712
refs/heads/main
2023-01-16T04:08:14.786712
2020-11-18T10:39:14
2020-11-18T10:39:14
303,311,041
0
0
null
null
null
null
UTF-8
Python
false
false
10,692
py
import pymongo def mongo_connect_build(db_name, col_name): global mycol client = pymongo.MongoClient("mongodb://192.168.1.25:27017/") # 跟mongodb建立連 db = client[db_name] # 選擇使用的db,不存在則會在資料輸入時自動建立 mycol = db[col_name] # 選擇collection,不存在則會在資料輸入時自動建立 def data_find(): # 尋找多筆資料 retu...
[ "noreply@github.com" ]
noreply@github.com
480fb69bbcc3a950197c2c66217958b1d7c048e6
1ffe8b7c24254942c07a4857eaea7220ec80e405
/gudang/serializers/distributor.py
101f50c274703805c945f7bbd902d8573d7b575d
[]
no_license
dirtaputra/BE-Algo
dad72209ea17761f931870c533848aa8a78455a7
844e122a019a42c41fda3a5b03c419c072458d68
refs/heads/master
2022-11-27T06:52:42.486293
2020-08-06T08:26:34
2020-08-06T08:26:34
285,500,650
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
"""Area serializer module.""" from rest_flex_fields import FlexFieldsModelSerializer from rest_framework import serializers from gudang.models import Distributor class DistributorSerializer(FlexFieldsModelSerializer): class Meta: # noqa D106 model = Distributor fields = '__all__'
[ "dirtaputraanggara@gmail.com" ]
dirtaputraanggara@gmail.com
80e187e146030bc0ccd4dc6c8787f82966170b05
26a7862ee09a658a43b2c1543e6ef5d3b2a33acd
/src/sentiment_analysis/tempCodeRunnerFile.py
edeb985c171abb5a128100106f6017856c6d5c35
[]
no_license
chinmxy/growmore_analytica
5a52245c7bc65378f6d5cc57d683284968dbe8eb
72b1e0aec4b8ec1a75b90de7aeaeeb6c6a06329d
refs/heads/main
2023-05-27T17:40:14.160929
2021-05-29T04:34:53
2021-05-29T04:34:53
312,634,487
0
1
null
null
null
null
UTF-8
Python
false
false
544
py
if v!='[]': wordcloud = WordCloud().generate(str(dictionary[k])) fig, axes= plt.subplots(figsize=(20,12),clear=True) plt.imshow(wordcloud, interpolation='bilinear') plt.show() else: ...
[ "gawdechinmay@gmail.com" ]
gawdechinmay@gmail.com
64b102decd9a61701b36c85fe423863534ae95ee
db699929c84c7894d857f87c70c87ce421cd9156
/shield_wall_token.py
5bec4244be5a3abfcb5e6b07110254aa5ab2346a
[ "MIT" ]
permissive
marekyggdrasil/truthsayer
92a26b32f70633f870ca32b8102d9814f8b24de6
97bf9920a74acbde87e61ef2425a871e9c0a14d6
refs/heads/main
2023-07-15T01:38:25.748083
2021-09-02T09:00:15
2021-09-02T09:00:15
363,860,923
3
0
null
null
null
null
UTF-8
Python
false
false
1,281
py
import json from truthsayer.poly import extract from shapely.geometry import Polygon areas = extract() shield_wall_points = [] min_x, max_x, min_y, max_y = 2**20, 0, 2**20, 0 for x, y in areas['polygons']['shield_wall']: shield_wall_points.append((x, -y)) if x < min_x: min_x = x if y < min_y: ...
[ "marek.yggdrasil@gmail.com" ]
marek.yggdrasil@gmail.com
2b3a0d38175f108709893795ab1e43843f9c0773
f52972ec654b030eec3a3ccacaa1e943e8f1939e
/python/create_routing_group.py
0fbff276ccee960c847c76309b148ef673f4b1ed
[]
no_license
nsofnetworks/scripts
1bcf781afa11052d6e2ec4c7045730e2a406999f
be06ff72681fe61036a58fb9de5b2b718e8d1f26
refs/heads/master
2023-06-05T18:35:52.148208
2021-06-23T13:00:17
2021-06-23T13:00:17
277,544,775
0
1
null
null
null
null
UTF-8
Python
false
false
1,828
py
""" This script creates a single user routing group containing the group "All Users" as source. In order to use this script, you must pass the following environment vars (API KEY and API ID that generated from the UI): 1. API_KEY_ID: <value> 2. API_KEY_SECRET: <value> 3. 'group_id': Replace with your group identif...
[ "zicohen@metanetworks.com" ]
zicohen@metanetworks.com
c97c300158c4f94cf5638626ee2d67678df0fbee
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/network/v20200401/get_virtual_network_gateway_learned_routes.py
dc0c3a5ca849b2e3f6452ce8aa86df4484b07682
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
2,485
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, overload from ... import _utilities fro...
[ "noreply@github.com" ]
noreply@github.com
03a0d3841f4d1d8975eaf1159d2748f96dd55946
2239b6cf149fb4ca25506d6824104f5ccf2fcebb
/PersonalSite/test
5f79802a4e1d7b2096fa04da8c8cbd415820646a
[]
no_license
anish-khanna/personal-site-old
59c2f9e75534a43ed83913463ad8a11ff0353b3e
c1f66528f34c3f2cb784fa886f1300869e0fb05e
refs/heads/master
2020-12-10T02:33:26.536120
2020-01-13T00:52:44
2020-01-13T00:52:44
233,477,590
0
0
null
null
null
null
UTF-8
Python
false
false
209
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 4 14:21:21 2018 @author: anishkhanna """ dict = {"a":1, "b":2} if "a" in dict: dict["a"]+=3 list = list(dict.values()) print(list)
[ "a26khann@edu.uwaterloo.ca" ]
a26khann@edu.uwaterloo.ca
ae712c5fb206c92a32177e83869f0bbbb0c5c26f
51d7b41106c4cd0fe763c1191d622c7621633856
/src/__init__.py
de5e47f3734c2e5c9950ef778a70e66130fb426e
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
limingshifen/py-radio-autoencoder
d645623f0ee804157a593c8fd6ed06c1e58c693f
8dfbae8c3eba7754184935f0b1a40e3d7597ed23
refs/heads/master
2021-05-05T11:58:56.289524
2018-01-12T14:14:29
2018-01-12T14:14:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
import autoencoder import hamming import uncoded
[ "vidits@kth.se" ]
vidits@kth.se
7f1e927a5e57a64296b45cbc7253a09a6c892fc8
f7820bee94683fd82333e3e5fe296893f5766610
/14_io.py
b4c654ed9e517d68e65e4be065c237f571542156
[]
no_license
alcides/python_workshop
fa850c9c4ae8a7482adac0a67f583f5ee2c8004e
f17e4c6d197dda30233dc11a281431e702119018
refs/heads/master
2021-01-10T14:23:44.543550
2013-03-04T16:38:01
2013-03-04T16:38:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
fi = open('14_apache.txt', 'r') fo = open('14_apache_uppercase.txt', 'w') with fi: with fo: for line in fi: fo.write(line.upper())
[ "me@alcidesfonseca.com" ]
me@alcidesfonseca.com
402dae48e649f97b5ac2364ae731bfc709f8285d
9729da2bfbc60245448f3d139ec46d04c8855a10
/esl/school_lunch/migrations/0003_auto_20160207_0027.py
40453e6664670af278bcc78d10837b098be35caf
[ "MIT" ]
permissive
thisjustin/eat_school_lunch
770cd7021f5fd3fbf225cff7289879dacfab0b31
b01fb02f093373dbbc4e676ab3a6b3e496165cbf
refs/heads/master
2020-12-28T12:16:57.170657
2016-02-26T03:49:02
2016-02-26T03:49:02
48,299,527
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-02-07 00:27 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('school_lunch', '0002_auto_20160207_0026'), ] operations = [ migrations.AlterFi...
[ "justinmccammon@gmail.com" ]
justinmccammon@gmail.com
4711c9358a365a673a560438a3d01eaa7bc1cdcd
abd9537f8b90a990e195ded5f9fafdcc108d2a48
/swea/d4/1861/1861_june.py
8790efff9e44731cc0c47a060c8eb6dc902bcd0a
[]
no_license
ohdnf/algorithms
127171744631406c1d08cc2583aa569a094fa2cd
6f286753dab827facc436af4f2130f11dad2d44f
refs/heads/master
2023-08-09T11:19:56.445351
2021-08-31T13:11:46
2021-08-31T13:11:46
236,180,615
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
import sys sys.stdin = open('input.txt') sys.stdin = open('n1000.txt') dx = [0, 1, 0, -1] dy = [1, 0, -1, 0] t = int(input()) for test_case in range(1, t+1): n = int(input()) room = [list(map(int, input().split())) for _ in range(n)] v = [0] * (n**2 + 1) for i in range(n): for j in range(n): ...
[ "jupyohong7@gmail.com" ]
jupyohong7@gmail.com
e16ba25698e2ae12b243a0fdf2d8bc610e315272
6a52e559a448d75483d5961d5170cbaf90f93882
/setup.py
1f9581c01d674ee8da5278ddb01b417c3784dfb7
[]
no_license
injectedreality/python-gcp-injections
214425178c3798086666e46b18a18eea84a8b4de
412545cc49ec04d52f84859e19d3b166889a290d
refs/heads/master
2021-07-15T05:27:44.553849
2020-11-10T09:47:04
2020-11-10T09:47:04
220,979,944
1
1
null
2020-11-10T09:47:05
2019-11-11T12:47:14
Python
UTF-8
Python
false
false
1,018
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="python-gcp-injections", # Replace with your own username version="1.5.1", author="Tommy Strand", author_email="github-projects@ireality.no", description="Tools and libraries for python to...
[ "tommy@hudya.no" ]
tommy@hudya.no
61ea01ca6a2119ce22f8de324e65fa91be2dbd1e
9323e5fe88f2f4c6c50752d1a0beeff18fb336a5
/controllers/front/member.py
ebb8f205fd8e975d8d3a289d3ba87515e523161b
[]
no_license
nomiso0125/gcp-memo
54cd8493ddaff12197c848991ae3e15e3e9f6a0a
82ca80e2dffaf651d432dc998d5be05e968ec001
refs/heads/master
2021-01-25T08:28:48.316429
2015-12-10T12:43:27
2015-12-10T12:43:27
19,135,674
1
1
null
null
null
null
UTF-8
Python
false
false
1,106
py
#!-*- coding:utf-8 -*- #!/usr/bin/env python from lib.controller import * from google.appengine.api import users from google.appengine.ext import blobstore from google.appengine.ext.webapp import blobstore_handlers class Top(Controller): def get(self): # ニックネームを得る user = users.get_current_user() ...
[ "nomiso0125@gmail.com" ]
nomiso0125@gmail.com
7fdaa75f7a8198442c2bf51c12de32d655c2420d
af9a4f8bed68932c24cb13d0b24eae4b2b683ce1
/advstego/nn/image_utils.py
92b4eee58c9d2ddfb5f19a82c048286cbe69dcf0
[]
no_license
leliaonvidia/adversarial-steganography
99cbb11c08b7282cc0190a9785d3110ee4475c16
e9e4b23d24591cb0a781432a02a7ceec411a9a4e
refs/heads/master
2021-03-16T05:36:04.531595
2017-04-06T11:34:34
2017-04-06T11:34:34
91,555,743
5
3
null
2017-05-17T09:01:09
2017-05-17T09:01:09
null
UTF-8
Python
false
false
1,995
py
""" Some codes from https://github.com/Newmu/dcgan_code """ import os import scipy.misc import math import pprint import numpy as np from PIL import Image pp = pprint.PrettyPrinter() get_stddev = lambda x, k_h, k_w: 1 / math.sqrt(k_w * k_h * x.get_shape()[-1]) def get_image(image_path, image_size=(), need_transfor...
[ "denisabox@yandex.ru" ]
denisabox@yandex.ru
f8df8c9be66550d9b09f4c2f5135ef5ffc0ea524
961d1345a5699d2e82ab0ac7e3898f19745ca021
/GfG/Kadane's_Algo.py
677906d96f4185b64938e6057fc76faaadf0390c
[]
no_license
abanerjee-06/Competitive-Programming
550715d746e4085d731fd865249eb98534415cfd
c269b220db459372ac83733a91db2c264b63b3da
refs/heads/master
2023-06-16T13:47:28.249131
2021-07-07T05:55:55
2021-07-07T05:55:55
287,534,090
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
import sys def maxSubArraySum(a,size): ##Your code here curr_max,curr_sum,flag = -1e9,0,False for i in range(size): if (a[i] >= 0): flag = True curr_sum += a[i] if (curr_max < curr_sum): curr_max = curr_sum if (curr_...
[ "aritra.b2000@outlook.com" ]
aritra.b2000@outlook.com
d4160e38a5fe5b321cdff170039b55d5691b1787
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2692487_0/Python/Sibi/osmos.py
358f3037cb7d86476c1f1042cd07a622eda406f5
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,084
py
from math import log def solve(mySize,sizes): if len(sizes) == 0: return 0 while sizes[0] < mySize: mySize = mySize + sizes.pop(0) if len(sizes) == 0: return 0 if sizes[0] < 2*mySize-1: return 1+solve(2*mySize-1,sizes) for insertions in range(1,100): if mySize*(2**insertions)...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
04e85695dc17b629e75800460257c3e4e970e56c
d5a003bc0ff8d2a09a7d97c0eaac17638aa37429
/nysfAXF/app/migrations/0003_mustbuy.py
91bb87b9a856207340fb321a64dd41e3e993ce5d
[]
no_license
2675694536/flask
1c033d2b1a23dd3069fab253c66e815b692c8588
3e1fea7f1a22a1bc315ac8f0960a91cb37bf3b8b
refs/heads/master
2020-06-08T07:50:07.910125
2019-06-23T06:58:06
2019-06-23T06:58:06
193,190,031
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2019-05-27 02:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0002_nav'), ] operations = [ migrations.CreateModel( na...
[ "2675694536@qq.com" ]
2675694536@qq.com
f0ba6570dcbf0c61b46c3343589dee8799cd76d8
f2253ad57eac6313201237aaede70f6a334a3349
/python/path_utils.py
e3bd3ad229d2ccb93268632c865ecf9485b93718
[ "Zlib" ]
permissive
lachlanorr/gaen
d9c53f82d4d816f15a93783ec2f266e6438418b6
1a65e22ea0a8c9e263ef41559fc0a1c893b87e90
refs/heads/master
2022-06-28T06:48:31.524403
2022-06-14T10:03:35
2022-06-14T10:03:35
19,638,018
2
1
NOASSERTION
2019-09-12T03:17:01
2014-05-10T09:38:31
C++
UTF-8
Python
false
false
5,177
py
#!/usr/bin/env python #------------------------------------------------------------------------------- # path_utils.py - Shared utils to find various dirs within gaen # # Gaen Concurrency Engine - http://gaen.org # Copyright (c) 2014-2022 Lachlan Orr # # This software is provided 'as-is', without any express or implie...
[ "lorr@gaen.org" ]
lorr@gaen.org
e410945fdc90dfec260540d9e96b5aa39d3d487e
20f951bd927e4e5cde8ef7781813fcf0d51cc3ea
/fossir/modules/bootstrap/blueprint.py
cce0f666235dc8c6007c3badae3b258b1efdbb60
[]
no_license
HodardCodeclub/SoftwareDevelopment
60a0fbab045cb1802925d4dd5012d5b030c272e0
6300f2fae830c0c2c73fe0afd9c684383bce63e5
refs/heads/master
2021-01-20T00:30:02.800383
2018-04-27T09:28:25
2018-04-27T09:28:25
101,277,325
0
2
null
null
null
null
UTF-8
Python
false
false
349
py
from __future__ import unicode_literals from fossir.modules.bootstrap.controllers import RHBootstrap from fossir.web.flask.wrappers import fossirBlueprint _bp = fossirBlueprint('bootstrap', __name__, template_folder='templates', virtual_template_folder='bootstrap') _bp.add_url_rule('/bootstrap', 'index', RHBootstr...
[ "hodardhazwinayo@gmail.com" ]
hodardhazwinayo@gmail.com
44601011751f86d4f150c8a8f750137bbc7e1372
4ccadd5be8d3ffa1aaffe528b0786a8a956128aa
/python/paddle/fluid/tests/unittests/mkldnn/test_matmul_mkldnn_op.py
bd8842da03e988c374586983d75cc3031c446906
[ "Apache-2.0" ]
permissive
yaoxuefeng6/Paddle
1844879647cca7d725b34f2ddf3be65600f5b321
e58619295e82b86795da6d29587a17a3efdc486a
refs/heads/develop
2022-09-06T19:17:26.502784
2020-05-13T03:05:26
2020-05-13T03:05:26
192,290,841
1
0
Apache-2.0
2022-05-23T10:02:47
2019-06-17T06:51:06
C++
UTF-8
Python
false
false
16,559
py
# Copyright (c) 2020 PaddlePaddle Authors. 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 required by appli...
[ "noreply@github.com" ]
noreply@github.com
856bafa4536d68bf54de8ad934805089bf2d0897
0bce7412d58675d6cc410fa7a81c294ede72154e
/Python3/0303. Range Sum Query - Immutable.py
4d1cb2c5dbaf4b75edcda2762e7d6aa9aa227e01
[]
no_license
yang4978/LeetCode
9ddf010b0f1dda32cddc7e94c3f987509dea3214
6387d05b619d403414bad273fc3a7a2c58668db7
refs/heads/master
2022-01-15T04:21:54.739812
2021-12-28T12:28:28
2021-12-28T12:28:28
182,653,666
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
class NumArray: def __init__(self, nums: List[int]): self.temp = [0] for i in nums: self.temp.append(self.temp[-1]+i) def sumRange(self, i: int, j: int) -> int: return self.temp[j+1]-self.temp[i] # Your NumArray object will be instantiated and called as such: # obj = NumA...
[ "noreply@github.com" ]
noreply@github.com
8f9c77950beee2618da50bd408889a1335d8fbae
672dbf4494cbe768dbab566b5b7c2463b589ebf2
/trainer.py
8f40e784a699718c2029c3c854b85e1a4d131d27
[ "MIT" ]
permissive
hongchunchoi/batch-Selection
a8bfe40f170d955328b4a7745dab1dd810adb4a6
4f9c53be17beba5eb595f962acfc3d2e3c7daf2f
refs/heads/main
2023-01-04T04:06:44.399726
2020-10-31T07:34:51
2020-10-31T07:34:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,357
py
import torchvision.transforms as transforms import torch.nn as nn import torch.optim as optim import torch.utils.data from data.data_cifar10 import * from data.data_preprocessing import * import model.resnet as model_res from utils import * import os import copy from tqdm import tqdm_notebook import math import torch...
[ "hongjun0507@gmail.com" ]
hongjun0507@gmail.com
97252502a4b67b2ac61b46dd0e98cf487e79101d
51a46e05a08b98b2a72ba3298b76b89401d06b6d
/somefuncs.py
9da8271e8616c3e9a9263425c00e461eb1eca918
[]
no_license
jenniferskay/public_python_intro_example
c55f55d0feca6869e58e28f2bd3d57e14a6dfc04
dae3b0fed8ad4068b00c664e5bfe9613635859f1
refs/heads/main
2023-02-26T11:36:21.091425
2021-02-03T17:51:11
2021-02-03T17:51:11
335,708,788
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
def leap_year(y): if y <= 1752: return False elif y % 400 == 0: return True elif y % 100 == 0: return False elif y % 4 == 0: return True else: return False def leap_year_print(year): result = leap_year(year) print ("%d is" %year, end = " ")...
[ "kay@rowan.edu" ]
kay@rowan.edu
b37372bff5088484c754d4b56692ab3a74076ace
5f4f837072c3b254f5016102f2b3900b826e5e19
/venv/bin/sqlformat
5f13f9b6b89af131882a158bd3cf75c122296440
[]
no_license
cv121189mav/Chernobyl
f31966d5dc98518e1601190a7ccb9939f46c7f0f
025189c5418e135e7a8bb68ac71a368fdf716b51
refs/heads/master
2020-06-10T03:05:48.336513
2019-08-19T10:51:23
2019-08-19T10:51:23
193,563,033
0
0
null
null
null
null
UTF-8
Python
false
false
256
#!/home/sanya/PycharmProjects/Chernobyl/venv/bin/python # -*- coding: utf-8 -*- import re import sys from sqlparse.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "c121189mavvv@gmail.com" ]
c121189mavvv@gmail.com
328bbba624fbbcc95ddca04da0886d809748ac00
558ee756c44a8e2b76e633991184e35865f6df85
/first.py
5e57b2eb93e43940ec860cf2111701fcd466bf01
[]
no_license
bhagya2207/skillup
2b28963cdb382518deb6c310b80188c029159174
be2b2d63364b9cbe5f08f1f6c6368711ed62fb17
refs/heads/master
2023-07-31T10:46:53.672413
2021-09-30T14:00:49
2021-09-30T14:00:49
287,185,220
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
def gcd(m,n): fm=[] for i in range(1,m+1): if(m%i)==0: fm.append(i) fn=[] for j in range(1,n+1): if(n%j)==0: fn.append(j) cf=[] for f in fm: if f in fn: ...
[ "noreply@github.com" ]
noreply@github.com
a34872366eef2940d0fe7fb1f20ace3c40c37046
6cea30c610cdd9850265db006a8a152713d8b07c
/datasets/dataloader.py
a7c501113351d0d6d476d383792fc94a23825239
[]
no_license
Soongja/kaggle-kr3rd
678baba259041d7e29c35aa704f589ccfd0ff519
fb95bb1897fd1e907b2ad988ccaaf1200b0624b4
refs/heads/master
2020-08-17T21:05:12.976736
2019-10-17T05:49:39
2019-10-17T05:49:39
215,711,764
2
0
null
null
null
null
UTF-8
Python
false
false
685
py
from torch.utils.data import DataLoader from .datasets import CarDataset def get_dataset(config, split, transform): f = globals().get(config.DATA.NAME) return f(config, split, transform) def get_dataloader(config, split, transform=None): dataset = get_dataset(config, split, transform) is_train = ...
[ "david0801@naver.com" ]
david0801@naver.com
1483c70f8cf481de630787ef51a6c1f4c487f996
06ae907153b1e8a28616c8c78731cb8756b9aed1
/apps/logreg_app/views.py
f64304faa802cb288791dcc3a6ef6e19bbba1850
[]
no_license
esershon/zoo_project
48d83aae9c28b3695dc7683b41f4b47716a6ac02
df3aa80644df4e37be86d91b039d9575bf2829d1
refs/heads/master
2020-04-07T14:05:12.991431
2018-11-20T17:57:54
2018-11-20T17:57:54
158,433,507
0
0
null
null
null
null
UTF-8
Python
false
false
3,024
py
from django.shortcuts import render, HttpResponse, redirect from .models import Users from django.contrib import messages import bcrypt import re from apps.zoo_app.models import Zoo def logreg(request): if 'id' in request.session: return redirect('/zoo/') return render(request, 'logreg_app/log_reg.html'...
[ "dorian.latchague@hotmail.com" ]
dorian.latchague@hotmail.com
1330b8006a521b57c1b4577f1e4e79f333fc8971
e1344ad6ed4af310787b0e0a4cc0f8405b448110
/Project1/venv/Scripts/easy_install-3.8-script.py
d007e0c798ff5e9eeaee8379e3f5267f18741e93
[]
no_license
Orlando3011/ECGStatistics
ab227cd1b35de935b4ec79891b7c2c15a32b28f3
567cdc5517b0690e373ffcdfa4b806a3b680c213
refs/heads/master
2020-09-16T12:53:24.534900
2019-12-19T19:08:35
2019-12-19T19:08:35
223,776,224
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
#!"C:\Users\User\Desktop\Studia\Statystyka w Informatyce I\Project1\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv...
[ "34520084+Orlando3011@users.noreply.github.com" ]
34520084+Orlando3011@users.noreply.github.com
cb9d2f18c7974872950ff4c97e3196af1ad48a93
42bcd8ea63fe68f234b95499b5ed0cf64574311d
/basis/进程线程与协程/协程_01_初识.py
68930fb93b608eff2c66a830a1c36551395972ea
[]
no_license
chentongwen/Study-notes
ff1f59a2876d19fb117f6f8498b5b83f3ed7c41a
a0d8467dd559d2a10cfaeea048735d7f2c0670e0
refs/heads/master
2022-12-10T13:27:06.906032
2020-05-19T03:20:25
2020-05-19T03:20:25
223,895,443
0
0
null
2022-12-08T05:28:44
2019-11-25T08:13:48
Jupyter Notebook
UTF-8
Python
false
false
1,543
py
''' 协程:微线程 协程:耗时操作 耗时操作:网络请求,网络下载(爬虫),IO,文件的读写,阻塞 进程>线程>协程 Process Thread 生成器完成 目的:高效的利用CPU 生成器:yield greenlet:完成协程切换任务 gevent: Python通过yield提供了对协程的基本支持,但是不完全。而第三方的gevent为Python提供了比较完善的协程支持。 gevent是第三方库,通过greenlet实现协程,其基本思想是: 当一个greenlet遇到IO操作时,比如访问网络,就自动切换到其他的greenlet,等到IO操作完成,再在适当的时候切换回来继续执行。由于IO操作非常耗时,经常使程序处于...
[ "v-chentongwen" ]
v-chentongwen
5de1423b07fa4d0b5c3f76b91b5c581149702223
4652c312de3bb15e1ed0a1b3a46d1e2f387cf624
/test/ventilator.py
689d4befbfbc8bb547aaf748c166e4d72029b5f1
[]
no_license
tmwsiy2012/playground
162c4dcada1d3b83001c6125ac9984664853481b
4a79ccf94260eb3c6159c47f7745cc7ffba17794
refs/heads/master
2021-01-06T20:43:11.785427
2015-05-10T13:30:33
2015-05-10T13:30:33
15,269,737
0
0
null
null
null
null
UTF-8
Python
false
false
999
py
__author__ = 'tmwsiy' # Task ventilator # Binds PUSH socket to tcp://localhost:5557 # Sends batch of tasks to workers via that socket # # Author: Lev Givon <lev(at)columbia(dot)edu> import zmq import random import time context = zmq.Context() # Socket to send messages on sender = context.socket(zmq.PUSH) sender.bind...
[ "eddie@eddiedunn.com" ]
eddie@eddiedunn.com
0e83980800fa4206ea124ee5b45151b64b70d08a
cb1ead356d2c82601edad9198d3945579c31be37
/packages/ml_api/env/bin/wheel
59f7dd9b41704861e3daecaecb6bcf768aefe080
[]
no_license
queency-koh/sis-model
7c87f35d8c0000805b9ccde7c523aa70ed3e044b
e53c3757ef00ff81e21fd63e0421c0415151a0d2
refs/heads/master
2023-07-05T02:03:21.703940
2021-02-03T10:34:28
2021-02-03T10:34:28
335,584,996
0
0
null
null
null
null
UTF-8
Python
false
false
289
#!/Users/adela/Desktop/AcademicPerformance/AcademicPerformance/packages/ml_api/env/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "Queency.Koh@iridium-technology.com" ]
Queency.Koh@iridium-technology.com
7abb3e1618a4cf5fa4a3ff1effd477110f9b2e68
04a64e6b792f1ebd2bb0464c9e752641a51326c4
/webui/manage.py
eaa0c5d4375576db458652793a147a7e470d9089
[ "Apache-2.0" ]
permissive
BabyManisha/SivaMani
3f1e60f5123da0d8db197d60204f2eec5db1b0c4
41c916085b19b1006f2786bdfc718f4c787c9d07
refs/heads/master
2021-01-24T16:10:32.063695
2016-05-06T09:46:06
2016-05-06T09:46:06
27,857,360
1
0
null
null
null
null
UTF-8
Python
false
false
252
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vrautotest.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "babymaneesha@gmail.com" ]
babymaneesha@gmail.com
d956771952eed80b045a0369c29b226eac1ad680
a9f3ce38fa6bac4317da099788e5e58dadade2a3
/karlooper/web/application.py
fd6a11591d410cabc640f67767af37e63bc7874a
[]
no_license
MoiraJune/karlooper
2763e40b52fc37f81d23ba2766b4c392242402e6
89ef82cb96070360ebee2bcb398c972b1aef4e58
refs/heads/master
2020-06-25T10:19:24.405902
2017-08-04T11:09:39
2017-08-04T11:09:39
96,974,844
1
0
null
2017-08-04T09:05:17
2017-07-12T06:49:20
Python
UTF-8
Python
false
false
24,623
py
# -*-coding:utf-8-*- """ application ~~~~~~~~~~~ Use this model to initialize web application. Usage ===== >>> from karlooper.web import IOModel >>> from karlooper.web.application import Application >>> application = Application(handlers={}, settings={}, port=8080, log_conf="./config.log") >>> application.run(io_mod...
[ "karlvorndoenitz@gmail.com" ]
karlvorndoenitz@gmail.com
eb9d58142b4d4a3b68b4d62794f1119370838aba
72fb02006301c526469cedbc8159a6f01fd9910f
/uipath_cloud/constants.py
8d895a2808105af68396dd6ba0e6e516e6c85881
[ "MIT" ]
permissive
AndreiBarbuOz/uipath-cloud-sdk
86712e04bfe99a75797d2db89a0f83b40a98f897
c578d5d9c4b670558ca1d44950066c75c6beee71
refs/heads/master
2023-01-10T09:59:16.798054
2020-06-08T10:00:05
2020-06-08T10:00:05
225,782,065
0
0
MIT
2022-12-26T21:34:44
2019-12-04T04:53:28
Python
UTF-8
Python
false
false
284
py
UIPATH_AUTH_URLS = { "cloud.uipath.com": "https://account.uipath.com", "platform.uipath.com": "https://account.uipath.com", "staging.uipath.com": "https://id-preprod.uipath.com", "alpha.uipath.com": "https://id-alpha.uipath.com" } DEFAULT_NETLOC = 'cloud.uipath.com'
[ "andrei.barbu@uipath.com" ]
andrei.barbu@uipath.com
e8e9b414c07f7003b678bf4ec44b579e2822372b
4e1093730eff65a60956330d190c0ad7bf008023
/test_proj/IPsamp/modules/wrapperBaranyiFull.py
9e6d872e2715a5dd3edb3fcb3c20ab7e32bdfca2
[]
no_license
csivilo/IPMP
d37bfee1681877dab629abe3c20c125e4d598c7b
b2ff3617be57fdd9905cee4b2d8c0f04cbe8fbe8
refs/heads/master
2021-01-09T20:21:05.661063
2016-08-12T16:21:01
2016-08-12T16:21:01
61,127,816
0
0
null
null
null
null
UTF-8
Python
false
false
5,160
py
# -*- coding: utf-8 -*- """ Created on Sat Jun 25 18:58:23 2016 @author: Lihan_Huang """ import numpy as np import StaticFullGrowthModel.FitBaranyi as FB import ErrorAnalysis.errorEstimate as EA import ErrorAnalysis.jacobian as JA import ErrorAnalysis.calculateConfidenceIntervals as CI class dataAnalysis(): def _...
[ "carlo@sivilotti.com" ]
carlo@sivilotti.com
cd9461f9d27c44af70924eb7687b5ea401c31b72
d414c3dc3bb280f263b281f8aacedc42dfe62e50
/students/migrations/0003_remove_attendance_image_teacher.py
8b84f852c3c69d72e49d4df337d0ab052b04c62b
[]
no_license
Malekkamoua/Django3.0-SchoolAttendanceSystem
9dc024c250f6cfde5aeb525c7d6c23992bcff2f5
f3c7ca6c006329e21afeaef7b941960b48d92f88
refs/heads/master
2022-11-15T02:54:25.884137
2020-07-08T16:50:51
2020-07-08T16:50:51
278,143,714
0
1
null
null
null
null
UTF-8
Python
false
false
338
py
# Generated by Django 3.0.7 on 2020-06-27 19:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('students', '0002_attendance_image'), ] operations = [ migrations.RemoveField( model_name='attendance_image', name='teacher',...
[ "malekkamoua50@gmail.com" ]
malekkamoua50@gmail.com
f4720184e1664b2c262007bfaf41d3fd904b09a1
1140f0384ae5d1917e45551d7691873d9a30a632
/migrations/versions/d47b5301455b_.py
818f17fdfbe9594e985657f6965fd820df3da7a6
[]
no_license
Leavel/admin_cms
911d865e2a94df4468f87f4eadb18f33dc355788
db4ba4881836243ad8a6219e9c60a3778586b123
refs/heads/master
2022-11-25T01:10:16.108823
2019-12-01T13:39:07
2019-12-01T13:39:07
221,736,968
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
"""empty message Revision ID: d47b5301455b Revises: fdf153778e8c Create Date: 2019-11-21 22:27:07.089679 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd47b5301455b' down_revision = 'fdf153778e8c' branch_labels = None depends_on = None def upgrade(): # ...
[ "1633310934@qq.com" ]
1633310934@qq.com
7871e98f8480ddaec7ab0d3d64ff3ecdf9d6e751
4ca44b7bdb470fcbbd60c2868706dbd42b1984c9
/20.11.23/백준_1018.py
125a30305d44671fe2572d9e6f4d2a4da5de720e
[]
no_license
titiman1013/Algorithm
3b3d14b3e2f0cbc4859029eb73ad959ec8778629
8a67e36931c42422779a4c90859b665ee468255b
refs/heads/master
2023-06-29T17:04:40.015311
2021-07-06T01:37:29
2021-07-06T01:37:29
242,510,483
2
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
import sys; sys.stdin = open('text3.txt', 'r') # def check(x, y): # temp = 0 # color = '' # for p in range(8): # for q in range(8): # if p == 0 and q == 0: # color = arr[x + p][y + q] # continue # if arr[x + p][y + q] == color: # ...
[ "hyunsukr1013@gmail.com" ]
hyunsukr1013@gmail.com
71172b95aeacc51bb8f0d86745320453f19623e9
003d76c84845e42f47dd76cee2476f5da581604e
/plot_nat_mag_mutual.py
44e2e033ff4d6caf574120d72913f6e2c75ccd47
[]
no_license
YangZhou1997/sgxnic-figuredraw
436a09963b816f5ebe4bc5fbca5f5ad9aa6def06
bd913a2a3acb3fe1627e52e3ed69daaf19eed81a
refs/heads/master
2022-09-03T04:47:45.615156
2020-05-27T21:06:48
2020-05-27T21:06:48
200,943,351
0
0
null
null
null
null
UTF-8
Python
false
false
4,223
py
#!/usr/bin/python3 import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt import matplotlib.font_manager as fm from matplotlib import rcParams from collections import defaultdict import brewer2mpl import glob # brewer2mpl.get_map args: set name set type number of colors bmap = b...
[ "yangzhou@g.harvard.edu" ]
yangzhou@g.harvard.edu
693a3e527423baf798db258e5721259b65514025
9b6b4aeb15f30c5b14ffd155a59f99c6d3b62461
/expandybird/test/templates/python_with_exception.py
bf982a82fcbc2a223465ca50dcd0ea310ad8c32e
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
offlinehacker/deployment-manager
edd77e086e4dac608fd9d42f3807793dcfdd215d
248b794c41c8e8f9c58ec9e4033d5780991c89b8
refs/heads/master
2020-04-07T17:33:48.098697
2016-02-16T21:51:04
2016-02-16T21:51:04
52,037,754
1
0
null
2016-02-18T20:50:55
2016-02-18T20:50:55
null
UTF-8
Python
false
false
120
py
"""A python script that raise exceptions. """ def GenerateConfig(unused_context): raise NameError('No file found')
[ "grahamawelch@gmail.com" ]
grahamawelch@gmail.com
16b9d3fbc328cf5c773764022eb697014b9ad4bb
ccc1bb07a8fbf0f7ef7dc6f8fa5ce4d215dba847
/Scripts/sims4communitylib/utils/sims/common_age_utils.py
ea831e676a7ea2d6b81436c44be87b3c2bc0888c
[ "CC-BY-4.0" ]
permissive
JaidenBettencourt/Sims4CommunityLibrary
9ab9b6b2173c4cbf0813a774261ff617d556f109
6818fee38499b66748d3118037b6dbfe17fb571a
refs/heads/master
2022-12-28T04:09:34.034010
2020-09-29T20:34:01
2020-09-29T20:34:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,786
py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from pprint import pformat from typing import Union from s...
[ "ColonolNutty@hotmail.com" ]
ColonolNutty@hotmail.com
b1ffce089b31813438205445653378d3fe681ebe
4f303feb653101bf89f64be50d11beb060b97a0f
/app.py
c962b0bd6155cd7180755012601907e837016ce9
[]
no_license
abdulrahmanabdullah/fyyurapp-fsnd
4850aa9949680b0fd4031728822fb685f59eeef3
e649589dc3e089e557687bf49c3f5ad9ae61338f
refs/heads/master
2022-07-08T09:13:12.452128
2020-05-04T22:06:26
2020-05-04T22:06:26
261,037,975
0
0
null
null
null
null
UTF-8
Python
false
false
21,033
py
#----------------------------------------------------------------------------# # Imports #----------------------------------------------------------------------------# import json import dateutil.parser import babel import datetime from flask import Flask, render_template, request, Response, flash, redirect, url_for, ...
[ "nfs056@gmail.com" ]
nfs056@gmail.com
91e45e105497e90a01f63258bc61dd9638245813
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc121/B/4971858.py
85a9a317171327639376a274c3b93a09195fc306
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
284
py
N,M,C=list(map(int,input().split())) B=list(map(int,input().split())) a=[] for i in range(N): a.append(list(map(int,input().split()))) cnt=0 for k in range(N): sum=0 for j in range(M): sum+=a[k][j]*B[j] if sum+C > 0: cnt+=1 print(cnt)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
e5bd33d43ebe2ebc32a6d00fd7a4f99406a173d3
51c4e0487c3d5dc8d13ec1b83f1d2dc1b2325def
/core/models.py
246e61aaade5ba8b58a9d03a1b4a6393b6792aeb
[]
no_license
haan823/piro12-rock-game
cb422c87a877509dcf7c3ec9bf7f6c99bb619eef
c7a6f375c2ed547337cffdf9c80f0abe171cb13d
refs/heads/master
2020-12-22T21:25:32.505602
2020-01-29T13:15:09
2020-01-29T13:15:09
236,936,486
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
from django.conf import settings from django.contrib.auth.models import User from django.db import models GAME_CHOICES = ( ("",""), ("Rock", "Rock"), ("Scissors", "Scissors"), ("Paper", "Paper"), ) class Game(models.Model): atk_user = models.ForeignKey(User, on_delete=models.CASCADE, related_name=...
[ "bejimil@g.skku.edu" ]
bejimil@g.skku.edu
26d5cb9668fcf0512bf562cee088410ee57c4c85
9a85e9651d076c736fe57b8f957c44fd4a28e2e2
/002,leetcode/leetcode-41.py
ab2082f81548ece8fe19bf0604e0f8f860f4df72
[]
no_license
Jesselinux/Data-Structures-and-Algorithms
609b9230caf8a39290cb3581d1106879ff029add
768c4d5ea75e9dd6aaf5f920accf32adf3355fdd
refs/heads/master
2020-05-21T15:35:36.144829
2019-09-05T06:26:04
2019-09-05T06:26:04
186,094,903
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
# 桶排序思想: class Solution: def firstMissingPositive(self, nums: List[int]) -> int: for i in range(len(nums)): while nums[i] > 0 and nums[i] <= len(nums) and nums[nums[i] - 1] != nums[i]: nums[nums[i] -1], nums[i] = nums[i], nums[nums[i] -1] for i in range(0, len(nums)...
[ "wuchang508@163.com" ]
wuchang508@163.com
1f1e36d1782dd2d48d7740612fbaa48899665423
61c2688ea025c379994c6731f6c71c2250691c1e
/examples/run_glue.py
0cdf73072145f2019d745d136f7ec9272d141c44
[ "Apache-2.0" ]
permissive
graehl/pytorch-transformers
7081da6da4241359dc43fa9616544ffeaec1cba5
59292fe230ee2c2c681b7966bf2bc1f374ce67d4
refs/heads/master
2020-07-13T07:35:51.665570
2020-03-23T20:42:50
2020-03-23T20:42:50
205,034,393
0
0
Apache-2.0
2019-08-28T22:31:04
2019-08-28T22:31:04
null
UTF-8
Python
false
false
49,479
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
[ "graehl@gmail.com" ]
graehl@gmail.com
ca3caa7c12a6f84c96a1a7b23c45b292d618f37a
c85d08088ee5f03e1015bfac6907f8fe5fd0c06e
/dataprofile/migrations/0001_initial.py
d2c87a5a3ba2fa2637b981f991d47b19db7d0831
[]
no_license
ashadchempakath/mahallu
da703dd386b89d6268a0e9e1f75e33e3b8e39015
a6cc7bb945a135fc8d906ccd1b78e328a14bea32
refs/heads/main
2023-04-28T12:26:48.921248
2021-05-26T18:09:33
2021-05-26T18:09:33
371,132,954
0
0
null
null
null
null
UTF-8
Python
false
false
4,399
py
# Generated by Django 3.2.3 on 2021-05-26 11:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Area', fields=[ ...
[ "69307523+ashad1298@users.noreply.github.com" ]
69307523+ashad1298@users.noreply.github.com
df45befb39c24b756ede87e138bb91ad816bac89
1658f312f3aee37c6c4e2714ac081e081e73a7b8
/python/tests/test_opennmt_py.py
a1b239fee4e81e1249e51e7e24abb91909835fbe
[ "MIT" ]
permissive
OpenNMT/CTranslate2
c96ac260e5a910ba8c7bec1f2ad7945599d90ec4
61d34502325bfa3c5ef8a11cd2e391d0efed1bf9
refs/heads/master
2023-08-16T03:02:30.003902
2023-08-04T13:33:06
2023-08-04T13:33:06
210,299,376
1,744
185
MIT
2023-09-13T07:58:59
2019-09-23T08:10:42
C++
UTF-8
Python
false
false
4,904
py
import os import pytest import test_utils import ctranslate2 @test_utils.skip_on_windows def test_opennmt_py_model_conversion(tmp_dir): model_path = os.path.join( test_utils.get_data_dir(), "models", "transliteration-aren-all", "opennmt_py", "aren_7000.pt", ) conv...
[ "noreply@github.com" ]
noreply@github.com
59db4b4e7a837007ae64fb8a2229ee2864181b66
34c1631e386305b871357b5486dda9783ba68b69
/validation-scripts/ice_validator/tests/test_heat_pairs_provided.py
2f4b74a310ea2c8cc321836d1bb2af1e25839e3c
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
onap/archive-vnfsdk-ice
e1e5901d5fafbb6e6f5389860ccf54ead55b5936
5fd4855accef1da2d19dec70c839fdd4080cbcb7
refs/heads/master
2023-06-11T22:17:10.885194
2018-09-21T23:05:10
2018-09-21T23:05:10
159,417,542
0
0
NOASSERTION
2021-06-29T18:25:46
2018-11-28T00:02:55
Python
UTF-8
Python
false
false
2,577
py
# -*- coding: utf8 -*- # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # ========================================...
[ "mickael.jezequel@orange.com" ]
mickael.jezequel@orange.com
7fa7798ed0e4ac978eca4db482f7a53ac16f1ad9
5875613fb52efeea2ef7504cc419e449d343dbc9
/airtable_import.py
088e3f576a90a1cb20d140360401d4846578d4b5
[]
no_license
starzia/bibliometrics
b4026eb5f15b3c88cd22b47e4ffba9805be55b92
01189f0d4803d9291904c9e80a51c2b220744e8a
refs/heads/master
2021-01-23T01:01:53.810804
2018-11-29T18:08:41
2018-11-29T18:08:41
85,865,664
4
0
null
null
null
null
UTF-8
Python
false
false
2,848
py
""" Copy Kellogg Prof data into an Airtable DB for our Research Support CRM """ from csv_professor_sheet import SpreadSheet from web_util import get_json, get_tree, css_select import getpass import requests import json def airtable_import(): # load kellogg prof data profs = SpreadSheet().read_profs() profs...
[ "steve@stevetarzia.com" ]
steve@stevetarzia.com
66339da103bf6f340664187743007f0a9909fb37
2cd2d0350c06550749dcf2eba3f20b36a69ce453
/generator.py
7be843e0e07db48eda010ff357274fc045384471
[]
no_license
MahletK/SuperResolutionDcgan
8f176bdde792f4fc1e99d1735d384c181c4d6495
876127285f462ff7bf1583e5bd0a4fc4d67c4263
refs/heads/master
2020-06-02T15:38:39.161555
2019-06-10T17:15:57
2019-06-10T17:15:57
191,211,904
0
0
null
null
null
null
UTF-8
Python
false
false
1,764
py
import tensorflow as tf from numpy.random import permutation # from discriminator import discriminator # #from generator import generator # from costs_and_vars import costs_and_vars # from BatchGenerator import BatchGenerator # from batch_norm import batch_norm # from conv2d import conv2d def generator(x, is_trainin...
[ "mahletk95@gmail.com" ]
mahletk95@gmail.com
c941fd4bb329932587f018a95bfb7d930e2c6554
21c456c2dd17221da991fd8185fe35a78c197096
/utils/make_jit_functions.py
2f0a099168b57c5457c22c3fce3472172ac10f45
[ "BSD-2-Clause" ]
permissive
robieta/pytorch_historic_benchmarks
1fffacaa914749ba5041c9d35a1ee5a46c9e504d
e36f3a77935fb7f1ba6b4da62d09beadf9a2b18e
refs/heads/master
2023-08-03T13:13:54.623950
2021-09-13T16:31:44
2021-09-13T16:31:44
296,154,414
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
import torch def make_globals(stmt: str): if "# TS: script fn `x + 1`" in stmt: def fn(y: torch.Tensor): return y + 1 model = torch.jit.script(fn) # JIT doesn't like imports before the model definition. from torch.utils.benchmark import CopyIfCallgrind return {...
[ "taylorrobie@fb.com" ]
taylorrobie@fb.com
b8060398c5a7b96d89467b6910ce5c6b721bfcdd
b35831afb2c0ad70f3e24f185f3d23e89786afe3
/utils/runner.py
dafaf5e30dd83f564a9352674500823c4eceb972
[ "MIT" ]
permissive
lapic-ufjf/evolutionary-ACS-benchmark
daf4c59f6c4e267daa7fed46495be17e237465a9
0c13f3493819db3baa512268d80b099f9d31b952
refs/heads/master
2022-11-19T02:37:52.386132
2022-11-09T20:28:42
2022-11-09T20:28:42
249,778,084
2
1
MIT
2022-11-09T20:28:44
2020-03-24T17:48:52
Python
UTF-8
Python
false
false
6,265
py
import random import numpy as np def run_method(method_function, fitness_function, instance, config, num_repetitions, seed=0, result_format='simple', verbose=False, **kwargs): best_fitness = [] partial_fitness = [] perf_counter = [] process_time = [] cost_value = [] out_info = {} select...
[ "martins.adw@gmail.com" ]
martins.adw@gmail.com
b93689c0be7a720edd4a7d4908073df64f921dc6
29a4c1e436bc90deaaf7711e468154597fc379b7
/modules/ieee/doc/ulpdist.py
ac366398b04284aadd5b1cb7da038ae261d73daf
[ "BSL-1.0" ]
permissive
brycelelbach/nt2
31bdde2338ebcaa24bb76f542bd0778a620f8e7c
73d7e8dd390fa4c8d251c6451acdae65def70e0b
refs/heads/master
2021-01-17T12:41:35.021457
2011-04-03T17:37:15
2011-04-03T17:37:15
1,263,345
1
0
null
null
null
null
UTF-8
Python
false
false
1,870
py
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '2', 'call_types' : [], 'ret_arity' : '0', 'rturn' : { 'default' : 'typename boost::result_of<nt2::meta::arithmetic(T)>::type', }, 'simd_types' : ['real_'], 'type_...
[ "jtlapreste@gmail.com" ]
jtlapreste@gmail.com