hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
0660694db2ddc7b0023f6b169f47cbe6fc31c8a7
916
py
Python
topo.py
rahil-g/gpf
234c22f500283f75454ccba4a12b765be9ddad05
[ "MIT" ]
null
null
null
topo.py
rahil-g/gpf
234c22f500283f75454ccba4a12b765be9ddad05
[ "MIT" ]
null
null
null
topo.py
rahil-g/gpf
234c22f500283f75454ccba4a12b765be9ddad05
[ "MIT" ]
null
null
null
#Author: Rahil Gandotra #This file consists of the custom Mininet topology used for GPF. from mininet.topo import Topo class MyTopo(Topo): def __init__(self): Topo.__init__(self) h1 = self.addHost('h1') h2 = self.addHost('h2') s1 = self.addSwitch('s1', listenPort=6675, dpid='0000...
31.586207
75
0.622271
750
0.818777
0
0
0
0
0
0
213
0.232533
0661891491bb2243d237b2af57e0f78a53d8f98b
250
py
Python
globe/util/clock.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
null
null
null
globe/util/clock.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
14
2018-04-06T16:19:38.000Z
2018-04-09T18:59:08.000Z
globe/util/clock.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
null
null
null
def timeNow(): import time rightNow = time.localtime(time.time()) date = time.strftime("%a %b %d", rightNow) time = time.strftime("%H:%M:%S", rightNow) timeStamp = { "time": time, "date": date } print timeStamp['time'] return timeStamp
17.857143
43
0.644
0
0
0
0
0
0
0
0
38
0.152
0661b5f4de7b9d1818fd8ebe0cb07e2e58e19d2a
10,819
py
Python
Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py
jippo015/Sub-Zero.bundle
734e0f7128c05c0f639e11e7dfc77daa1014064b
[ "MIT" ]
1,553
2015-11-09T02:17:06.000Z
2022-03-31T20:24:52.000Z
Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py
saiterlz/Sub-Zero.bundle
1a0bb9c3e4be84be35d46672907783363fe5a87b
[ "MIT" ]
691
2015-11-05T21:32:26.000Z
2022-03-17T10:52:45.000Z
Contents/Libraries/Shared/subliminal_patch/providers/legendastv.py
saiterlz/Sub-Zero.bundle
1a0bb9c3e4be84be35d46672907783363fe5a87b
[ "MIT" ]
162
2015-11-06T19:38:55.000Z
2022-03-16T02:42:41.000Z
# coding=utf-8 import logging import rarfile import os from subliminal.exceptions import ConfigurationError from subliminal.providers.legendastv import LegendasTVSubtitle as _LegendasTVSubtitle, \ LegendasTVProvider as _LegendasTVProvider, Episode, Movie, guess_matches, guessit, sanitize, region, type_map, \ r...
41.136882
118
0.574175
10,264
0.948701
0
0
4,118
0.380627
0
0
2,131
0.196968
06631addf22bfb69f24be36f23cfcd2fff2aa5f2
1,587
py
Python
Position.py
bubakazouba/Robinhood-for-Google-Finance
4e0aa8955e4bc786a8528ea500459f5937f15a96
[ "MIT" ]
5
2017-11-24T08:13:47.000Z
2021-05-05T04:48:30.000Z
Position.py
bubakazouba/Robinhood-for-Google-Finance
4e0aa8955e4bc786a8528ea500459f5937f15a96
[ "MIT" ]
null
null
null
Position.py
bubakazouba/Robinhood-for-Google-Finance
4e0aa8955e4bc786a8528ea500459f5937f15a96
[ "MIT" ]
null
null
null
import re class Position(object): def __init__(self): self.total_in = None self.total_out = None self.ticker_symbol = None self.total_number_of_shares = None self.remaining_number_of_shares = None self.open_date = None self.close_date = None def format_d...
44.083333
352
0.63264
1,576
0.993069
0
0
0
0
0
0
84
0.05293
066587c08345eadec5ce3298131ac1c2190623fb
15,789
py
Python
app_framework/main_window.py
planktontoolbox/plankton-toolbox
626930120329983fb9419a9aed94712148bac219
[ "MIT" ]
5
2016-12-02T08:24:35.000Z
2021-02-24T08:41:41.000Z
app_framework/main_window.py
planktontoolbox/plankton-toolbox
626930120329983fb9419a9aed94712148bac219
[ "MIT" ]
53
2016-11-14T13:11:41.000Z
2022-01-13T09:28:11.000Z
app_framework/main_window.py
planktontoolbox/plankton-toolbox
626930120329983fb9419a9aed94712148bac219
[ "MIT" ]
1
2020-11-27T01:20:10.000Z
2020-11-27T01:20:10.000Z
#!/usr/bin/python3 # -*- coding:utf-8 -*- # Project: http://plankton-toolbox.org # Copyright (c) 2010-2018 SMHI, Swedish Meteorological and Hydrological Institute # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). import time import codecs from PyQt5 import QtWidgets from PyQt5 i...
44.601695
104
0.611565
15,342
0.971689
0
0
0
0
0
0
5,370
0.34011
0665edd3f6dbbe3c348e0f2328bbc74630f84ac0
481
py
Python
Traits/manual/this.py
marshallmcdonnell/interactive_plotting
35e9a781fa1a7328679794d27e24e194e35c012b
[ "MIT" ]
null
null
null
Traits/manual/this.py
marshallmcdonnell/interactive_plotting
35e9a781fa1a7328679794d27e24e194e35c012b
[ "MIT" ]
null
null
null
Traits/manual/this.py
marshallmcdonnell/interactive_plotting
35e9a781fa1a7328679794d27e24e194e35c012b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # this.py --- Example of This predefined trait from traits.api import HasTraits, This class Employee(HasTraits): manager = This #--------------------------------------- # Extrat class Executive(Employee): pass fred = Employee() mary = Executive() # The following is OK, because fred's...
20.041667
60
0.665281
80
0.16632
0
0
0
0
0
0
269
0.559252
06669e5cbe5823ce5ec6dea9345b3539ee4591b9
1,443
py
Python
two_buckets_and_a_lambda/terraform/lambdas/credentials-lambda.py
chariotsolutions/aws-examples
0c0945966f3e1b118ba5db948d5db3e304bc2ac3
[ "MIT" ]
6
2020-05-20T13:58:35.000Z
2022-02-04T13:25:05.000Z
two_buckets_and_a_lambda/terraform/lambdas/credentials-lambda.py
chariotsolutions/aws-examples
0c0945966f3e1b118ba5db948d5db3e304bc2ac3
[ "MIT" ]
1
2021-09-02T21:19:10.000Z
2021-09-02T21:19:10.000Z
two_buckets_and_a_lambda/terraform/lambdas/credentials-lambda.py
chariotsolutions/aws-examples
0c0945966f3e1b118ba5db948d5db3e304bc2ac3
[ "MIT" ]
3
2019-11-14T21:03:15.000Z
2022-01-17T19:12:02.000Z
import boto3 import json import logging import os bucket = os.environ['UPLOAD_BUCKET'] role_arn = os.environ['ASSUMED_ROLE_ARN'] sts_client = boto3.client('sts') logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) def lambda_handler(event, context): body ...
27.226415
105
0.546778
0
0
0
0
0
0
0
0
481
0.333333
066b73292bddecff1f5b7768febdea7bae1b1c84
173
py
Python
tests/src/year2017/test_day05b.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
10
2017-12-11T17:54:52.000Z
2021-12-09T20:16:30.000Z
tests/src/year2017/test_day05b.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
260
2015-12-09T11:03:03.000Z
2021-12-12T14:32:23.000Z
tests/src/year2017/test_day05b.py
lancelote/advent_of_code
06dda6ca034bc1e86addee7798bb9b2a34ff565b
[ "Unlicense" ]
null
null
null
"""2017 - Day 5 Part 2: A Maze of Twisty Trampolines, All Alike tests.""" from src.year2017.day05b import solve def test_solve(): assert solve("0\n3\n0\n1\n-3") == 10
24.714286
73
0.676301
0
0
0
0
0
0
0
0
89
0.514451
066ba314a42c5ac31373da270a9eb728c97a0653
1,374
py
Python
tests/test_signal.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
tests/test_signal.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
tests/test_signal.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
1
2021-12-26T12:57:01.000Z
2021-12-26T12:57:01.000Z
import unittest from manticore.utils.event import Signal class Sender(object): def __init__(self): self.sig = Signal() self.sig2 = Signal() class ManticoreDriver(unittest.TestCase): def setUp(self): self.state = {} def tearDown(self): pass def setReceived(self, key,...
19.628571
56
0.569869
1,310
0.953421
0
0
0
0
0
0
96
0.069869
066e5fb8233dc5224d22ebf3b89a9a83782274aa
745
py
Python
TITADOweb/web/migrations/0005_passwordresetcodes.py
KomeilParseh/TITA-DO
714685fa18bfd2ef07f5c0d656927039b05d7997
[ "MIT" ]
9
2020-08-27T10:10:11.000Z
2021-04-21T04:46:15.000Z
TITADOweb/web/migrations/0005_passwordresetcodes.py
mdk1384/TITA-DO-1
714685fa18bfd2ef07f5c0d656927039b05d7997
[ "MIT" ]
2
2020-08-27T12:09:57.000Z
2021-01-05T09:29:19.000Z
TITADOweb/web/migrations/0005_passwordresetcodes.py
mdk1384/TITA-DO-1
714685fa18bfd2ef07f5c0d656927039b05d7997
[ "MIT" ]
2
2020-08-27T10:10:18.000Z
2021-01-01T06:20:20.000Z
# Generated by Django 3.1.4 on 2020-12-27 17:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0004_token'), ] operations = [ migrations.CreateModel( name='Passwordresetcodes', fields=[ ('...
29.8
114
0.561074
652
0.875168
0
0
0
0
0
0
131
0.175839
0672220769ef18bb8f7d78e648bf612a87c0cd49
253
py
Python
setup.py
SodakDoubleD/dbprime
76d2824adbe0f10d6ad04a5607a07f36874389c7
[ "MIT" ]
null
null
null
setup.py
SodakDoubleD/dbprime
76d2824adbe0f10d6ad04a5607a07f36874389c7
[ "MIT" ]
null
null
null
setup.py
SodakDoubleD/dbprime
76d2824adbe0f10d6ad04a5607a07f36874389c7
[ "MIT" ]
null
null
null
from distutils.core import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name="dbprime", version="0.1dev", author="Dalton Dirkson", author_email="[email protected]", packages=["dbprime",], )
19.461538
42
0.652174
0
0
0
0
0
0
0
0
80
0.316206
0672274e210ffb823f4cb0faec6bba2fb13a9739
2,491
py
Python
008.py
ThomasB123/Project-Euler
ca6786513f210e79fe55417ed43797ffb24610af
[ "MIT" ]
null
null
null
008.py
ThomasB123/Project-Euler
ca6786513f210e79fe55417ed43797ffb24610af
[ "MIT" ]
null
null
null
008.py
ThomasB123/Project-Euler
ca6786513f210e79fe55417ed43797ffb24610af
[ "MIT" ]
null
null
null
# Largest product in a series ''' The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 1254069874715852386305071...
67.324324
1,011
0.934163
0
0
0
0
0
0
0
0
2,318
0.929431
067270cf798fc12d58fd8f1dd276c3807b8272a4
4,102
py
Python
tfsnippet/utils/misc.py
Feng37/tfsnippet
70c7dc5c8c8f6314f9d9e44697f90068417db5cd
[ "MIT" ]
null
null
null
tfsnippet/utils/misc.py
Feng37/tfsnippet
70c7dc5c8c8f6314f9d9e44697f90068417db5cd
[ "MIT" ]
null
null
null
tfsnippet/utils/misc.py
Feng37/tfsnippet
70c7dc5c8c8f6314f9d9e44697f90068417db5cd
[ "MIT" ]
null
null
null
import os import re from contextlib import contextmanager import numpy as np import six __all__ = ['humanize_duration', 'camel_to_underscore', 'NOT_SET', 'cached_property', 'clear_cached_property', 'maybe_close', 'iter_files'] def humanize_duration(seconds): """ Format specified time d...
25.962025
73
0.573623
120
0.029254
1,304
0.317894
581
0.141638
0
0
1,705
0.415651
0673b5944cf3b730042b94eae2844b3646f79c99
54,598
py
Python
spaic/Backend/Backend.py
ZhejianglabNCRC/SPAIC
5a08328adcc5a197316cf353746bae7ab6865337
[ "Apache-2.0" ]
3
2022-03-01T03:04:25.000Z
2022-03-01T03:07:15.000Z
spaic/Backend/Backend.py
ZhejianglabNCRC/SPAIC
5a08328adcc5a197316cf353746bae7ab6865337
[ "Apache-2.0" ]
null
null
null
spaic/Backend/Backend.py
ZhejianglabNCRC/SPAIC
5a08328adcc5a197316cf353746bae7ab6865337
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 2020/8/6 @project: SPAIC @filename: Backend @author: Hong Chaofei @contact: [email protected] @description: 定义网络仿真使用的backend,如 Pytorch, Tensorflow, CUDA, 达尔文芯片等,以及相应的微分方程求解方法比如 Euler, 2阶 Runge-Kutta等 """ from abc import abstractmethod, ABC from collections import OrderedDict from ...
36.447263
218
0.54502
54,185
0.987768
0
0
11,817
0.215419
0
0
24,952
0.454864
0673b6dfdd8c195674ae3591ed3bb93d152c2801
1,257
py
Python
yuz_egitimi.py
mehdikosaca/yuz_tanima
d2d7828a1f5562d21acde3af8df60ec96a88e7c3
[ "Apache-2.0" ]
2
2021-12-30T06:38:21.000Z
2021-12-30T06:39:24.000Z
yuz_egitimi.py
mehdikosaca/yuz_tanima
d2d7828a1f5562d21acde3af8df60ec96a88e7c3
[ "Apache-2.0" ]
null
null
null
yuz_egitimi.py
mehdikosaca/yuz_tanima
d2d7828a1f5562d21acde3af8df60ec96a88e7c3
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np from PIL import Image import os #Verilerin yolu path = "veriseti" recognizer = cv2.face.LBPHFaceRecognizer_create() detector = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml') #imajların alınması ve etiketlenmesi için fonksiyon def getImageAndLabels(pa...
36.970588
97
0.706444
0
0
0
0
0
0
0
0
457
0.355642
06743547989129e1af7ae30ff01eaf04b4056ad2
1,846
py
Python
hello.py
jferroaq/Tarea7z
013f1f1e8dc3b631be102d6e5731d2ffdffd3657
[ "Apache-2.0" ]
null
null
null
hello.py
jferroaq/Tarea7z
013f1f1e8dc3b631be102d6e5731d2ffdffd3657
[ "Apache-2.0" ]
null
null
null
hello.py
jferroaq/Tarea7z
013f1f1e8dc3b631be102d6e5731d2ffdffd3657
[ "Apache-2.0" ]
null
null
null
import kivy from kivy.app import App from kivy.uix.button import Label from kivy.uix.colorpicker import ColorPicker from kivy.graphics import Color, Ellipse, Triangle from kivy.properties import StringProperty, ObjectProperty class Titulo(Label): cadena=StringProperty("Jesus te ama...") triangle=ObjectProperty(Non...
25.287671
65
0.62026
1,551
0.840195
0
0
0
0
0
0
161
0.087216
0674d6e58cd606f3c44fa44647eb41365904b800
356
py
Python
mundo-02/aula13-ex054.py
fabiocoutoaraujo/CursoVideoPython
7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf
[ "MIT" ]
1
2020-04-18T16:39:23.000Z
2020-04-18T16:39:23.000Z
mundo-02/aula13-ex054.py
fabiocoutoaraujo/CursoVideoPython
7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf
[ "MIT" ]
null
null
null
mundo-02/aula13-ex054.py
fabiocoutoaraujo/CursoVideoPython
7e3b6ab89cbbba79f640d12e40f3d1e8c22295cf
[ "MIT" ]
null
null
null
from datetime import date maior = menor = 0 atual = date.today().year for c in range(1, 8): nascimento = int(input(f'Em que ano a {c}ª pessoa nasceu? ')) if atual - nascimento > 20: maior += 1 else: menor += 1 print(f'Ao todo, temos {maior} pessoas maiores de idade!') print(f'Ao todo, temos ...
29.666667
65
0.63764
0
0
0
0
0
0
0
0
139
0.389356
0675b9a64430a3b476aa0125ccfd22711ba0b255
6,356
py
Python
Contents/Code/zdfneo.py
typekitrel/abctestard
1df43561327694ba155f513ad152aab51c56ef42
[ "MIT" ]
null
null
null
Contents/Code/zdfneo.py
typekitrel/abctestard
1df43561327694ba155f513ad152aab51c56ef42
[ "MIT" ]
null
null
null
Contents/Code/zdfneo.py
typekitrel/abctestard
1df43561327694ba155f513ad152aab51c56ef42
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # zdfneo.py - Aufruf durch __init__.py/ZDF_get_content # # Die Funktionen dienen zur Auswertung der ZDF-Neo-Seiten # Neo_Base = 'https://www.neo-magazin-royale.de' PREFIX = '/video/ardmediathek2016/zdfneo' ##################################################################################...
43.834483
112
0.660321
0
0
0
0
5,474
0.858532
0
0
2,690
0.421895
067c09b6f2a552b9aa72b55a71741cdde3c0cbee
8,732
py
Python
luna/mol/atom.py
keiserlab/LUNA
ab2a968550f3f91107f8a91ad00da6aa3e2df68b
[ "MIT" ]
2
2022-03-23T13:34:36.000Z
2022-03-27T22:21:08.000Z
luna/mol/atom.py
keiserlab/LUNA
ab2a968550f3f91107f8a91ad00da6aa3e2df68b
[ "MIT" ]
1
2022-03-22T19:29:50.000Z
2022-03-22T19:29:50.000Z
luna/mol/atom.py
keiserlab/LUNA
ab2a968550f3f91107f8a91ad00da6aa3e2df68b
[ "MIT" ]
null
null
null
import numpy as np from openbabel import openbabel as ob import logging logger = logging.getLogger() class AtomData: """Store atomic data (atomic number, coordinates, bond type, and serial number). Parameters ---------- atomic_num : int Atomic number. coord : array_like of float (size 3)...
34.928
122
0.61475
8,624
0.987632
0
0
2,811
0.321919
0
0
4,091
0.468507
067d4e2d3158aba74160b531385178fe32b82215
1,379
py
Python
src/cogs/example_cog.py
Abaan404/MagmaBot
2149f6ad8a6a1158112ab9efb4dc77c04c3a5f8e
[ "MIT" ]
1
2021-10-03T21:05:45.000Z
2021-10-03T21:05:45.000Z
src/cogs/example_cog.py
Abaan404/MagmaBot
2149f6ad8a6a1158112ab9efb4dc77c04c3a5f8e
[ "MIT" ]
null
null
null
src/cogs/example_cog.py
Abaan404/MagmaBot
2149f6ad8a6a1158112ab9efb4dc77c04c3a5f8e
[ "MIT" ]
null
null
null
import discord, itertools from discord.ext import commands, tasks # Lava is not allowed to change the first text PRESENCE_TEXT = itertools.cycle(["lava is cute", "*pushes you against wall* wanna play fortnite amongus?", "with ur mum", "owo.exe", "dangit jelly", "gewrhgkhewghkhfuckoiyo5uo", "MiEWcWAFT?? OWOWO"]) class...
35.358974
199
0.645395
1,013
0.73459
0
0
827
0.59971
685
0.496737
616
0.446701
067de1744accb6c29040ae07655261d1c6513b87
33,808
py
Python
Public_accessV3.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
1
2021-03-31T00:35:00.000Z
2021-03-31T00:35:00.000Z
Public_accessV3.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
null
null
null
Public_accessV3.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
2
2020-01-30T09:40:36.000Z
2021-04-16T09:36:40.000Z
# Aim is to apply a multiplier to the natural capital scores to reflect the degree of public access # Challenge is that it is difficult to clip or intersect the complex public access layer with the large and # detailed OSMM-based base map - it takes days to run and then fails. # So here we extract a subset of the base ...
60.479428
141
0.664458
0
0
0
0
0
0
0
0
18,797
0.555993
067f96e0223f4a4ef755767aa7893138791277ee
3,688
py
Python
old_site/import/scraper.py
basilleaf/dailyrings
e970ee7771bd1fb60b07f8208b2ffc4866779e88
[ "MIT" ]
null
null
null
old_site/import/scraper.py
basilleaf/dailyrings
e970ee7771bd1fb60b07f8208b2ffc4866779e88
[ "MIT" ]
3
2018-04-27T04:11:13.000Z
2018-04-28T01:26:57.000Z
old_site/import/scraper.py
basilleaf/dailyrings
e970ee7771bd1fb60b07f8208b2ffc4866779e88
[ "MIT" ]
null
null
null
""" this script parses the pds-rings press release gallery tree at base_url = "http://pds-rings.seti.org/saturn/cassini/" if an image already exists in the database it is updated to get only the most recent month set latest_month_only to True """ latest_month_only = True # like I was really going to do this monthly ...
33.225225
182
0.639371
0
0
0
0
0
0
0
0
1,158
0.313991
068506b54ed89a62c865b814f0418d72003474e6
856
py
Python
packit_dashboard/api/routes.py
lbarcziova/dashboard
6ad1141a475d68b081a4fa2ceec5363678ae4e38
[ "MIT" ]
null
null
null
packit_dashboard/api/routes.py
lbarcziova/dashboard
6ad1141a475d68b081a4fa2ceec5363678ae4e38
[ "MIT" ]
null
null
null
packit_dashboard/api/routes.py
lbarcziova/dashboard
6ad1141a475d68b081a4fa2ceec5363678ae4e38
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify, request from packit_dashboard.utils import return_json from packit_dashboard.config import API_URL api = Blueprint("api", __name__) # The react frontend will request information here instead of fetching directly # from the main API. # This is because it will be easier to implemen...
31.703704
79
0.731308
0
0
0
0
479
0.559579
0
0
392
0.457944
0687517d0be83d1b02e62dee6d9d45a4dee1e6e1
4,959
py
Python
auth/util.py
prajask/Find-Your-Doctor
a4fc682a1757d83bd62b9daea7476f97db91ffb8
[ "MIT" ]
1
2020-09-10T10:52:21.000Z
2020-09-10T10:52:21.000Z
auth/util.py
prajask/find-your-doctor
a4fc682a1757d83bd62b9daea7476f97db91ffb8
[ "MIT" ]
null
null
null
auth/util.py
prajask/find-your-doctor
a4fc682a1757d83bd62b9daea7476f97db91ffb8
[ "MIT" ]
null
null
null
""" Authentication Utility Functions """ from flask import session from models import Patient, Doctor, Degree, database import hashlib, binascii from config import SECRET_KEY def get_degrees(): return [ degree.to_dict() for degree in Degree.query.all() ] def register_user(user_data): registration_details = ...
32.201299
154
0.689655
0
0
0
0
0
0
0
0
675
0.136116
06875fe7ae608373332a8fb7606601d9cb556ce3
267
py
Python
cctbx/eltbx/covalent_radii.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
2
2021-03-18T12:31:57.000Z
2022-03-14T06:27:06.000Z
cctbx/eltbx/covalent_radii.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/eltbx/covalent_radii.py
hbrunie/cctbx_project
2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5
[ "BSD-3-Clause-LBNL" ]
1
2021-03-26T12:52:30.000Z
2021-03-26T12:52:30.000Z
from __future__ import absolute_import, division, print_function import boost.python ext = boost.python.import_ext("cctbx_eltbx_covalent_radii_ext") from cctbx_eltbx_covalent_radii_ext import * boost.python.inject(ext.table_iterator, boost.python.py3_make_iterator)
38.142857
71
0.861423
0
0
0
0
0
0
0
0
32
0.11985
068765a77334bb8b750cf60699365fc4fc30858b
4,004
py
Python
player.py
akrabio/NBANormalizedStats
de5fb5243e9e26e4d534c319ea984712a908cadc
[ "MIT" ]
null
null
null
player.py
akrabio/NBANormalizedStats
de5fb5243e9e26e4d534c319ea984712a908cadc
[ "MIT" ]
null
null
null
player.py
akrabio/NBANormalizedStats
de5fb5243e9e26e4d534c319ea984712a908cadc
[ "MIT" ]
null
null
null
from nba_py import player from numpy import mean import league from consts import all_time_stats import consts name_to_index = {'season': 1, consts.rebounds: 20, consts.assists: 21, consts.steals: 22, consts.blocks: 23, consts.points: 26} class Player: def __init__(self, first, last): print 'Getting {} ...
43.521739
130
0.623876
2,000
0.4995
0
0
0
0
0
0
339
0.084665
0687810d3ca357eb81c8f40b9ee9e277ec90842e
3,668
py
Python
examples/mag_wmm2015.py
CHEN-Zhaohui/geoist
06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b
[ "MIT" ]
53
2018-11-17T03:29:55.000Z
2022-03-18T02:36:25.000Z
examples/mag_wmm2015.py
CHEN-Zhaohui/geoist
06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b
[ "MIT" ]
3
2018-11-28T11:37:51.000Z
2019-01-30T01:52:45.000Z
examples/mag_wmm2015.py
CHEN-Zhaohui/geoist
06a00db3e0ed3d92abf3e45b7b3bfbef6a858a5b
[ "MIT" ]
35
2018-11-17T03:29:57.000Z
2022-03-23T17:57:06.000Z
# -*- coding: utf-8 -*- """ Created on Thu Jan 10 18:34:07 2019 计算WMM2015模型,WMM.cof文件需要放到与py相同目录 @author: chens """ import numpy as np from pathlib import Path import xarray import ctypes as ct import sys import datetime from matplotlib.pyplot import figure #libwmm = ct.cdll.LoadLibrary(str('D:\\MyWorks\\WMM2015-mast...
33.045045
109
0.571156
0
0
0
0
0
0
0
0
680
0.183784
0688619f7ef43b02605de1e45f9fd553d9142b12
3,089
py
Python
test/e2e/tests/test_transit_gateway.py
timbyr/ec2-controller
d96d056fdc6ec7d31981f4c14cad8d740f6cf6ec
[ "Apache-2.0" ]
14
2021-08-04T00:21:49.000Z
2022-03-21T01:06:09.000Z
test/e2e/tests/test_transit_gateway.py
timbyr/ec2-controller
d96d056fdc6ec7d31981f4c14cad8d740f6cf6ec
[ "Apache-2.0" ]
48
2021-08-03T19:00:42.000Z
2022-03-31T22:18:42.000Z
test/e2e/tests/test_transit_gateway.py
timbyr/ec2-controller
d96d056fdc6ec7d31981f4c14cad8d740f6cf6ec
[ "Apache-2.0" ]
9
2021-07-22T15:49:43.000Z
2022-03-06T22:24:14.000Z
# Copyright Amazon.com Inc. or its affiliates. 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. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
30.89
100
0.697637
1,323
0.428294
0
0
1,439
0.465847
0
0
1,019
0.32988
06897ca4a2ea127df4c4fbdc8e71310f23dfe61f
2,862
py
Python
Phase 4/src/search.py
ishaanshah/GameDhaBha
5ab4f13ec7554ba74739d9a149da1154bb09041a
[ "MIT" ]
null
null
null
Phase 4/src/search.py
ishaanshah/GameDhaBha
5ab4f13ec7554ba74739d9a149da1154bb09041a
[ "MIT" ]
null
null
null
Phase 4/src/search.py
ishaanshah/GameDhaBha
5ab4f13ec7554ba74739d9a149da1154bb09041a
[ "MIT" ]
null
null
null
""" Contains all the functions related to the search of enitities in the Database """ from tabulate import tabulate def SearchPlayerByName(cur, con): """ Searches for the provided name's similar occurences in the Player's first and last name """ # Take in the input for the search query search = {} s...
25.327434
99
0.568484
0
0
0
0
0
0
0
0
1,357
0.474144
068a35a559d65ea89371c4e0284f743170c94d8d
15,413
py
Python
machine/qemu/sources/u-boot/test/py/tests/test_efi_fit.py
muddessir/framework
5b802b2dd7ec9778794b078e748dd1f989547265
[ "MIT" ]
1
2021-11-21T19:56:29.000Z
2021-11-21T19:56:29.000Z
machine/qemu/sources/u-boot/test/py/tests/test_efi_fit.py
muddessir/framework
5b802b2dd7ec9778794b078e748dd1f989547265
[ "MIT" ]
null
null
null
machine/qemu/sources/u-boot/test/py/tests/test_efi_fit.py
muddessir/framework
5b802b2dd7ec9778794b078e748dd1f989547265
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2019, Cristian Ciocaltea <[email protected]> # # Work based on: # - test_net.py # Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. # - test_fit.py # Copyright (c) 2013, Google Inc. # # Test launching UEFI binaries from FIT images. """ Note: This...
33.579521
99
0.594693
0
0
0
0
11,850
0.768832
0
0
9,550
0.619607
068bed0bd09441343b0ab11a87d3f70ca8cbcf66
2,234
py
Python
data_dictionary/data_dictionary.py
georgetown-analytics/DC-Bikeshare
9f5a6a3256cff15a29f0dca6e9a9d8098ab2df28
[ "MIT" ]
11
2018-07-01T16:43:05.000Z
2020-07-17T19:08:16.000Z
data_dictionary/data_dictionary.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2021-02-08T20:21:12.000Z
2021-12-13T19:47:04.000Z
data_dictionary/data_dictionary.py
noahnewberger/Bikeshare-DC
42676654d103cdaddfb76db76d1eece533251261
[ "MIT" ]
5
2018-10-05T19:54:20.000Z
2020-10-27T11:54:09.000Z
#!/usr/bin/env python import report, sys import psycopg2.extras parser = report.get_parser(sys.argv[0]) parser.add_argument('--title', '-t', required=False, dest='title', default="Data Dictionary", help='Report Title') args = parser.parse_args() conn = report.get_connection(args) curs = conn.cursor(cursor_factory=p...
29.394737
114
0.637422
0
0
0
0
0
0
0
0
1,373
0.614593
068d0a9c6eb823b33105c8883388612ae4b08f65
1,112
py
Python
LeetCode/InsertionLL.py
Jaidev810/Competitive-Questions
5d5b28be69e8572e9b4353e9790ee39b56769fc3
[ "MIT" ]
1
2021-02-27T06:12:55.000Z
2021-02-27T06:12:55.000Z
LeetCode/InsertionLL.py
Jaidev810/Competitive-Questions
5d5b28be69e8572e9b4353e9790ee39b56769fc3
[ "MIT" ]
1
2021-02-02T08:52:17.000Z
2021-02-03T08:19:12.000Z
LeetCode/InsertionLL.py
Jaidev810/Competitive-Questions
5d5b28be69e8572e9b4353e9790ee39b56769fc3
[ "MIT" ]
null
null
null
class LinkedList: def __init__(self, data, next='None'): self.data = data self.next = next def takeinputLL(): inputlist = [int(x) for x in input().split()] head = None temp = None for cur in inputlist: if cur == -1: break Newnode = LinkedList(cur) ...
19.508772
52
0.522482
110
0.098921
0
0
0
0
0
0
16
0.014388
068db78fb9e1cc510a957bc841fd463a0fc7de6a
2,581
py
Python
migrations/versions/458a7da0c9da_.py
dmiklic/psiholeks-web
68dda07228a53790ab1e797336bb236031a544de
[ "MIT" ]
null
null
null
migrations/versions/458a7da0c9da_.py
dmiklic/psiholeks-web
68dda07228a53790ab1e797336bb236031a544de
[ "MIT" ]
1
2018-05-01T09:15:12.000Z
2018-05-01T09:25:03.000Z
migrations/versions/458a7da0c9da_.py
dmiklic/psiholeks-web
68dda07228a53790ab1e797336bb236031a544de
[ "MIT" ]
null
null
null
"""empty message Revision ID: 458a7da0c9da Revises: Create Date: 2018-05-01 21:15:27.029811 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '458a7da0c9da' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
46.089286
109
0.720651
0
0
0
0
0
0
0
0
1,220
0.472685
068dc5e7fc605c5cd770756e1c906e8ce442fab3
110
py
Python
lab_01/ngrams.py
Tariod/security
2b544fdaa27760bd80879e3106cfb39dc986c73f
[ "MIT" ]
null
null
null
lab_01/ngrams.py
Tariod/security
2b544fdaa27760bd80879e3106cfb39dc986c73f
[ "MIT" ]
null
null
null
lab_01/ngrams.py
Tariod/security
2b544fdaa27760bd80879e3106cfb39dc986c73f
[ "MIT" ]
null
null
null
def ngrams(sequence, n): return list(zip(*[sequence[i:(len(sequence) - (n - 1) + i)] for i in range(n)]))
36.666667
84
0.6
0
0
0
0
0
0
0
0
0
0
068fc5e74266b5c9c2303aed1e80240bd5fd0b7c
573
py
Python
mimic/modalities/MimicLateral.py
Jimmy2027/MoPoE-MIMIC
d167719b0dc7ba002b7421eb82a83e47d2437795
[ "MIT" ]
1
2021-09-30T07:56:46.000Z
2021-09-30T07:56:46.000Z
mimic/modalities/MimicLateral.py
Jimmy2027/MoPoE-MIMIC
d167719b0dc7ba002b7421eb82a83e47d2437795
[ "MIT" ]
null
null
null
mimic/modalities/MimicLateral.py
Jimmy2027/MoPoE-MIMIC
d167719b0dc7ba002b7421eb82a83e47d2437795
[ "MIT" ]
null
null
null
import torch import mimic.modalities.utils from mimic.modalities.Modality import ModalityIMG class MimicLateral(ModalityIMG): def __init__(self, enc, dec, args): self.name = 'Lateral' self.likelihood_name = 'laplace' self.data_size = torch.Size((1, args.img_size, args.img_size)) s...
31.833333
85
0.687609
476
0.830716
0
0
0
0
0
0
24
0.041885
06911eef246c1772226f520da651c6e6b9337698
40,564
py
Python
src/rogerthat/rpc/rpc.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/rpc/rpc.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/rpc/rpc.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
43.852973
200
0.636377
13,136
0.323834
8,403
0.207154
4,052
0.099892
0
0
6,288
0.155014
0693b9613a135ff67d5413df7255909db8145fcb
1,131
py
Python
setup.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
5
2021-06-25T16:44:38.000Z
2021-12-31T01:29:00.000Z
setup.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
null
null
null
setup.py
Sipondo/ulix-dexflow
de46482fe08e3d600dd5da581f0524b55e5df961
[ "MIT" ]
1
2021-06-25T20:33:47.000Z
2021-06-25T20:33:47.000Z
import os, sys, shutil from cx_Freeze import setup, Executable from pathlib import Path def copytree(src, dst, symlinks=False, ignore=None): for item in os.listdir(src): s = os.path.join(src, item) d = os.path.join(dst, item) if os.path.isdir(s): shutil.copytree(s, d, symlinks,...
22.62
73
0.622458
0
0
0
0
0
0
0
0
341
0.301503
0694fc4578a8a2dc3e2046b27ace2ea005f03139
5,332
py
Python
api/login.py
lachouettecoop/inventory-coop-api
583866737522ef473cbc05664835fe50787e2146
[ "MIT" ]
null
null
null
api/login.py
lachouettecoop/inventory-coop-api
583866737522ef473cbc05664835fe50787e2146
[ "MIT" ]
17
2020-10-05T19:21:55.000Z
2022-02-13T09:28:44.000Z
api/login.py
lachouettecoop/inventory-coop
c89488ea177b5616f1fe0bb5f149c61ae4bce2d1
[ "MIT" ]
null
null
null
import os import time import jwt import ldap from eve.auth import TokenAuth from flask import Blueprint, abort, jsonify, request blueprint = Blueprint("login", __name__) ADMIN_USERS = os.environ.get("ADMIN_USERS", "[email protected]") JWT_ALGORITHM = os.environ.get("JWT_ALGORITHM", "HS256") JWT_EXPIRE_OFFSET = os....
33.325
99
0.61853
1,127
0.211365
0
0
1,231
0.23087
0
0
1,706
0.319955
069560330062cf15b22f72ebec9dba45c5f2ba00
411
py
Python
tools/pinyin-completion/setup.py
Vayn/dotfiles
5a3e0e71669dd1832df7147b14c2943de6746119
[ "MIT" ]
4
2015-03-25T01:46:39.000Z
2017-04-30T18:04:46.000Z
tools/pinyin-completion/setup.py
Vayn/dotfiles
5a3e0e71669dd1832df7147b14c2943de6746119
[ "MIT" ]
null
null
null
tools/pinyin-completion/setup.py
Vayn/dotfiles
5a3e0e71669dd1832df7147b14c2943de6746119
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 : from distutils.core import setup setup( name="pinyin-comp", version="0.1", description="complete path containing Chinese by pinyin acronym", author="Jekyll Wu", author_email="[email protected]", url="http://www.github.com/a...
27.4
73
0.622871
0
0
0
0
0
0
0
0
216
0.525547
069788761b0d146c14baf5d90bdb0884306cd8a1
472
py
Python
python/readGeoJsonFIle.py
toddstavish/BEE-CSharp
223e8ef64d582e625d36a3a2db4e0b53deddf057
[ "Apache-2.0" ]
null
null
null
python/readGeoJsonFIle.py
toddstavish/BEE-CSharp
223e8ef64d582e625d36a3a2db4e0b53deddf057
[ "Apache-2.0" ]
null
null
null
python/readGeoJsonFIle.py
toddstavish/BEE-CSharp
223e8ef64d582e625d36a3a2db4e0b53deddf057
[ "Apache-2.0" ]
null
null
null
def importFromGeoJson(geoJsonName): #driver = ogr.GetDriverByName('geojson') dataSource = ogr.Open(geoJsonName, 0) layer = dataSource.GetLayer() print(layer.GetFeatureCount()) polys = [] image_id = 1 building_id = 0 for feature in layer: building_id = building_id + 1 ...
29.5
142
0.669492
0
0
0
0
0
0
0
0
88
0.186441
069859b4e100fade3b9371a57b0661bbf0c77719
1,518
py
Python
DailyCodingProblem/52_Google_LRU.py
RafayAK/CodingPrep
718eccb439db0f6e727806964766a40e8234c8a9
[ "MIT" ]
5
2019-09-07T17:31:17.000Z
2022-03-05T09:59:46.000Z
DailyCodingProblem/52_Google_LRU.py
RafayAK/CodingPrep
718eccb439db0f6e727806964766a40e8234c8a9
[ "MIT" ]
null
null
null
DailyCodingProblem/52_Google_LRU.py
RafayAK/CodingPrep
718eccb439db0f6e727806964766a40e8234c8a9
[ "MIT" ]
2
2019-09-07T17:31:24.000Z
2019-10-28T16:10:52.000Z
""" Good morning! Here's your coding interview problem for today. This problem was asked by Google. Implement an LRU (Least Recently Used) cache. It should be able to be initialized with a cache size n, and contain the following methods: set(key, value): sets key to value. If there are already n items in ...
24.885246
91
0.601449
597
0.393281
0
0
0
0
0
0
630
0.41502
0698ddf547c57339f83986d2ec83f39b1adf80a3
233
py
Python
setup.py
kowalcj0/teeb
15b87d9857510890fbe417e4de473b8b685b3319
[ "BSD-3-Clause" ]
null
null
null
setup.py
kowalcj0/teeb
15b87d9857510890fbe417e4de473b8b685b3319
[ "BSD-3-Clause" ]
null
null
null
setup.py
kowalcj0/teeb
15b87d9857510890fbe417e4de473b8b685b3319
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup # Metadata goes in setup.cfg. These are here for GitHub's dependency graph. setup( name="Teeb", install_requires=["chardet==4.0.0", "send2trash==1.5.0", "wand==0.6.5"], )
25.888889
76
0.656652
0
0
0
0
0
0
0
0
152
0.652361
069a8d7c6fbb5a8f120cebac621c759b5b2c0718
233
py
Python
article_retrieval/__main__.py
aleph-oh/wikigame-solver
9a7b0a16df41291890e2bbe5903be55b25cef0f4
[ "MIT" ]
null
null
null
article_retrieval/__main__.py
aleph-oh/wikigame-solver
9a7b0a16df41291890e2bbe5903be55b25cef0f4
[ "MIT" ]
null
null
null
article_retrieval/__main__.py
aleph-oh/wikigame-solver
9a7b0a16df41291890e2bbe5903be55b25cef0f4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Constructs article graph.""" from database import clear_db from database.constants import engine from .database_builder import populate_db if __name__ == "__main__": clear_db(engine) populate_db()
21.181818
41
0.759657
0
0
0
0
0
0
0
0
63
0.270386
069b851f5bdd3f1be09d224c228765a0b963eeeb
624
py
Python
news_buddy/tasks/post_to_solr.py
izacus/newsbuddy
f26e94f54bb8eeeb46fc48e697f6dd062607a7ea
[ "MIT" ]
null
null
null
news_buddy/tasks/post_to_solr.py
izacus/newsbuddy
f26e94f54bb8eeeb46fc48e697f6dd062607a7ea
[ "MIT" ]
null
null
null
news_buddy/tasks/post_to_solr.py
izacus/newsbuddy
f26e94f54bb8eeeb46fc48e697f6dd062607a7ea
[ "MIT" ]
null
null
null
def post_to_solr(article): import settings from pysolarized import solr, to_solr_date solr_int = solr.Solr(settings.SOLR_ENDPOINT_URLS, settings.SOLR_DEFAULT_ENDPOINT) # Build documents for solr dispatch doc = {"id": article["id"], "title": article["title"], "source": article["source"]...
34.666667
85
0.657051
0
0
0
0
0
0
0
0
178
0.285256
069d259501ee0ad7f4c234fd4a9336eca8bab60c
637
py
Python
playlist_organizer/client/deezer/settings.py
perminovs/playlist_organizer
cc5da2b0a031e29235e9ebe982f1062900602dd4
[ "MIT" ]
null
null
null
playlist_organizer/client/deezer/settings.py
perminovs/playlist_organizer
cc5da2b0a031e29235e9ebe982f1062900602dd4
[ "MIT" ]
null
null
null
playlist_organizer/client/deezer/settings.py
perminovs/playlist_organizer
cc5da2b0a031e29235e9ebe982f1062900602dd4
[ "MIT" ]
null
null
null
from pydantic import BaseSettings class DeezerSettings(BaseSettings): api_host: str = 'https://api.deezer.com' user_info_path: str = 'user/me' playlists_path: str = 'user/me/playlists' playlist_tracks_path: str = 'playlist/{}/tracks' @property def user_info_url(self) -> str: return f...
25.48
61
0.66876
600
0.941915
0
0
316
0.496075
0
0
207
0.324961
069dac451eea987083fb0222c0d932e8a5b6741b
2,462
py
Python
services/web/project/routes/api.py
sthe0/test-bot-fullstack
602c876177eb16958748a9e46274533759ff5792
[ "MIT" ]
null
null
null
services/web/project/routes/api.py
sthe0/test-bot-fullstack
602c876177eb16958748a9e46274533759ff5792
[ "MIT" ]
null
null
null
services/web/project/routes/api.py
sthe0/test-bot-fullstack
602c876177eb16958748a9e46274533759ff5792
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, jsonify, request from functools import wraps from sqlalchemy import desc from project.common import app, db, fb_api from project.config import ApiConfig from project.models import Client, Message api = Blueprint('api', __name__) def make_error(message): retu...
27.662921
89
0.675467
0
0
0
0
2,048
0.831844
0
0
379
0.15394
069dc6e8933ab9b9913ed9fdacb63aac7e39388b
3,830
py
Python
c4/test.py
duilio/c4
6dcde8316603192b0bc713d1bedb94290d123a9d
[ "MIT" ]
16
2016-03-19T16:34:58.000Z
2021-11-07T08:59:53.000Z
c4/test.py
duilio/c4
6dcde8316603192b0bc713d1bedb94290d123a9d
[ "MIT" ]
1
2017-08-27T10:18:39.000Z
2018-02-24T20:55:27.000Z
c4/test.py
duilio/c4
6dcde8316603192b0bc713d1bedb94290d123a9d
[ "MIT" ]
9
2017-02-23T23:14:17.000Z
2020-12-25T12:26:47.000Z
import unittest import numpy as np from c4.board import Board, PLAYER1 class TestBoard(unittest.TestCase): def test_end_diag_lr(self): b = Board(np.array([[1, 0, 0, 0, 0, 0, 0], [2, 1, 0, 0, 0, 0, 0], [2, 2, 1, 0, 0, 0, 0], ...
42.555556
58
0.232376
3,754
0.980157
0
0
0
0
0
0
0
0
069eac769d2ccf455170294707453e0b3dff4035
1,134
py
Python
NLP/3-Advanced-RNN-2/3-1-cnn-rnn-1.py
agarwalanant/ThaparWorkshopANN
fd7858b89ade8a621f30e389721166b222228f02
[ "MIT" ]
16
2019-06-19T05:43:01.000Z
2020-12-01T13:24:55.000Z
NLP/3-Advanced-RNN-2/3-1-cnn-rnn-1.py
agarwalanant/ThaparWorkshopANN
fd7858b89ade8a621f30e389721166b222228f02
[ "MIT" ]
null
null
null
NLP/3-Advanced-RNN-2/3-1-cnn-rnn-1.py
agarwalanant/ThaparWorkshopANN
fd7858b89ade8a621f30e389721166b222228f02
[ "MIT" ]
37
2019-06-17T11:53:13.000Z
2020-06-02T13:05:31.000Z
import numpy as np from sklearn.metrics import accuracy_score from keras.datasets import cifar10 from keras.utils import to_categorical from keras.models import Sequential, Model from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, LSTM, Input, Activation, Reshape, concatenate from keras import optimizers (...
37.8
157
0.751323
0
0
0
0
0
0
0
0
74
0.065256
069f831615d2592dffe7e15e0512bd6627e063ca
1,652
py
Python
pyage2/lib/actions.py
kachayev/pyage2
adf87e0deeddaa4301dbcaf4fa7d396a71d129de
[ "Apache-2.0" ]
13
2021-07-09T07:10:42.000Z
2022-03-16T10:38:59.000Z
pyage2/lib/actions.py
kachayev/pyage2
adf87e0deeddaa4301dbcaf4fa7d396a71d129de
[ "Apache-2.0" ]
null
null
null
pyage2/lib/actions.py
kachayev/pyage2
adf87e0deeddaa4301dbcaf4fa7d396a71d129de
[ "Apache-2.0" ]
1
2022-01-16T13:24:32.000Z
2022-01-16T13:24:32.000Z
# Copyright 2021 PyAge2, Oleksii Kachaiev <[email protected]>. 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 # # Un...
37.545455
84
0.766344
0
0
0
0
0
0
0
0
619
0.374697
069f9b47635b756c567cad2b645af0001f7d8f95
4,045
py
Python
multi_view_ctrl/grid_element_div.py
imldresden/mcv-displaywall
d08cf6fab869ee03d8b3af203dd0e55b42ab4605
[ "MIT" ]
2
2019-12-12T20:57:37.000Z
2021-09-29T02:59:19.000Z
multi_view_ctrl/grid_element_div.py
imldresden/mcv-displaywall
d08cf6fab869ee03d8b3af203dd0e55b42ab4605
[ "MIT" ]
null
null
null
multi_view_ctrl/grid_element_div.py
imldresden/mcv-displaywall
d08cf6fab869ee03d8b3af203dd0e55b42ab4605
[ "MIT" ]
null
null
null
from libavg import avg from events.event_dispatcher import EventDispatcher from multi_view_ctrl.grid_element import GridElement from multi_view_ctrl.configurations.grid_element_div_configuration import GridElementDivConfigurations class GridElementDiv(avg.DivNode, EventDispatcher): def __init__(self, grid_element...
38.52381
135
0.648949
3,811
0.942151
0
0
233
0.057602
0
0
1,615
0.399258
06a1854bfcd9896d019df15af2c9bb29dfe25337
4,152
py
Python
relations-finder/src/relations_finder.py
ahmed91abbas/wiki-relations
9f8d20c512f993cab6065cb2695c996c076b6d13
[ "MIT" ]
5
2021-03-05T12:19:44.000Z
2022-01-05T19:28:44.000Z
relations-finder/src/relations_finder.py
ahmed91abbas/wiki-relations
9f8d20c512f993cab6065cb2695c996c076b6d13
[ "MIT" ]
null
null
null
relations-finder/src/relations_finder.py
ahmed91abbas/wiki-relations
9f8d20c512f993cab6065cb2695c996c076b6d13
[ "MIT" ]
2
2021-03-13T12:07:33.000Z
2021-03-30T07:58:38.000Z
import en_core_web_sm from spacy import displacy class Relations_finder: def __init__(self): self.subject = '' self.nlp = en_core_web_sm.load() def generate_html(self, nlp_doc): html = displacy.render([nlp_doc], style="dep", page=True) with open('spacy.html', 'w') as out_file:...
37.071429
98
0.575626
4,100
0.987476
0
0
0
0
0
0
447
0.107659
06a1e865401185ec36f7fc0f3099d2dfb3463d93
8,597
py
Python
app/users/routes.py
Shikhar-SRJ/DL_Model_APIs
ea26cb415477cf58a2ddd925689b62588bf95b13
[ "MIT" ]
null
null
null
app/users/routes.py
Shikhar-SRJ/DL_Model_APIs
ea26cb415477cf58a2ddd925689b62588bf95b13
[ "MIT" ]
null
null
null
app/users/routes.py
Shikhar-SRJ/DL_Model_APIs
ea26cb415477cf58a2ddd925689b62588bf95b13
[ "MIT" ]
null
null
null
from flask import jsonify, request, Blueprint, current_app, send_file, make_response import tensorflow as tf import numpy as np from app.users import utils import cv2 from app.models import User, Data, Predictions, Coordinates from app import db from werkzeug.security import generate_password_hash, check_password_hash ...
41.331731
139
0.609282
0
0
0
0
8,201
0.953937
0
0
1,758
0.20449
06a25915be2cf155b3153cd03aaa095116d1e484
352
py
Python
Curso em Video - Exercicios/ex006.py
JefferMarcelino/Aulas-Python
3885b1cfa7f27b90b702ee81fc5eab108c029e52
[ "MIT" ]
2
2021-01-27T19:30:05.000Z
2022-01-10T20:34:53.000Z
Curso em Video - Exercicios/ex006.py
JefferMarcelino/Aulas-Python
3885b1cfa7f27b90b702ee81fc5eab108c029e52
[ "MIT" ]
null
null
null
Curso em Video - Exercicios/ex006.py
JefferMarcelino/Aulas-Python
3885b1cfa7f27b90b702ee81fc5eab108c029e52
[ "MIT" ]
null
null
null
""" EXERCÍCIO 006: Dobro, Triplo, Raiz Quadrada Crie um algoritmo que leia um número e mostre o seu dobro, triplo e raiz quadrada. """ n = int(input('Digite um número: ')) print('O dobro de {} vale {}.'.format(n, (n * 2))) print('O triplo de {} vale {}.'.format(n, (n * 3))) print('A raiz quadrada de {} é igual a {:.2f...
35.2
82
0.619318
0
0
0
0
0
0
0
0
249
0.699438
06a27f548fc5e06937812be30ed778ed22cfc7a5
2,494
py
Python
bionic/gcs.py
IDl0T/bionic
8eaa868a2e7af81bb561492c045feb414f7c6326
[ "Apache-2.0" ]
98
2019-08-29T21:38:44.000Z
2022-01-26T04:59:57.000Z
bionic/gcs.py
IDl0T/bionic
8eaa868a2e7af81bb561492c045feb414f7c6326
[ "Apache-2.0" ]
143
2019-09-11T15:32:17.000Z
2021-06-08T21:48:30.000Z
bionic/gcs.py
IDl0T/bionic
8eaa868a2e7af81bb561492c045feb414f7c6326
[ "Apache-2.0" ]
20
2019-09-13T18:13:03.000Z
2021-12-03T19:51:01.000Z
""" Utilities for working with Google Cloud Storage. """ import logging import warnings from .deps.optdep import import_optional_dependency logger = logging.getLogger(__name__) _cached_gcs_fs = None def get_gcs_fs_without_warnings(cache_value=True): # TODO It's not expensive to create the gcs filesystem, but...
38.369231
85
0.676423
0
0
0
0
0
0
0
0
1,468
0.588613
06a3f43967e178259c2fded854053a178b218002
208
py
Python
src/utils/const.py
yizhongw/TagNN-PDTB
9b944210bcc3851c65cb479ef705acbb1b45b08f
[ "MIT" ]
14
2018-11-19T02:49:34.000Z
2022-02-18T04:00:31.000Z
src/utils/const.py
lidejian/TreeLSTM-PDTB
3f048d2a3daf3fb5e803037f9344f515d0e71450
[ "MIT" ]
null
null
null
src/utils/const.py
lidejian/TreeLSTM-PDTB
3f048d2a3daf3fb5e803037f9344f515d0e71450
[ "MIT" ]
5
2017-12-04T13:29:29.000Z
2018-05-07T08:45:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: yizhong # created_at: 17-5-2 下午5:00 PAD_WORD = '<blank>' UNK_WORD = '<unk>' BOS_WORD = '<s>' EOS_WORD = '</s>' NUM_WORD = '<num>' PUNC_TAG = '<punc>'
16
27
0.586538
0
0
0
0
0
0
0
0
134
0.632075
06a458881d352d1e5bc5252e5c9354f711ebe5e6
208
py
Python
src_old/tests/scripts/core/ex7.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
src_old/tests/scripts/core/ex7.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
src_old/tests/scripts/core/ex7.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
#coding: utf-8 a = zeros((10,10), double) for i in range(0,10): a[i,i] = 2.0 for i in range(0,9): a[i,i+1] = -1.0 for i in range(0,9): a[i,i+1] = -1.0 n = 5 for i in range(0, n): x = 1
10.947368
26
0.480769
0
0
0
0
0
0
0
0
14
0.067308
06a83d0998f9996abe66240e832c87433d984bc2
626
py
Python
src/learning_language/views.py
gsi-luis/djangolearning
4cf1e016cfe2910c907a669e518f5233ae04fb12
[ "MIT" ]
1
2020-07-05T18:33:33.000Z
2020-07-05T18:33:33.000Z
src/learning_language/views.py
gsi-luis/djangolearning
4cf1e016cfe2910c907a669e518f5233ae04fb12
[ "MIT" ]
2
2021-03-30T13:49:58.000Z
2021-06-10T19:43:27.000Z
src/learning_language/views.py
gsi-luis/djangolearning
4cf1e016cfe2910c907a669e518f5233ae04fb12
[ "MIT" ]
null
null
null
from django.shortcuts import render from .forms import LanguageForm from learning_django import settings from django.utils import translation def index(request): language_default = settings.LANGUAGE_CODE if request.method == "POST": form = LanguageForm(request.POST) if form.is_valid(): ...
27.217391
76
0.701278
0
0
0
0
0
0
0
0
85
0.135783
06abef330b43336341fe87f19a5bb8dd00ab85db
252
py
Python
driver/comtypes_gamry_simulate.py
yul69-cell/HELAO
a39372eb385ee93b711443d9cbd56c5ec737ff70
[ "CC0-1.0" ]
null
null
null
driver/comtypes_gamry_simulate.py
yul69-cell/HELAO
a39372eb385ee93b711443d9cbd56c5ec737ff70
[ "CC0-1.0" ]
null
null
null
driver/comtypes_gamry_simulate.py
yul69-cell/HELAO
a39372eb385ee93b711443d9cbd56c5ec737ff70
[ "CC0-1.0" ]
null
null
null
#create cinet and functions like COMError that simulate Gamry #dtaq.Cook is defined to return dummy data when called #import config here and check if a simulation is being run and if so load that simulation .py that overrides functions like dtaq.Cook
50.4
133
0.809524
0
0
0
0
0
0
0
0
248
0.984127
06ada35b71f676f14ae2a8fbfcb628afacd0c4d8
512
py
Python
oj2.py
YanshuHu/combinatoricsoj2
51fa8cf06042e63642b8407d12de99d22f0e7a3b
[ "Apache-2.0" ]
null
null
null
oj2.py
YanshuHu/combinatoricsoj2
51fa8cf06042e63642b8407d12de99d22f0e7a3b
[ "Apache-2.0" ]
null
null
null
oj2.py
YanshuHu/combinatoricsoj2
51fa8cf06042e63642b8407d12de99d22f0e7a3b
[ "Apache-2.0" ]
null
null
null
def main(): variable1 = input() variable2 = input() a = variable1.split() b = variable2.split() first_line = [] second_line = [] for i in a: first_line.append(int(i)) for i in b: second_line.append(int(i)) code(first_line[0], second_line) def code(target, number): ...
20.48
40
0.564453
0
0
0
0
0
0
0
0
10
0.019531
06af2b443d404bade0c4526a7994135505c898f7
737
py
Python
kelte/maths/vector.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
kelte/maths/vector.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
kelte/maths/vector.py
brianbruggeman/rl
6dd8a53da07697ffc87e62aa397be7b3b08f0aa0
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from .point import Point @dataclass() class Direction(Point): x: int = 0 y: int = 0 NONE: Direction = Direction(0, 0) NORTH: Direction = Direction(0, -1) SOUTH: Direction = Direction(0, 1) EAST: Direction = Direction(1, 0) WEST: Direction = Direction(-1, 0) NORTH_...
22.333333
40
0.708277
53
0.071913
0
0
66
0.089552
0
0
0
0
06af865f1a3973785536a7d3858ef8ea324bb911
1,437
py
Python
tests/bugs/core_4158_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/core_4158_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/core_4158_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.core_4158 # title: Regression: LIKE with escape does not work # decription: # tracker_id: CORE-4158 # min_versions: ['2.0.7'] # versions: 2.0.7 # qmid: None import pytest from firebird.qa import db_factory, isql_act, Action # version: 2.0.7 # resources: Non...
26.127273
70
0.592902
0
0
0
0
185
0.12874
0
0
962
0.66945
06afc4b209dc7b6ac90802b9ff2ce19d8ee2b910
18,430
py
Python
trustyroles/arpd_update/arpd_update.py
hmcguire1/trustyroles
5dbe3d65353538f84f12f3ecef6de2a8cc3f731f
[ "MIT" ]
2
2019-12-16T15:10:13.000Z
2020-02-24T20:13:40.000Z
trustyroles/arpd_update/arpd_update.py
hmcguire1/trustyroles
5dbe3d65353538f84f12f3ecef6de2a8cc3f731f
[ "MIT" ]
null
null
null
trustyroles/arpd_update/arpd_update.py
hmcguire1/trustyroles
5dbe3d65353538f84f12f3ecef6de2a8cc3f731f
[ "MIT" ]
1
2019-12-05T01:12:33.000Z
2019-12-05T01:12:33.000Z
""" arpd_update focuses on easily editing the assume role policy document of a role. """ import os import json import logging import argparse from datetime import datetime from typing import List, Dict, Optional import boto3 # type: ignore from botocore.exceptions import ClientError # type: ignore LOGGER = logging....
27.507463
93
0.566522
0
0
0
0
0
0
0
0
4,172
0.22637
06aff71efc0dec027a46c0058c117887035af9c9
7,471
py
Python
kartingpros/timetrial.py
Vishvak365/Karting-Pros
1c482cff78e7402c8da8870ff519eea760be4a34
[ "MIT" ]
1
2021-06-28T21:55:18.000Z
2021-06-28T21:55:18.000Z
kartingpros/timetrial.py
wboyd600/Karting-Pros
4db4b9f075b152dfea79c89640c0bac1becce89b
[ "MIT" ]
17
2020-11-27T14:33:39.000Z
2020-12-08T00:45:18.000Z
kartingpros/timetrial.py
wboyd600/Karting-Pros
4db4b9f075b152dfea79c89640c0bac1becce89b
[ "MIT" ]
1
2021-06-27T20:27:38.000Z
2021-06-27T20:27:38.000Z
import pygame import time import math import sys from kartingpros import track, mainmenu, car, settings, loadimage from kartingpros.loadimage import _load_image, _load_sound, _load_font import numpy as np from numpy import save from kartingpros.car import Car from pygame.locals import * from pygame import mix...
33.959091
99
0.549458
0
0
0
0
0
0
0
0
840
0.112435
06b0e4b7f2071c5642bd956f75e4b9df9624fc3e
9,079
py
Python
tests/location/test_location_utility.py
questionlp/wwdtm
f3cf3399c22bf19e369e6e0250e7c72de0be3a90
[ "Apache-2.0" ]
null
null
null
tests/location/test_location_utility.py
questionlp/wwdtm
f3cf3399c22bf19e369e6e0250e7c72de0be3a90
[ "Apache-2.0" ]
1
2022-01-17T04:25:49.000Z
2022-01-17T04:25:49.000Z
tests/location/test_location_utility.py
questionlp/wwdtm
f3cf3399c22bf19e369e6e0250e7c72de0be3a90
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # vim: set noai syntax=python ts=4 sw=4: # # Copyright (c) 2018-2021 Linh Pham # wwdtm is released under the terms of the Apache License 2.0 """Testing for object: :py:class:`wwdtm.location.LocationUtility` """ import json from typing import Any, Dict import pytest from wwdtm.location import Lo...
38.965665
88
0.702941
0
0
0
0
8,700
0.958255
0
0
4,473
0.492675
06b195aef83b65c429bf30fd2c08ed267c6351f6
2,204
py
Python
test/create_cert.py
finsberg/pytest-tornado
52ba5119310be5385ceed74ef94f4538660e3725
[ "Apache-2.0" ]
123
2015-03-31T17:25:34.000Z
2021-12-16T12:14:38.000Z
test/create_cert.py
finsberg/pytest-tornado
52ba5119310be5385ceed74ef94f4538660e3725
[ "Apache-2.0" ]
53
2015-02-04T06:02:21.000Z
2020-11-25T20:04:52.000Z
test/create_cert.py
finsberg/pytest-tornado
52ba5119310be5385ceed74ef94f4538660e3725
[ "Apache-2.0" ]
43
2015-02-26T05:02:44.000Z
2021-12-17T10:08:44.000Z
# -*- coding: utf-8 -*- """ Create a cert with pyOpenSSL for tests. Heavily based on python-opsi's OPSI.Util.Task.Certificate. Source: https://github.com/opsi-org/python-opsi/blob/stable/OPSI/Util/Task/Certificate.py """ import argparse import os import random import socket from tempfile import NamedTemporaryFile fro...
23.956522
89
0.71824
0
0
0
0
0
0
0
0
759
0.344374
06b1a7bf9e162d2f1a93b478504af2c68a143b23
680
py
Python
positional_args.py
nickaigi/effective_python_tips
1a68b6eaed2e946b003c0cd0bdea03e79b8e8990
[ "Unlicense" ]
null
null
null
positional_args.py
nickaigi/effective_python_tips
1a68b6eaed2e946b003c0cd0bdea03e79b8e8990
[ "Unlicense" ]
null
null
null
positional_args.py
nickaigi/effective_python_tips
1a68b6eaed2e946b003c0cd0bdea03e79b8e8990
[ "Unlicense" ]
null
null
null
def log(message, *values): """ * operator instructs python to pass items from the sequence as positional arguments Remember: - using the * operator with a generator may cause your program to run out of memory and crash. - adding new positional parameters to functions that accept ...
28.333333
70
0.613235
0
0
0
0
0
0
0
0
409
0.601471
06b1dfaeb76409a1c03b523aa234e5fabb549ad9
2,942
py
Python
fastmri_recon/models/subclassed_models/updnet.py
samiulshuvo/fastmri-reproducible-benchmark
5ac9ba3e7f1ad859dcf74e7019b574a6bf065eac
[ "MIT" ]
105
2019-09-30T06:05:38.000Z
2022-03-02T09:48:31.000Z
fastmri_recon/models/subclassed_models/updnet.py
samiulshuvo/fastmri-reproducible-benchmark
5ac9ba3e7f1ad859dcf74e7019b574a6bf065eac
[ "MIT" ]
103
2019-09-18T08:30:23.000Z
2022-03-16T22:24:14.000Z
fastmri_recon/models/subclassed_models/updnet.py
samiulshuvo/fastmri-reproducible-benchmark
5ac9ba3e7f1ad859dcf74e7019b574a6bf065eac
[ "MIT" ]
38
2019-09-30T06:05:41.000Z
2022-02-26T14:07:52.000Z
from .unet import UnetComplex from .cross_domain import CrossDomainNet from ..utils.fourier import FFT, IFFT class UPDNet(CrossDomainNet): def __init__( self, n_layers=3, layers_n_channels=[8, 16, 32], res=True, non_linearity='relu', channel_...
37.240506
81
0.602311
2,633
0.894969
0
0
0
0
0
0
171
0.058124
06b2849360054f2d534889fecd3a7de975d603e4
4,342
py
Python
utilities/misc.py
lebionick/stereo-transformer
6e7df042d917c5ed00d10bd6ddb6f76e90429148
[ "Apache-2.0" ]
410
2020-11-06T02:10:17.000Z
2022-03-25T17:12:24.000Z
utilities/misc.py
lppllppl920/stereo-transformer
f07b1ee8ced1c36e10630401688a06e355056e56
[ "Apache-2.0" ]
55
2020-11-06T10:29:16.000Z
2022-03-30T02:10:10.000Z
utilities/misc.py
lppllppl920/stereo-transformer
f07b1ee8ced1c36e10630401688a06e355056e56
[ "Apache-2.0" ]
72
2020-11-06T07:22:39.000Z
2022-03-19T14:20:38.000Z
# Authors: Zhaoshuo Li, Xingtong Liu, Francis X. Creighton, Russell H. Taylor, and Mathias Unberath # # Copyright (c) 2020. Johns Hopkins University - All rights reserved. import copy import numpy as np import torch import torch.nn as nn class NestedTensor(object): def __init__(self, left, right, disp=None, s...
32.893939
114
0.649931
403
0.092814
0
0
0
0
0
0
1,201
0.276601
06b29440122743c4d662f5e0b42777454bfb53b1
2,600
py
Python
tfcli/resources/asg.py
leowa/tfcli
21314feabcb56fe802298a98a66eb4e2a9de8cc7
[ "MIT" ]
null
null
null
tfcli/resources/asg.py
leowa/tfcli
21314feabcb56fe802298a98a66eb4e2a9de8cc7
[ "MIT" ]
null
null
null
tfcli/resources/asg.py
leowa/tfcli
21314feabcb56fe802298a98a66eb4e2a9de8cc7
[ "MIT" ]
null
null
null
from .base import BaseResource class Asg(BaseResource): """ autoscaling group resource to generate from current region """ def __init__(self, logger=None): super().__init__(logger) def amend_attributes(self, _type, _name, attributes: dict): if "launch_template" in attributes and attr...
31.707317
87
0.611154
2,563
0.985769
787
0.302692
715
0.275
0
0
983
0.378077
06b306a89a539a3cbfca1d1c817821e2aac7c4eb
28,278
py
Python
BASS-train.py
shlpu/Statlie-Image-Processor
e40355f43f344fd02041bdc8ce57b0ee101c6cdb
[ "Apache-2.0" ]
1
2019-11-23T12:58:09.000Z
2019-11-23T12:58:09.000Z
BASS-train.py
shlpu/Statlie-Image-Processor
e40355f43f344fd02041bdc8ce57b0ee101c6cdb
[ "Apache-2.0" ]
null
null
null
BASS-train.py
shlpu/Statlie-Image-Processor
e40355f43f344fd02041bdc8ce57b0ee101c6cdb
[ "Apache-2.0" ]
3
2019-03-27T00:47:08.000Z
2022-02-05T04:52:48.000Z
import numpy as np import scipy.io from sklearn.metrics import confusion_matrix from random import randint, shuffle from argparse import ArgumentParser from helper import getValidDataset import tensorflow as tf parser = ArgumentParser() parser.add_argument('--data', type=str, default='Indian_pines') parser.add_argumen...
47.766892
169
0.607539
0
0
0
0
0
0
0
0
4,939
0.174659
ebe8e591a0b9b4b36a891f5a5dfead02a0b973da
2,300
py
Python
hungarian/python/code/point.py
hrutkabence/tutorials
bd76294860804aee8ecda5e1445464506bf02ee0
[ "CC0-1.0" ]
null
null
null
hungarian/python/code/point.py
hrutkabence/tutorials
bd76294860804aee8ecda5e1445464506bf02ee0
[ "CC0-1.0" ]
null
null
null
hungarian/python/code/point.py
hrutkabence/tutorials
bd76294860804aee8ecda5e1445464506bf02ee0
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import math class Point(object): """ class for 2D points x, y - position of point, default 0,0 p - decimals in coordinate output, default 2 """ def __init__(self, x=0, y=0, p=2): self.x = x self.y = y self.p = p de...
25.274725
65
0.513478
1,724
0.749565
0
0
0
0
0
0
591
0.256957
ebef4935fe5542a7f33a3a5e4cd173560258a38e
4,588
py
Python
mlmodels/model_tf/misc/tfcode2/CNN/alex-net/alexnet.py
gitter-badger/mlmodels
f08cc9b6ec202d4ad25ecdda2f44487da387569d
[ "MIT" ]
1
2022-03-11T07:57:48.000Z
2022-03-11T07:57:48.000Z
mlmodels/model_tf/misc/tfcode2/CNN/alex-net/alexnet.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
mlmodels/model_tf/misc/tfcode2/CNN/alex-net/alexnet.py
whitetiger1002/mlmodels
f70f1da7434e8855eed50adc67b49cc169f2ea24
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import time import matplotlib.pyplot as plt import numpy as np import seaborn as sns import tensorflow as tf from scipy.misc import imresize from sklearn.cross_validation import train_test_split import _pickle as cPickle from train import train class Alexnet: de...
37
99
0.649956
3,193
0.695946
0
0
0
0
0
0
327
0.071273
ebefcab7987e2949070f887144afd954129e8c65
4,184
py
Python
p8_test/test_local/__init__.py
crazynayan/tpf1
c81a15d88d4d1f3ed2cf043c90782a4b8509ef14
[ "MIT" ]
1
2020-01-27T10:10:40.000Z
2020-01-27T10:10:40.000Z
p8_test/test_local/__init__.py
crazynayan/tpf1
c81a15d88d4d1f3ed2cf043c90782a4b8509ef14
[ "MIT" ]
4
2019-08-23T05:24:23.000Z
2021-09-16T10:05:55.000Z
p8_test/test_local/__init__.py
crazynayan/tpf1
c81a15d88d4d1f3ed2cf043c90782a4b8509ef14
[ "MIT" ]
null
null
null
import random import string import unittest from typing import List, Union, Dict from config import config from p2_assembly.mac2_data_macro import DataMacro from p3_db.test_data import TestData from p3_db.test_data_elements import Pnr from p4_execution.debug import get_debug_loc, add_debug_loc, get_missed_loc from p4_...
42.693878
119
0.633843
3,819
0.912763
0
0
498
0.119025
0
0
506
0.120937
ebf03515b2af7a1e35e2369f06d9b3087f0c51d9
2,893
py
Python
models/models.py
ahuimanu/vatsimlib
12f1bcd248b2157349304583cbc1b499d9f39be0
[ "MIT" ]
null
null
null
models/models.py
ahuimanu/vatsimlib
12f1bcd248b2157349304583cbc1b499d9f39be0
[ "MIT" ]
null
null
null
models/models.py
ahuimanu/vatsimlib
12f1bcd248b2157349304583cbc1b499d9f39be0
[ "MIT" ]
null
null
null
from dataclasses import dataclass from datetime import datetime from typing import Optional @dataclass class VatsimGeneral: version: str reload: str update: str # will be used as a pk update_timestamp: str # ISO 8601 date string in UTC connected_clients: int unique_users: int def get_dat...
28.087379
230
0.614587
2,662
0.920152
0
0
2,772
0.958175
0
0
1,020
0.352575
ebf042ca58b471a448c4adbffa95dc9ab6a93834
360
py
Python
temp-api/app/models.py
TheLongRunSmoke/birdfeeder
6f238c9b8c8abdc866aaf042f79b674714fdaa8c
[ "MIT" ]
null
null
null
temp-api/app/models.py
TheLongRunSmoke/birdfeeder
6f238c9b8c8abdc866aaf042f79b674714fdaa8c
[ "MIT" ]
1
2017-11-28T04:26:45.000Z
2017-11-28T04:57:47.000Z
temp-api/app/models.py
TheLongRunSmoke/birdfeeder
6f238c9b8c8abdc866aaf042f79b674714fdaa8c
[ "MIT" ]
null
null
null
from app import db class Temperature(db.Model): """ Model for temperature storing. """ timestamp = db.Column(db.Integer, primary_key=True, index=True, unique=True) internal = db.Column(db.Float) external = db.Column(db.Float) cpu = db.Column(db.Float) def __repr__(self): re...
24
80
0.644444
338
0.938889
0
0
0
0
0
0
66
0.183333
ebf1ffe3b522e31d9f44e5d373462af230e2e497
3,199
py
Python
src/GameController.py
salemalex11/Gomoku
e709bc161a945e5521ea3b234ce8db41d3fd5bfe
[ "MIT" ]
null
null
null
src/GameController.py
salemalex11/Gomoku
e709bc161a945e5521ea3b234ce8db41d3fd5bfe
[ "MIT" ]
null
null
null
src/GameController.py
salemalex11/Gomoku
e709bc161a945e5521ea3b234ce8db41d3fd5bfe
[ "MIT" ]
3
2019-02-17T22:15:36.000Z
2021-01-04T19:13:52.000Z
# Define imports import pygame from pygame import * import sys import time class Controller: """Class responsible for interacting with the Model and View.""" def __init__(self, view): """Initialize a controller taking input from the View.""" self.model = view.get_model() ...
36.352273
131
0.449203
3,121
0.975617
0
0
0
0
0
0
706
0.220694
ebf22c5792152fe6b5cb3d25a3473aad20996bcf
17,101
py
Python
silverberg/test/test_client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
1
2019-09-22T04:00:56.000Z
2019-09-22T04:00:56.000Z
silverberg/test/test_client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
14
2015-01-22T01:00:50.000Z
2017-12-06T03:35:46.000Z
silverberg/test/test_client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
4
2015-03-31T19:49:05.000Z
2020-03-03T20:44:32.000Z
# Copyright 2012 Rackspace Hosting, Inc. # # 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 ...
41.009592
103
0.626513
15,730
0.919829
0
0
0
0
0
0
4,747
0.277586
ebf2bc1d88e8d3404f1439f8fb4400bf3874e4c0
3,386
py
Python
drawer.py
jarekwg/crossword-packer
88f90c16272c2c2f64475dffe3b0aaeec11c0606
[ "MIT" ]
null
null
null
drawer.py
jarekwg/crossword-packer
88f90c16272c2c2f64475dffe3b0aaeec11c0606
[ "MIT" ]
null
null
null
drawer.py
jarekwg/crossword-packer
88f90c16272c2c2f64475dffe3b0aaeec11c0606
[ "MIT" ]
null
null
null
import re from exceptions import WordPlacementConflict from constants import ACROSS, DOWN def score_placements(placements, display=False): dimensions = [ min([x for x, y, dir in placements.values()]), min([y for x, y, dir in placements.values()]), max([placement[0] + len(word) for word, p...
52.092308
159
0.560543
0
0
0
0
0
0
0
0
635
0.187537
ebf45563a2d56576081e640ac1564e55a2546dba
4,200
py
Python
src/analyse/bubble_map.py
timtroendle/geographic-scale
81ec940e10b8e692429797e6a066a177e1508a89
[ "MIT" ]
3
2020-08-19T17:56:22.000Z
2021-08-19T08:52:21.000Z
src/analyse/bubble_map.py
timtroendle/geographic-scale
81ec940e10b8e692429797e6a066a177e1508a89
[ "MIT" ]
null
null
null
src/analyse/bubble_map.py
timtroendle/geographic-scale
81ec940e10b8e692429797e6a066a177e1508a89
[ "MIT" ]
null
null
null
import numpy as np import shapely import geopandas as gpd import xarray as xr import matplotlib.pyplot as plt import seaborn as sns EPSG_3035_PROJ4 = "+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs " GREY = "#C0C0C0" BLUE = "#4F6DB8" YELLOW = "#FABC3C" SUPPLY_TECHS = [ "hy...
30.882353
113
0.662619
0
0
0
0
0
0
0
0
452
0.107619
ebf4ac0d537eab2740d82a66c4418235ab9c1ffc
885
py
Python
src/ytbdl/__init__.py
danloveg/dl-album
20d142a0992f61b9d13beceb6abe9a9086e33e6a
[ "MIT" ]
null
null
null
src/ytbdl/__init__.py
danloveg/dl-album
20d142a0992f61b9d13beceb6abe9a9086e33e6a
[ "MIT" ]
null
null
null
src/ytbdl/__init__.py
danloveg/dl-album
20d142a0992f61b9d13beceb6abe9a9086e33e6a
[ "MIT" ]
null
null
null
import os import confuse config = confuse.LazyConfig('ytbdl', None) def get_loaded_config_sources(): ''' Get existing configuration files Returns: (list): A list of (string) paths to configuration files that exist on the file system. Returns an empty list if no configuration files ...
26.818182
79
0.673446
0
0
0
0
0
0
0
0
532
0.60113
ebf5ca4f90a237385342b586d5c1e142847a2572
4,875
py
Python
GUI/my_lib/factory.py
EnviableYapper0/FMachineSchedulerPL
05ba6a2169ee481062b71b917d1f32d26e240eb8
[ "MIT" ]
null
null
null
GUI/my_lib/factory.py
EnviableYapper0/FMachineSchedulerPL
05ba6a2169ee481062b71b917d1f32d26e240eb8
[ "MIT" ]
null
null
null
GUI/my_lib/factory.py
EnviableYapper0/FMachineSchedulerPL
05ba6a2169ee481062b71b917d1f32d26e240eb8
[ "MIT" ]
null
null
null
from . import machine as m from . import machine_calculator as mc from . import my_time as mt class Factory: def __init__(self, open_time=0.00, close_time=24.00): self.open_time = open_time self.close_time = close_time self.machine_id_map = {} self.machines = [] def get_opera...
35.326087
106
0.633231
4,779
0.980308
0
0
0
0
0
0
113
0.023179
ebfa57fc6af077b8e484bb5107bce4b51e06f9f3
1,898
py
Python
places/models.py
amureki/lunchtime-with-channels
7cf6cb15b88ceefbebd53963ff1e194d8df6c25c
[ "MIT" ]
null
null
null
places/models.py
amureki/lunchtime-with-channels
7cf6cb15b88ceefbebd53963ff1e194d8df6c25c
[ "MIT" ]
null
null
null
places/models.py
amureki/lunchtime-with-channels
7cf6cb15b88ceefbebd53963ff1e194d8df6c25c
[ "MIT" ]
null
null
null
from django.conf import settings from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from django_extensions.db.models import TimeStampedModel from stdimage import StdImageField from stdimage.utils import UploadToUUID class Place(TimeStampedModel): ...
29.2
67
0.615385
1,610
0.848261
0
0
976
0.514226
0
0
97
0.051106
ebfc9f2828a65b31b16c43b42091b7e322b73651
2,363
py
Python
models/process_dataset.py
Aremaki/MscProjectNMR
5bb8fb129d5fe326aa73b56cb7c5b01a17aebb0d
[ "MIT" ]
null
null
null
models/process_dataset.py
Aremaki/MscProjectNMR
5bb8fb129d5fe326aa73b56cb7c5b01a17aebb0d
[ "MIT" ]
null
null
null
models/process_dataset.py
Aremaki/MscProjectNMR
5bb8fb129d5fe326aa73b56cb7c5b01a17aebb0d
[ "MIT" ]
1
2021-07-28T11:18:00.000Z
2021-07-28T11:18:00.000Z
import tensorflow as tf def shuffle_and_batch_dataset(dataset, batch_size, shuffle_buffer=None): """ This function is used to shuffle and batch the dataset, using shuffle_buffer and batch_size. """ if shuffle_buffer is not None: dataset = dataset.shuffle(shuffle_buffer) dataset = datas...
41.45614
99
0.7427
0
0
0
0
0
0
0
0
890
0.37664
ebff48e4dc84757244340320b746691161bc3959
1,080
py
Python
bdc_collection_builder/celery/worker.py
rodolfolotte/bdc-collection-builder
62583f6c25bca79e7e1b5503bc6308298838c877
[ "MIT" ]
null
null
null
bdc_collection_builder/celery/worker.py
rodolfolotte/bdc-collection-builder
62583f6c25bca79e7e1b5503bc6308298838c877
[ "MIT" ]
null
null
null
bdc_collection_builder/celery/worker.py
rodolfolotte/bdc-collection-builder
62583f6c25bca79e7e1b5503bc6308298838c877
[ "MIT" ]
null
null
null
# # This file is part of Brazil Data Cube Collection Builder. # Copyright (C) 2019-2020 INPE. # # Brazil Data Cube Collection Builder is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # """Defines a structure component to run celery work...
25.714286
96
0.759259
0
0
0
0
458
0.424074
0
0
558
0.516667
2300582ed8688ca839e05903662437f7a910f9a9
1,648
py
Python
scratch/eyy/debug/bad_pair_analysis.py
sasgc6/pysmurf
a370b515ab717c982781223da147bea3c8fb3a9c
[ "BSD-3-Clause-LBNL" ]
3
2019-10-17T02:37:59.000Z
2022-03-09T16:42:34.000Z
scratch/eyy/debug/bad_pair_analysis.py
sasgc6/pysmurf
a370b515ab717c982781223da147bea3c8fb3a9c
[ "BSD-3-Clause-LBNL" ]
446
2019-04-10T04:46:20.000Z
2022-03-15T20:27:57.000Z
scratch/eyy/debug/bad_pair_analysis.py
sasgc6/pysmurf
a370b515ab717c982781223da147bea3c8fb3a9c
[ "BSD-3-Clause-LBNL" ]
13
2019-02-05T18:02:05.000Z
2021-03-02T18:41:49.000Z
import numpy as np import matplotlib.pyplot as plt import os f_cutoff = .25 df_cutoff = .05 data_dir = '/data/smurf_data/20181214/1544843999/outputs' f2, df2 = np.load(os.path.join(data_dir, 'band3_badres.npy')) f2p, df2p = np.load(os.path.join(data_dir, 'band3_badpair.npy')) m = np.ravel(np.where(np.logical_or(f2 >...
26.15873
69
0.646238
0
0
0
0
0
0
0
0
229
0.138956
230125cca40653427f41d2b5c28c03de5e593aca
2,794
py
Python
examples/pytorch/eager/blendcnn/utils.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
172
2021-09-14T18:34:17.000Z
2022-03-30T06:49:53.000Z
examples/pytorch/eager/blendcnn/utils.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
40
2021-09-14T02:26:12.000Z
2022-03-29T08:34:04.000Z
examples/pytorch/eager/blendcnn/utils.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
33
2021-09-15T07:27:25.000Z
2022-03-25T08:30:57.000Z
# Copyright 2018 Dong-Hyun Lee, Kakao Brain. # # Copyright (c) 2020 Intel Corporation # # 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 # # Unle...
28.222222
77
0.65927
0
0
0
0
0
0
0
0
1,278
0.457409
23012fe006d829b36579833bc95d73785791bbf3
1,983
py
Python
models/Nets.py
lorflea/FederatedLearningMLDL2021
453d273c14a06eb6d2522c1b9fe877b43212ab76
[ "MIT" ]
1
2021-11-22T01:20:29.000Z
2021-11-22T01:20:29.000Z
models/Nets.py
lorflea/FederatedLearningMLDL2021
453d273c14a06eb6d2522c1b9fe877b43212ab76
[ "MIT" ]
null
null
null
models/Nets.py
lorflea/FederatedLearningMLDL2021
453d273c14a06eb6d2522c1b9fe877b43212ab76
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import torch from torch import nn import torch.nn.functional as F class AlexNet(nn.Module): def __init__(self, num_classes=10): super(AlexNet, self).__init__() self.features = nn.Sequential( nn.Conv2d(3, 64, kernel_si...
30.984375
65
0.547151
1,843
0.9294
0
0
0
0
0
0
65
0.032779
2301362f160d7326e050b581a469859de16747d7
38,783
py
Python
carbondesign/tests/test_time_picker.py
dozymoe/django-carbondesign
34aed0cfdccfa90fcb5bf2bbd347229815f1417b
[ "MIT" ]
null
null
null
carbondesign/tests/test_time_picker.py
dozymoe/django-carbondesign
34aed0cfdccfa90fcb5bf2bbd347229815f1417b
[ "MIT" ]
null
null
null
carbondesign/tests/test_time_picker.py
dozymoe/django-carbondesign
34aed0cfdccfa90fcb5bf2bbd347229815f1417b
[ "MIT" ]
null
null
null
# pylint:disable=missing-module-docstring,missing-class-docstring,missing-function-docstring from .base import compare_template, SimpleTestCase class TimePickerTest(SimpleTestCase): maxDiff = None def test_rendered(self): template = """ {% load carbondesign %} {% TimePicker form.started_at %} """ ...
78.98778
267
0.766083
38,637
0.996235
0
0
0
0
0
0
38,511
0.992987
23020e348129d1d194a31757b17377da03a41aa9
652
py
Python
dongtai_agent_python/tests/policy/test_tracking.py
jinghao1/DongTai-agent-python
c06e9dd72c49bde952efe3e3153fc2f5501461ca
[ "Apache-2.0" ]
17
2021-11-13T11:57:10.000Z
2022-03-26T12:45:30.000Z
dongtai_agent_python/tests/policy/test_tracking.py
Bidaya0/DongTai-agent-python
4e437b22cb95648e583d1009df821520d7d1d3c3
[ "Apache-2.0" ]
2
2021-11-08T07:43:38.000Z
2021-12-09T02:23:46.000Z
dongtai_agent_python/tests/policy/test_tracking.py
Bidaya0/DongTai-agent-python
4e437b22cb95648e583d1009df821520d7d1d3c3
[ "Apache-2.0" ]
17
2021-11-02T08:21:57.000Z
2022-02-19T13:24:36.000Z
import unittest from dongtai_agent_python.policy import tracking class TestTracking(unittest.TestCase): def test_yaml_load_is_safe(self): try: import yaml self.assertFalse(tracking.yaml_load_is_safe(('test', yaml.UnsafeLoader), None)) self.assertFalse(tracking.yaml_loa...
29.636364
98
0.653374
534
0.819018
0
0
0
0
0
0
47
0.072086
2302c030895d0f8454025d172c02962a378b1662
1,107
py
Python
setup.py
mansam/validator.py
22d31a0b78e645cf4ec9694cdfb4612977370c6d
[ "MIT" ]
87
2015-01-29T15:43:44.000Z
2022-03-09T07:04:16.000Z
setup.py
mansam/validator.py
22d31a0b78e645cf4ec9694cdfb4612977370c6d
[ "MIT" ]
25
2015-01-05T14:19:53.000Z
2021-03-05T17:20:03.000Z
setup.py
mansam/validator.py
22d31a0b78e645cf4ec9694cdfb4612977370c6d
[ "MIT" ]
32
2015-08-20T06:17:33.000Z
2021-11-09T19:16:38.000Z
from setuptools import setup setup( name='validator.py', version='1.3.0', author='Samuel "mansam" Lucidi', author_email="[email protected]", packages=['validator'], url='https://github.com/mansam/validator.py', description='A library for appling schemas to data structures.', long_descri...
36.9
68
0.599819
0
0
0
0
0
0
0
0
753
0.680217
23045d3d5a94dd7bbdb73152afab227894299c52
3,137
py
Python
app.py
jjchshayan/heroku
7181631b52057a92d751e1756b7b422dfd8825c0
[ "MIT" ]
null
null
null
app.py
jjchshayan/heroku
7181631b52057a92d751e1756b7b422dfd8825c0
[ "MIT" ]
null
null
null
app.py
jjchshayan/heroku
7181631b52057a92d751e1756b7b422dfd8825c0
[ "MIT" ]
null
null
null
from telegram.ext import Updater from telegram import bot #!/usr/bin/env python # -*- coding: utf-8 -*- updater = Updater(token='660812730:AAEGP-xXkMKoplHR6YsUECqXB8diNgvlfbs') dispatcher = updater.dispatcher import logging import requests state = 1 logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s -...
29.87619
140
0.6927
0
0
0
0
0
0
0
0
1,912
0.584531
2304f8609ba1a32f4e4adb328ecb9521ea5b5b8e
893
py
Python
onconet/models/custom_resnet.py
harrivle/Mirai
ea2d4839f1f8b9f881798b819b2192ce2795bd5d
[ "MIT" ]
37
2021-01-28T06:00:34.000Z
2022-03-29T21:14:12.000Z
onconet/models/custom_resnet.py
NkwamPhilip/Mirai
70413de690da36c5878e2e6006711476e166bb1d
[ "MIT" ]
null
null
null
onconet/models/custom_resnet.py
NkwamPhilip/Mirai
70413de690da36c5878e2e6006711476e166bb1d
[ "MIT" ]
14
2021-02-02T09:42:18.000Z
2022-03-23T00:36:41.000Z
from torch import nn from onconet.models.factory import RegisterModel, load_pretrained_weights, get_layers from onconet.models.default_resnets import load_pretrained_model from onconet.models.resnet_base import ResNet @RegisterModel("custom_resnet") class CustomResnet(nn.Module): def __init__(self, args): ...
37.208333
85
0.712206
640
0.716685
0
0
672
0.75252
0
0
15
0.016797
2307774a7abd7ba51f7f8bdccce0f3ce8a1bc5ee
3,437
py
Python
cifar_mlp.py
oplatek/ALI
193b666f62236fa1837613beb807d9dcdf978ce6
[ "MIT" ]
null
null
null
cifar_mlp.py
oplatek/ALI
193b666f62236fa1837613beb807d9dcdf978ce6
[ "MIT" ]
null
null
null
cifar_mlp.py
oplatek/ALI
193b666f62236fa1837613beb807d9dcdf978ce6
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging from argparse import ArgumentParser import theano from theano import tensor as tt from blocks.algorithms import GradientDescent, Adam from blocks.bricks import MLP, Tanh, Softmax from blocks.bricks.cost import CategoricalCrossEntropy, MisclassificationRate from blocks.initializati...
39.965116
92
0.676171
0
0
0
0
0
0
0
0
344
0.100087
23088bb0c48cd2efc5f4f5582dd8f9fb037c941d
3,682
py
Python
src/sequel/hierarchical_search/functional.py
simone-campagna/sequel
a96e0f8b5000f8d0174f97f772cca5ac8a140acd
[ "Apache-2.0" ]
null
null
null
src/sequel/hierarchical_search/functional.py
simone-campagna/sequel
a96e0f8b5000f8d0174f97f772cca5ac8a140acd
[ "Apache-2.0" ]
null
null
null
src/sequel/hierarchical_search/functional.py
simone-campagna/sequel
a96e0f8b5000f8d0174f97f772cca5ac8a140acd
[ "Apache-2.0" ]
null
null
null
""" Search integral/derivative algorithm class """ from ..items import Items from ..sequence import integral, derivative, summation, product from ..utils import sequence_matches from .base import RecursiveSearchAlgorithm __all__ = [ "SearchSummation", "SearchProduct", "SearchIntegral", "SearchDeriv...
33.171171
95
0.608637
3,340
0.907116
2,330
0.632808
0
0
0
0
605
0.164313
230917ff4323cacb93016bdddc8f27e058c7786a
409
py
Python
data/plugins/items/camel.py
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
3
2019-05-09T16:59:13.000Z
2019-05-09T18:29:57.000Z
data/plugins/items/camel.py
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
null
null
null
data/plugins/items/camel.py
FavyTeam/Elderscape_server
38bf75396e4e13222be67d5f15eb0b9862dca6bb
[ "MIT" ]
7
2019-07-11T23:04:40.000Z
2021-08-02T14:27:13.000Z
from core import ServerConstants def first_click_object_6578(player): if (player.playerEquipment[ServerConstants.AMULET_SLOT] == 1712) and (player.playerEquipment[ServerConstants.CAPE_SLOT] == 10499) and (player.playerEquipment[ServerConstants.WEAPON_SLOT] == 11802): ItemAssistant.addItemToInventoryOrDrop(...
68.166667
201
0.777506
0
0
0
0
0
0
0
0
36
0.08802
230ca0bc145d70340fa1510e5f32fb9e40355ade
1,662
py
Python
tests/image/segmentation/test_backbones.py
lillekemiker/lightning-flash
a047330ba75486355378f22cbebfd053c3d63c08
[ "Apache-2.0" ]
null
null
null
tests/image/segmentation/test_backbones.py
lillekemiker/lightning-flash
a047330ba75486355378f22cbebfd053c3d63c08
[ "Apache-2.0" ]
null
null
null
tests/image/segmentation/test_backbones.py
lillekemiker/lightning-flash
a047330ba75486355378f22cbebfd053c3d63c08
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
42.615385
118
0.760529
0
0
0
0
885
0.532491
0
0
713
0.429001
230cbf98d0fce9a1f8d3eb7ee8c52b62685cd185
6,972
py
Python
src/ExtractData.py
AntoineMeresse/Terminal-chart
eff66c32d78c394849176c7777bf7c203dbac5b3
[ "MIT" ]
null
null
null
src/ExtractData.py
AntoineMeresse/Terminal-chart
eff66c32d78c394849176c7777bf7c203dbac5b3
[ "MIT" ]
null
null
null
src/ExtractData.py
AntoineMeresse/Terminal-chart
eff66c32d78c394849176c7777bf7c203dbac5b3
[ "MIT" ]
null
null
null
import sys import re from src.GenGraph import * class ExtractData: def __init__(self, genGraph): #print("Init extractData.") self.datas = list() self.datasDefine = False self.file = "pipe" # Cas de base ou l'on prend des données de stdin self.genGraph = genGraph ...
30.578947
270
0.49455
6,922
0.992544
0
0
0
0
0
0
4,493
0.64425
230cfdf0108fc8a76637145365ade46b19c0f345
1,642
py
Python
catalog/admin.py
iamsaeedfadaei/Library
45a7b5c421252e20d2e1c0f9b6794b85dfc40eb3
[ "MIT" ]
null
null
null
catalog/admin.py
iamsaeedfadaei/Library
45a7b5c421252e20d2e1c0f9b6794b85dfc40eb3
[ "MIT" ]
null
null
null
catalog/admin.py
iamsaeedfadaei/Library
45a7b5c421252e20d2e1c0f9b6794b85dfc40eb3
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Book, Author, BookInstance, Genre #creating inline for copy instances in book model by TabularInline. # we have foreignkey from bookinstances to book and from book to authors --> just the way of foreignkey! class BooksInstanceInline(admin.TabularInline): model =...
31.576923
110
0.699147
1,261
0.767966
0
0
1,209
0.736297
0
0
847
0.515834
230db22fc190c68752be940d1363fe5ecdb2a558
169
py
Python
backend/api/models.py
tuguldurio/fullstack-ecommerce
06257e704c657b008587aabb4075750899149b1d
[ "MIT" ]
null
null
null
backend/api/models.py
tuguldurio/fullstack-ecommerce
06257e704c657b008587aabb4075750899149b1d
[ "MIT" ]
null
null
null
backend/api/models.py
tuguldurio/fullstack-ecommerce
06257e704c657b008587aabb4075750899149b1d
[ "MIT" ]
null
null
null
from api.user.models import User from api.cart.models import Cart, CartProduct from api.order.models import Order, OrderProduct from api.product.models import Product
42.25
49
0.822485
0
0
0
0
0
0
0
0
0
0
230de14d7e6fc08a01de2fd55c6b8f3b77dd5b56
4,456
py
Python
chemistry/compressibilities/optimize_compressibility_factor_sigmoid_minimum.py
davidson16807/tectonics-approximations
f69570fd0a9693fad8e8ec27ccc34e0d6b3fd50b
[ "CC0-1.0" ]
null
null
null
chemistry/compressibilities/optimize_compressibility_factor_sigmoid_minimum.py
davidson16807/tectonics-approximations
f69570fd0a9693fad8e8ec27ccc34e0d6b3fd50b
[ "CC0-1.0" ]
null
null
null
chemistry/compressibilities/optimize_compressibility_factor_sigmoid_minimum.py
davidson16807/tectonics-approximations
f69570fd0a9693fad8e8ec27ccc34e0d6b3fd50b
[ "CC0-1.0" ]
null
null
null
from math import * import csv import random import numpy as np from optimize import genetic_algorithm with open('pTZ.csv', newline='') as csvfile: csvreader = csv.reader(csvfile, delimiter=',', quotechar='"') next(csvreader, None) # skip header observations = [( np.array([float(p),float(T)]), float(Z)) ...
31.380282
110
0.60772
0
0
0
0
0
0
0
0
987
0.221499