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
e7ce0818904d46d11eb74c9bc1c1d5e0067a9008
68,039
py
Python
GraphTrace.py
a-dera/Graphe
70886565cc1dbda9f343dc11edcc480e2372934f
[ "MIT" ]
null
null
null
GraphTrace.py
a-dera/Graphe
70886565cc1dbda9f343dc11edcc480e2372934f
[ "MIT" ]
null
null
null
GraphTrace.py
a-dera/Graphe
70886565cc1dbda9f343dc11edcc480e2372934f
[ "MIT" ]
null
null
null
################################################## # Importation des Bibliotheques et fonctions: from tkinter import * from PIL import ImageGrab from tkinter import PhotoImage import tkinter as tk from tkinter import ttk from collections import defaultdict class Euler: def __init__(self,vertices): ...
37.322545
152
0.657667
62,026
0.911624
0
0
0
0
0
0
11,685
0.17174
e7cfb5f65289821950b5026983f1eb4b8e97063e
1,829
py
Python
xen/xen-4.2.2/tools/xm-test/tests/unpause/01_unpause_basic_pos.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2018-02-02T00:15:26.000Z
2018-02-02T00:15:26.000Z
xen/xen-4.2.2/tools/xm-test/tests/unpause/01_unpause_basic_pos.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
null
null
null
xen/xen-4.2.2/tools/xm-test/tests/unpause/01_unpause_basic_pos.py
zhiming-shen/Xen-Blanket-NG
47e59d9bb92e8fdc60942df526790ddb983a5496
[ "Apache-2.0" ]
1
2019-05-27T09:47:18.000Z
2019-05-27T09:47:18.000Z
#!/usr/bin/python # Copyright (C) International Business Machines Corp., 2005 # Author: Paul Larson <pl@us.ibm.com> # Description: # Positive Tests: # Tests for xm unpause # 1) Create domain, verify it's up with console # 2) randomly pause and unpause the domain # 3) unpause it one last time # 4) verify it's still a...
23.753247
73
0.663204
0
0
0
0
0
0
0
0
886
0.484418
e7d05b674fc0a756fe709726953552b8a0021a86
1,420
py
Python
commands/elections.py
Nichodon/Democracy-Bot
708613944b25f7331b18153e5f90c18f44e38aff
[ "MIT" ]
null
null
null
commands/elections.py
Nichodon/Democracy-Bot
708613944b25f7331b18153e5f90c18f44e38aff
[ "MIT" ]
null
null
null
commands/elections.py
Nichodon/Democracy-Bot
708613944b25f7331b18153e5f90c18f44e38aff
[ "MIT" ]
null
null
null
import asyncio from demobot.utils import * from demobot.handlers import add_message_handler, nested_get, nested_set, nested_pop from commands.utilities import save async def running(Demobot, msg, reg): if nested_get(msg.server.id, "roles", 'citizen') in msg.author.roles: aliases = { 'rep': 're...
43.030303
117
0.619718
0
0
0
0
0
0
1,142
0.804225
350
0.246479
e7d0a01dfe244608cccd3bc500765f871dee666f
861
py
Python
python/p-test.py
kettlewell/bashisms
c6222424984264c7c6488f20ea5591ff5078d040
[ "MIT" ]
null
null
null
python/p-test.py
kettlewell/bashisms
c6222424984264c7c6488f20ea5591ff5078d040
[ "MIT" ]
null
null
null
python/p-test.py
kettlewell/bashisms
c6222424984264c7c6488f20ea5591ff5078d040
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Force Python3 ''' from __future__ import print_function from pprint import pprint from pssh.pssh_client import ParallelSSHClient from pssh.exceptions import AuthenticationException, \ UnknownHostException, ConnectionErrorException import pssh.utils pssh.utils.enable_host_logger() hosts...
23.27027
83
0.732869
0
0
0
0
0
0
0
0
201
0.233449
e7d2d32363335e20bef823b3804fd88486bdc7c4
122
py
Python
blocky_hardware.py
curlyz/blocky
ef23f81bd27a7a5cf34ec10b35dd9ca3fbd67691
[ "MIT" ]
null
null
null
blocky_hardware.py
curlyz/blocky
ef23f81bd27a7a5cf34ec10b35dd9ca3fbd67691
[ "MIT" ]
null
null
null
blocky_hardware.py
curlyz/blocky
ef23f81bd27a7a5cf34ec10b35dd9ca3fbd67691
[ "MIT" ]
null
null
null
Port1 = { "pin1" : 33 , "pin2" : 32 , "adc" : 33} #ICSP Cable Port2 = { "pin1" : 13 , "pin2" : 14 , "adc" : 34} #MP3 Port
61
62
0.491803
0
0
0
0
0
0
0
0
55
0.45082
e7d2ffd3f7f2be532081ab4ccbd72d2f7d534660
1,968
py
Python
text_mode.py
JacekPrzemieniecki/UNIFAC
c32702aeffd695a9fd3883cf150500e902df7a97
[ "MIT" ]
6
2016-01-04T02:33:13.000Z
2021-07-18T08:32:51.000Z
text_mode.py
JacekPrzemieniecki/UNIFAC
c32702aeffd695a9fd3883cf150500e902df7a97
[ "MIT" ]
1
2020-07-27T17:56:23.000Z
2020-08-10T06:30:06.000Z
text_mode.py
JacekPrzemieniecki/UNIFAC
c32702aeffd695a9fd3883cf150500e902df7a97
[ "MIT" ]
6
2015-01-02T19:18:16.000Z
2021-04-16T08:12:14.000Z
''' Created on 16-10-2012 @author: Jacek Przemieniecki ''' from unifac.facade import Facade #@UnresolvedImport class UI(object): def __init__(self): self.facade = Facade() def parse_file(self, f): """ Opens the file from patch f and executes commands inside""" with open(f...
31.741935
102
0.571138
1,801
0.915142
0
0
0
0
0
0
748
0.380081
e7d451a5141cd5cf0b8b79bacc909a39ece22eab
848
py
Python
ping.py
FoxUnderGround/Ping-Plot
4a61b147c2e1f4ee79cd77ea8500fc70175b59c7
[ "MIT" ]
1
2020-03-06T14:18:34.000Z
2020-03-06T14:18:34.000Z
ping.py
FoxUnderGround/Ping-Plot
4a61b147c2e1f4ee79cd77ea8500fc70175b59c7
[ "MIT" ]
null
null
null
ping.py
FoxUnderGround/Ping-Plot
4a61b147c2e1f4ee79cd77ea8500fc70175b59c7
[ "MIT" ]
null
null
null
from pythonping import ping import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib import style style.use('fivethirtyeight') fig = plt.figure() ax1 = fig.add_subplot(1,1,1) xs_min=[0] ys_min=[5] def animate(z): ping_out = ping('8.8.8.8', count = 2) ping_arr...
21.74359
64
0.610849
0
0
0
0
0
0
0
0
62
0.073113
e7d57733a14bd14b22ac54f00ccfc5903ce8b1c4
669
py
Python
cumulusci/tasks/robotframework/tests/TestLibrary.py
jdominiczak/CumulusCI
f706c1906f9eb6d604c571a9dd16f5d0ed38599f
[ "BSD-3-Clause" ]
163
2018-09-13T18:49:34.000Z
2022-03-25T08:37:15.000Z
cumulusci/tasks/robotframework/tests/TestLibrary.py
jdominiczak/CumulusCI
f706c1906f9eb6d604c571a9dd16f5d0ed38599f
[ "BSD-3-Clause" ]
1,280
2018-09-11T20:09:37.000Z
2022-03-31T18:40:21.000Z
cumulusci/tasks/robotframework/tests/TestLibrary.py
jdominiczak/CumulusCI
f706c1906f9eb6d604c571a9dd16f5d0ed38599f
[ "BSD-3-Clause" ]
125
2015-01-17T16:05:39.000Z
2018-09-06T19:05:00.000Z
# from cumulusci.robotframework.utils import selenium_retry # The following decorator is commented out, because with it the # library gets two extra keywords. I'm not certain if that's what # should be happening, or if those two keywords are actually just # helper functions that are accidentially ending up as keywords...
35.210526
65
0.748879
327
0.488789
0
0
0
0
0
0
515
0.769806
e7d5c15d7006467f20bff9ef1db02036b30e8aa0
3,875
py
Python
python/spellcheck.py
andrewgaul/src
4dd18eaf692c1a3740b00c68b3c088842d958e7a
[ "MIT" ]
null
null
null
python/spellcheck.py
andrewgaul/src
4dd18eaf692c1a3740b00c68b3c088842d958e7a
[ "MIT" ]
null
null
null
python/spellcheck.py
andrewgaul/src
4dd18eaf692c1a3740b00c68b3c088842d958e7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''spellcheck.py - parse source code and spell check comments, strings, or all tokens. Usage: find $SRCDIR -name \*.java | spellcheck.py --dict /usr/share/dict/words Most users will need a large custom dictionary of technical terms, e.g., HTTP, malloc, etc. Users may want to pipe output throug...
33.405172
79
0.594065
0
0
1,302
0.336
0
0
0
0
1,413
0.364645
e7d8a57bd82d83430fc2050120ea5bf3d037a7e3
1,981
py
Python
sliding_racket/Environment.py
alizindari/Deep-Reinforcement-Learning
315aedcaaa2ba134e77c95270fd30ed5d814182c
[ "MIT" ]
1
2022-01-24T06:11:18.000Z
2022-01-24T06:11:18.000Z
sliding_racket/Environment.py
alizindari/Deep-Reinforcement-Learning
315aedcaaa2ba134e77c95270fd30ed5d814182c
[ "MIT" ]
null
null
null
sliding_racket/Environment.py
alizindari/Deep-Reinforcement-Learning
315aedcaaa2ba134e77c95270fd30ed5d814182c
[ "MIT" ]
null
null
null
import numpy as np from collections import deque from experience_replay import * from brain import * from agent import * from Hyperparameters import * class Environment: def __init__(self,x,y): param = Hyperparameters() self.x = x self.y = y self.buff = deque(maxlen= param.CHANNEL...
27.513889
98
0.498233
1,790
0.903584
0
0
0
0
0
0
10
0.005048
e7da5c2603cd6fccdacd996246a799e84c9ef725
2,040
py
Python
restful_falcon/contrib/celery_results/db/model/task.py
wynterwang/restful-falcon
f246e14c8442f358c862c118ae1dfdbd93d9e0a0
[ "MIT" ]
null
null
null
restful_falcon/contrib/celery_results/db/model/task.py
wynterwang/restful-falcon
f246e14c8442f358c862c118ae1dfdbd93d9e0a0
[ "MIT" ]
null
null
null
restful_falcon/contrib/celery_results/db/model/task.py
wynterwang/restful-falcon
f246e14c8442f358c862c118ae1dfdbd93d9e0a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # __author__ = "wynterwang" # __date__ = "2020/9/18" from __future__ import absolute_import from datetime import datetime from celery import states from restful_falcon.core.db.model import Column from restful_falcon.core.db.model import Model from restful_falcon.core.db.model import Sequence ...
31.384615
98
0.736275
1,419
0.695588
0
0
0
0
0
0
354
0.173529
e7db7546214ecb41828bad2746f7c33166640ce9
700
py
Python
mirari/SV/urls.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
mirari/SV/urls.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
18
2019-12-27T19:58:20.000Z
2022-02-27T08:17:49.000Z
mirari/SV/urls.py
gcastellan0s/mirariapp
24a9db06d10f96c894d817ef7ccfeec2a25788b7
[ "MIT" ]
null
null
null
from mirari.mirari.urls import * from django.views.generic.base import RedirectView from .views import * from .vars import * app_name = APP urlpatterns = [ path('sv/', sv__Sellpoint__TemplateView.as_view(), name='sv__Sellpoint__TemplateView'), path('api/SellpointApiView/<slug:app>/<slug:action>/<slug:model>/...
46.666667
129
0.775714
0
0
0
0
0
0
0
0
256
0.365714
e7db7db77f02f9ba4f004fea0210493ed47227bf
168
py
Python
My/test.py
wangzihan424/Myblog
480443f2b6209f69dc8ab4e36349a41bf3c5c0a1
[ "MIT" ]
1
2018-01-01T12:31:51.000Z
2018-01-01T12:31:51.000Z
My/test.py
wangzihan424/Myblog
480443f2b6209f69dc8ab4e36349a41bf3c5c0a1
[ "MIT" ]
null
null
null
My/test.py
wangzihan424/Myblog
480443f2b6209f69dc8ab4e36349a41bf3c5c0a1
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- class People(object): pass class People1(object): def __str__(self): return "123" p = People() print p p1 = People1() print p1
12.923077
22
0.60119
96
0.571429
0
0
0
0
0
0
27
0.160714
e7dbfa3534c103b51f102189f319e15ea8011535
7,178
py
Python
helpers.py
jyh764790374/R-Net-in-CNTK
2eac05cb45bc52635bb4698729805d7e12af436e
[ "Unlicense" ]
17
2018-07-27T07:09:18.000Z
2021-02-27T17:08:36.000Z
helpers.py
jyh764790374/R-Net-in-CNTK-MS-MARCO-
2eac05cb45bc52635bb4698729805d7e12af436e
[ "Unlicense" ]
null
null
null
helpers.py
jyh764790374/R-Net-in-CNTK-MS-MARCO-
2eac05cb45bc52635bb4698729805d7e12af436e
[ "Unlicense" ]
2
2018-10-17T02:51:06.000Z
2018-10-21T11:47:54.000Z
import numpy as np import cntk as C from cntk.layers.blocks import _INFERRED def OptimizedRnnStack(hidden_dim, num_layers=1, recurrent_op='gru', bidirectional=False, use_cudnn=True, name=''): if use_cudnn: W = C.parameter(_INFERRED + (hidden_dim,), init=C.glorot_uniform()) def func(x): ...
41.976608
132
0.639454
872
0.121482
0
0
0
0
0
0
3,629
0.505573
e7dd0fd747c77ccfad30186eb48f1feb9667fdbd
7,400
py
Python
submodules/hal/assemblyHub/prepareHubFiles.py
pbasting/cactus
833d8ca015deecdfa5d0aca01211632cdaca9e58
[ "MIT-0" ]
null
null
null
submodules/hal/assemblyHub/prepareHubFiles.py
pbasting/cactus
833d8ca015deecdfa5d0aca01211632cdaca9e58
[ "MIT-0" ]
null
null
null
submodules/hal/assemblyHub/prepareHubFiles.py
pbasting/cactus
833d8ca015deecdfa5d0aca01211632cdaca9e58
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python #Copyright (C) 2013 by Ngan Nguyen # #Released under the MIT license, see LICENSE.txt """ Make "hub.txt", "groups.txt", files that are required by AssemblyHub Also prepare description.html files """ import os, sys from sonLib.bioio import system from optparse import OptionGroup from hal.as...
40.217391
277
0.662027
0
0
0
0
0
0
0
0
3,317
0.448243
e7defab092a8c6a31ee2f6d14dfbb7eb3596456d
475
py
Python
src/sqlfluff/core/__init__.py
pvonglehn/sqlfluff
61eb251ee96b1b70aa477f3a2f2b9c351a04c1e8
[ "MIT" ]
null
null
null
src/sqlfluff/core/__init__.py
pvonglehn/sqlfluff
61eb251ee96b1b70aa477f3a2f2b9c351a04c1e8
[ "MIT" ]
null
null
null
src/sqlfluff/core/__init__.py
pvonglehn/sqlfluff
61eb251ee96b1b70aa477f3a2f2b9c351a04c1e8
[ "MIT" ]
1
2021-03-07T21:49:52.000Z
2021-03-07T21:49:52.000Z
"""The core elements of sqlfluff.""" # flake8: noqa: F401 # Config objects from sqlfluff.core.config import FluffConfig # Public classes from sqlfluff.core.linter import Linter from sqlfluff.core.parser import Lexer, Parser # Dialect introspection from sqlfluff.core.dialects import dialect_selector, dialect_readout...
20.652174
68
0.768421
0
0
0
0
0
0
0
0
131
0.275789
e7e190c401cd34896ce2b8d4d09a1b734e5c48e3
6,698
py
Python
tools/fastqc/rgFastQC.py
bebatut/tools-iuc
4fb528145289ad4db04e4589c02e9ddaa1194138
[ "MIT" ]
null
null
null
tools/fastqc/rgFastQC.py
bebatut/tools-iuc
4fb528145289ad4db04e4589c02e9ddaa1194138
[ "MIT" ]
null
null
null
tools/fastqc/rgFastQC.py
bebatut/tools-iuc
4fb528145289ad4db04e4589c02e9ddaa1194138
[ "MIT" ]
null
null
null
""" Rewrite of rgFastQC.py for Version 0.11.2 of FastQC. Changes implemented from tmcgowan at https://testtoolshed.g2.bx.psu.edu/view/tmcgowan/fastqc and iuc at https://toolshed.g2.bx.psu.edu/view/iuc/fastqc with minor changes and bug fixes SYNOPSIS rgFastQC.py -i input_file -j input_file.name -o output_html_fil...
39.169591
148
0.627351
4,982
0.743804
0
0
0
0
0
0
2,572
0.383995
99adaa9fbb76e38861e85eb3688d0298edfd1677
5,563
py
Python
appengine/monorail/framework/test/paginate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/framework/test/paginate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/monorail/framework/test/paginate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Unit tests for pagination classes.""" from __future__ import print_function from __future__ ...
38.10274
77
0.729642
4,992
0.897358
0
0
0
0
0
0
1,095
0.196836
99addb00927f314ffddb52609797a63c1bd4e073
4,022
py
Python
backend/google_calendar.py
engineerjoe440/djjoecalendar
02e88861d460d71527bf5d714913fd148579b258
[ "MIT" ]
null
null
null
backend/google_calendar.py
engineerjoe440/djjoecalendar
02e88861d460d71527bf5d714913fd148579b258
[ "MIT" ]
null
null
null
backend/google_calendar.py
engineerjoe440/djjoecalendar
02e88861d460d71527bf5d714913fd148579b258
[ "MIT" ]
null
null
null
################################################################################ """ DJ JOE Website Availability Calendar ------------------------------------ (c) 2021 - Stanley Solutions - Joe Stanley This application serves the React frontend required to demonstrate the available dates for DJ Joe Services. """ ####...
34.973913
83
0.592491
0
0
0
0
0
0
0
0
1,532
0.380905
99aff1381f53e0fd438acad0daa71781fe93be07
5,764
py
Python
seutil/Stream.py
JiyangZhang/seutil
6a2d0961a5f78f2adbf9f0b5f292f6be71780ca2
[ "Apache-2.0" ]
6
2020-07-02T02:39:59.000Z
2022-02-08T18:38:39.000Z
seutil/Stream.py
JiyangZhang/seutil
6a2d0961a5f78f2adbf9f0b5f292f6be71780ca2
[ "Apache-2.0" ]
5
2020-11-29T02:26:50.000Z
2022-01-24T16:26:54.000Z
seutil/Stream.py
JiyangZhang/seutil
6a2d0961a5f78f2adbf9f0b5f292f6be71780ca2
[ "Apache-2.0" ]
1
2020-10-09T23:31:22.000Z
2020-10-09T23:31:22.000Z
from pathlib import Path import numpy as np import random import subprocess from typing import * from .IOUtils import IOUtils class Stream: """ Streams help manipulate sequences of objects. """ def __init__(self): self.items = list() return @classmethod def of(cls, one_or_mor...
32.022222
124
0.566967
5,634
0.977446
550
0.09542
1,376
0.238723
0
0
1,152
0.199861
99b7f2669bc39124ccbb858ced46317dfc7b5280
7,789
py
Python
packages/dinesti/python/_grab.py
USEPA/Water-Security-Toolkit
6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb
[ "BSD-3-Clause" ]
3
2019-06-10T18:04:14.000Z
2020-12-05T18:11:40.000Z
packages/dinesti/python/_grab.py
USEPA/Water-Security-Toolkit
6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb
[ "BSD-3-Clause" ]
null
null
null
packages/dinesti/python/_grab.py
USEPA/Water-Security-Toolkit
6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb
[ "BSD-3-Clause" ]
2
2020-09-24T19:04:14.000Z
2020-12-05T18:11:43.000Z
# Copyright (2013) Sandia Corporation. Under the terms of Contract # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government # retains certain rights in this software. # # This software is released under the FreeBSD license as described # in License.txt import time import string import subprocess import os im...
7,789
7,789
0.705867
0
0
0
0
0
0
0
0
7,789
1
99b9d977ad5ba85f80dfdf899e7e306d68769703
246
py
Python
main.py
FlamptX/topgg-webhook-cog
b937bbef71ada9a00b6e748475fa55e5cedbf6ee
[ "MIT" ]
1
2021-05-11T16:22:00.000Z
2021-05-11T16:22:00.000Z
main.py
FlamptX/topgg-webhook-cog
b937bbef71ada9a00b6e748475fa55e5cedbf6ee
[ "MIT" ]
null
null
null
main.py
FlamptX/topgg-webhook-cog
b937bbef71ada9a00b6e748475fa55e5cedbf6ee
[ "MIT" ]
null
null
null
from discord.ext import commands from configparser import ConfigParser parser = ConfigParser() parser.read("config.txt") TOKEN = parser.get('config', 'token') bot = commands.Bot(command_prefix='!') bot.load_extension("Webhook") bot.run(TOKEN)
20.5
38
0.760163
0
0
0
0
0
0
0
0
39
0.158537
99b9dbb04990991f85b416338b39b80cb298f798
567
py
Python
test_ghost/test_01_basic_functionality.py
prosky-pmaj/python-framework-for-web-ui-and-api-testing
6218aca2e5a45f26507ab624724e1f17dca5546f
[ "MIT" ]
null
null
null
test_ghost/test_01_basic_functionality.py
prosky-pmaj/python-framework-for-web-ui-and-api-testing
6218aca2e5a45f26507ab624724e1f17dca5546f
[ "MIT" ]
null
null
null
test_ghost/test_01_basic_functionality.py
prosky-pmaj/python-framework-for-web-ui-and-api-testing
6218aca2e5a45f26507ab624724e1f17dca5546f
[ "MIT" ]
null
null
null
from components.ghost.blogPage import BlogPage from components.ghost.adminPanelPage import AdminPanelPage class TestBlogPage(BlogPage): def test_01_open_blog_page(self): self.go_to() assert self.get_title() == "Blog for Testing" class TestAdminPanelPage(AdminPanelPage): def test_01_open_admi...
27
58
0.714286
455
0.802469
0
0
0
0
0
0
18
0.031746
99ba4295d40e9eb27422490957fc057fa213b493
1,038
py
Python
data_prep/yelp_dataset/fix_user.py
Nithanaroy/GeoReachRecommender
74443bad1cb363582736f8fa9294a91321848def
[ "MIT" ]
1
2020-03-25T17:39:10.000Z
2020-03-25T17:39:10.000Z
data_prep/yelp_dataset/fix_user.py
Nithanaroy/GeoReachRecommender
74443bad1cb363582736f8fa9294a91321848def
[ "MIT" ]
null
null
null
data_prep/yelp_dataset/fix_user.py
Nithanaroy/GeoReachRecommender
74443bad1cb363582736f8fa9294a91321848def
[ "MIT" ]
4
2017-01-21T15:16:55.000Z
2020-03-28T17:43:47.000Z
""" { 'type': 'user', 'user_id': (encrypted user id), 'name': (first name), 'review_count': (review count), 'average_stars': (floating point average, like 4.31), 'votes': {(vote type): (count)}, 'friends': [(friend user_ids)], 'elite': [(years_elite)], 'yelping_since': (date, formatt...
25.95
58
0.504817
0
0
0
0
0
0
0
0
616
0.593449
99bb6a49211d151c035db736f93150d9bd8b0d82
5,085
py
Python
src/GlobalTracker/scene.py
lleon95/NanoSciTracker-Python
f682c1f3b9b9f76a6de8ea816df910715539edf1
[ "Apache-2.0" ]
null
null
null
src/GlobalTracker/scene.py
lleon95/NanoSciTracker-Python
f682c1f3b9b9f76a6de8ea816df910715539edf1
[ "Apache-2.0" ]
null
null
null
src/GlobalTracker/scene.py
lleon95/NanoSciTracker-Python
f682c1f3b9b9f76a6de8ea816df910715539edf1
[ "Apache-2.0" ]
null
null
null
# NanoSciTracker - 2020 # Author: Luis G. Leon Vega <luis@luisleon.me> # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to y...
33.019481
86
0.627139
3,939
0.774631
0
0
0
0
0
0
1,288
0.253294
99bbb76447ce3721bfcbb6a8e1979553d2d5700b
310
py
Python
latex/code/paradigms/oop/class_abstract.py
nikoladze/icsc-paradigms-and-patterns
019e51b6fa7747a9a7ee24ca48315e1988565ef2
[ "CC0-1.0", "CC-BY-4.0" ]
10
2020-09-28T12:14:31.000Z
2021-09-22T18:38:13.000Z
latex/code/paradigms/oop/class_abstract.py
nikoladze/icsc-paradigms-and-patterns
019e51b6fa7747a9a7ee24ca48315e1988565ef2
[ "CC0-1.0", "CC-BY-4.0" ]
5
2020-09-28T13:40:52.000Z
2021-12-06T16:38:09.000Z
latex/code/paradigms/oop/class_abstract.py
nikoladze/icsc-paradigms-and-patterns
019e51b6fa7747a9a7ee24ca48315e1988565ef2
[ "CC0-1.0", "CC-BY-4.0" ]
5
2020-09-28T13:10:45.000Z
2021-12-06T16:05:16.000Z
from abc import ABC, abstractmethod class Shape(ABC): @abstractmethod def calculate_area(self): pass @abstractmethod def draw(self): pass class Rectangle(Shape): def __init__(self, ...): ... def calculate_area(self): # concrete implementation here
15.5
38
0.619355
268
0.864516
0
0
106
0.341935
0
0
30
0.096774
99bc36674ac9930132b7fa40a1504d6148e42d4d
7,573
py
Python
jmeter_api/configs/http_cookie_manager/elements.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
11
2020-03-22T13:30:21.000Z
2021-12-25T06:23:44.000Z
jmeter_api/configs/http_cookie_manager/elements.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
37
2019-12-18T13:12:50.000Z
2022-02-10T10:52:37.000Z
jmeter_api/configs/http_cookie_manager/elements.py
dashawn888/jmeter_api
1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd
[ "Apache-2.0" ]
5
2019-12-06T10:55:56.000Z
2020-06-01T19:32:32.000Z
import logging from typing import List, Optional from enum import Enum from xml.etree.ElementTree import Element from jmeter_api.basics.config.elements import BasicConfig from jmeter_api.basics.utils import Renderable, FileEncoding, tree_to_str class CookiePolicy(Enum): STANDARD = 'standard' STANDARD_STRICT...
32.502146
88
0.575201
7,313
0.965668
0
0
3,483
0.459923
0
0
1,272
0.167965
99bc394d69ac0c2ddde0ba6fd63c903bf2c13144
13,338
py
Python
electionBuster.py
RarW0lf/electionBuster
394e92a972c0a6af260811985a8051af40ffa25d
[ "MIT" ]
16
2015-10-22T01:37:28.000Z
2018-10-17T13:05:44.000Z
electionBuster.py
RarW0lf/electionBuster
394e92a972c0a6af260811985a8051af40ffa25d
[ "MIT" ]
2
2018-02-10T00:05:43.000Z
2018-05-17T22:48:22.000Z
electionBuster.py
thorshand/electionBuster
394e92a972c0a6af260811985a8051af40ffa25d
[ "MIT" ]
4
2017-08-02T12:41:44.000Z
2018-08-14T16:16:41.000Z
#!/usr/bin/python3.5 ################################################## ## Author: Joshua Franklin, Kevin Franklin ## Example input to start: ## sudo ./electionBuster.py -f josh -l franklin -y 2014 -e senate -s pennsyltucky ## 6 arguments are passed: ## 1: The first name of the candidate (mandatory) ## 2: The mi...
35.568
204
0.647623
571
0.04281
0
0
0
0
0
0
6,715
0.503449
99bc54e60d9317663e39e91ec8fe0cf6bc80d209
20,227
py
Python
core/authentication/__init__.py
Sick-codes/core
da9250f27a5de4fc3a08e9c47064b19f484b042b
[ "Apache-2.0" ]
null
null
null
core/authentication/__init__.py
Sick-codes/core
da9250f27a5de4fc3a08e9c47064b19f484b042b
[ "Apache-2.0" ]
null
null
null
core/authentication/__init__.py
Sick-codes/core
da9250f27a5de4fc3a08e9c47064b19f484b042b
[ "Apache-2.0" ]
null
null
null
"""Initialization of authentication.""" import json import logging import secrets import uuid from typing import TYPE_CHECKING, List, Optional if TYPE_CHECKING: from core.core import ApplicationCore import aiohttp_jinja2 from aiohttp import hdrs, web from ..const import CONF_TOKEN_LIFETIME from .auth_client impo...
39.738703
145
0.565531
19,760
0.976912
0
0
7,371
0.364414
18,144
0.897019
7,853
0.388243
99bc74d2f622c7d0048f1d7a1244333cdfa0d30a
785
py
Python
Utils/Image_processing.py
philshams/FC_analysis
cabe2385d5061d206a21b230605bfce9e39ec7f2
[ "MIT" ]
null
null
null
Utils/Image_processing.py
philshams/FC_analysis
cabe2385d5061d206a21b230605bfce9e39ec7f2
[ "MIT" ]
null
null
null
Utils/Image_processing.py
philshams/FC_analysis
cabe2385d5061d206a21b230605bfce9e39ec7f2
[ "MIT" ]
null
null
null
import cv2 def process_background(background, track_options): """ extract background: first frame of first video of a session Allow user to specify ROIs on the background image """ print(' ... extracting background') cv2.startWindowThread() if len(background.shape) == 3: gray = cv2.cv...
29.074074
78
0.628025
0
0
0
0
0
0
0
0
242
0.30828
99bcdcd5e66866adeb754619341836bf5daa27c7
1,553
py
Python
python/ctci-merge-sort.py
gajubadge11/hackerrank-3
132a5019b7ed21507bb95b5063fa66c446b0eff7
[ "MIT" ]
21
2015-02-09T18:08:38.000Z
2021-11-08T15:00:48.000Z
python/ctci-merge-sort.py
gajubadge11/hackerrank-3
132a5019b7ed21507bb95b5063fa66c446b0eff7
[ "MIT" ]
7
2020-04-12T23:00:19.000Z
2021-01-30T23:44:24.000Z
python/ctci-merge-sort.py
gajubadge11/hackerrank-3
132a5019b7ed21507bb95b5063fa66c446b0eff7
[ "MIT" ]
27
2015-07-22T18:08:12.000Z
2022-02-28T19:50:26.000Z
#!/bin/python3 import math import os import random import re import sys # This solution times out on Hackerrank with Python 3 # However, it passes all test cases with Pypy 3 def countInversions(arr): global COUNT_INVERSIONS COUNT_INVERSIONS = 0 mergeSort(arr) return COUNT_INVERSIONS def mergeSort(...
24.650794
67
0.647135
0
0
0
0
0
0
0
0
310
0.199614
99bd70b0b1f3c2fefc5fbd3c5e4dfb7838ccf414
447
py
Python
blogapp/models.py
FnK-Lap/Unchained
3a78d0597ab34737fdcc6d347c87063e93fad9cf
[ "MIT" ]
null
null
null
blogapp/models.py
FnK-Lap/Unchained
3a78d0597ab34737fdcc6d347c87063e93fad9cf
[ "MIT" ]
null
null
null
blogapp/models.py
FnK-Lap/Unchained
3a78d0597ab34737fdcc6d347c87063e93fad9cf
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Post(models.Model): content = models.TextField() created_at = models.DateTimeField() def __str__(self): return self.content class Comment(models.Model): comment = models.CharField(max_length=200) created_at = models.DateTi...
29.8
66
0.693512
388
0.868009
0
0
0
0
0
0
26
0.058166
99be8e0ad90bd5d8dfd03aaa447d0efe4fc69820
267
py
Python
FusionIIIT/applications/gymkhana/migrations/0014_merge_20200606_1238.py
sabhishekpratap5/sonarcubeTest2
9bd8105e457f6feb8c38fa94b335e54783fca99e
[ "bzip2-1.0.6" ]
2
2020-06-17T11:59:08.000Z
2020-07-10T12:17:35.000Z
FusionIIIT/applications/gymkhana/migrations/0014_merge_20200606_1238.py
sabhishekpratap5/sonarcubeTest2
9bd8105e457f6feb8c38fa94b335e54783fca99e
[ "bzip2-1.0.6" ]
19
2019-09-08T06:01:14.000Z
2020-05-21T09:08:20.000Z
FusionIIIT/applications/gymkhana/migrations/0014_merge_20200606_1238.py
sabhishekpratap5/sonarcubeTest2
9bd8105e457f6feb8c38fa94b335e54783fca99e
[ "bzip2-1.0.6" ]
14
2019-08-31T12:25:42.000Z
2022-01-12T08:05:33.000Z
# Generated by Django 3.0.6 on 2020-06-06 12:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('gymkhana', '0005_auto_20200605_0937'), ('gymkhana', '0013_event_info'), ] operations = [ ]
17.8
48
0.640449
182
0.681648
0
0
0
0
0
0
109
0.40824
99bf91ac2f49e24944ae85032ce5745ad6b70267
21,009
py
Python
ENCODE_publications.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
null
null
null
ENCODE_publications.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
null
null
null
ENCODE_publications.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: latin-1 -*- from Bio import Entrez from Bio import Medline import argparse import os import csv import logging import encodedcc EPILOG = ''' Takes in a VERY specific file format to use for updating the publications Also can update the existing publications using the pubmed database...
48.85814
228
0.524775
13,188
0.627731
0
0
0
0
0
0
5,493
0.261459
99c06645644d0ffeca98076ebecceb6c2c273402
2,044
py
Python
clusters/server/tests/day_test.py
ashsawh/stocks
3f8f0b10d606062ef3abb5160836eb23696f48b0
[ "Apache-2.0" ]
1
2019-07-29T20:23:39.000Z
2019-07-29T20:23:39.000Z
clusters/server/tests/day_test.py
ashsawh/stocks
3f8f0b10d606062ef3abb5160836eb23696f48b0
[ "Apache-2.0" ]
null
null
null
clusters/server/tests/day_test.py
ashsawh/stocks
3f8f0b10d606062ef3abb5160836eb23696f48b0
[ "Apache-2.0" ]
null
null
null
import unittest from src.factory import DayFactory, TransactionsFactory from src.value_objects import Stock, StockTransaction, CashTransaction from src.day import Day class DayTest(unittest.TestCase): def setUp(self): self.D0: Day = DayFactory().create("D0", ["AAPL 100", "GOOG 200", "SP500 175.75"], 1000)...
32.444444
103
0.631115
1,825
0.892857
0
0
0
0
0
0
266
0.130137
99c08d33e58da9e15438ec52e98fb7ac7d97d9d5
2,832
py
Python
src/export_quantized.py
mbuckler/squeezeDet-low-precision
2c5c700d9e7c36cb611bb905e209f718dfbf177a
[ "BSD-2-Clause" ]
2
2019-08-07T21:18:03.000Z
2020-07-26T16:27:31.000Z
src/export_quantized.py
mbuckler/squeezeDet-low-precision
2c5c700d9e7c36cb611bb905e209f718dfbf177a
[ "BSD-2-Clause" ]
null
null
null
src/export_quantized.py
mbuckler/squeezeDet-low-precision
2c5c700d9e7c36cb611bb905e209f718dfbf177a
[ "BSD-2-Clause" ]
null
null
null
# Author: Mark Buckler """Quantization""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 from datetime import datetime import os.path import sys import time import numpy as np from six.moves import xrange import tensorflow as tf from config i...
29.810526
82
0.641243
0
0
0
0
0
0
0
0
652
0.230226
99c11294cdaedfbcacc68dc5da7e71c76a3c5c19
579
py
Python
medium/remove_nth_node_from_end_of_list.py
Jswig/leetcode
ca9ca182ab7824d642aa5ebbe5974669d2a6221c
[ "MIT" ]
null
null
null
medium/remove_nth_node_from_end_of_list.py
Jswig/leetcode
ca9ca182ab7824d642aa5ebbe5974669d2a6221c
[ "MIT" ]
null
null
null
medium/remove_nth_node_from_end_of_list.py
Jswig/leetcode
ca9ca182ab7824d642aa5ebbe5974669d2a6221c
[ "MIT" ]
null
null
null
# Anders Poirel class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode: fast = head slow = head for i in range(n-1): fast = fast.next while fas...
21.444444
67
0.462867
545
0.941278
0
0
0
0
0
0
15
0.025907
99c2e61e389f9dd7c525b31829b0d447fc52f4de
1,674
py
Python
tests/community/test_pushbullet.py
soasme/runflow
b23086c2487a157b8c2d40f6225a1bcd9e8b6c60
[ "Apache-2.0" ]
6
2021-06-07T01:26:19.000Z
2021-07-02T12:57:07.000Z
tests/community/test_pushbullet.py
soasme/runflow
b23086c2487a157b8c2d40f6225a1bcd9e8b6c60
[ "Apache-2.0" ]
2
2021-06-06T02:56:37.000Z
2021-06-07T04:06:23.000Z
tests/community/test_pushbullet.py
soasme/runflow
b23086c2487a157b8c2d40f6225a1bcd9e8b6c60
[ "Apache-2.0" ]
null
null
null
import pytest from runflow import runflow pytest.importorskip('slack_sdk') def test_pushbullet_push_note(mocker): pb = mocker.MagicMock() mocker.patch('pushbullet.Pushbullet', pb) runflow(path="examples/pushbullet_push_note.hcl", vars={ 'pushbullet_api_key': 'any' }) pb.return_value.pu...
23.914286
60
0.635006
0
0
0
0
0
0
0
0
568
0.339307
99c393d65fd469c4d0c7d4d4470fc5c12bb10a44
3,269
py
Python
ch02/dateandtime.py
ibiscum/Learn-Python-Programming-Third-Edition
c8e0061e97b16c9b55250cc720a8bc7613cb6cca
[ "MIT" ]
null
null
null
ch02/dateandtime.py
ibiscum/Learn-Python-Programming-Third-Edition
c8e0061e97b16c9b55250cc720a8bc7613cb6cca
[ "MIT" ]
null
null
null
ch02/dateandtime.py
ibiscum/Learn-Python-Programming-Third-Edition
c8e0061e97b16c9b55250cc720a8bc7613cb6cca
[ "MIT" ]
null
null
null
"""Date and time""" # imports import arrow from datetime import date, datetime, timedelta, timezone import time import calendar as cal from zoneinfo import ZoneInfo # arrow small demo # date today = date.today() print(today) # datetime.date(2021, 3, 28) print(today.ctime()) print(today.isoformat()) print(today.we...
20.955128
91
0.67513
0
0
0
0
0
0
0
0
1,978
0.605078
99c5edc4f3f5114316b3f4fae670cf161eac7a79
15,176
py
Python
utils.py
Soft8Soft/verge3d-blender-addon
20a7ca153285e4744a7079bc015584271a50a252
[ "Apache-2.0" ]
86
2018-08-14T17:08:27.000Z
2022-03-22T10:35:28.000Z
utils.py
Soft8Soft/verge3d-blender-addon
20a7ca153285e4744a7079bc015584271a50a252
[ "Apache-2.0" ]
3
2018-08-16T16:32:26.000Z
2021-01-31T11:09:01.000Z
utils.py
Soft8Soft/verge3d-blender-addon
20a7ca153285e4744a7079bc015584271a50a252
[ "Apache-2.0" ]
18
2018-08-15T10:32:19.000Z
2022-02-28T16:41:51.000Z
# Copyright (c) 2017-2019 Soft8Soft LLC # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distribute...
29.525292
95
0.669412
0
0
0
0
0
0
0
0
4,331
0.285385
99c67008a5b97aeb98ea7d651117dafc25583098
531
py
Python
scripts/generate_story_map.py
afit/rimworld-save-migrator
a142dcef807e58a471b8bd840e4c4416ced73173
[ "MIT" ]
3
2018-07-02T23:36:52.000Z
2019-01-21T17:16:35.000Z
scripts/generate_story_map.py
afit/rimworld-save-migrator
a142dcef807e58a471b8bd840e4c4416ced73173
[ "MIT" ]
null
null
null
scripts/generate_story_map.py
afit/rimworld-save-migrator
a142dcef807e58a471b8bd840e4c4416ced73173
[ "MIT" ]
null
null
null
#!/usr/bin/python # Look at the story mappings from rimworld.log # cat rimworld.log | grep backstory | sort -u > stories.txt # RimWorld handles the mappings, but pollutes its log when it does so. f = open( 'stories.txt' ) print 'mappings = {' for l in f.readlines(): x = l.strip().split(' ') if 'Giving rand...
24.136364
73
0.563089
0
0
0
0
0
0
0
0
313
0.589454
99c8bc3429d14ce3a02ee120f70154934756c968
37,815
py
Python
VESIcal/vplot.py
kaylai/VESIcal
3ea18b0ce30b30fb55786346c37ef8f428ee5034
[ "MIT" ]
16
2020-06-22T09:07:32.000Z
2022-01-12T13:42:12.000Z
VESIcal/vplot.py
kaylai/VESIcal
3ea18b0ce30b30fb55786346c37ef8f428ee5034
[ "MIT" ]
136
2020-05-22T21:43:23.000Z
2022-03-07T22:06:33.000Z
build/lib/VESIcal/vplot.py
kaylai/VESIcal
3ea18b0ce30b30fb55786346c37ef8f428ee5034
[ "MIT" ]
3
2021-05-18T08:21:02.000Z
2022-03-25T01:08:10.000Z
from VESIcal import core from VESIcal import calibrations from VESIcal.tasplot import add_LeMaitre_fields import pandas as pd import numpy as np import warnings as w import matplotlib as mpl import matplotlib.pyplot as plt # ---------- DEFINE CUSTOM PLOTTING FORMATTING ------------ # style = "seaborn-colorblind" plt...
40.100742
80
0.532276
0
0
0
0
0
0
0
0
14,242
0.376623
99c9d0224c8f3e8cd2f2000caf10456ad5cb58d3
824
py
Python
test/test_tools.py
translationalneurosurgery/tool-dimep
d2e3f8847d8a43d75b9ffc2dfaf65e5d1662c8ae
[ "MIT" ]
2
2021-11-01T11:48:59.000Z
2021-11-03T19:07:16.000Z
test/test_tools.py
agricolab/tool-dimep
d2e3f8847d8a43d75b9ffc2dfaf65e5d1662c8ae
[ "MIT" ]
2
2021-03-31T10:47:46.000Z
2021-03-31T11:31:51.000Z
test/test_tools.py
neuromti/tool-dimep
36f9f404c99a53e85c9c492c4b0a281f832e07ba
[ "MIT" ]
null
null
null
from dimep.tools import * import numpy as np import pytest @pytest.mark.parametrize("binsize", np.arange(1.0, 20.0, 1.0)) def test_downbin(binsize): x = np.arange(0.0, 100.0, 1) if binsize == 1.0: xhat = x else: xhat = np.arange((binsize - 1) / 2, 100.0 - binsize / 2, binsize) assert ...
34.333333
77
0.583738
0
0
0
0
303
0.367718
0
0
9
0.010922
99cba028d63bd0b3002ecf1a8511685b7a12c347
6,825
py
Python
crypto_comparison.py
tomsch1/defichain-arbitrage-telegram-bot
b9f5291eaa60771c0ae28f832467393611de3da4
[ "MIT" ]
1
2022-03-01T14:19:49.000Z
2022-03-01T14:19:49.000Z
crypto_comparison.py
tomsch1/defichain-arbitrage-telegram-bot
b9f5291eaa60771c0ae28f832467393611de3da4
[ "MIT" ]
null
null
null
crypto_comparison.py
tomsch1/defichain-arbitrage-telegram-bot
b9f5291eaa60771c0ae28f832467393611de3da4
[ "MIT" ]
null
null
null
import cexdatacollect import dfi_dex_prices from symbols import CryptoExchangeSymbols class SymbolPrice(): def __init__(self, exchange_name:str, symbol:str, price:float): self.exchange_name: str = exchange_name self.symbol: str = symbol self.price: float = price class IndirectComparison()...
46.114865
203
0.670183
6,723
0.985055
0
0
0
0
0
0
1,173
0.171868
99cc57d801b28345067bcc1957c433411f4b1448
3,915
py
Python
HackyEaster/he2022/level8/ch37/solve37_unlink.py
tbrup/ctf-writeups
dfac11abb3051af657ed3384c3c389c14a40c10e
[ "MIT" ]
null
null
null
HackyEaster/he2022/level8/ch37/solve37_unlink.py
tbrup/ctf-writeups
dfac11abb3051af657ed3384c3c389c14a40c10e
[ "MIT" ]
null
null
null
HackyEaster/he2022/level8/ch37/solve37_unlink.py
tbrup/ctf-writeups
dfac11abb3051af657ed3384c3c389c14a40c10e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This exploit template was generated via: # $ pwn template --host 46.101.107.117 --port 2208 ./eggo from pwn import * # Set up pwntools for the correct architecture exe = context.binary = ELF('./eggo') # libc = ELF('./libc-2.33.so') # Many built-in settings can be contr...
29
150
0.614304
0
0
0
0
0
0
0
0
2,474
0.631928
99ccf27382ed8c167f71ca16ab953e0670010da4
481
py
Python
test/TestClasse.py
AMadianov/Calc-python
449b6747d3ba6558eaf950a45aa33563aee06238
[ "MIT" ]
null
null
null
test/TestClasse.py
AMadianov/Calc-python
449b6747d3ba6558eaf950a45aa33563aee06238
[ "MIT" ]
null
null
null
test/TestClasse.py
AMadianov/Calc-python
449b6747d3ba6558eaf950a45aa33563aee06238
[ "MIT" ]
null
null
null
import unittest class MyClass(object): def __init__(self, foo): if foo != 1: raise ValueError("foo is not equal to 1!") class MyClass2(object): def __init__(self): pass class TestFoo(unittest.TestCase): def testInsufficientArgs(self): foo = 0 self.assertRaises(...
22.904762
62
0.632017
412
0.856549
0
0
0
0
0
0
44
0.091476
99ce937a922710b30381f8493591068886a8598c
25,467
gyp
Python
groups/bsl/bslmf/bslmf.gyp
zhanzju/bsl
1bb79982cff9bbaa3fb6d038604f04283ba76f07
[ "MIT" ]
1
2015-11-06T05:25:03.000Z
2015-11-06T05:25:03.000Z
groups/bsl/bslmf/bslmf.gyp
zhanzju/bsl
1bb79982cff9bbaa3fb6d038604f04283ba76f07
[ "MIT" ]
null
null
null
groups/bsl/bslmf/bslmf.gyp
zhanzju/bsl
1bb79982cff9bbaa3fb6d038604f04283ba76f07
[ "MIT" ]
null
null
null
{ 'variables': { 'bslmf_sources': [ 'bslmf_addconst.cpp', 'bslmf_addcv.cpp', 'bslmf_addlvaluereference.cpp', 'bslmf_addpointer.cpp', 'bslmf_addreference.cpp', 'bslmf_addrvaluereference.cpp', 'bslmf_addvolatile.cpp', 'bslmf_arraytopointer.cpp', 'bslmf_assert.cp...
34.64898
77
0.539247
0
0
0
0
0
0
0
0
17,016
0.668159
99cf64985f998c65d2cacfaacd8edb39224b3b22
558
py
Python
swig/openql/__init__.py
mmoelle1/OpenQL
7d9e084cd3ecd237c9ea280801529d96cf67369a
[ "Apache-2.0" ]
null
null
null
swig/openql/__init__.py
mmoelle1/OpenQL
7d9e084cd3ecd237c9ea280801529d96cf67369a
[ "Apache-2.0" ]
null
null
null
swig/openql/__init__.py
mmoelle1/OpenQL
7d9e084cd3ecd237c9ea280801529d96cf67369a
[ "Apache-2.0" ]
1
2022-01-04T20:51:43.000Z
2022-01-04T20:51:43.000Z
# Author Imran Ashraf # The import syntax changes slightly between python 2 and 3, so we # need to detect which version is being used: from sys import version_info if version_info[0] == 3: PY3 = True elif version_info[0] == 2: PY3 = False else: raise EnvironmentError("sys.version_info refers to a version ...
25.363636
69
0.689964
0
0
0
0
0
0
0
0
285
0.510753
99cf8bd15e6bfe4f73e426de65fa4c30ca3db7fc
573
py
Python
campaigns/migrations/0010_auto_20181117_2234.py
alimahdiyar/Developing-Community-Web
a663a687e0f286f197d4a7bf347f67cd130275f7
[ "MIT" ]
2
2018-06-02T12:30:00.000Z
2018-07-19T14:41:39.000Z
campaigns/migrations/0010_auto_20181117_2234.py
Developing-Community/Developing-Community-Web
a663a687e0f286f197d4a7bf347f67cd130275f7
[ "MIT" ]
5
2021-06-08T19:09:00.000Z
2022-03-11T23:25:14.000Z
campaigns/migrations/0010_auto_20181117_2234.py
Developing-Community/web
a663a687e0f286f197d4a7bf347f67cd130275f7
[ "MIT" ]
2
2018-05-27T14:58:34.000Z
2018-05-27T15:03:04.000Z
# Generated by Django 2.0.9 on 2018-11-17 22:34 import campaigns.models from django.db import migrations import sorl.thumbnail.fields class Migration(migrations.Migration): dependencies = [ ('campaigns', '0009_auto_20181116_1943'), ] operations = [ migrations.AlterField( mod...
27.285714
189
0.685864
435
0.759162
0
0
0
0
0
0
127
0.22164
99cfce15f277b305b1d6cfb0628ad6ec4ccc88f5
16,919
py
Python
pybind/slxos/v17r_2_00/qos_mpls/map_apply/apply_traffic_class_exp_map_name/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/qos_mpls/map_apply/apply_traffic_class_exp_map_name/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/qos_mpls/map_apply/apply_traffic_class_exp_map_name/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
74.20614
665
0.729594
16,525
0.976713
0
0
0
0
0
0
9,041
0.53437
99d0ec460ef85f6b78235bb1df6008162b91ab1f
904
py
Python
dypy/tests/test_variables.py
nickrsan/dypy
78ebdc02ce1908446d4cc6e0ee1927c91f820d9f
[ "MIT" ]
3
2019-03-12T21:13:45.000Z
2022-02-18T09:55:07.000Z
dypy/tests/test_variables.py
nickrsan/dypy
78ebdc02ce1908446d4cc6e0ee1927c91f820d9f
[ "MIT" ]
2
2019-04-03T02:13:54.000Z
2019-04-03T02:18:56.000Z
dypy/tests/test_variables.py
nickrsan/dypy
78ebdc02ce1908446d4cc6e0ee1927c91f820d9f
[ "MIT" ]
null
null
null
import unittest import dypy class VariableSupportTest(unittest.TestCase): def test_check_variable_id(self): """ Makes sure that when no variable_id is provided, we get the names we expect :return: """ name_id_pairs = { "variable_id": "variable_id", "Variable_id": "variable_id", "Variable ID"...
25.828571
97
0.724558
872
0.964602
0
0
0
0
0
0
400
0.442478
99d12e7d29fef5924937d4cc8ce631b58a0747b3
740
py
Python
tests/testoctal.py
antoniovilarinholopes/converttodecimal
8fe58c4b7409d83ed66fb4b99f8953acf47bad88
[ "MIT" ]
null
null
null
tests/testoctal.py
antoniovilarinholopes/converttodecimal
8fe58c4b7409d83ed66fb4b99f8953acf47bad88
[ "MIT" ]
null
null
null
tests/testoctal.py
antoniovilarinholopes/converttodecimal
8fe58c4b7409d83ed66fb4b99f8953acf47bad88
[ "MIT" ]
null
null
null
import unittest import baseconverter as bctr class TestOctal(unittest.TestCase): tests = [] results = [] base = 8 def test(self): for conv, result in zip(self.tests, self.results): self.assertEqual(conv.convert(), result) converter = bctr.DecimalBaseConverter("8",self.base) with self.assert...
28.461538
73
0.697297
682
0.921622
0
0
0
0
0
0
28
0.037838
99d3397248d3d1b7a9a0b3eafedbd9115d28514f
544
py
Python
sgfood/forms.py
kylerlee/Restaurant-Reviews-Web-App
795c46a2122717b94830249db005850898dd572a
[ "MIT" ]
null
null
null
sgfood/forms.py
kylerlee/Restaurant-Reviews-Web-App
795c46a2122717b94830249db005850898dd572a
[ "MIT" ]
null
null
null
sgfood/forms.py
kylerlee/Restaurant-Reviews-Web-App
795c46a2122717b94830249db005850898dd572a
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm class UserRegisterForm(UserCreationForm): email = forms.EmailField(label='Email') first_name = forms.CharField( max_length=20, label='First Name', required=False) last_name =...
32
58
0.681985
417
0.766544
0
0
0
0
0
0
92
0.169118
99d362a541a18ec8d12caecd6f148f337e916cdc
1,391
py
Python
src/external_script_runner.py
salvatorenovelli/python-automation-runner
7d18d02f3e60980d18e97991e7991ba3aa43e79a
[ "Apache-2.0" ]
1
2019-06-05T00:56:13.000Z
2019-06-05T00:56:13.000Z
src/external_script_runner.py
salvatorenovelli/python-automation-runner
7d18d02f3e60980d18e97991e7991ba3aa43e79a
[ "Apache-2.0" ]
null
null
null
src/external_script_runner.py
salvatorenovelli/python-automation-runner
7d18d02f3e60980d18e97991e7991ba3aa43e79a
[ "Apache-2.0" ]
null
null
null
import logging import os import signal import time from multiprocessing import Process class ExternalScript: def __init__(self, name, path): self.name = name self.path = path self.process = None def start_main_loop(self): if self.process is None: self.process = Pro...
30.23913
101
0.615385
651
0.468009
0
0
0
0
0
0
140
0.100647
99d682c3f29dd2435974d682aa3469e2490bd049
220
py
Python
spotui/src/Logging.py
dbkosky/spotui
cabc6fbde3c0fbbc73fd94055661185ad51969c1
[ "MIT" ]
410
2020-01-08T17:23:52.000Z
2022-03-31T03:19:01.000Z
spotui/src/Logging.py
octoshrimpy/spotui
b0d195d1cdc803839e8421472ed897521c6124d4
[ "MIT" ]
28
2020-01-09T00:10:10.000Z
2022-03-19T01:22:39.000Z
spotui/src/Logging.py
octoshrimpy/spotui
b0d195d1cdc803839e8421472ed897521c6124d4
[ "MIT" ]
22
2020-01-10T04:08:22.000Z
2022-03-17T13:31:13.000Z
import logging import os user_config_dir = os.path.expanduser("~") logging.basicConfig(filename=user_config_dir + '/.cache/spotui.log', filemode='w', format='%(name)s - %(levelname)s - %(message)s')
31.428571
82
0.659091
0
0
0
0
0
0
0
0
66
0.3
99d6b69bacc16386a2d51e2e47e08c035278f928
1,029
py
Python
drone/remote_control/start.py
dpm76/eaglebone
46403d03359a780f385ccb1f05b462869eddff89
[ "ISC" ]
null
null
null
drone/remote_control/start.py
dpm76/eaglebone
46403d03359a780f385ccb1f05b462869eddff89
[ "ISC" ]
18
2016-03-30T08:43:45.000Z
2017-03-27T11:14:17.000Z
drone/remote_control/start.py
dpm76/eaglebone
46403d03359a780f385ccb1f05b462869eddff89
[ "ISC" ]
2
2016-03-06T20:38:06.000Z
2019-09-10T14:46:35.000Z
# -*- coding: utf-8 -*- ''' Created on 15/06/2015 @author: david ''' import sys if sys.version_info.major < 3: from SocketServer import TCPServer else: from socketserver import TCPServer import datetime import logging from remote_control.dispatching import Dispatcher def main(): logging.basicCon...
21.4375
118
0.594752
0
0
0
0
0
0
0
0
316
0.307094
99d6c24393f666e309f1685a7bc70884ed6cd31a
2,390
py
Python
src/threadpool.py
forumulator/pySlader
b2300da6c10f46f0fa9933be722462a42a98bdbc
[ "MIT" ]
1
2018-10-28T23:33:57.000Z
2018-10-28T23:33:57.000Z
src/threadpool.py
forumulator/pySlader
b2300da6c10f46f0fa9933be722462a42a98bdbc
[ "MIT" ]
null
null
null
src/threadpool.py
forumulator/pySlader
b2300da6c10f46f0fa9933be722462a42a98bdbc
[ "MIT" ]
null
null
null
from queue import Queue, Empty import threading from threading import Thread class Worker(Thread): _TIMEOUT = 2 """ Thread executing tasks from a given tasks queue. Thread is signalable, to exit """ def __init__(self, tasks, th_num): Thread.__init__(self) self.tasks = tasks ...
27.471264
79
0.562762
1,884
0.788285
0
0
0
0
0
0
363
0.151883
99d87c84c1f650596334fdedf093088152cfe4fd
1,069
py
Python
isaactest/tests/questionnaire.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
null
null
null
isaactest/tests/questionnaire.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2016-01-15T11:28:06.000Z
2016-01-25T17:09:18.000Z
isaactest/tests/questionnaire.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2019-05-14T16:53:49.000Z
2019-05-14T16:53:49.000Z
from ..utils.log import log, INFO, ERROR, PASS from ..utils.isaac import kill_irritating_popup, disable_irritating_popup from ..utils.i_selenium import assert_tab from ..tests import TestWithDependency __all__ = ["questionnaire"] ##### # Test : Questionnaire Popup ##### @TestWithDependency("QUESTIONNAIRE", ["LOGIN"]...
36.862069
95
0.707203
0
0
0
0
794
0.74275
0
0
535
0.500468
99d9a48b5d99ac3508e56112ec75780dfbe5858e
8,893
py
Python
rnaindel/rnaindel_lib/indel_annotator.py
adamdingliang/RNAIndel
bc154a25a459ca0dd5c1f2ce064944e979105d23
[ "Apache-2.0" ]
1
2019-01-07T21:21:28.000Z
2019-01-07T21:21:28.000Z
rnaindel/rnaindel_lib/indel_annotator.py
adamdingliang/RNAIndel
bc154a25a459ca0dd5c1f2ce064944e979105d23
[ "Apache-2.0" ]
2
2019-01-05T16:39:41.000Z
2019-01-14T16:00:43.000Z
rnaindel/rnaindel_lib/indel_annotator.py
adamdingliang/RNAIndel
bc154a25a459ca0dd5c1f2ce064944e979105d23
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """2nd step of the analysis Checks if indels are coding or non-coding and annotates coding indels with variant effect indel_annotator is the main routine of this module """ import sys import pysam import logging import pandas as pd from functools import partial from .indel_curator import cura...
30.145763
88
0.534353
0
0
0
0
0
0
0
0
3,666
0.412234
99db77b0d0571155bd78aac43f3d762eb5c8d3d3
1,494
py
Python
problem_solving/python/algorithms/implementation/cavity_map.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
null
null
null
problem_solving/python/algorithms/implementation/cavity_map.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
null
null
null
problem_solving/python/algorithms/implementation/cavity_map.py
kcc3/hackerrank-solutions
f862b44b840bd447d99dc148f6bb5e2f5bfb8a86
[ "MIT" ]
1
2020-06-04T09:23:19.000Z
2020-06-04T09:23:19.000Z
def cavity_map(grid): """Hackerrank Problem: https://www.hackerrank.com/challenges/cavity-map/problem You are given a square map as a matrix of integer strings. Each cell of the map has a value denoting its depth. We will call a cell of the map a cavity if and only if this cell is not on the border of the ...
33.954545
119
0.615127
0
0
0
0
0
0
0
0
994
0.665328
99dd827cc75c97313b16be59de14d6bad416a8e2
1,242
py
Python
rugosa/emulation/call_hooks/win_api/shlwapi.py
Defense-Cyber-Crime-Center/rugosa
70f5b1db7e3f02ecccb0495fe1c0c77930769276
[ "MIT" ]
1
2022-03-13T03:03:31.000Z
2022-03-13T03:03:31.000Z
rugosa/emulation/call_hooks/win_api/shlwapi.py
Defense-Cyber-Crime-Center/rugosa
70f5b1db7e3f02ecccb0495fe1c0c77930769276
[ "MIT" ]
null
null
null
rugosa/emulation/call_hooks/win_api/shlwapi.py
Defense-Cyber-Crime-Center/rugosa
70f5b1db7e3f02ecccb0495fe1c0c77930769276
[ "MIT" ]
null
null
null
""" Functions found in shlwapi.dll Shell Lightweight Utility Functions """ import logging import ntpath from ...call_hooks import builtin_func logger = logging.getLogger(__name__) @builtin_func("PathAppendA") @builtin_func("PathAppendW") #typedef(BOOL PathAppendA(LPSTR pszPath,LPCSTR pszMore);) def pathappend(cp...
25.346939
67
0.738325
0
0
0
0
1,051
0.846216
0
0
362
0.291465
99ddb51556072c9fe39d711ea4b8ad9ad506d836
1,057
py
Python
massage/urls.py
Johncs2d/accounting-system
46d660044b198afadbf6f90b72376f6a69166c5f
[ "MIT" ]
null
null
null
massage/urls.py
Johncs2d/accounting-system
46d660044b198afadbf6f90b72376f6a69166c5f
[ "MIT" ]
2
2021-03-19T00:39:18.000Z
2021-03-30T12:48:58.000Z
massage/urls.py
Johncs2d/accounting-system
46d660044b198afadbf6f90b72376f6a69166c5f
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('info', views.info, name='info'), path('chart', views.charts, name='chart'), path('trialbalance', views.trialbalance, name='trialbalance'), path('ledger', views.ledger, name='ledger'), pat...
48.045455
75
0.69631
0
0
0
0
0
0
0
0
370
0.350047
99dffa459bc7dfffb6f4a430b3ffac5f8cc05734
194
py
Python
smores/__init__.py
codylandry/Smores
cc0717b5edd0c09982820cc8705f73119641d0a2
[ "MIT" ]
7
2017-09-18T13:04:30.000Z
2021-06-03T06:48:26.000Z
smores/__init__.py
codylandry/Smores
cc0717b5edd0c09982820cc8705f73119641d0a2
[ "MIT" ]
1
2017-11-22T20:45:27.000Z
2017-11-22T20:45:27.000Z
smores/__init__.py
codylandry/Smores
cc0717b5edd0c09982820cc8705f73119641d0a2
[ "MIT" ]
null
null
null
from .smores import Smores, AutocompleteResponse, TemplateString, TemplateFile, Schema, Nested __all__ = ['Smores', 'AutocompleteResponse', 'TemplateString', 'TemplateFile', 'Schema', 'Nested']
64.666667
98
0.778351
0
0
0
0
0
0
0
0
76
0.391753
99e0f1004b2ba5a8602f4459d12c69e706b39a07
23,795
py
Python
opslib/icsec2.py
movermeyer/opslib
157be1342cf24297ef6b79cbe320207e610c9c81
[ "Apache-2.0" ]
1
2015-06-10T17:47:56.000Z
2015-06-10T17:47:56.000Z
opslib/icsec2.py
movermeyer/opslib
157be1342cf24297ef6b79cbe320207e610c9c81
[ "Apache-2.0" ]
null
null
null
opslib/icsec2.py
movermeyer/opslib
157be1342cf24297ef6b79cbe320207e610c9c81
[ "Apache-2.0" ]
2
2016-02-29T23:48:57.000Z
2018-03-05T17:26:35.000Z
""" IcsEc2: Library for EC2 ----------------------- +--------------------+------------+--+ | This is the IcsEc2 common library. | +--------------------+------------+--+ """ from operator import attrgetter from time import time, mktime, sleep, gmtime, strftime, strptime from boto.ec2 import get_region from boto.ec2.c...
32.155405
79
0.586005
23,231
0.976298
0
0
336
0.014121
0
0
12,806
0.53818
99e153d1e909e07a485231b3678975bc8a52fb3d
540
py
Python
CS-190/Labs/Lab6.py
lividsubset3/College-CS
6f1eb6b10e43a37654335331758677c797034961
[ "MIT" ]
null
null
null
CS-190/Labs/Lab6.py
lividsubset3/College-CS
6f1eb6b10e43a37654335331758677c797034961
[ "MIT" ]
null
null
null
CS-190/Labs/Lab6.py
lividsubset3/College-CS
6f1eb6b10e43a37654335331758677c797034961
[ "MIT" ]
null
null
null
# Pair Programming passphrase = "Megmo" and "megmo" null1 = "123" null2 = "letmein" null3 = "password" while True: password = str(input("Please enter password: ")) if null3 in password: print("Incorrect | Password has password inside") if null2 in password: print("Incorrect | password h...
22.5
72
0.655556
0
0
0
0
0
0
0
0
217
0.401852
99e157d8a51a96d3537d160b4ad726d341cf4d8c
149
py
Python
pywky/db/__init__.py
loganjhennessy/worky
d94a1ea0fcde95c3257a7d1e438bf3c589b60559
[ "MIT" ]
null
null
null
pywky/db/__init__.py
loganjhennessy/worky
d94a1ea0fcde95c3257a7d1e438bf3c589b60559
[ "MIT" ]
null
null
null
pywky/db/__init__.py
loganjhennessy/worky
d94a1ea0fcde95c3257a7d1e438bf3c589b60559
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from pywky.db.models import Base engine = create_engine('sqlite:///worky_dev.db') Base.metadata.bind = engine
21.285714
48
0.791946
0
0
0
0
0
0
0
0
24
0.161074
99e2c1f902345ae0e7cb8b3c3a60e5be6b0705b4
2,680
py
Python
QLM_utils.py
qiuchili/PyQLM
ccd5f64f86cf88f618e30808d598f3785f5e6483
[ "MIT" ]
null
null
null
QLM_utils.py
qiuchili/PyQLM
ccd5f64f86cf88f618e30808d598f3785f5e6483
[ "MIT" ]
null
null
null
QLM_utils.py
qiuchili/PyQLM
ccd5f64f86cf88f618e30808d598f3785f5e6483
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import division import numpy as np import os import math import pickle as Pickle import pynlpir import random from math import log from numpy import linalg as LA def F(rhoM, proDict): # print rhoM res = 0 for pm in proDict: P = np.trace(np.dot(proDict[pm][1], rhoM)) re...
26.8
140
0.691791
0
0
0
0
0
0
0
0
158
0.05878
99e3ac14b2ccc4454ba52221648a884910d0156c
69
py
Python
run.py
econchick/foodify
87b2e395b4e720c1425f56fba790a4be2e8fdea9
[ "Zlib" ]
1
2016-09-29T16:51:00.000Z
2016-09-29T16:51:00.000Z
run.py
econchick/foodify
87b2e395b4e720c1425f56fba790a4be2e8fdea9
[ "Zlib" ]
null
null
null
run.py
econchick/foodify
87b2e395b4e720c1425f56fba790a4be2e8fdea9
[ "Zlib" ]
null
null
null
#! /usr/bin/env python from foodify import app app.run(debug = True)
17.25
23
0.724638
0
0
0
0
0
0
0
0
22
0.318841
99e3d3333d7aa18597378ca4a913a1eccc683dc6
4,400
py
Python
evaluations.py
leandrocoding/sudoku
708649bada5b219f50a0cb977ad4317b7e7be2f6
[ "MIT" ]
4
2020-07-05T08:19:40.000Z
2021-01-02T03:00:27.000Z
evaluations.py
leandrocoding/sudoku
708649bada5b219f50a0cb977ad4317b7e7be2f6
[ "MIT" ]
1
2021-03-13T10:41:59.000Z
2021-03-13T10:41:59.000Z
evaluations.py
leandrocoding/sudoku
708649bada5b219f50a0cb977ad4317b7e7be2f6
[ "MIT" ]
null
null
null
"""This python script can be used to test the correctness and finiteness of the algorithms.""" from multiprocessing import Process from BASolver2 import bASolve, bASolverHandle from OPBASolver import OPSolverHandle import time # bASolve() class NonFiniteException(Exception): pass def testcorrectness(algo): ...
35.483871
278
0.503409
45
0.010227
0
0
0
0
0
0
918
0.208636
99e491fbbf30f0808a4fe6456d18b36c7d57a986
1,647
py
Python
src/server.py
vishwajithsandaru/party-qr-generator-flask
10c44ec8aa03e561e9e6415b681a0e200184b120
[ "MIT" ]
null
null
null
src/server.py
vishwajithsandaru/party-qr-generator-flask
10c44ec8aa03e561e9e6415b681a0e200184b120
[ "MIT" ]
null
null
null
src/server.py
vishwajithsandaru/party-qr-generator-flask
10c44ec8aa03e561e9e6415b681a0e200184b120
[ "MIT" ]
null
null
null
from crypt import methods from this import s from flask import Flask, request, jsonify import base64 import os from Crypto.Cipher import AES from urllib.parse import unquote app = Flask(__name__) secret = 'TESTTESTTESTTEST' p_char = '%' def unpad_str(msg): msg = msg.decode('utf-8') msg = msg.rstrip('%') ...
25.734375
93
0.659381
0
0
0
0
457
0.277474
0
0
254
0.15422
99e52f49796b5d41076aba34de619bcc405c5d52
155
py
Python
m06_file1.py
AmreshTripathy/Advance-Python
0cfe3fc263af1080edbf9167895a51d27be64993
[ "Apache-2.0" ]
null
null
null
m06_file1.py
AmreshTripathy/Advance-Python
0cfe3fc263af1080edbf9167895a51d27be64993
[ "Apache-2.0" ]
null
null
null
m06_file1.py
AmreshTripathy/Advance-Python
0cfe3fc263af1080edbf9167895a51d27be64993
[ "Apache-2.0" ]
null
null
null
def greet(name): print (f'Good morning, {name}') # print (__name__) if __name__ == '__main__': n = input('Enter Your name: ') greet(n)
19.375
36
0.574194
0
0
0
0
0
0
0
0
71
0.458065
99e565c6c04330549af61e5e41e6e64599dd5a85
404
py
Python
Day 02 - Beginner - Understanding Data Types and How to Manipulate Strings/04_PROJECT_tip_calculator.py
not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022
2c21c190ab756176bd7b577b3f8a0370b75c3828
[ "MIT" ]
null
null
null
Day 02 - Beginner - Understanding Data Types and How to Manipulate Strings/04_PROJECT_tip_calculator.py
not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022
2c21c190ab756176bd7b577b3f8a0370b75c3828
[ "MIT" ]
null
null
null
Day 02 - Beginner - Understanding Data Types and How to Manipulate Strings/04_PROJECT_tip_calculator.py
not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022
2c21c190ab756176bd7b577b3f8a0370b75c3828
[ "MIT" ]
null
null
null
print("wewcome to the tip cawcuwatow. >_<") bill = float(input("What is the total bill?\n$")) tip_percentage = float(input("What percentage tip will you like to give?\n")) split_among = int(input("How many people to split the bill?\n")) total_bill_with_tip = bill + (bill * tip_percentage / 100) each_pay = round(total...
36.727273
77
0.725248
0
0
0
0
0
0
0
0
190
0.470297
99ea05eb7467ddb1c7614fa510b122a7f9c67b31
4,619
py
Python
lib/consistencyCheck.py
pnlbwh/multi-shell-dMRIharmonization
46e207c5d2b7fd68ddbbd1b305c33cfd45351ee8
[ "CNRI-Python", "Info-ZIP" ]
4
2020-04-28T15:31:07.000Z
2022-02-15T07:04:21.000Z
lib/consistencyCheck.py
pnlbwh/multi-shell-dMRIharmonization
46e207c5d2b7fd68ddbbd1b305c33cfd45351ee8
[ "CNRI-Python", "Info-ZIP" ]
30
2019-11-10T20:51:34.000Z
2021-04-19T19:08:14.000Z
lib/consistencyCheck.py
pnlbwh/multi-shell-dMRIharmonization
46e207c5d2b7fd68ddbbd1b305c33cfd45351ee8
[ "CNRI-Python", "Info-ZIP" ]
3
2019-10-18T16:06:03.000Z
2021-02-21T01:10:45.000Z
#!/usr/bin/env python # =============================================================================== # dMRIharmonization (2018) pipeline is written by- # # TASHRIF BILLAH # Brigham and Women's Hospital/Harvard Medical School # tbillah@bwh.harvard.edu, tashrifbillah@gmail.com # # ====================================...
32.076389
158
0.646677
0
0
0
0
0
0
0
0
1,971
0.426716
99ebaf6f0294d590f15abaa22804c5ca352ff36f
1,283
py
Python
tests/test_cross_corr.py
halomod/halomod
f4f207ac70ed32a7f7e16139698c85eda1f0b6a9
[ "MIT" ]
4
2021-02-23T13:28:59.000Z
2022-02-11T15:53:57.000Z
tests/test_cross_corr.py
halomod/halomod
f4f207ac70ed32a7f7e16139698c85eda1f0b6a9
[ "MIT" ]
20
2021-02-02T15:08:28.000Z
2021-09-20T18:26:49.000Z
tests/test_cross_corr.py
halomod/halomod
f4f207ac70ed32a7f7e16139698c85eda1f0b6a9
[ "MIT" ]
3
2021-03-07T15:28:34.000Z
2021-08-21T21:41:44.000Z
import numpy as np from halomod.cross_correlations import ConstantCorr, CrossCorrelations def test_cross_same(): """Test if using two components that are the same gives the same as an auto corr.""" cross = CrossCorrelations( cross_hod_model=ConstantCorr, halo_model_1_params={ "ex...
29.837209
89
0.643804
0
0
0
0
0
0
0
0
383
0.298519
99ed550f29778c36dd9474368aebbf80d7e96b69
7,570
py
Python
apps/graphs/bandwidth_performance_graph.py
cucl-srg/Measuring-Burstiness
b9024bf606362d5587773a0c5b892fcb97a3d577
[ "Apache-2.0" ]
1
2022-03-21T02:26:27.000Z
2022-03-21T02:26:27.000Z
apps/graphs/bandwidth_performance_graph.py
cucl-srg/Measuring-Burstiness
b9024bf606362d5587773a0c5b892fcb97a3d577
[ "Apache-2.0" ]
null
null
null
apps/graphs/bandwidth_performance_graph.py
cucl-srg/Measuring-Burstiness
b9024bf606362d5587773a0c5b892fcb97a3d577
[ "Apache-2.0" ]
1
2020-08-10T16:46:05.000Z
2020-08-10T16:46:05.000Z
import argparse import matplotlib import scipy.stats matplotlib.use("Agg") import sys import matplotlib.pyplot as plt import numpy as np import os sys.path.insert(0, '/root/jcw78/process_pcap_traces/') import graph_utils graph_utils.latexify(space_below_graph=0.4) def tensorflow(folder, name_map): # In tensorflow...
35.707547
122
0.604359
0
0
0
0
0
0
0
0
1,498
0.197886
99edf83c304fa89bec4ed4d3b21dd4548b013c50
1,368
py
Python
bot/utils/errors.py
Clutter-Development/Clutter
6b725c016a439958caaa7d88bacae8e2b11ca272
[ "CC0-1.0" ]
6
2022-02-04T17:11:19.000Z
2022-03-05T09:14:39.000Z
bot/utils/errors.py
Clutter-Development/Clutter
6b725c016a439958caaa7d88bacae8e2b11ca272
[ "CC0-1.0" ]
2
2022-02-08T16:53:42.000Z
2022-02-19T07:44:19.000Z
bot/utils/errors.py
Clutter-Development/Clutter
6b725c016a439958caaa7d88bacae8e2b11ca272
[ "CC0-1.0" ]
2
2022-02-18T21:28:57.000Z
2022-02-23T17:08:18.000Z
import discord from discord import app_commands as app __all__ = ( "ClutterError", "InDevelopmentMode", "UserIsBlacklisted", "GuildIsBlacklisted", "UserHasBeenBlacklisted", "GlobalCooldownReached", "UnknownTranslationString", ) class ClutterError(discord.DiscordException): """Base cla...
28.5
105
0.736111
1,090
0.796784
0
0
0
0
0
0
600
0.438596
99ef4c4300edcee0f21908e1a69183d6ec7a6f37
44
py
Python
seq2seq/seq2seq/loss/__init__.py
qbetterk/user-simulator
77caca30ff67b9112b1fe5e65e191c6b5e25532c
[ "Apache-2.0" ]
20
2019-11-08T02:28:28.000Z
2022-02-07T09:20:21.000Z
seq2seq/seq2seq/loss/__init__.py
qbetterk/user-simulator
77caca30ff67b9112b1fe5e65e191c6b5e25532c
[ "Apache-2.0" ]
21
2019-11-08T02:27:40.000Z
2022-03-12T00:02:54.000Z
seq2seq/seq2seq/loss/__init__.py
qbetterk/user-simulator
77caca30ff67b9112b1fe5e65e191c6b5e25532c
[ "Apache-2.0" ]
8
2020-02-10T07:28:37.000Z
2021-09-23T09:42:14.000Z
from .loss import Loss, NLLLoss, Perplexity
22
43
0.795455
0
0
0
0
0
0
0
0
0
0
99efb291ee7023242cf3315eacce5ac12e340e87
5,703
py
Python
arduino_kernel/kernel.py
jpsaenzmo/jupyter-lab-kernelino
57b20c9cecf74d6533243729f47ab9cc74e0ef7d
[ "BSD-3-Clause" ]
null
null
null
arduino_kernel/kernel.py
jpsaenzmo/jupyter-lab-kernelino
57b20c9cecf74d6533243729f47ab9cc74e0ef7d
[ "BSD-3-Clause" ]
null
null
null
arduino_kernel/kernel.py
jpsaenzmo/jupyter-lab-kernelino
57b20c9cecf74d6533243729f47ab9cc74e0ef7d
[ "BSD-3-Clause" ]
null
null
null
from ipykernel.kernelbase import Kernel import json import os import subprocess import sys import urllib from urllib.request import urlopen from requests.compat import urljoin from notebook.notebookapp import list_running_servers from .board import Board, BoardError SKETCH_FOLDER = ".arduino/sketch" class Arduino...
35.867925
88
0.476065
5,395
0.945993
0
0
0
0
0
0
897
0.157286
99f29d7b80d7894462f8ed96f68faef9669e0b6b
3,022
py
Python
baidu_code/bcoreapi/info/schedule.py
deevarvar/myLab
7a5019f5f7fc11e173d350e6e2a7d2c80504782d
[ "MIT" ]
null
null
null
baidu_code/bcoreapi/info/schedule.py
deevarvar/myLab
7a5019f5f7fc11e173d350e6e2a7d2c80504782d
[ "MIT" ]
null
null
null
baidu_code/bcoreapi/info/schedule.py
deevarvar/myLab
7a5019f5f7fc11e173d350e6e2a7d2c80504782d
[ "MIT" ]
3
2016-10-08T15:01:49.000Z
2018-05-24T03:14:24.000Z
#-*- coding=utf-8 -*- ''' @description: 影讯新接口——排期接口测试用例。 @author: miliang<miliang@baidu.com> ''' from base import Info_Base class Info_Schedule(Info_Base): def __init__(self,cinema_id=None,encode_bid=None,bid=None): super(Info_Schedule,self).__init__() self.req_url = self.req_url + 's...
43.171429
154
0.531105
2,918
0.914734
0
0
0
0
0
0
1,065
0.333856
99f2a8cd466b198120000a799808ca4ceb565c8a
465
py
Python
ping.py
TuxStory/Python3
4c1b2291d1613b32aa36b62b0b881ea40b423cce
[ "MIT" ]
null
null
null
ping.py
TuxStory/Python3
4c1b2291d1613b32aa36b62b0b881ea40b423cce
[ "MIT" ]
null
null
null
ping.py
TuxStory/Python3
4c1b2291d1613b32aa36b62b0b881ea40b423cce
[ "MIT" ]
null
null
null
import os def ping(plage): for ip in range(255): test = os.system("ping -c 1 " +plage+str(ip)+" >/dev/null") if test == 0: print(plage+str(ip),"est actif sur le reseau.") def main(): os.system("clear") print("PingPy".center(25,"-")) print("\nExemple : 192.168.1.") print...
23.25
67
0.556989
0
0
0
0
0
0
0
0
157
0.337634
99f3591924ec7be6b6dc2dbe39d731a3c039c201
971
py
Python
MathUtilities.py
paulmontecot/PythonDFTMotionP3
741e544e0885e97a5469649ae2a90eadbec914c5
[ "MIT" ]
null
null
null
MathUtilities.py
paulmontecot/PythonDFTMotionP3
741e544e0885e97a5469649ae2a90eadbec914c5
[ "MIT" ]
null
null
null
MathUtilities.py
paulmontecot/PythonDFTMotionP3
741e544e0885e97a5469649ae2a90eadbec914c5
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def integral(df,data): integral = [0] for i in range(len(df.index) - 1): dt_ = df.time[i + 1] - df.time[i] integral_ = data[i] * dt_ integral_ += (data[i + 1] - data[i]) * dt_ / 2.0 integral.append(integral[i] + integral_) ...
27.742857
93
0.510814
0
0
0
0
0
0
0
0
18
0.018538
99f3fc94d7ce6e669de010cfe49cc2e8d70b8888
3,461
py
Python
attention.py
lil-lab/atis
08a17a7be8cd7b40d2f35e089947df4d543b3321
[ "MIT" ]
21
2019-06-03T14:21:00.000Z
2022-01-14T13:43:42.000Z
attention.py
clic-lab/atis
08a17a7be8cd7b40d2f35e089947df4d543b3321
[ "MIT" ]
3
2018-07-05T13:42:31.000Z
2019-04-02T12:01:18.000Z
attention.py
clic-lab/atis
08a17a7be8cd7b40d2f35e089947df4d543b3321
[ "MIT" ]
12
2018-06-13T00:11:33.000Z
2019-04-15T22:12:08.000Z
"""Contains classes for computing and keeping track of attention distributions. """ from collections import namedtuple import dynet as dy import dynet_utils as du class AttentionResult(namedtuple('AttentionResult', ('scores', 'distribution', ...
39.781609
86
0.608206
3,292
0.95117
0
0
0
0
0
0
1,812
0.523548
99f5c968619741d599aec34b3b7698daeeb82d4a
2,655
py
Python
v0/hack1.py
dhvakr/Farm-Hub---Hackverse-2021
3444c16dc792a3d533a071f41d53b7b9efbf0a78
[ "MIT" ]
2
2021-04-21T07:26:01.000Z
2021-04-21T07:26:17.000Z
v0/hack1.py
dhvakr/Farm-Hub---Hackverse-2021
3444c16dc792a3d533a071f41d53b7b9efbf0a78
[ "MIT" ]
null
null
null
v0/hack1.py
dhvakr/Farm-Hub---Hackverse-2021
3444c16dc792a3d533a071f41d53b7b9efbf0a78
[ "MIT" ]
2
2021-05-21T08:44:41.000Z
2021-07-16T14:59:24.000Z
# -*- coding: utf-8 -*- """ Created on Saturday - 2021 @author: DIVAKARAN """ import pandas as pd import numpy as np from sklearn import preprocessing from sklearn.linear_model import LogisticRegression from sklearn.model_selection import cross_val_score from keras.models import Sequential from keras.lay...
34.480519
215
0.698682
0
0
0
0
0
0
0
0
1,111
0.418456
99f5e77d5e735a8f18f4fdcee74e3f414905ae28
1,978
py
Python
app/base/management/commands/send_reminder.py
Sovol2018/sovolo
54250e42b4af3391d2f99690f45b93ab240563c2
[ "MIT" ]
2
2017-06-06T11:34:49.000Z
2017-10-24T13:09:50.000Z
app/base/management/commands/send_reminder.py
Sovol2018/sovolo
54250e42b4af3391d2f99690f45b93ab240563c2
[ "MIT" ]
346
2016-08-09T20:50:57.000Z
2018-08-28T06:52:17.000Z
app/base/management/commands/send_reminder.py
hejob/sovolo
8b73253d7bf0427c7ae0ebb6d8e3d70e118e8427
[ "MIT" ]
3
2017-11-27T14:07:57.000Z
2018-08-13T15:51:01.000Z
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand from django.template.loader import get_template from event.models import Event, Frame from base.utils import send_template_mail from django.utils import timezone import datetime import sys import io sys.stdout = io.TextIOWrapper(sys.stdout.buff...
34.103448
66
0.58999
1,761
0.836182
0
0
0
0
0
0
359
0.170465
99f8789335127ad626aebedbfb8f6b1f855bca1b
18,797
py
Python
irida_import/tests/integration/test_irida_import_int.py
phac-nml/irida-galaxy-importer
8b85bad43272d523f6b0cf50d9fcce355d3b966e
[ "Apache-2.0" ]
6
2015-11-24T21:51:54.000Z
2022-03-09T15:08:52.000Z
irida_import/tests/integration/test_irida_import_int.py
phac-nml/irida-galaxy-importer
8b85bad43272d523f6b0cf50d9fcce355d3b966e
[ "Apache-2.0" ]
16
2016-11-22T14:20:15.000Z
2021-12-20T21:28:28.000Z
irida_import/tests/integration/test_irida_import_int.py
phac-nml/irida-galaxy-importer
8b85bad43272d523f6b0cf50d9fcce355d3b966e
[ "Apache-2.0" ]
2
2019-07-12T20:10:30.000Z
2019-09-26T20:52:17.000Z
import socket import getpass import inspect import time import sys import logging import os import configparser import pytest import subprocess from tempfile import mkdtemp from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.common.exceptions import StaleElementRef...
42.915525
116
0.628239
17,689
0.941054
0
0
3,635
0.193382
0
0
5,494
0.292281
99fe11a820f272f49a922eba7ff98cc3f28aaa1e
14,822
py
Python
code/sumContext.py
NIEHS/P-MACD
82fa36f6ccbdccb63985d28b0c41c9084b9e2b18
[ "MIT" ]
2
2021-06-02T20:34:27.000Z
2021-09-06T22:36:10.000Z
code/sumContext.py
NIEHS/P-MACD
82fa36f6ccbdccb63985d28b0c41c9084b9e2b18
[ "MIT" ]
null
null
null
code/sumContext.py
NIEHS/P-MACD
82fa36f6ccbdccb63985d28b0c41c9084b9e2b18
[ "MIT" ]
2
2021-04-03T00:31:13.000Z
2022-01-31T15:40:29.000Z
## This code was developed and authored by Les Klimczak, Ph.D. ## Unauthorized commercial reuse of the code and removal of this notice ## are prohibited. ## This research was supported by the Intramural Research Program of the NIH, ## National Institute of Environmental Health Sciences. import os, re, sys, copy, nump...
32.362445
253
0.672716
0
0
0
0
0
0
0
0
3,715
0.250641
99fe12ff4c35b26e29c870cb2838c857b4760a02
6,757
py
Python
app/environments/routes.py
Jeoffreybauvin/puppenc
8c4f0bea9208dc7628e9e0813f20d26543caa9bb
[ "Apache-2.0" ]
5
2017-03-24T21:43:12.000Z
2021-12-13T12:04:35.000Z
app/environments/routes.py
Jeoffreybauvin/puppenc
8c4f0bea9208dc7628e9e0813f20d26543caa9bb
[ "Apache-2.0" ]
12
2017-04-03T16:04:14.000Z
2019-05-22T14:32:45.000Z
app/environments/routes.py
Jeoffreybauvin/puppenc
8c4f0bea9208dc7628e9e0813f20d26543caa9bb
[ "Apache-2.0" ]
2
2017-04-15T17:13:47.000Z
2021-06-01T04:04:28.000Z
from flask_restful import Resource from flask import jsonify, request from app.puppenc import api, db, app, auth, PuppencResource from app.decorators import * from app.environments.models import Environment from app.environments.schema import EnvironmentSchema class Environments(PuppencResource): def __init__(se...
37.960674
139
0.540033
6,492
0.960781
0
0
6,290
0.930886
0
0
5,593
0.827734
99ff21128f28ade08f135547e7c3ca6883ffbc73
5,675
py
Python
human_feedback.py
XushengLuo/SocialRobotHumanFeedback
db609bc76c11528ea611dcbd21982e0ac6d50b71
[ "BSD-2-Clause" ]
null
null
null
human_feedback.py
XushengLuo/SocialRobotHumanFeedback
db609bc76c11528ea611dcbd21982e0ac6d50b71
[ "BSD-2-Clause" ]
null
null
null
human_feedback.py
XushengLuo/SocialRobotHumanFeedback
db609bc76c11528ea611dcbd21982e0ac6d50b71
[ "BSD-2-Clause" ]
null
null
null
import numpy as np from shapely.geometry import Point, LineString, Polygon from smallest_enclosing_circle import make_circle from itertools import groupby from operator import itemgetter # def human_feedback(x, human_cluster, point_cluster, obstacle): # # human are inside the polygon # score = 0 # index =...
39.685315
123
0.492863
0
0
0
0
0
0
0
0
3,593
0.633128
82011fa86716754e2702eaa340eb8b60c131cddc
470
py
Python
validation-api/definitions/path.py
DILCISBoard/py-ip-validator
1a00f7205d3676cf24c993076614fcbeb50cf8d7
[ "Apache-2.0" ]
2
2018-11-20T12:17:57.000Z
2019-09-28T21:01:38.000Z
validation-api/definitions/path.py
DILCISBoard/py-ip-validator
1a00f7205d3676cf24c993076614fcbeb50cf8d7
[ "Apache-2.0" ]
2
2020-06-15T09:28:44.000Z
2020-06-18T10:30:26.000Z
validation-api/definitions/path.py
DILCISBoard/py-ip-validator
1a00f7205d3676cf24c993076614fcbeb50cf8d7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # coding=UTF-8 # # METS Validator Portal # Copyright (C) 2017 # All rights reserved. # # This code is distributed under the terms of the GNU General Public # License, Version 3. See the text file "COPYING" for further details # about the terms of this license. class Path: #URL path = "" def m...
18.076923
69
0.680851
33
0.070213
0
0
0
0
0
0
372
0.791489
8201bf3c0e643a911851cd3ab506967ec106559e
8,286
py
Python
MI/classify.py
n778509775/NWCQ
72851d26f470465e9e13b219a12d52daa5e1ceed
[ "MIT" ]
1
2021-10-17T02:13:27.000Z
2021-10-17T02:13:27.000Z
MI/classify.py
n778509775/NWCQ
72851d26f470465e9e13b219a12d52daa5e1ceed
[ "MIT" ]
null
null
null
MI/classify.py
n778509775/NWCQ
72851d26f470465e9e13b219a12d52daa5e1ceed
[ "MIT" ]
null
null
null
#!/usr/bin/env python import torch.utils.data import numpy as np import random import time import matplotlib.pyplot as plt from tkinter import _flatten from function import plot_clas_loss, pre_processing from sklearn.metrics import roc_auc_score import torch import torch.nn as nn from torch.autograd import Variable i...
35.715517
131
0.621289
0
0
0
0
0
0
0
0
1,195
0.144219
8201c67d288e4465f79cc1d4182769abefabbba6
966
py
Python
pieces/queen.py
eelviral/Chess-Game-Project
bd11a727221250f6c3dbc86a370742040f51be0a
[ "MIT" ]
null
null
null
pieces/queen.py
eelviral/Chess-Game-Project
bd11a727221250f6c3dbc86a370742040f51be0a
[ "MIT" ]
null
null
null
pieces/queen.py
eelviral/Chess-Game-Project
bd11a727221250f6c3dbc86a370742040f51be0a
[ "MIT" ]
null
null
null
from piece import Piece from .rook import Rook from .bishop import Bishop class Queen(Piece): def __init__(self, white): super().__init__(white) self.rook = Rook(white) self.bishop = Bishop(white) def can_move(self, board, start, end) -> bool: """ Determines if queen c...
32.2
68
0.63354
889
0.92029
0
0
0
0
0
0
81
0.083851
82021110f6f9c2d0fb36aa62a5093fee91e387ae
3,842
py
Python
idgames-extract/src/doom/doomimage.py
GitExl/DoomIdgamesArchive
6f7124de5c2bab256bb2255b309f50a958780b9d
[ "BSD-2-Clause" ]
2
2019-05-05T02:04:45.000Z
2019-07-10T18:49:31.000Z
idgames-extract/src/doom/doomimage.py
GitExl/DoomIdgamesArchive
6f7124de5c2bab256bb2255b309f50a958780b9d
[ "BSD-2-Clause" ]
null
null
null
idgames-extract/src/doom/doomimage.py
GitExl/DoomIdgamesArchive
6f7124de5c2bab256bb2255b309f50a958780b9d
[ "BSD-2-Clause" ]
3
2016-11-08T21:03:28.000Z
2019-05-12T21:45:37.000Z
from struct import Struct from typing import Optional from PIL import Image from doom.palette import Palette class DoomImage(object): S_HEADER: Struct = Struct('<HHhh') def __init__(self, width: int, height: int, left: int, top: int): self.width: int = width self.height: int = height ...
29.106061
89
0.525508
3,728
0.970328
0
0
3,188
0.829776
0
0
667
0.173607
82027cf84d56a19e89654387f3e3771d2c030696
4,327
py
Python
bdd_mtl/tools/eval_seg.py
XDong18/bdd-mtl
90459c090a2bc4a89a929740e5cf5d37c1b34a4b
[ "BSD-3-Clause" ]
null
null
null
bdd_mtl/tools/eval_seg.py
XDong18/bdd-mtl
90459c090a2bc4a89a929740e5cf5d37c1b34a4b
[ "BSD-3-Clause" ]
null
null
null
bdd_mtl/tools/eval_seg.py
XDong18/bdd-mtl
90459c090a2bc4a89a929740e5cf5d37c1b34a4b
[ "BSD-3-Clause" ]
null
null
null
import argparse import boundary_utils as bu import numpy as np import os import sys import time from utils import * from multiprocessing import Pool import pickle as pk from PIL import Image def parse_args(): parser = argparse.ArgumentParser( description='Evaluate drivable area and semantic se...
39.336364
226
0.580772
0
0
0
0
0
0
0
0
934
0.215854
82037678cf731a27de7b80202c8ec58995f0f61d
1,795
py
Python
jungle_book/auth/jwt.py
EmilTheSadCat/jungle-book-app
9b92ba8b889943ce3636a88d538a59ee339869f1
[ "MIT" ]
null
null
null
jungle_book/auth/jwt.py
EmilTheSadCat/jungle-book-app
9b92ba8b889943ce3636a88d538a59ee339869f1
[ "MIT" ]
null
null
null
jungle_book/auth/jwt.py
EmilTheSadCat/jungle-book-app
9b92ba8b889943ce3636a88d538a59ee339869f1
[ "MIT" ]
null
null
null
import jwt from flask import request, jsonify from datetime import datetime from dateutil.relativedelta import relativedelta from functools import wraps from jungle_book.user.models import User algorithm = "HS256" key = "secret" # TODO put this into env variables NOW = datetime.now() SIX_MONTHS_LATER = NOW + relative...
23.311688
65
0.627855
0
0
0
0
537
0.299164
0
0
327
0.182173
820477ca11e0ba3796ae1ed723f0175e4fd87448
2,035
py
Python
pysnmp/REMOTE-LOGIN-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/REMOTE-LOGIN-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/REMOTE-LOGIN-TRAP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module REMOTE-LOGIN-TRAP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/REMOTE-LOGIN-TRAP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:47:32 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
113.055556
515
0.786241
0
0
0
0
0
0
0
0
1,054
0.517936
82063e18e59a0cf3835ff63d9115c425615a4eb0
877
py
Python
admin/aws/list_instances.py
biosimulations/hsds
bd5b659c4fcc60c4a2791b2f39750faaa9098d09
[ "Apache-2.0" ]
76
2019-01-03T18:14:01.000Z
2022-03-28T20:09:42.000Z
admin/aws/list_instances.py
biosimulations/hsds
bd5b659c4fcc60c4a2791b2f39750faaa9098d09
[ "Apache-2.0" ]
104
2019-01-01T17:09:52.000Z
2022-03-31T17:53:48.000Z
admin/aws/list_instances.py
biosimulations/hsds
bd5b659c4fcc60c4a2791b2f39750faaa9098d09
[ "Apache-2.0" ]
41
2019-01-30T13:58:16.000Z
2022-02-23T13:13:01.000Z
import boto.ec2 import config region = config.get("aws_region") conn = boto.ec2.connect_to_region(region) reservations = conn.get_all_instances() fields = ("id", "public ip", "private ip", "name", "subnet", "state") format_str = "{:<20} {:<16} {:<16} {:<16} {:<16} {:<12}" print(format_str.format(*fields)) sep = ('-'*1...
32.481481
117
0.615735
0
0
0
0
0
0
0
0
150
0.171038
82073259142e93c2fdba09723427d60b8a6ec446
5,795
py
Python
src/regression.py
rahlk/Rosie
60dc9d6a5590cdfbafbcbb0a7285db4e496384cc
[ "MIT" ]
null
null
null
src/regression.py
rahlk/Rosie
60dc9d6a5590cdfbafbcbb0a7285db4e496384cc
[ "MIT" ]
null
null
null
src/regression.py
rahlk/Rosie
60dc9d6a5590cdfbafbcbb0a7285db4e496384cc
[ "MIT" ]
null
null
null
''' Created on Feb 8, 2017 This is the regression script the langlib project. It is meant to be run at the top level directory of the repository. ''' import copy,json from os import walk from os.path import exists,splitext from subprocess import Popen, PIPE from string import digits import difflib import sys #This i...
41.099291
186
0.534599
568
0.098016
0
0
0
0
0
0
2,572
0.443831
82075f1bc0f847438e1a50eb1984f6a6e589570a
4,727
py
Python
personal/sudoku_solver/sudoku_solver.py
jyodroid/python_training
7b17145faed6a005d44a08c2f72a60644705f1e1
[ "Unlicense" ]
null
null
null
personal/sudoku_solver/sudoku_solver.py
jyodroid/python_training
7b17145faed6a005d44a08c2f72a60644705f1e1
[ "Unlicense" ]
null
null
null
personal/sudoku_solver/sudoku_solver.py
jyodroid/python_training
7b17145faed6a005d44a08c2f72a60644705f1e1
[ "Unlicense" ]
null
null
null
# Class https://docs.python.org/3/tutorial/classes.html class SudokuSolver: def __init__(self, boxes, unitlist): self.boxes = boxes self.unitlist = unitlist # My solution def set_boxes_values(values): board = {} for index in range(len(self.boxes)): board[self.bo...
37.220472
131
0.584303
4,670
0.987942
0
0
0
0
0
0
1,368
0.289401
820790042011984b310814afa864c57777d5d354
10,956
py
Python
crystal_toolkit/components/transformations/grainboundary.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
null
null
null
crystal_toolkit/components/transformations/grainboundary.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
5
2018-10-18T19:52:12.000Z
2018-11-17T19:02:49.000Z
crystal_toolkit/components/transformations/grainboundary.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
null
null
null
import dash from dash import dcc from dash.dependencies import Input, Output, State from dash.exceptions import PreventUpdate from pymatgen.symmetry.analyzer import SpacegroupAnalyzer from pymatgen.transformations.advanced_transformations import ( GrainBoundaryGenerator, GrainBoundaryTransformation, ) from cry...
34.670886
121
0.562705
10,522
0.958288
0
0
5,437
0.495173
0
0
3,092
0.281603
8209433689df2d1a57e76c64f9c9052b8c8371b0
2,871
py
Python
main.py
marcomaiermm/fishit
5c4992d91365ec9b841eaaa81848d4ad8a9af9ed
[ "MIT" ]
null
null
null
main.py
marcomaiermm/fishit
5c4992d91365ec9b841eaaa81848d4ad8a9af9ed
[ "MIT" ]
1
2021-06-08T21:07:25.000Z
2021-06-08T21:07:25.000Z
main.py
marcomaiermm/fishit
5c4992d91365ec9b841eaaa81848d4ad8a9af9ed
[ "MIT" ]
null
null
null
import imagesearch import gui import subprocess import time #from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * import traceback,sys class Thread(QThread): def __init__(self, fn, f=False): super(Thread, self).__init__() si...
29.295918
97
0.593173
2,541
0.885057
0
0
0
0
0
0
382
0.133055