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
54e639174a97601933059aabae1c3acdb2b90d00
323
py
Python
brute/brute_build.py
sweetsbeats/starter-snake-python
e7cb56a3a623a324f4b5ef956020990e8c61f871
[ "MIT" ]
null
null
null
brute/brute_build.py
sweetsbeats/starter-snake-python
e7cb56a3a623a324f4b5ef956020990e8c61f871
[ "MIT" ]
null
null
null
brute/brute_build.py
sweetsbeats/starter-snake-python
e7cb56a3a623a324f4b5ef956020990e8c61f871
[ "MIT" ]
2
2019-05-05T00:41:26.000Z
2019-05-05T00:46:45.000Z
from cffi import FFI ffibuilder = FFI() ffibuilder.cdef(""" int test(int t); """) ffibuilder.set_source("_pi_cffi", """ #include "brute.h" """, sources=['brute.c']) if __name__ == "__main__": ffibuilder.compile(verbose = Tru...
19
42
0.479876
0
0
0
0
0
0
0
0
123
0.380805
54e64db782245fc204cf4d668f6d515f9131a03b
2,392
py
Python
src/board.py
JNotelddim/python-snake
da95339d3a982040a84422e5f7b95453095a4450
[ "MIT" ]
null
null
null
src/board.py
JNotelddim/python-snake
da95339d3a982040a84422e5f7b95453095a4450
[ "MIT" ]
null
null
null
src/board.py
JNotelddim/python-snake
da95339d3a982040a84422e5f7b95453095a4450
[ "MIT" ]
null
null
null
"""Board Module""" import copy from typing import Tuple, List from src.coordinate import Coordinate from src.snake import Snake class Board: """Track the cooardinates for all snakes and food in the game.""" def __init__(self, data): self._data = data self._snakes = None self._foods = No...
37.375
85
0.633361
2,262
0.945652
0
0
673
0.281355
0
0
565
0.236204
54e781207e20bd9e8679af88a83847cfe7947287
2,349
py
Python
personalized_nlp/datasets/wiki/base.py
CLARIN-PL/personalized-nlp
340294300f93d12cabc59b055ff2548df8f4081a
[ "MIT" ]
null
null
null
personalized_nlp/datasets/wiki/base.py
CLARIN-PL/personalized-nlp
340294300f93d12cabc59b055ff2548df8f4081a
[ "MIT" ]
1
2022-03-15T23:48:51.000Z
2022-03-15T23:48:51.000Z
personalized_nlp/datasets/wiki/base.py
CLARIN-PL/personalized-nlp
340294300f93d12cabc59b055ff2548df8f4081a
[ "MIT" ]
null
null
null
import os import zipfile from typing import List import pandas as pd import urllib from personalized_nlp.settings import STORAGE_DIR from personalized_nlp.utils.data_splitting import split_texts from personalized_nlp.datasets.datamodule_base import BaseDataModule class WikiDataModule(BaseDataModule): def __init...
32.178082
96
0.638995
2,081
0.885909
0
0
218
0.092805
0
0
255
0.108557
54e789caffaeff5bc10488464b0b5f0c11ea3f0e
522
py
Python
App/migrations/0010_remove_user_percentage_preferences_user_preferences.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
null
null
null
App/migrations/0010_remove_user_percentage_preferences_user_preferences.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
44
2022-01-21T01:33:59.000Z
2022-03-26T23:35:25.000Z
App/migrations/0010_remove_user_percentage_preferences_user_preferences.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-03-03 02:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('App', '0009_alter_song_holiday_alter_songfileinput_holiday'), ] operations = [ migrations.RemoveField( model_name='user', ...
22.695652
71
0.597701
431
0.82567
0
0
0
0
0
0
152
0.291188
54e901540b5f6fa6fc62f5e51511aa0c656882ca
3,653
py
Python
venv/Lib/site-packages/captcha/conf/settings.py
Rudeus3Greyrat/admin-management
7e81d2b1908afa3ea57a82c542c9aebb1d0ffd23
[ "MIT" ]
1
2020-05-21T06:48:34.000Z
2020-05-21T06:48:34.000Z
venv/Lib/site-packages/captcha/conf/settings.py
Rudeus3Greyrat/admin-management
7e81d2b1908afa3ea57a82c542c9aebb1d0ffd23
[ "MIT" ]
3
2021-03-19T03:07:36.000Z
2021-04-08T20:33:38.000Z
venv/Lib/site-packages/captcha/conf/settings.py
Rudeus3Greyrat/admin-management
7e81d2b1908afa3ea57a82c542c9aebb1d0ffd23
[ "MIT" ]
1
2020-05-21T06:48:36.000Z
2020-05-21T06:48:36.000Z
import os import warnings from django.conf import settings CAPTCHA_FONT_PATH = getattr(settings, 'CAPTCHA_FONT_PATH', os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'fonts/Vera.ttf'))) CAPTCHA_FONT_SIZE = getattr(settings, 'CAPTCHA_FONT_SIZE', 22) CAPTCHA_LETTER_ROTATION = getattr(settings, 'CAPTCHA_L...
52.942029
141
0.800712
0
0
0
0
0
0
0
0
1,233
0.337531
54ea3d9d70532f8dc30f4d5946975cecc10f6326
11,009
py
Python
pilbox/test/app_test.py
joevandyk/pilbox
b84732a78e5bdb2d24bf7ef4177d45806ac03ea6
[ "Apache-2.0" ]
null
null
null
pilbox/test/app_test.py
joevandyk/pilbox
b84732a78e5bdb2d24bf7ef4177d45806ac03ea6
[ "Apache-2.0" ]
null
null
null
pilbox/test/app_test.py
joevandyk/pilbox
b84732a78e5bdb2d24bf7ef4177d45806ac03ea6
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function, \ with_statement import logging import os.path import time import tornado.escape import tornado.gen import tornado.ioloop from tornado.test.util import unittest from tornado.testing import AsyncHTTPTestCase, gen_test import tornado.web from pilbox...
39.887681
79
0.606504
10,151
0.922064
202
0.018349
544
0.049414
0
0
1,696
0.154056
54eaca929e4c45b157fe05142cabf897db4cf571
1,202
py
Python
hackathon/darkmattertemperaturedistribution/example.py
Neelraj21/phython
68a2cedccae694eb84880f3aa55cc01d458e055e
[ "WTFPL" ]
6
2017-08-09T09:41:42.000Z
2021-04-22T05:10:17.000Z
hackathon/darkmattertemperaturedistribution/example.py
Neelraj21/phython
68a2cedccae694eb84880f3aa55cc01d458e055e
[ "WTFPL" ]
null
null
null
hackathon/darkmattertemperaturedistribution/example.py
Neelraj21/phython
68a2cedccae694eb84880f3aa55cc01d458e055e
[ "WTFPL" ]
5
2015-11-04T12:57:10.000Z
2020-10-18T17:32:25.000Z
#!/usr/bin/env python from scipy import * from pylab import * #from pylab import imshow #! #! Some graphical explorations of the Julia sets with python and pyreport #!######################################################################### #$ #$ We start by defining a function J: #$ \[ J_c : z \rightarrow z^2 + c \] #...
26.130435
75
0.584859
0
0
0
0
0
0
0
0
495
0.411814
54ec18e7d2fb320aa765697469037a76c03cbf50
535
py
Python
resources/migrations/0126_add_field_disallow_overlapping_reservations_per_user.py
codepointtku/respa
bb9cd8459d5562569f976dbc609ec41ceecc8023
[ "MIT" ]
1
2019-12-17T10:02:17.000Z
2019-12-17T10:02:17.000Z
resources/migrations/0126_add_field_disallow_overlapping_reservations_per_user.py
codepointtku/respa
bb9cd8459d5562569f976dbc609ec41ceecc8023
[ "MIT" ]
38
2020-01-24T11:30:53.000Z
2022-01-28T12:42:47.000Z
resources/migrations/0126_add_field_disallow_overlapping_reservations_per_user.py
digipointtku/respa
a529e0df4d3f072df7801adb5bf97a5f4abd1243
[ "MIT" ]
14
2020-02-26T08:17:34.000Z
2021-09-14T07:57:21.000Z
# Generated by Django 2.2.21 on 2021-06-23 12:43 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('resources', '0125_add_timmi_payload_model'), ] operations = [ migrations.AddField( model_name=...
26.75
126
0.676636
408
0.762617
0
0
0
0
0
0
197
0.368224
54eceeb38625ac7f7302479b3298ad5a3adabd40
1,307
py
Python
src/lora_multihop/module_config.py
marv1913/lora_multihop
ef07493c2f763d07161fa25d4b884ef79b94afa4
[ "MIT" ]
null
null
null
src/lora_multihop/module_config.py
marv1913/lora_multihop
ef07493c2f763d07161fa25d4b884ef79b94afa4
[ "MIT" ]
1
2022-02-20T13:18:13.000Z
2022-02-24T18:32:23.000Z
src/lora_multihop/module_config.py
marv1913/lora_multihop
ef07493c2f763d07161fa25d4b884ef79b94afa4
[ "MIT" ]
null
null
null
import logging from lora_multihop import serial_connection, variables def config_module(configuration=variables.MODULE_CONFIG): if serial_connection.execute_command(configuration, [variables.STATUS_OK]): serial_connection.execute_command('AT+SEND=1', [variables.STATUS_OK]) serial_connection.execu...
39.606061
101
0.746748
0
0
0
0
0
0
0
0
237
0.181331
54ed860d4a6171f4dc1581a63c75ee95835b9b75
6,287
py
Python
eris/script/ferdian.py
ferdianap/Eris_test
c2a00d65f816ad6d48a65c14b4bea4f3d081b86b
[ "BSD-3-Clause" ]
1
2015-06-12T04:38:09.000Z
2015-06-12T04:38:09.000Z
eris/script/ferdian.py
ferdianap/eris
c2a00d65f816ad6d48a65c14b4bea4f3d081b86b
[ "BSD-3-Clause" ]
null
null
null
eris/script/ferdian.py
ferdianap/eris
c2a00d65f816ad6d48a65c14b4bea4f3d081b86b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2013-2014, Rethink Robotics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
34.543956
77
0.655798
0
0
0
0
0
0
0
0
3,144
0.50008
54f048a7a0b7d058cdc56c1d7f2c7462bde0f3d6
4,461
py
Python
core/src/main/python/akdl/entry/base_entry.py
zhangjun0x01/Alink
c1cd3380bed29a4be4eb058a7462213869c02387
[ "Apache-2.0" ]
3,301
2018-10-01T16:30:44.000Z
2022-03-30T08:07:16.000Z
core/src/main/python/akdl/entry/base_entry.py
zhangjun0x01/Alink
c1cd3380bed29a4be4eb058a7462213869c02387
[ "Apache-2.0" ]
206
2019-11-27T14:04:42.000Z
2022-03-28T08:02:05.000Z
core/src/main/python/akdl/entry/base_entry.py
zhangjun0x01/Alink
c1cd3380bed29a4be4eb058a7462213869c02387
[ "Apache-2.0" ]
765
2018-10-09T02:02:19.000Z
2022-03-31T12:06:21.000Z
import abc from typing import Dict, Callable import tensorflow as tf from flink_ml_framework.context import Context from flink_ml_framework.java_file import * from ..runner import tf_helper, io_helper from ..runner.output_writer import DirectOutputWriter try: from flink_ml_tensorflow.tensorflow_context import TF...
36.867769
110
0.647837
3,895
0.873123
0
0
839
0.188074
0
0
813
0.182246
54f164400ecea40c3dfdfcd5317d3f9f381a79ff
12,450
py
Python
corm-tests/test_corm_api.py
jbcurtin/cassandra-orm
2c5540de36166c81832c1ccd0ee40c52e598e05c
[ "MIT" ]
1
2021-03-25T01:21:19.000Z
2021-03-25T01:21:19.000Z
corm-tests/test_corm_api.py
jbcurtin/cassandra-orm
2c5540de36166c81832c1ccd0ee40c52e598e05c
[ "MIT" ]
null
null
null
corm-tests/test_corm_api.py
jbcurtin/cassandra-orm
2c5540de36166c81832c1ccd0ee40c52e598e05c
[ "MIT" ]
null
null
null
import pytest ENCODING = 'utf-8' @pytest.fixture(scope='function', autouse=True) def setup_case(request): def destroy_case(): from corm import annihilate_keyspace_tables, SESSIONS annihilate_keyspace_tables('mykeyspace') for keyspace_name, session in SESSIONS.copy().items(): if...
29.294118
110
0.67245
2,456
0.197269
0
0
452
0.036305
0
0
1,402
0.11261
54f3bbb19576152c565203e49a32298c3f423ec9
6,337
py
Python
src/utilities/getInfo.py
UCSB-dataScience-ProjectGroup/movie_rating_prediction
c0c29c0463dccc6ad286bd59e77993fdf0d05fb2
[ "RSA-MD" ]
2
2017-12-15T23:10:11.000Z
2018-05-07T04:18:03.000Z
src/utilities/getInfo.py
UCSB-dataScience-ProjectGroup/movie_rating_prediction
c0c29c0463dccc6ad286bd59e77993fdf0d05fb2
[ "RSA-MD" ]
1
2018-02-26T06:23:32.000Z
2018-02-27T03:34:01.000Z
src/utilities/getInfo.py
UCSB-dataScience-ProjectGroup/movie_rating_prediction
c0c29c0463dccc6ad286bd59e77993fdf0d05fb2
[ "RSA-MD" ]
2
2017-10-19T21:50:24.000Z
2018-01-01T03:40:35.000Z
import json import os from utilities.SaveLoadJson import SaveLoadJson as SLJ from utilities.LineCount import LineCount as LC import subprocess from geolite2 import geolite2 class getData: #Get Data Functions ------------------------------------------------------ @staticmethod def getDATA(): resu...
37.276471
97
0.447373
6,160
0.972069
0
0
5,944
0.937983
0
0
1,253
0.197728
54f4e0fec59282b2d1c7f1cba1c1b99fa606ce17
70
py
Python
nemo/collections/nlp/losses/__init__.py
KalifiaBillal/NeMo
4fc670ad0c886be2623247921d4311ba30f486f8
[ "Apache-2.0" ]
1
2021-01-26T21:54:36.000Z
2021-01-26T21:54:36.000Z
nemo/collections/nlp/losses/__init__.py
aiskumo/NeMo
b51a39f9834ad50db77c4246aeb6e2349695add5
[ "Apache-2.0" ]
null
null
null
nemo/collections/nlp/losses/__init__.py
aiskumo/NeMo
b51a39f9834ad50db77c4246aeb6e2349695add5
[ "Apache-2.0" ]
2
2021-02-04T14:45:50.000Z
2021-02-04T14:56:05.000Z
from nemo.collections.nlp.losses.sgd_loss import SGDDialogueStateLoss
35
69
0.885714
0
0
0
0
0
0
0
0
0
0
54f75a0784cdbed72bcde377b44202a6cfd58c51
382
py
Python
netrunner/test_settings.py
MrAGi/netrunner-cambridge
bae0603486c2aa5a980e8e19207452fb01ec2193
[ "MIT" ]
null
null
null
netrunner/test_settings.py
MrAGi/netrunner-cambridge
bae0603486c2aa5a980e8e19207452fb01ec2193
[ "MIT" ]
null
null
null
netrunner/test_settings.py
MrAGi/netrunner-cambridge
bae0603486c2aa5a980e8e19207452fb01ec2193
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .settings import * DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': os.environ['LOCAL_DB_NAME'], 'USER': os.environ['LOCAL_DB_USER'], 'PASSWORD': os.environ['LOCAL_DB_PASSWORD']...
21.222222
59
0.568063
0
0
0
0
0
0
0
0
180
0.471204
54f79d31af30b3622247fe2c6abad64bc05814e8
231
py
Python
Python_Exercicios/calcula_terreno.py
thalles-dreissig20/Quebra_Cabeca
eeb9458dbabac72d9867e5ec5d7f1aa9b5993d79
[ "MIT" ]
null
null
null
Python_Exercicios/calcula_terreno.py
thalles-dreissig20/Quebra_Cabeca
eeb9458dbabac72d9867e5ec5d7f1aa9b5993d79
[ "MIT" ]
1
2021-11-29T18:37:14.000Z
2021-11-29T18:37:14.000Z
Python_Exercicios/calcula_terreno.py
thalles-dreissig20/Quebra_Cabeca
eeb9458dbabac72d9867e5ec5d7f1aa9b5993d79
[ "MIT" ]
null
null
null
def area(larg, comp): a = larg * comp print(f'A dimensão é {a}') print('Controle de terrenos') print('-' * 20) l = float(input('qual a largura do terreno: ')) c = float(input('qual o comprimento do terreno: ')) area(l , c)
25.666667
51
0.627706
0
0
0
0
0
0
0
0
108
0.463519
54f7f3b4bb05515aa800aef3ce44e23eb1933bf4
443
py
Python
Desafios/desafio_041.py
romulogoleniesky/Python_C_E_V
2dcf5fb3505a20443788a284c52114c6434118ce
[ "MIT" ]
null
null
null
Desafios/desafio_041.py
romulogoleniesky/Python_C_E_V
2dcf5fb3505a20443788a284c52114c6434118ce
[ "MIT" ]
null
null
null
Desafios/desafio_041.py
romulogoleniesky/Python_C_E_V
2dcf5fb3505a20443788a284c52114c6434118ce
[ "MIT" ]
null
null
null
import datetime ano = (datetime.datetime.now()).year nasc = int(input("Digite o seu ano de nascimento: ")) categoria = 0 if (ano - nasc) <= 9: categoria = str("MIRIM") elif 9 < (ano - nasc) <= 14: categoria = str("INFANTIL") elif 14 < (ano - nasc) <= 19 : categoria = str("JUNIOR") elif 19 < (ano - nasc) <= ...
26.058824
53
0.616253
0
0
0
0
0
0
0
0
121
0.27191
54f89b5cd05a9ee6ba8e82764ddc7f2a5b7aea7d
1,689
py
Python
eval/metrics.py
RecoHut-Stanzas/S168471
7e0ac621c36f839e1df6876ec517d0ad00672790
[ "BSD-3-Clause" ]
37
2020-06-15T02:04:37.000Z
2022-02-09T06:26:42.000Z
eval/metrics.py
RecoHut-Stanzas/S168471
7e0ac621c36f839e1df6876ec517d0ad00672790
[ "BSD-3-Clause" ]
5
2020-08-06T13:16:34.000Z
2022-02-04T07:29:29.000Z
eval/metrics.py
RecoHut-Stanzas/S168471
7e0ac621c36f839e1df6876ec517d0ad00672790
[ "BSD-3-Clause" ]
11
2020-09-01T23:08:51.000Z
2022-02-09T06:26:44.000Z
import torch def ndcg_binary_at_k_batch_torch(X_pred, heldout_batch, k=100, device='cpu'): """ Normalized Discounted Cumulative Gain@k for for predictions [B, I] and ground-truth [B, I], with binary relevance. ASSUMPTIONS: all the 0's in heldout_batch indicate 0 relevance. """ batch_users = X_pre...
44.447368
118
0.674956
0
0
0
0
0
0
0
0
356
0.210776
54f8ec657caa5b90b66baca8ce435c82f8e1413e
5,029
py
Python
simba/run_dash_tkinter.py
justinshenk/simba
a58ccd0ceeda201c1452d186033ce6b25fbab564
[ "MIT" ]
172
2019-12-18T22:19:42.000Z
2022-03-29T01:58:25.000Z
simba/run_dash_tkinter.py
justinshenk/simba
a58ccd0ceeda201c1452d186033ce6b25fbab564
[ "MIT" ]
165
2020-01-10T19:05:16.000Z
2022-03-31T16:08:36.000Z
simba/run_dash_tkinter.py
justinshenk/simba
a58ccd0ceeda201c1452d186033ce6b25fbab564
[ "MIT" ]
80
2019-12-20T00:01:43.000Z
2022-03-29T16:20:10.000Z
# All credit to https://stackoverflow.com/questions/46571448/tkinter-and-a-html-file - thanks DELICA - https://stackoverflow.com/users/7027346/delica from cefpython3 import cefpython as cef import ctypes try: import tkinter as tk from tkinter import messagebox except ImportError: import Tkinter as tk impo...
30.478788
149
0.644064
3,418
0.679658
0
0
0
0
0
0
1,026
0.204017
54fb3d7c53a19a5375f0b43976b42347774b6cca
1,010
py
Python
domain_data/mujoco_worlds/make_xml.py
sfpd/rlreloaded
650c64ec22ad45996c8c577d85b1a4f20aa1c692
[ "MIT" ]
null
null
null
domain_data/mujoco_worlds/make_xml.py
sfpd/rlreloaded
650c64ec22ad45996c8c577d85b1a4f20aa1c692
[ "MIT" ]
null
null
null
domain_data/mujoco_worlds/make_xml.py
sfpd/rlreloaded
650c64ec22ad45996c8c577d85b1a4f20aa1c692
[ "MIT" ]
null
null
null
import re def do_substitution(in_lines): lines_iter = iter(in_lines) defn_lines = [] while True: try: line = lines_iter.next() except StopIteration: raise RuntimeError("didn't find line starting with ---") if line.startswith('---'): break e...
25.897436
68
0.581188
0
0
0
0
0
0
0
0
74
0.073267
54fbc8636ea0532bcc0fa404a8de1597f6db3f5f
354
py
Python
myproject/apps/events/migrations/0002_alter_eventhero_options.py
cahyareza/django_admin_cookbook
6c82dbd3aebe455b68feb020d5cad7978b8191b7
[ "MIT" ]
null
null
null
myproject/apps/events/migrations/0002_alter_eventhero_options.py
cahyareza/django_admin_cookbook
6c82dbd3aebe455b68feb020d5cad7978b8191b7
[ "MIT" ]
null
null
null
myproject/apps/events/migrations/0002_alter_eventhero_options.py
cahyareza/django_admin_cookbook
6c82dbd3aebe455b68feb020d5cad7978b8191b7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-03-28 11:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('events', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='eventhero', options={'verbose_name_plural': ...
19.666667
60
0.601695
268
0.757062
0
0
0
0
0
0
116
0.327684
54fcf0226ece66aeec4bb6bba4646c87e745e2e5
799
py
Python
hilton_sign_in.py
bmintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2018-11-12T10:33:13.000Z
2019-02-24T05:01:40.000Z
hilton_sign_in.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
null
null
null
hilton_sign_in.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2018-11-24T08:16:59.000Z
2019-02-24T04:41:30.000Z
#!/usr/bin/env python3 # encoding: utf-8 import sys import urllib.parse import selenium.webdriver def exit(): driver.quit() sys.exit(0) driver = selenium.webdriver.Firefox() # for some reason, detectportal.firefox.com and connectivitycheck.gstatic.com are not blocked # therefore, they cannot be used to detect con...
30.730769
93
0.779725
0
0
0
0
0
0
0
0
381
0.476846
54fd38f1410793bf1398c7ca975380689133f595
1,539
py
Python
src/figures/trends/leaf_response.py
rhyswhitley/savanna_iav
4eadf29a4e9c05d0b14d3b9c973eb8db3ea7edba
[ "CC0-1.0" ]
null
null
null
src/figures/trends/leaf_response.py
rhyswhitley/savanna_iav
4eadf29a4e9c05d0b14d3b9c973eb8db3ea7edba
[ "CC0-1.0" ]
null
null
null
src/figures/trends/leaf_response.py
rhyswhitley/savanna_iav
4eadf29a4e9c05d0b14d3b9c973eb8db3ea7edba
[ "CC0-1.0" ]
1
2019-09-01T04:15:21.000Z
2019-09-01T04:15:21.000Z
#!/usr/bin/env python import os from collections import OrderedDict import cPickle as pickle import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from matplotlib.cm import get_cmap from matplotlib import style from scipy import stats from scipy import integrate ...
23.676923
83
0.684211
0
0
0
0
0
0
0
0
282
0.183236
54fe1eee5bca5dc248b6bf225d479bd8fc671965
1,041
py
Python
app/index.py
vprnet/school-closings
04c63170ea36cabe0a3486f0e58830952e1fd0a8
[ "Apache-2.0" ]
null
null
null
app/index.py
vprnet/school-closings
04c63170ea36cabe0a3486f0e58830952e1fd0a8
[ "Apache-2.0" ]
null
null
null
app/index.py
vprnet/school-closings
04c63170ea36cabe0a3486f0e58830952e1fd0a8
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python2.7 from flask import Flask import sys from flask_frozen import Freezer from upload_s3 import set_metadata from config import AWS_DIRECTORY app = Flask(__name__) app.config.from_object('config') from views import * # Serving from s3 leads to some complications in how static files are served i...
24.209302
76
0.668588
233
0.223823
0
0
0
0
0
0
174
0.167147
07010f1430c53be8c3d42e4a620d3fc295e28964
1,799
py
Python
proxyclient/linux.py
modwizcode/m1n1
96d133e854dfe878ea39f9c994545a2026a446a8
[ "MIT" ]
1
2021-06-05T08:30:21.000Z
2021-06-05T08:30:21.000Z
proxyclient/linux.py
modwizcode/m1n1
96d133e854dfe878ea39f9c994545a2026a446a8
[ "MIT" ]
null
null
null
proxyclient/linux.py
modwizcode/m1n1
96d133e854dfe878ea39f9c994545a2026a446a8
[ "MIT" ]
null
null
null
#!/usr/bin/python from setup import * payload = open(sys.argv[1], "rb").read() dtb = open(sys.argv[2], "rb").read() if len(sys.argv) > 3: initramfs = open(sys.argv[3], "rb").read() initramfs_size = len(initramfs) else: initramfs = None initramfs_size = 0 compressed_size = len(payload) compressed_addr...
24.310811
114
0.721512
0
0
0
0
0
0
0
0
436
0.242357
07027cec6982fe1f9197878d8796ee05b6d45b5e
1,313
py
Python
src/server.py
shizhongpwn/ancypwn
716146e4986c514754492c8503ab196eecb9466d
[ "MIT" ]
1
2021-06-29T03:41:27.000Z
2021-06-29T03:41:27.000Z
src/server.py
shizhongpwn/ancypwn
716146e4986c514754492c8503ab196eecb9466d
[ "MIT" ]
null
null
null
src/server.py
shizhongpwn/ancypwn
716146e4986c514754492c8503ab196eecb9466d
[ "MIT" ]
1
2021-06-18T05:36:28.000Z
2021-06-18T05:36:28.000Z
import json import os import multiprocessing import struct import importlib from socketserver import TCPServer, StreamRequestHandler def plugin_module_import(name): try: return importlib.import_module(name) except ModuleNotFoundError as e: prompt = 'plugin {} not found, please install it first...
31.261905
79
0.657273
860
0.654989
0
0
0
0
0
0
176
0.134044
0703c45ad1851ac29ed524b5ee1616259ba14bdb
537
py
Python
pytorch_utils/collection_utils.py
c-hofer/pytorch_utils
55278272690937ff1180c8d549bc866a63a5ac51
[ "MIT" ]
null
null
null
pytorch_utils/collection_utils.py
c-hofer/pytorch_utils
55278272690937ff1180c8d549bc866a63a5ac51
[ "MIT" ]
null
null
null
pytorch_utils/collection_utils.py
c-hofer/pytorch_utils
55278272690937ff1180c8d549bc866a63a5ac51
[ "MIT" ]
null
null
null
def keychain_value_iter(d, key_chain=None, allowed_values=None): key_chain = [] if key_chain is None else list(key_chain).copy() if not isinstance(d, dict): if allowed_values is not None: assert isinstance(d, allowed_values), 'Value needs to be of type {}!'.format( allowed_v...
38.357143
89
0.588454
0
0
537
1
0
0
0
0
31
0.057728
0704c30e12f5e2ffe2ea17cf59fe41a9fd37e4af
565
py
Python
speech_to_text/views.py
zace3d/video_analysis
9001486ae64160ca497f6b9a99df5d9a5c5422cc
[ "Apache-2.0" ]
null
null
null
speech_to_text/views.py
zace3d/video_analysis
9001486ae64160ca497f6b9a99df5d9a5c5422cc
[ "Apache-2.0" ]
9
2019-12-04T22:38:16.000Z
2021-06-10T17:51:32.000Z
speech_to_text/views.py
zace3d/video_analysis
9001486ae64160ca497f6b9a99df5d9a5c5422cc
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from . import helpers # Create your views here. @csrf_exempt def convert_video(request, version): # Get video video = reques...
25.681818
70
0.766372
0
0
0
0
330
0.584071
0
0
145
0.256637
070792428b154808490c0fc141036d69c221ccfb
2,981
py
Python
security_monkey/watchers/vpc/vpn.py
boladmin/security_monkey
c28592ffd518fa399527d26262683fc860c30eef
[ "Apache-2.0" ]
4,258
2015-01-04T22:06:10.000Z
2022-03-31T23:40:27.000Z
security_monkey/watchers/vpc/vpn.py
boladmin/security_monkey
c28592ffd518fa399527d26262683fc860c30eef
[ "Apache-2.0" ]
1,013
2015-01-12T02:31:03.000Z
2021-09-16T19:09:03.000Z
security_monkey/watchers/vpc/vpn.py
boladmin/security_monkey
c28592ffd518fa399527d26262683fc860c30eef
[ "Apache-2.0" ]
965
2015-01-11T21:06:07.000Z
2022-03-17T16:53:57.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
37.2625
115
0.614223
2,029
0.680644
0
0
0
0
0
0
1,330
0.446159
0708030cc6b0ac486ef0bd568029e80e9873483c
2,332
py
Python
particle.py
coush001/Imperial-MSc-Group-Project-2
9309217895802d11c6fe9d2dca9b21f98fbc1c61
[ "MIT" ]
null
null
null
particle.py
coush001/Imperial-MSc-Group-Project-2
9309217895802d11c6fe9d2dca9b21f98fbc1c61
[ "MIT" ]
null
null
null
particle.py
coush001/Imperial-MSc-Group-Project-2
9309217895802d11c6fe9d2dca9b21f98fbc1c61
[ "MIT" ]
null
null
null
from itertools import count import numpy as np class Particle(object): """Object containing all the properties for a single particle""" _ids = count(0) def __init__(self, main_data=None, x=np.zeros(2)): self.id = next(self._ids) self.main_data = main_data self.x = np.array(x) ...
30.285714
107
0.551887
2,282
0.978559
0
0
0
0
0
0
534
0.228988
0708b3e7b515fbe0913b6b5bb88c0fbd4c828abe
501
py
Python
app/main/form.py
hussein18149/PITCHBOARD
9aa515f8dd18464830bdf80488a317e8e791bd1b
[ "MIT" ]
null
null
null
app/main/form.py
hussein18149/PITCHBOARD
9aa515f8dd18464830bdf80488a317e8e791bd1b
[ "MIT" ]
null
null
null
app/main/form.py
hussein18149/PITCHBOARD
9aa515f8dd18464830bdf80488a317e8e791bd1b
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,TextAreaField,SubmitField from wtforms.validators import Required class UpdateProfile(FlaskForm): about = TextAreaField('Tell us about you.',validators = [Required()]) submit = SubmitField('Submit') class PitchForm(FlaskForm): pitch = TextAre...
31.3125
73
0.754491
365
0.728543
0
0
0
0
0
0
83
0.165669
07092a144b2a5c13ba5ef9b78acec4dd39f5a15b
4,840
py
Python
soar_instruments/sami/adclass.py
soar-telescope/dragons-soar
a1c600074f532c1af6bd59bc2cc662a1aecd39c4
[ "MIT" ]
1
2017-10-31T21:02:59.000Z
2017-10-31T21:02:59.000Z
soar_instruments/sami/adclass.py
soar-telescope/dragons-soar
a1c600074f532c1af6bd59bc2cc662a1aecd39c4
[ "MIT" ]
null
null
null
soar_instruments/sami/adclass.py
soar-telescope/dragons-soar
a1c600074f532c1af6bd59bc2cc662a1aecd39c4
[ "MIT" ]
null
null
null
import re import astrodata from astrodata import (astro_data_tag, TagSet, astro_data_descriptor, returns_list) from astrodata.fits import FitsLoader, FitsProvider from ..soar import AstroDataSOAR class AstroDataSAMI(AstroDataSOAR): __keyword_dict = dict(data_section='DATASEC', gain='GAIN'...
33.846154
79
0.590083
4,618
0.954132
0
0
4,447
0.918802
0
0
2,380
0.491736
0709b6cd82b1f84edf49917175e51ec7e1ae9747
264
py
Python
practice/src/design_pattern/TemplateMethod.py
t10471/python
75056454bfb49197eb44f6b4d6a1b0a0b4b408ec
[ "MIT" ]
null
null
null
practice/src/design_pattern/TemplateMethod.py
t10471/python
75056454bfb49197eb44f6b4d6a1b0a0b4b408ec
[ "MIT" ]
null
null
null
practice/src/design_pattern/TemplateMethod.py
t10471/python
75056454bfb49197eb44f6b4d6a1b0a0b4b408ec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #単なる継承 class Base(object): def __init__(self): pass def meth(self, int): return self._meth(int) def _meth(self, int): return int class Pow(Base): def _meth(self, int): return pow(int,int)
15.529412
30
0.556818
228
0.832117
0
0
0
0
0
0
39
0.142336
070a2f74e288d9e0f7d67adf9e2e415a8758caa2
1,957
py
Python
yoon/stage1_kernel.py
yoon28/realsr-noise-injection
402679490bf0972d09aaaadee3b5b9850c2a36e4
[ "Apache-2.0" ]
17
2020-07-29T11:08:19.000Z
2021-01-07T11:23:33.000Z
yoon/stage1_kernel.py
yoon28/realsr-noise-injection
402679490bf0972d09aaaadee3b5b9850c2a36e4
[ "Apache-2.0" ]
5
2020-08-04T02:51:39.000Z
2020-08-21T03:44:08.000Z
yoon/stage1_kernel.py
yoon28/realsr-noise-injection
402679490bf0972d09aaaadee3b5b9850c2a36e4
[ "Apache-2.0" ]
null
null
null
import os, sys import numpy as np import cv2 import random import torch from configs import Config from kernelGAN import KernelGAN from data import DataGenerator from learner import Learner import tqdm DATA_LOC = "/mnt/data/NTIRE2020/realSR/track2" # "/mnt/data/NTIRE2020/realSR/track1" DATA_X = "DPEDiphone-tr-x" # ...
30.107692
130
0.654573
0
0
0
0
0
0
0
0
313
0.159939
070a513dc67a15b46d7b419d4ba1b638e56fb11a
731
py
Python
test/rdfa/test_non_xhtml.py
RDFLib/PyRDFa
efc24d4940910ca1e65900c25b62047301bbdcc7
[ "BSD-3-Clause" ]
8
2015-04-01T19:55:22.000Z
2020-04-25T08:50:05.000Z
test/rdfa/test_non_xhtml.py
DalavanCloud/PyRDFa
fd5c8826fb9e5f6f5a578564b1149fdae6c40aad
[ "BSD-3-Clause" ]
null
null
null
test/rdfa/test_non_xhtml.py
DalavanCloud/PyRDFa
fd5c8826fb9e5f6f5a578564b1149fdae6c40aad
[ "BSD-3-Clause" ]
1
2019-02-12T03:15:00.000Z
2019-02-12T03:15:00.000Z
from unittest import TestCase from pyRdfa import pyRdfa class NonXhtmlTest(TestCase): """ RDFa that is in not well-formed XHTML is passed through html5lib. These tests make sure that this RDFa can be processed both from a file, and from a URL. """ target1 = '<og:isbn>9780596516499</og:isbn>'...
33.227273
100
0.682627
671
0.917921
0
0
0
0
0
0
380
0.519836
070a6926f75c6689b9bf183a8c81961b1ffe5bbd
1,150
py
Python
python/pyoai/setup.py
jr3cermak/robs-kitchensink
74b7eb1b1acd8b700d61c5a9ba0c69be3cc6763a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/pyoai/setup.py
jr3cermak/robs-kitchensink
74b7eb1b1acd8b700d61c5a9ba0c69be3cc6763a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
python/pyoai/setup.py
jr3cermak/robs-kitchensink
74b7eb1b1acd8b700d61c5a9ba0c69be3cc6763a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages from os.path import join, dirname setup( name='pyoai', version='2.4.6.b', author='Infrae', author_email='rob.cermak@gmail.com', url='https://github.com/jr3cermak/robs-kitchensink/tree/master/python/pyoai', classifiers=["Development Status :: 4 - Beta"...
35.9375
81
0.650435
0
0
0
0
0
0
0
0
632
0.549565
070b402dc83b92f4ca29c79684b3e9fb26a6238f
4,201
py
Python
utils/functions.py
Roozbeh-Bazargani/CPSC-533R-project
453f093b23d2363f09c61079d1d4fbd878abf3be
[ "MIT" ]
null
null
null
utils/functions.py
Roozbeh-Bazargani/CPSC-533R-project
453f093b23d2363f09c61079d1d4fbd878abf3be
[ "MIT" ]
null
null
null
utils/functions.py
Roozbeh-Bazargani/CPSC-533R-project
453f093b23d2363f09c61079d1d4fbd878abf3be
[ "MIT" ]
null
null
null
import torch from torch import nn import math #0 left hip #1 left knee #2 left foot #3 right hip #4 right knee #5 right foot #6 middle hip #7 neck #8 nose #9 head #10 left shoulder #11 left elbow #12 left wrist #13 right shoulder #14 right elbow #15 right wrist def random_rotation(J3d): J = J3d # need copy???? ba...
42.434343
181
0.633183
0
0
0
0
0
0
0
0
2,971
0.707213
070c8541550d5f85dceb7ec0adf8c900bec0c786
303
py
Python
Desafio Python/Aula 22 des109.py
ayresmajor/Curso-python
006229cec38ea365bf43b19e3ce93fbd32e1dca6
[ "MIT" ]
null
null
null
Desafio Python/Aula 22 des109.py
ayresmajor/Curso-python
006229cec38ea365bf43b19e3ce93fbd32e1dca6
[ "MIT" ]
null
null
null
Desafio Python/Aula 22 des109.py
ayresmajor/Curso-python
006229cec38ea365bf43b19e3ce93fbd32e1dca6
[ "MIT" ]
null
null
null
from des109 import moeda preco = float(input('Digite o preço pretendido: €')) print(f'''A metade do preço é {(moeda.metade(preco))} O dobro do preço é {(moeda.dobra(preco))} Aumentando o preço 10% temos {(moeda.aumentar(preco, 10))} Diminuindo o preço 13% temos {(moeda.aumentar(preco, 13))}''')
37.875
64
0.693069
0
0
0
0
0
0
0
0
255
0.817308
070d242ccbb22625007056e552b13c344fbecb38
474
py
Python
Chapter13_code/ch13_r05_using_the_rpc_api/xmlrpc.py
PacktPublishing/Odoo-Development-Cookbook
5553110c0bc352c4541f11904e236cad3c443b8b
[ "MIT" ]
55
2016-05-23T16:05:50.000Z
2021-07-19T00:16:46.000Z
Chapter13_code/ch13_r05_using_the_rpc_api/xmlrpc.py
kogkog098/Odoo-Development-Cookbook
166c9b98efbc9108b30d719213689afb1f1c294d
[ "MIT" ]
1
2016-12-09T02:14:21.000Z
2018-07-02T09:02:20.000Z
Chapter13_code/ch13_r05_using_the_rpc_api/xmlrpc.py
kogkog098/Odoo-Development-Cookbook
166c9b98efbc9108b30d719213689afb1f1c294d
[ "MIT" ]
52
2016-06-01T20:03:59.000Z
2020-10-31T23:58:25.000Z
#!/usr/bin/env python2 import xmlrpclib db = 'odoo9' user = 'admin' password = 'admin' uid = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/2/common')\ .authenticate(db, user, password, {}) odoo = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/2/object') installed_modules = odoo.execute_kw( db, uid, ...
31.6
69
0.681435
0
0
0
0
0
0
0
0
185
0.390295
070dfc39dd180a0fc71b0110b529e2e8beee6cea
10,971
py
Python
python/zzz/v1-all_feat_cnn/components/features.py
emorynlp/character-identification-old
f6519166dd30bd8140f05aa3e43225ab27c2ea6d
[ "Apache-2.0" ]
1
2019-09-03T13:38:08.000Z
2019-09-03T13:38:08.000Z
python/zzz/v1-all_feat_cnn/components/features.py
emorynlp/character-identification-old
f6519166dd30bd8140f05aa3e43225ab27c2ea6d
[ "Apache-2.0" ]
null
null
null
python/zzz/v1-all_feat_cnn/components/features.py
emorynlp/character-identification-old
f6519166dd30bd8140f05aa3e43225ab27c2ea6d
[ "Apache-2.0" ]
null
null
null
from abc import * import numpy as np ########################################################### class AbstractFeatureExtractor(object): @abstractmethod def extract(self, object): return ########################################################### class EntityFeatureExtractor(AbstractFeatureExtractor...
44.417004
120
0.668854
10,745
0.9794
0
0
61
0.00556
0
0
1,241
0.113116
070fb86171845062c7fc24a28acd90660006212e
521
py
Python
ufdl-core-app/src/ufdl/core_app/models/mixins/_UserRestrictedQuerySet.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
ufdl-core-app/src/ufdl/core_app/models/mixins/_UserRestrictedQuerySet.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
85
2020-07-24T00:04:28.000Z
2022-02-10T10:35:15.000Z
ufdl-core-app/src/ufdl/core_app/models/mixins/_UserRestrictedQuerySet.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
from django.db import models class UserRestrictedQuerySet(models.QuerySet): """ Query-set base class for models which apply per-instance permissions based on the user accessing them. """ def for_user(self, user): """ Filters the query-set to those instances that the given u...
28.944444
79
0.658349
489
0.93858
0
0
0
0
0
0
319
0.612284
071028fc162506887f63334754f84e376a76520e
31,879
py
Python
sdk/python/pulumi_azure_native/eventgrid/partner_registration.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/partner_registration.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/eventgrid/partner_registration.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
51.584142
454
0.685624
31,432
0.985978
0
0
26,511
0.831613
0
0
14,756
0.462875
071099c9cb76fe44fe601d2109b5cad6021d0a3d
2,420
py
Python
_ar/masking_provement.py
TomKingsfordUoA/ResidualMaskingNetwork
6ce5ddf70f8ac8f1e6da2746b0bbeb9e457ceb7d
[ "MIT" ]
242
2020-01-09T11:06:21.000Z
2022-03-26T14:51:48.000Z
_ar/masking_provement.py
huyhnueit68/ResidualMaskingNetwork
b77abb6e548b9a09b5c96b1592d71332b45d050e
[ "MIT" ]
33
2020-01-09T08:42:10.000Z
2022-03-23T07:52:56.000Z
_ar/masking_provement.py
huyhnueit68/ResidualMaskingNetwork
b77abb6e548b9a09b5c96b1592d71332b45d050e
[ "MIT" ]
61
2020-01-19T02:20:37.000Z
2022-03-25T13:08:48.000Z
import os import glob import cv2 import numpy as np import torch from torchvision.transforms import transforms from natsort import natsorted from models import resmasking_dropout1 from utils.datasets.fer2013dataset import EMOTION_DICT from barez import show transform = transforms.Compose( [ transforms.ToPI...
26.021505
85
0.647934
0
0
0
0
0
0
0
0
595
0.245868
07112b5b2ca5ebda12c4c78461b67e41243aa4a8
1,727
py
Python
Python/Gerenciador de pagamentos.py
Kauan677/Projetos-Python
62f6b476e6d250d9ff31c95808b31ebd3ab4fdbb
[ "MIT" ]
1
2022-03-03T23:19:57.000Z
2022-03-03T23:19:57.000Z
Python/Gerenciador de pagamentos.py
Kauan677/Projetos-Python
62f6b476e6d250d9ff31c95808b31ebd3ab4fdbb
[ "MIT" ]
null
null
null
Python/Gerenciador de pagamentos.py
Kauan677/Projetos-Python
62f6b476e6d250d9ff31c95808b31ebd3ab4fdbb
[ "MIT" ]
null
null
null
import time import colorama def gerenciador_de_pagamento(): preço = float(str(input('Preço das compras: R$'))) print('''Escolha de pagamento: [ 1 ]A vista dinheiro/cheque: 10% de desconto. [ 2 ]A vista no cartão: 5% de desconto. [ 3 ]Em até duas 2x no cartão: preço formal. [ 4 ]3x ou mais no car...
38.377778
105
0.59062
0
0
0
0
0
0
0
0
992
0.561086
0711bae755946fd50e5034659184b298bbe243f6
1,786
py
Python
src/scs_core/osio/data/abstract_topic.py
seoss/scs_core
0d4323c5697a39eb44a887f179ba5dca3716c1d2
[ "MIT" ]
3
2019-03-12T01:59:58.000Z
2020-09-12T07:27:42.000Z
src/scs_core/osio/data/abstract_topic.py
seoss/scs_core
0d4323c5697a39eb44a887f179ba5dca3716c1d2
[ "MIT" ]
1
2018-04-20T07:58:38.000Z
2021-03-27T08:52:45.000Z
src/scs_core/osio/data/abstract_topic.py
seoss/scs_core
0d4323c5697a39eb44a887f179ba5dca3716c1d2
[ "MIT" ]
4
2017-09-29T13:08:43.000Z
2019-10-09T09:13:58.000Z
""" Created on 2 Apr 2017 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) """ from collections import OrderedDict from scs_core.data.json import JSONable # -------------------------------------------------------------------------------------------------------------------- class AbstractTopic(JSONable):...
23.194805
118
0.403135
1,495
0.837066
0
0
304
0.170213
0
0
696
0.389698
0711c47f68c0681b184df5cde182256dcc62322f
11,286
py
Python
sdk/python/pulumi_azure_native/notificationhubs/latest/get_namespace.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/notificationhubs/latest/get_namespace.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/notificationhubs/latest/get_namespace.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
37.003279
329
0.641148
8,883
0.787081
814
0.072125
7,988
0.70778
0
0
3,739
0.331295
0713544bf0325f76443f346f91d5551b3d2799f3
393
py
Python
chue/utils.py
naren-m/chue
6f77ad990c911353524c5c99bcf6e30155edaf97
[ "MIT" ]
null
null
null
chue/utils.py
naren-m/chue
6f77ad990c911353524c5c99bcf6e30155edaf97
[ "MIT" ]
null
null
null
chue/utils.py
naren-m/chue
6f77ad990c911353524c5c99bcf6e30155edaf97
[ "MIT" ]
null
null
null
import json from pygments import highlight from pygments.lexers import JsonLexer from pygments.formatters import TerminalFormatter def print_json_obj(json_object): json_str = json.dumps(json_object, indent=4, sort_keys=True) print(highlight(json_str, JsonLexer(), TerminalFormatter())) def print_json_str(jso...
28.071429
64
0.793893
0
0
0
0
0
0
0
0
0
0
0713bf1d16fde855bda0ed021b030d08feadd022
3,486
py
Python
selfdrive/car/chrysler/radar_interface.py
919bot/Tessa
9b48ff9020e8fb6992fc78271f2720fd19e01093
[ "MIT" ]
85
2019-06-14T17:51:31.000Z
2022-02-09T22:18:20.000Z
selfdrive/car/chrysler/radar_interface.py
919bot/Tessa
9b48ff9020e8fb6992fc78271f2720fd19e01093
[ "MIT" ]
4
2020-04-12T21:34:03.000Z
2020-04-15T22:22:15.000Z
selfdrive/car/chrysler/radar_interface.py
919bot/Tessa
9b48ff9020e8fb6992fc78271f2720fd19e01093
[ "MIT" ]
73
2018-12-03T19:34:42.000Z
2020-07-27T05:10:23.000Z
#!/usr/bin/env python3 import os from opendbc.can.parser import CANParser from cereal import car from selfdrive.car.interfaces import RadarInterfaceBase RADAR_MSGS_C = list(range(0x2c2, 0x2d4+2, 2)) # c_ messages 706,...,724 RADAR_MSGS_D = list(range(0x2a2, 0x2b4+2, 2)) # d_ messages LAST_MSG = max(RADAR_MSGS_C + RA...
37.085106
98
0.645439
1,597
0.458118
0
0
0
0
0
0
1,171
0.335915
0714065ddc085782b982ec392f121b65f95bc048
911
py
Python
mod/tools/ccmake.py
mattiasljungstrom/fips
8775e299f710ae5b977d49dc0672b607f2a10378
[ "MIT" ]
429
2015-01-06T18:44:20.000Z
2022-03-19T22:22:11.000Z
mod/tools/ccmake.py
mattiasljungstrom/fips
8775e299f710ae5b977d49dc0672b607f2a10378
[ "MIT" ]
254
2015-01-01T18:11:57.000Z
2022-03-22T09:55:51.000Z
mod/tools/ccmake.py
mattiasljungstrom/fips
8775e299f710ae5b977d49dc0672b607f2a10378
[ "MIT" ]
102
2015-01-17T11:41:16.000Z
2022-02-24T23:47:30.000Z
""" wrapper for ccmake command line tool """ import subprocess name = 'ccmake' platforms = ['linux', 'osx'] optional = True not_found = "required for 'fips config' functionality" #------------------------------------------------------------------------------- def check_exists(fips_dir) : """test if ccmake is in t...
26.794118
80
0.535675
0
0
0
0
0
0
0
0
549
0.602634
071593280ef30a4532ccbb4b6f3c6b4f7d728fa5
4,251
py
Python
image_quality/handlers/data_generator.py
mbartoli/image-quality-assessment
b957c781ac8a11f8668f58345524f33503338b3b
[ "Apache-2.0" ]
1
2021-03-27T15:09:30.000Z
2021-03-27T15:09:30.000Z
image_quality/handlers/data_generator.py
welcotravel/image-quality-assessment
b9e17de93578220e5ae142725d9153098759e7c8
[ "Apache-2.0" ]
null
null
null
image_quality/handlers/data_generator.py
welcotravel/image-quality-assessment
b9e17de93578220e5ae142725d9153098759e7c8
[ "Apache-2.0" ]
1
2020-10-05T03:20:53.000Z
2020-10-05T03:20:53.000Z
import os import numpy as np import tensorflow as tf from image_quality.utils import utils class TrainDataGenerator(tf.keras.utils.Sequence): '''inherits from Keras Sequence base object, allows to use multiprocessing in .fit_generator''' def __init__(self, samples, img_dir, batch_size, n_classes, basenet_preproc...
40.485714
106
0.713479
4,153
0.976947
0
0
0
0
0
0
1,191
0.280169
07167e515430a27837434e8e166dc173dffdcc37
1,914
py
Python
codewars/4 kyu/strip-comments.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
codewars/4 kyu/strip-comments.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
codewars/4 kyu/strip-comments.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
from Test import Test, Test as test ''' Complete the solution so that it strips all text that follows any of a set of comment markers passed in. Any whitespace at the end of the line should also be stripped out. Example: Given an input string of: apples, pears # and bananas grapes bananas !apples The output expecte...
31.9
171
0.640021
0
0
0
0
0
0
0
0
1,053
0.550157
0718f25c782fcd74f5e9c8f0ae638c3321dd5b08
6,221
py
Python
qat/interop/qiskit/quantum_channels.py
myQLM/myqlm-interop
9d77cb7c719f82be05d9f88493522940b8142124
[ "Apache-2.0" ]
5
2020-09-09T09:44:31.000Z
2021-07-02T09:49:21.000Z
qat/interop/qiskit/quantum_channels.py
myQLM/myqlm-interop
9d77cb7c719f82be05d9f88493522940b8142124
[ "Apache-2.0" ]
null
null
null
qat/interop/qiskit/quantum_channels.py
myQLM/myqlm-interop
9d77cb7c719f82be05d9f88493522940b8142124
[ "Apache-2.0" ]
3
2020-07-10T17:51:47.000Z
2021-04-13T16:33:44.000Z
# -*- coding: utf-8 -*- """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Versi...
37.70303
96
0.649735
0
0
0
0
0
0
0
0
2,120
0.340781
0719b950e4a48282eaf1194cb80f0583e44f000f
2,061
py
Python
mne_nirs/simulation/_simulation.py
mshader/mne-nirs
d59a5436d162108226f31b33b194dfecada40d72
[ "BSD-3-Clause" ]
null
null
null
mne_nirs/simulation/_simulation.py
mshader/mne-nirs
d59a5436d162108226f31b33b194dfecada40d72
[ "BSD-3-Clause" ]
null
null
null
mne_nirs/simulation/_simulation.py
mshader/mne-nirs
d59a5436d162108226f31b33b194dfecada40d72
[ "BSD-3-Clause" ]
null
null
null
# Authors: Robert Luke <mail@robertluke.net> # # License: BSD (3-clause) import numpy as np from mne import Annotations, create_info from mne.io import RawArray def simulate_nirs_raw(sfreq=3., amplitude=1., sig_dur=300., stim_dur=5., isi_min=15., isi_max=45.): """ ...
29.442857
78
0.606016
0
0
0
0
0
0
0
0
832
0.403688
071a7e610b94fdc4f5c933fd228639d190c83b96
3,650
py
Python
build/lib/dataaccess/TransactionRepository.py
athanikos/cryptodataaccess
6189a44c65a9b03c02822a534e865740ab488809
[ "MIT" ]
null
null
null
build/lib/dataaccess/TransactionRepository.py
athanikos/cryptodataaccess
6189a44c65a9b03c02822a534e865740ab488809
[ "MIT" ]
null
null
null
build/lib/dataaccess/TransactionRepository.py
athanikos/cryptodataaccess
6189a44c65a9b03c02822a534e865740ab488809
[ "MIT" ]
null
null
null
from cryptomodel.cryptostore import user_notification, user_channel, user_transaction, operation_type from mongoengine import Q from cryptodataaccess import helpers from cryptodataaccess.helpers import if_none_raise, if_none_raise_with_id class TransactionRepository: def __init__(self, config, log_error): ...
42.44186
120
0.670137
3,407
0.933425
0
0
0
0
0
0
0
0
071afc12457e1373ac1b61126e3c5e710f213fb9
1,536
py
Python
app/util/auth2.py
FSU-ACM/Contest-Server
00a71cdcee1a7e4d4e4d8e33b5d6decf27f02313
[ "MIT" ]
8
2019-01-13T21:57:53.000Z
2021-11-29T12:32:48.000Z
app/util/auth2.py
FSU-ACM/Contest-Server
00a71cdcee1a7e4d4e4d8e33b5d6decf27f02313
[ "MIT" ]
73
2018-02-13T00:58:39.000Z
2022-02-10T11:59:53.000Z
app/util/auth2.py
FSU-ACM/Contest-Server
00a71cdcee1a7e4d4e4d8e33b5d6decf27f02313
[ "MIT" ]
4
2018-02-08T18:56:54.000Z
2019-02-13T19:01:53.000Z
""" util.auth2: Authentication tools This module is based off of util.auth, except with the action paradigm removed. """ from flask import session from app.models import Account from app.util import course as course_util # Session keys SESSION_EMAIL = 'email' def create_account(email: str, password: str, f...
26.033898
76
0.670573
0
0
0
0
0
0
0
0
815
0.530599
071b7fe4a170335142cb957704dfc31f09df575c
1,125
py
Python
FeView/pstaticwidget.py
motiurce/FeView
8897b37062be88dd5ead2c8524f6b3b73451e25d
[ "MIT" ]
10
2021-04-09T02:32:23.000Z
2022-03-12T15:21:41.000Z
FeView/pstaticwidget.py
ElsevierSoftwareX/SOFTX-D-21-00063
50eca2a003e6281dea3f1cf43fee221b61f53978
[ "MIT" ]
2
2021-08-07T09:02:21.000Z
2022-02-25T09:30:22.000Z
FeView/pstaticwidget.py
motiurce/FeView
8897b37062be88dd5ead2c8524f6b3b73451e25d
[ "MIT" ]
7
2021-04-09T02:32:25.000Z
2022-03-12T15:21:45.000Z
from PyQt5.QtWidgets import * from matplotlib.backends.backend_qt5agg import FigureCanvas from matplotlib.figure import Figure from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar class PstaticWidget(QWidget): def __init__(self, parent=None): QWidget.__init__(self...
46.875
89
0.728889
905
0.804444
0
0
0
0
0
0
14
0.012444
071b9acd086c7ba6412ea5c6a8e8d3fc44d05f5c
1,719
py
Python
pyallocation/solvers/exhaustive.py
julesy89/pyallocation
af80a8e2367a006121dd0702b55efa7b954bb039
[ "Apache-2.0" ]
null
null
null
pyallocation/solvers/exhaustive.py
julesy89/pyallocation
af80a8e2367a006121dd0702b55efa7b954bb039
[ "Apache-2.0" ]
null
null
null
pyallocation/solvers/exhaustive.py
julesy89/pyallocation
af80a8e2367a006121dd0702b55efa7b954bb039
[ "Apache-2.0" ]
null
null
null
import numpy as np from pymoo.core.algorithm import Algorithm from pymoo.core.population import Population from pymoo.util.termination.no_termination import NoTermination from pyallocation.allocation import FastAllocation from pyallocation.problem import AllocationProblem def exhaustively(problem): alloc = FastA...
26.859375
75
0.623618
677
0.393834
0
0
0
0
0
0
0
0
071d3f55a7b2c99140b70a77b17ee7b9f4ba705d
602
py
Python
config.py
yasminbraga/ufopa-reports
6d8b213eb0dfce6775d0bb0fd277e8dc09da041c
[ "MIT" ]
null
null
null
config.py
yasminbraga/ufopa-reports
6d8b213eb0dfce6775d0bb0fd277e8dc09da041c
[ "MIT" ]
null
null
null
config.py
yasminbraga/ufopa-reports
6d8b213eb0dfce6775d0bb0fd277e8dc09da041c
[ "MIT" ]
2
2019-11-24T13:30:35.000Z
2022-01-12T11:47:11.000Z
import os class Config: CSRF_ENABLED = True SECRET_KEY = 'your-very-very-secret-key' SQLALCHEMY_DATABASE_URI = 'postgresql:///flask_template_dev' SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_ECHO = True class Development(Config): ENV = 'development' DEBUG = True TESTING = False ...
27.363636
212
0.752492
583
0.968439
0
0
0
0
0
0
255
0.423588
071dbe42fd5b14449158462daf2a890df418a73d
2,651
py
Python
heat/api/openstack/v1/views/stacks_view.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat/api/openstack/v1/views/stacks_view.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat/api/openstack/v1/views/stacks_view.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
33.556962
78
0.659751
0
0
1,106
0.417201
0
0
0
0
919
0.346662
071ec6aa5cdf0ac5081a189dd02a7abf4954448d
3,571
py
Python
pykrev/formula/find_intersections.py
Kzra/pykrev
1a328fccded962f309e951c8509b87a82c3d3ae6
[ "MIT" ]
4
2021-02-18T10:19:13.000Z
2021-10-04T16:17:30.000Z
pykrev/formula/find_intersections.py
erikafreeman/pykrev
1a328fccded962f309e951c8509b87a82c3d3ae6
[ "MIT" ]
null
null
null
pykrev/formula/find_intersections.py
erikafreeman/pykrev
1a328fccded962f309e951c8509b87a82c3d3ae6
[ "MIT" ]
1
2021-09-23T16:03:03.000Z
2021-09-23T16:03:03.000Z
import itertools import numpy as np import pandas as pd def find_intersections(formula_lists,group_labels,exclusive = True): """ Docstring for function pyKrev.find_intersections ==================== This function compares n lists of molecular formula and outputs a dictionary containing the intersections...
46.376623
143
0.633436
0
0
0
0
0
0
0
0
1,686
0.472137
071ee3300e784ba72ea76c1cd34d240a111eb588
5,386
py
Python
Create Playlist.py
j4ck64/PlaylistDirectories
4a7caf0923620a84aea9bb91e643011e7ee118db
[ "MIT" ]
null
null
null
Create Playlist.py
j4ck64/PlaylistDirectories
4a7caf0923620a84aea9bb91e643011e7ee118db
[ "MIT" ]
null
null
null
Create Playlist.py
j4ck64/PlaylistDirectories
4a7caf0923620a84aea9bb91e643011e7ee118db
[ "MIT" ]
null
null
null
import os import glob import shutil from tinytag import TinyTag """ root = 'C:/' copy_to = '/copy to/folder' tag = TinyTag.get('C:/Users/jchap/OneDrive/Pictures/(VERYRAREBOYZ) (feat. $ki Mask The Slump God and Drugz).mp3') print(tag.artist) print('song duration: '+str(tag.duration)) """ f = [] f=glob.gl...
35.668874
133
0.604716
0
0
0
0
0
0
0
0
1,455
0.270145
071fd543532fedf42da52e8b37bdf2f56e668e0e
1,636
py
Python
PyBank/main.py
Alexis-Kepano/python_challenge
2d86e0d891c549d5fba99bd48d612be80746e34b
[ "ADSL" ]
null
null
null
PyBank/main.py
Alexis-Kepano/python_challenge
2d86e0d891c549d5fba99bd48d612be80746e34b
[ "ADSL" ]
null
null
null
PyBank/main.py
Alexis-Kepano/python_challenge
2d86e0d891c549d5fba99bd48d612be80746e34b
[ "ADSL" ]
null
null
null
#import modules import os import csv #input csvpath = os.path.join('Resources', 'budget_data.csv') #output outfile = os.path.join('Analysis', 'pybankstatements.txt') #declare variables months = []; total_m = 1; net_total = 0; total_change = 0; monthly_changes = []; greatest_inc = ['', 0]; greatest_dec = ['', 0] #open...
28.206897
127
0.621027
0
0
0
0
0
0
0
0
436
0.266504
072012e3a0677e91ae06d829a2d1c70bfa487fe4
1,502
py
Python
bot/constants/messages.py
aasw0ng/thornode-telegram-bot
5f73b882381548f45fc9e690c6e4845def9600b7
[ "MIT" ]
15
2020-04-21T07:51:26.000Z
2021-11-02T05:45:48.000Z
bot/constants/messages.py
aasw0ng/thornode-telegram-bot
5f73b882381548f45fc9e690c6e4845def9600b7
[ "MIT" ]
78
2020-04-13T23:01:16.000Z
2021-05-09T11:46:25.000Z
bot/constants/messages.py
aasw0ng/thornode-telegram-bot
5f73b882381548f45fc9e690c6e4845def9600b7
[ "MIT" ]
5
2020-09-03T21:19:16.000Z
2021-11-20T00:17:56.000Z
from enum import Enum from constants.globals import HEALTH_EMOJIS NETWORK_ERROR = '😱 There was an error while getting data 😱\nAn API endpoint is down!' HEALTH_LEGEND = f'\n*Node health*:\n{HEALTH_EMOJIS[True]} - *healthy*\n{HEALTH_EMOJIS[False]} - *unhealthy*\n' \ f'{HEALTH_EMOJIS[None]} - *unknown*...
35.761905
112
0.631158
177
0.106949
0
0
0
0
0
0
918
0.554683
07201c5460a410eeac1f4cdd74f83fabb16f4ba2
3,993
py
Python
src/interactive_conditional_samples.py
RanHerOver/cometaai
02d459da5bbc58536112cfe6343f5ceef4ff2356
[ "MIT" ]
null
null
null
src/interactive_conditional_samples.py
RanHerOver/cometaai
02d459da5bbc58536112cfe6343f5ceef4ff2356
[ "MIT" ]
null
null
null
src/interactive_conditional_samples.py
RanHerOver/cometaai
02d459da5bbc58536112cfe6343f5ceef4ff2356
[ "MIT" ]
null
null
null
import random import fire import json import os import numpy as np import tensorflow as tf import pytumblr import mysql.connector import datetime from random import seed import model, sample, encoder def interact_model( model_name='1558M', seed=None, nsamples=1, batch_size=1, length=None, tempe...
30.953488
143
0.599048
0
0
0
0
0
0
0
0
899
0.225144
0720bde47f5a6d668b162186b490b208d369a3a2
233
py
Python
desktop/core/ext-py/pyasn1-0.1.8/pyasn1/compat/iterfunc.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
422
2015-01-08T14:08:08.000Z
2022-02-07T11:47:37.000Z
desktop/core/ext-py/pyasn1-0.1.8/pyasn1/compat/iterfunc.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
581
2015-01-01T08:07:16.000Z
2022-02-23T11:44:37.000Z
desktop/core/ext-py/pyasn1-0.1.8/pyasn1/compat/iterfunc.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
115
2015-01-08T14:41:00.000Z
2022-02-13T12:31:17.000Z
from sys import version_info if version_info[0] <= 2 and version_info[1] <= 4: def all(iterable): for element in iterable: if not element: return False return True else: all = all
21.181818
49
0.579399
0
0
0
0
0
0
0
0
0
0
072173681d53ec2482387460364698d940573600
3,839
py
Python
src/cms/carousels/serializers.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
6
2021-01-26T17:22:53.000Z
2022-02-15T10:09:03.000Z
src/cms/carousels/serializers.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
5
2020-12-24T14:29:23.000Z
2021-08-10T10:32:18.000Z
src/cms/carousels/serializers.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
2
2020-12-24T14:13:39.000Z
2020-12-30T16:48:52.000Z
from rest_framework import serializers from cms.api.serializers import UniCMSContentTypeClass, UniCMSCreateUpdateSerializer from cms.medias.serializers import MediaSerializer from . models import Carousel, CarouselItem, CarouselItemLink, CarouselItemLinkLocalization, CarouselItemLocalization class CarouselForeignK...
35.546296
117
0.657202
3,516
0.915864
0
0
0
0
0
0
446
0.116176
072216b7c95085e52120d7afc6bcf448dd8b5843
7,298
py
Python
demos/colorization_demo/python/colorization_demo.py
mzegla/open_model_zoo
092576b4c598c1e301ebc38ad74b323972e54f3e
[ "Apache-2.0" ]
null
null
null
demos/colorization_demo/python/colorization_demo.py
mzegla/open_model_zoo
092576b4c598c1e301ebc38ad74b323972e54f3e
[ "Apache-2.0" ]
null
null
null
demos/colorization_demo/python/colorization_demo.py
mzegla/open_model_zoo
092576b4c598c1e301ebc38ad74b323972e54f3e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Copyright (c) 2018-2021 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 Unless required by applic...
43.183432
109
0.639216
0
0
0
0
0
0
0
0
1,738
0.238147
07223524f59210dbb5356506e6de9ffb41f47883
8,174
py
Python
swagger_client/models/transfer.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
swagger_client/models/transfer.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
swagger_client/models/transfer.py
chbndrhnns/ahoi-client
8bd25f541c05af17c82904fa250272514b7971f2
[ "MIT" ]
null
null
null
# coding: utf-8 """ [AHOI cookbook](/ahoi/docs/cookbook/index.html) [Data Privacy](/sandboxmanager/#/privacy) [Terms of Service](/sandboxmanager/#/terms) [Imprint](https://sparkassen-hub.com/impressum/) &copy; 2016&dash;2017 Starfinanz - Ein Unternehmen der Finanz Informatik # noqa: E501 OpenAPI sp...
28.186207
277
0.565207
7,635
0.934059
0
0
4,609
0.563861
0
0
4,566
0.5586
07224ff81e97b5ee51932d0d9bca20ab01f96757
10,366
py
Python
external/trappy/tests/test_caching.py
vdonnefort/lisa
38e5f246e6c94201a60a8698e7f29277f11c425e
[ "Apache-2.0" ]
1
2020-11-30T16:14:02.000Z
2020-11-30T16:14:02.000Z
external/trappy/tests/test_caching.py
vdonnefort/lisa
38e5f246e6c94201a60a8698e7f29277f11c425e
[ "Apache-2.0" ]
null
null
null
external/trappy/tests/test_caching.py
vdonnefort/lisa
38e5f246e6c94201a60a8698e7f29277f11c425e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2017 ARM Limited, Google and contributors # # 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 applica...
38.535316
88
0.644125
9,445
0.911152
0
0
0
0
0
0
3,611
0.34835
07229c65c61816346ca75d9d08af09c5eb62b6ff
6,813
py
Python
src/mf_horizon_client/client/pipelines/blueprints.py
MF-HORIZON/mf-horizon-python-client
67a4a094767cb8e5f01956f20f5ca7726781614a
[ "MIT" ]
null
null
null
src/mf_horizon_client/client/pipelines/blueprints.py
MF-HORIZON/mf-horizon-python-client
67a4a094767cb8e5f01956f20f5ca7726781614a
[ "MIT" ]
null
null
null
src/mf_horizon_client/client/pipelines/blueprints.py
MF-HORIZON/mf-horizon-python-client
67a4a094767cb8e5f01956f20f5ca7726781614a
[ "MIT" ]
null
null
null
from enum import Enum class BlueprintType(Enum): """ A blueprint is a pipeline template in horizon, and must be specified when creating a new pipeline Nonlinear =============================================================================================================== A nonlinear pipeline co...
39.842105
122
0.57405
6,788
0.996331
0
0
0
0
0
0
6,511
0.955673
0723f800260b47fe29201f275a3497c9e0250212
6,758
py
Python
pyChess/olaf/views.py
An-Alone-Cow/pyChess
2729a3a89e4d7d79659488ecb1b0bff9cac281a3
[ "MIT" ]
null
null
null
pyChess/olaf/views.py
An-Alone-Cow/pyChess
2729a3a89e4d7d79659488ecb1b0bff9cac281a3
[ "MIT" ]
18
2017-02-05T17:52:41.000Z
2017-02-16T09:04:39.000Z
pyChess/olaf/views.py
An-Alone-Cow/pyChess
2729a3a89e4d7d79659488ecb1b0bff9cac281a3
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.shortcuts import render from django.urls import reverse from django.http import HttpResponseRedirect, HttpResponse from django.utils import timezone from olaf.models import * from olaf.forms import * from...
31.877358
175
0.683042
0
0
0
0
0
0
0
0
1,407
0.208198
072578f31e8482a3127fc3b417aa642b8388a425
2,343
py
Python
ce_vae_test/main_cetrainer.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
null
null
null
ce_vae_test/main_cetrainer.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
6
2021-02-02T23:00:02.000Z
2022-01-13T03:13:51.000Z
ce_vae_test/main_cetrainer.py
fgitmichael/SelfSupevisedSkillDiscovery
60eee11cfd67046190dd2784bf40e97bdbed9d40
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import torch import torch.utils.data import matplotlib.pyplot as plt from torch import nn, optim from torch.nn import functional as F from torchvision import datasets, transforms from torchvision.utils import save_image from torch.utils.tensorboard import SummaryWri...
32.09589
83
0.681605
0
0
0
0
0
0
0
0
349
0.148954
07257aac63bf6240cc82f0f082448d6a6953f3dc
1,567
py
Python
appr/commands/logout.py
sergeyberezansky/appr
03168addf05c3efd779dad5168fb0a80d0512100
[ "Apache-2.0" ]
31
2017-07-05T07:25:31.000Z
2021-01-18T22:21:57.000Z
appr/commands/logout.py
sergeyberezansky/appr
03168addf05c3efd779dad5168fb0a80d0512100
[ "Apache-2.0" ]
48
2017-06-27T15:48:29.000Z
2021-01-26T21:02:27.000Z
appr/commands/logout.py
sergeyberezansky/appr
03168addf05c3efd779dad5168fb0a80d0512100
[ "Apache-2.0" ]
17
2017-07-05T07:25:38.000Z
2021-01-20T14:52:29.000Z
from __future__ import absolute_import, division, print_function from appr.auth import ApprAuth from appr.commands.command_base import CommandBase, PackageSplit class LogoutCmd(CommandBase): name = 'logout' help_message = "logout" def __init__(self, options): super(LogoutCmd, self).__init__(opti...
36.44186
94
0.640077
1,402
0.894703
0
0
355
0.226548
0
0
225
0.143586
072580ae43bbd8ecd21160183d85274cfcb19e54
87
py
Python
musica/apps.py
webnowone/albumMusical
b9532ff0ef47b610f0f2b565f0dd77e54d638772
[ "Apache-2.0" ]
1
2021-02-02T03:58:48.000Z
2021-02-02T03:58:48.000Z
musica/apps.py
webnowone/albumMusical
b9532ff0ef47b610f0f2b565f0dd77e54d638772
[ "Apache-2.0" ]
52
2020-02-25T09:56:54.000Z
2021-09-22T18:40:50.000Z
musica/apps.py
webnowone/albumMusical
b9532ff0ef47b610f0f2b565f0dd77e54d638772
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class MusicaConfig(AppConfig): name = 'musica'
14.5
33
0.747126
50
0.574713
0
0
0
0
0
0
8
0.091954
072775cafe9ec9921c429b5df6eb75f74e95605d
10,370
py
Python
tzwhere/tzwhere.py
tuxiqae/pytzwhere
32d2bef9ff2d784741471fddb35fbb6732f556d5
[ "MIT" ]
115
2015-01-09T06:18:19.000Z
2021-12-28T07:07:45.000Z
tzwhere/tzwhere.py
tuxiqae/pytzwhere
32d2bef9ff2d784741471fddb35fbb6732f556d5
[ "MIT" ]
47
2015-04-15T20:23:44.000Z
2022-03-22T11:25:01.000Z
tzwhere/tzwhere.py
tuxiqae/pytzwhere
32d2bef9ff2d784741471fddb35fbb6732f556d5
[ "MIT" ]
46
2015-01-26T16:42:10.000Z
2022-01-04T15:26:57.000Z
#!/usr/bin/env python '''tzwhere.py - time zone computation from latitude/longitude. Ordinarily this is loaded as a module and instances of the tzwhere class are instantiated and queried directly ''' import collections try: import ujson as json # loads 2 seconds faster than normal json except: try: i...
39.884615
130
0.610993
8,470
0.816779
721
0.069527
1,916
0.184764
0
0
1,864
0.179749
07283cf3af01e90d346a6f3a53d9608574682da0
706
py
Python
tests/home_assistant/custom_features.py
jre21/mindmeld
6a88e4b0dfc7971f6bf9ae406b89dbc76f68af81
[ "Apache-2.0" ]
1
2021-01-06T23:39:57.000Z
2021-01-06T23:39:57.000Z
tests/home_assistant/custom_features.py
jre21/mindmeld
6a88e4b0dfc7971f6bf9ae406b89dbc76f68af81
[ "Apache-2.0" ]
1
2021-02-02T22:53:01.000Z
2021-02-02T22:53:01.000Z
tests/home_assistant/custom_features.py
jre21/mindmeld
6a88e4b0dfc7971f6bf9ae406b89dbc76f68af81
[ "Apache-2.0" ]
null
null
null
from mindmeld.models.helpers import register_query_feature @register_query_feature(feature_name='average-token-length') def extract_average_token_length(**args): """ Example query feature that gets the average length of normalized tokens in the query„ Returns: (function) A feature extraction func...
35.3
89
0.729462
0
0
0
0
646
0.912429
0
0
339
0.478814
072aa22d56a355822d78b2d3df97e983fe4fb836
4,783
py
Python
source/statuscodes.py
woody2371/fishbowl-api
f34ff9267436b1278985870fbf19863febdb391b
[ "MIT" ]
6
2016-04-26T01:24:21.000Z
2021-05-13T07:48:15.000Z
source/statuscodes.py
USDev01/fishbowl-api
4d47e20d3385d5ebc001feec44aad321467a6d92
[ "MIT" ]
3
2015-10-29T21:34:39.000Z
2021-11-08T15:22:30.000Z
source/statuscodes.py
USDev01/fishbowl-api
4d47e20d3385d5ebc001feec44aad321467a6d92
[ "MIT" ]
12
2015-02-20T08:21:05.000Z
2021-11-06T22:27:04.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- def getstatus(code): if code == "1000": value = "Success!" elif code == "1001": value = "Unknown Message Received" elif code == "1002": value = "Connection to Fishbowl Server was lost" elif code == "1003": value = "Some Requests ...
37.367188
177
0.572653
0
0
0
0
0
0
0
0
2,560
0.535229
072b5dc94ce99e8f35df268838491f8bfa5d061f
239
py
Python
app/src/server/hoge/hoge_api.py
jacob327/docker-flask-nginx-uwsgi-mysql
4b0731f746d6fda7bfecd082ddef53a9c5ec8f75
[ "MIT" ]
null
null
null
app/src/server/hoge/hoge_api.py
jacob327/docker-flask-nginx-uwsgi-mysql
4b0731f746d6fda7bfecd082ddef53a9c5ec8f75
[ "MIT" ]
null
null
null
app/src/server/hoge/hoge_api.py
jacob327/docker-flask-nginx-uwsgi-mysql
4b0731f746d6fda7bfecd082ddef53a9c5ec8f75
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # [Import start] from flask import Blueprint, jsonify # [Import end] app = Blueprint( 'hoge', __name__, url_prefix='/hoge' ) @app.route('/test') def hoge(): return "\nhogehoge"
13.277778
36
0.606695
0
0
0
0
55
0.230126
0
0
102
0.426778
072b648fd224e151f6b9509016ac18b01f0c89c9
2,383
py
Python
preinstall_setup/makedeb-11.0.1-1-stable/src/makedeb/utils/missing_apt_dependencies.py
chipbuster/Energy-Languages-Setup
5b6192e1cc73f701a2310ac72520ed540d86c1ae
[ "BSD-3-Clause" ]
null
null
null
preinstall_setup/makedeb-11.0.1-1-stable/src/makedeb/utils/missing_apt_dependencies.py
chipbuster/Energy-Languages-Setup
5b6192e1cc73f701a2310ac72520ed540d86c1ae
[ "BSD-3-Clause" ]
null
null
null
preinstall_setup/makedeb-11.0.1-1-stable/src/makedeb/utils/missing_apt_dependencies.py
chipbuster/Energy-Languages-Setup
5b6192e1cc73f701a2310ac72520ed540d86c1ae
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import apt_pkg import sys from apt_pkg import CURSTATE_INSTALLED, version_compare from operator import lt, le, eq, ge, gt # Function mappings for relationship operators. relation_operators = {"<<": lt, "<=": le, "=": eq, ">=": ge, ">>": gt} # Set up APT cache. apt_pkg.init() cache = apt_pkg.Ca...
29.419753
118
0.661771
0
0
0
0
0
0
0
0
599
0.251364
072bd117dea823ba3412148c4dbda51e774d2a1f
11,707
py
Python
cohorts_proj/datasets/migrations/0009_auto_20200824_0617.py
zferic/harmonization-website
f6a081481df3a3a62cb075fbb63ad0470b0d4e06
[ "MIT" ]
1
2020-09-20T02:32:01.000Z
2020-09-20T02:32:01.000Z
cohorts_proj/datasets/migrations/0009_auto_20200824_0617.py
zferic/harmonization-website
f6a081481df3a3a62cb075fbb63ad0470b0d4e06
[ "MIT" ]
20
2020-04-17T14:01:41.000Z
2022-03-12T00:30:23.000Z
cohorts_proj/datasets/migrations/0009_auto_20200824_0617.py
zferic/harmonization-website
f6a081481df3a3a62cb075fbb63ad0470b0d4e06
[ "MIT" ]
3
2020-10-08T00:24:51.000Z
2021-06-02T20:07:30.000Z
# Generated by Django 3.0.7 on 2020-08-24 06:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('datasets', '0008_auto_20200821_1427'), ] operations = [ migrations.AddField( model_name='rawdar', name='AsB', ...
33.353276
154
0.522337
11,614
0.992056
0
0
0
0
0
0
1,506
0.128641
072ca26b4d1e4960c6363441b38a038bbb510a99
107
py
Python
test_hello.py
skvel/pynet_testx
46566e059e076cb763f8a10ed7f6ff9eac5b63b1
[ "Apache-2.0" ]
null
null
null
test_hello.py
skvel/pynet_testx
46566e059e076cb763f8a10ed7f6ff9eac5b63b1
[ "Apache-2.0" ]
null
null
null
test_hello.py
skvel/pynet_testx
46566e059e076cb763f8a10ed7f6ff9eac5b63b1
[ "Apache-2.0" ]
null
null
null
print "Hello World!" print "Trying my hand at Git!" print "Something else" for i in range(10): print i
17.833333
30
0.691589
0
0
0
0
0
0
0
0
54
0.504673
072cc767332977c77810de1909be8f9a35cce2f6
3,784
py
Python
tasks/views.py
TheDim0n/ProjectManager
50d36e7e3fc71655aa5a82bb19eacc07172ba5e4
[ "MIT" ]
null
null
null
tasks/views.py
TheDim0n/ProjectManager
50d36e7e3fc71655aa5a82bb19eacc07172ba5e4
[ "MIT" ]
1
2020-09-08T11:10:53.000Z
2020-09-08T11:10:53.000Z
tasks/views.py
TheDim0n/ProjectManager
50d36e7e3fc71655aa5a82bb19eacc07172ba5e4
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.views.generic import DetailView, ListView from projects.models import Project from status.models import Status from .models import Task from .forms import TaskForm, FilterForm ...
31.798319
79
0.636628
3,093
0.817389
0
0
0
0
0
0
382
0.100951
072d2f9675748ff1a2131801c4afa2c1d8506223
2,083
py
Python
smoke/noaa/get_smokeplume_counts.py
minnieteng/smoke_project
cc3c8f16f7759fe29e46d3cec32a3ed6ca86bd5f
[ "Apache-2.0" ]
null
null
null
smoke/noaa/get_smokeplume_counts.py
minnieteng/smoke_project
cc3c8f16f7759fe29e46d3cec32a3ed6ca86bd5f
[ "Apache-2.0" ]
null
null
null
smoke/noaa/get_smokeplume_counts.py
minnieteng/smoke_project
cc3c8f16f7759fe29e46d3cec32a3ed6ca86bd5f
[ "Apache-2.0" ]
null
null
null
import os import math import time import geohash import geojson from geojson import MultiLineString from shapely import geometry import shapefile import numpy import datetime as dt import pandas as pd import logging logger = logging.getLogger(__name__) source_shape_file_path = "C:/temp/2018/" threshold = 60*60 cols = ...
45.282609
133
0.610178
0
0
0
0
0
0
0
0
291
0.139702
072d38a7e1316c182e6d46a18839cb0047e95249
3,965
py
Python
notes/OOBall/OOBall/main-demo.py
KRHS-GameProgramming-2015/Manpac
959bf7f5195a4edb528fbbf25b8896fcb28d5327
[ "BSD-2-Clause" ]
null
null
null
notes/OOBall/OOBall/main-demo.py
KRHS-GameProgramming-2015/Manpac
959bf7f5195a4edb528fbbf25b8896fcb28d5327
[ "BSD-2-Clause" ]
3
2016-01-19T17:26:16.000Z
2016-02-10T16:59:25.000Z
notes/OOBall/main-demo.py
KRHS-GameProgramming-2015/Manpac
959bf7f5195a4edb528fbbf25b8896fcb28d5327
[ "BSD-2-Clause" ]
null
null
null
import pygame_sdl2 pygame_sdl2.import_as_pygame() import pygame import os import random import math from Ball import Ball def save_state(balls): """ Saves the game state. """ stateString = "" with open("state.txt", "w") as f: for ball in balls: stateString += "{} {} {} {} {}".f...
28.941606
89
0.49256
0
0
0
0
0
0
0
0
525
0.132409
072ddb9bbab8925228b0922af5e12f46301684b7
6,408
py
Python
sprt.py
vdbergh/pentanomial
d046e74acde3f961c7afd22fc4f82fa5aeb4c0fd
[ "MIT" ]
3
2020-02-05T12:39:59.000Z
2021-01-04T15:41:40.000Z
sprt.py
vdbergh/pentanomial
d046e74acde3f961c7afd22fc4f82fa5aeb4c0fd
[ "MIT" ]
2
2020-02-17T20:09:56.000Z
2021-11-21T12:47:33.000Z
sprt.py
vdbergh/pentanomial
d046e74acde3f961c7afd22fc4f82fa5aeb4c0fd
[ "MIT" ]
null
null
null
from __future__ import division import math, copy import argparse from brownian import Brownian import scipy import LLRcalc class sprt: def __init__(self, alpha=0.05, beta=0.05, elo0=0, elo1=5, elo_model="logistic"): assert elo_model in ("logistic", "normalized") self.elo_model = elo_model ...
33.726316
85
0.523096
3,988
0.622347
0
0
0
0
0
0
1,550
0.241885
072e395e8cbf167e556a1f0e76894f388e49246e
17,956
py
Python
tools/hci_throughput/hci.py
t3zeng/mynewt-nimble
e910132947d6b3cd61ef4732867382634178aa08
[ "Apache-2.0" ]
null
null
null
tools/hci_throughput/hci.py
t3zeng/mynewt-nimble
e910132947d6b3cd61ef4732867382634178aa08
[ "Apache-2.0" ]
null
null
null
tools/hci_throughput/hci.py
t3zeng/mynewt-nimble
e910132947d6b3cd61ef4732867382634178aa08
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
29.630363
80
0.695868
13,911
0.774727
0
0
13,826
0.769993
0
0
1,277
0.071118
072e3ac42c4ae28edac6abdd5c5b9e36d1f69c84
1,253
py
Python
examples/dataproc/query.py
populationgenomics/analysis-runner
f42bedb1dc430a813350fb4b5514bcc7b845f0fc
[ "MIT" ]
null
null
null
examples/dataproc/query.py
populationgenomics/analysis-runner
f42bedb1dc430a813350fb4b5514bcc7b845f0fc
[ "MIT" ]
51
2021-01-26T07:09:54.000Z
2022-03-29T03:44:01.000Z
examples/dataproc/query.py
populationgenomics/analysis-runner
f42bedb1dc430a813350fb4b5514bcc7b845f0fc
[ "MIT" ]
2
2021-12-07T17:12:07.000Z
2022-03-23T00:50:44.000Z
"""Simple Hail query example.""" import click import hail as hl from bokeh.io.export import get_screenshot_as_png from analysis_runner import output_path GNOMAD_HGDP_1KG_MT = ( 'gs://gcp-public-data--gnomad/release/3.1/mt/genomes/' 'gnomad.genomes.v3.1.hgdp_1kg_subset_dense.mt' ) @click.command() @click.op...
30.560976
81
0.695132
0
0
0
0
875
0.698324
0
0
324
0.258579
072e6fc797520341c47d9f0dd007069870cb1147
17,420
py
Python
ptpip/ptpip.py
darkarnium/ptpip
c54eed4d7509ecfc6973a00496a9e80fb7473fa2
[ "Apache-2.0" ]
null
null
null
ptpip/ptpip.py
darkarnium/ptpip
c54eed4d7509ecfc6973a00496a9e80fb7473fa2
[ "Apache-2.0" ]
null
null
null
ptpip/ptpip.py
darkarnium/ptpip
c54eed4d7509ecfc6973a00496a9e80fb7473fa2
[ "Apache-2.0" ]
null
null
null
import uuid import time import socket import struct class PtpIpConnection(object): """docstring for PtpIP""" def __init__(self): super(PtpIpConnection, self).__init__() self.session = None self.session_events = None self.session_id = None self.cmd_queue = [] se...
34.701195
99
0.644259
17,317
0.994087
0
0
0
0
0
0
4,986
0.286223
072e9a202d69d5d6154bfb44a978d712661a1d52
869
py
Python
examples/morpho.py
jaideep-seth/PyOpenWorm
c36baeda9590334ba810296934973da34f0eab78
[ "MIT" ]
null
null
null
examples/morpho.py
jaideep-seth/PyOpenWorm
c36baeda9590334ba810296934973da34f0eab78
[ "MIT" ]
null
null
null
examples/morpho.py
jaideep-seth/PyOpenWorm
c36baeda9590334ba810296934973da34f0eab78
[ "MIT" ]
null
null
null
""" How to load morphologies of certain cells from the database. """ #this is an expected failure right now, as morphology is not implemented from __future__ import absolute_import from __future__ import print_function import PyOpenWorm as P from PyOpenWorm.context import Context from PyOpenWorm.worm import Worm from ...
34.76
118
0.749137
0
0
0
0
0
0
0
0
421
0.484465
072eb9a21b6f104ebeda43ae8b0c58030a13066f
18,159
py
Python
corehq/apps/app_manager/tests/test_form_workflow.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/app_manager/tests/test_form_workflow.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/app_manager/tests/test_form_workflow.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals from django.test import SimpleTestCase from corehq.apps.app_manager.const import ( AUTO_SELECT_RAW, AUTO_SELECT_CASE, WORKFLOW_FORM, WORKFLOW_MODULE, WORKFLOW_PREVIOUS, WORKFLOW_ROOT, WORKFLOW_PARENT_MODULE, ) fr...
43.546763
151
0.654937
17,409
0.958698
0
0
0
0
0
0
4,666
0.256952
072f5247503c271ee10d989b45781d7bce312d75
19,888
py
Python
tensorflow/python/compiler/tensorrt/model_tests/model_handler.py
sboshin/tensorflow
77689016fb4c1373abeca36360f7b2dd9434c547
[ "Apache-2.0" ]
null
null
null
tensorflow/python/compiler/tensorrt/model_tests/model_handler.py
sboshin/tensorflow
77689016fb4c1373abeca36360f7b2dd9434c547
[ "Apache-2.0" ]
88
2020-11-24T08:18:10.000Z
2022-03-25T20:28:30.000Z
tensorflow/python/compiler/tensorrt/model_tests/model_handler.py
sboshin/tensorflow
77689016fb4c1373abeca36360f7b2dd9434c547
[ "Apache-2.0" ]
1
2020-12-18T08:51:32.000Z
2020-12-18T08:51:32.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.026769
86
0.71611
15,070
0.757743
0
0
4,627
0.232653
0
0
4,019
0.202082
07301aa37090337e8a2394da6cc20cd279418591
34
py
Python
Python/Python Evaluation/solution.py
arpitran/HackerRank_solutions
a3a77c858edd3955ea38530916db9051b1aa93f9
[ "MIT" ]
null
null
null
Python/Python Evaluation/solution.py
arpitran/HackerRank_solutions
a3a77c858edd3955ea38530916db9051b1aa93f9
[ "MIT" ]
null
null
null
Python/Python Evaluation/solution.py
arpitran/HackerRank_solutions
a3a77c858edd3955ea38530916db9051b1aa93f9
[ "MIT" ]
null
null
null
eval(input("Enter a expression "))
34
34
0.735294
0
0
0
0
0
0
0
0
21
0.617647
073032049203bfdc6f84f748cd2128bbc2872806
2,959
py
Python
kpca_iris.py
syamkakarla98/Kernel-PCA-Using-Different-Kernels-With-Classification
03302843bff9b0d87e2983bed1f37bc329e716c1
[ "MIT" ]
10
2018-07-12T11:46:21.000Z
2021-03-13T06:47:01.000Z
kpca_iris.py
syamkakarla98/Kernel-PCA-Using-Different-Kernels-With-Classification
03302843bff9b0d87e2983bed1f37bc329e716c1
[ "MIT" ]
null
null
null
kpca_iris.py
syamkakarla98/Kernel-PCA-Using-Different-Kernels-With-Classification
03302843bff9b0d87e2983bed1f37bc329e716c1
[ "MIT" ]
9
2018-09-19T11:57:44.000Z
2021-03-13T06:47:04.000Z
import numpy as np import matplotlib.pyplot as plt import pandas as pd # load dataset into Pandas DataFrame df = pd.read_csv("D:\Python_programs\ML\Iris Data\KPCA\iris.csv") #df.to_csv('iris.csv') from sklearn.preprocessing import StandardScaler features = ['sepal length', 'sepal width', 'petal length', 'petal width...
34.406977
78
0.584657
0
0
0
0
0
0
0
0
1,107
0.374113
0730aed278d58141b67cbd8f8213146b99199686
13,377
py
Python
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/dateperiod_extractor_config.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
null
null
null
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/dateperiod_extractor_config.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
6
2021-12-20T17:13:35.000Z
2022-03-29T08:54:11.000Z
Python/libraries/recognizers-date-time/recognizers_date_time/date_time/italian/dateperiod_extractor_config.py
felaray/Recognizers-Text
f514fd61c8d472ed92565261162712409f655312
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List, Pattern from recognizers_text.utilities import RegExpUtility from recognizers_number.number import BaseNumberParser from recognizers_number.number.italian.extractors import ItalianIntegerExtractor,...
38.329513
120
0.729984
12,320
0.920984
0
0
4,372
0.32683
0
0
206
0.0154
0730d1a99c54c1eeab8095b4f4102da12e701b30
4,704
py
Python
pydbrepo/drivers/sqlite.py
danteay/pydbrepo
665ad5fe64a00697128f9943e0fc831ae485f136
[ "MIT" ]
2
2021-09-03T10:54:01.000Z
2022-01-08T18:48:20.000Z
pydbrepo/drivers/sqlite.py
danteay/pydbrepo
665ad5fe64a00697128f9943e0fc831ae485f136
[ "MIT" ]
null
null
null
pydbrepo/drivers/sqlite.py
danteay/pydbrepo
665ad5fe64a00697128f9943e0fc831ae485f136
[ "MIT" ]
1
2021-12-28T17:34:40.000Z
2021-12-28T17:34:40.000Z
"""SQLite Driver implementation.""" # pylint: disable=R0201 import os import sqlite3 from typing import Any, AnyStr, List, NoReturn, Optional, Tuple from pydbrepo.drivers.driver import Driver class SQLite(Driver): """SQLite Driver connection class. Environment variables: DATABASE_URL: Database fil...
28.682927
99
0.605655
4,506
0.957908
0
0
420
0.089286
0
0
2,121
0.450893
07311f534338364dbf730b4dc400d2a729b73016
3,036
py
Python
Modules/BatchNormND.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
52
2020-02-28T20:40:15.000Z
2021-08-25T05:35:17.000Z
Modules/BatchNormND.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
2
2021-02-14T15:57:03.000Z
2021-10-05T12:21:34.000Z
Modules/BatchNormND.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
8
2020-02-28T20:40:11.000Z
2020-07-09T13:27:23.000Z
import numpy as np from PuzzleLib import Config from PuzzleLib.Backend import gpuarray, Blas from PuzzleLib.Backend.Dnn import batchNormNd, batchNormNdBackward from PuzzleLib.Variable import Variable from PuzzleLib.Modules.Module import ModuleError, Module class BatchNormND(Module): def __init__(self, nd, maps, e...
27.351351
111
0.706522
2,773
0.913373
0
0
0
0
0
0
181
0.059618
07315bfc850bee7d8e4dccfb243802584bf7ccf6
38
py
Python
python/testData/editing/enterInIncompleteTupleLiteral.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/editing/enterInIncompleteTupleLiteral.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/editing/enterInIncompleteTupleLiteral.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
xs = ('foo', 'bar', 'baz'<caret>
19
19
0.421053
0
0
0
0
0
0
0
0
15
0.394737
0731748ca4b74185c74c8c4352a8260f73831cf9
6,038
py
Python
model/server/server.py
waltzofpearls/reckon
533e47fd05f685024083ce7a823e9c26c35dd824
[ "MIT" ]
8
2019-09-01T12:57:38.000Z
2022-03-25T21:54:19.000Z
model/server/server.py
waltzofpearls/reckon
533e47fd05f685024083ce7a823e9c26c35dd824
[ "MIT" ]
3
2021-08-12T13:18:42.000Z
2022-03-12T00:59:15.000Z
model/server/server.py
waltzofpearls/reckon
533e47fd05f685024083ce7a823e9c26c35dd824
[ "MIT" ]
2
2021-12-22T06:56:56.000Z
2022-03-25T21:58:19.000Z
from concurrent import futures from forecaster.prophet import Forecaster as ProphetForecaster from multiprocessing import Event, Process, cpu_count from pythonjsonlogger import jsonlogger import contextlib import grpc import logging import model.api.forecast_pb2_grpc as grpc_lib import os import signal import socket im...
41.07483
101
0.625704
5,321
0.881252
549
0.090924
580
0.096058
0
0
922
0.1527
0732a0a35499cb2f8dd3e3317232410829321054
191
py
Python
test/test_setupcall.py
jhgoebbert/jupyter-libertem-proxy
2f966744c08c14c534030c2623fe4a3a8590dabe
[ "BSD-3-Clause" ]
null
null
null
test/test_setupcall.py
jhgoebbert/jupyter-libertem-proxy
2f966744c08c14c534030c2623fe4a3a8590dabe
[ "BSD-3-Clause" ]
null
null
null
test/test_setupcall.py
jhgoebbert/jupyter-libertem-proxy
2f966744c08c14c534030c2623fe4a3a8590dabe
[ "BSD-3-Clause" ]
null
null
null
def test_setupcall(): """ Test the call of the setup function """ import jupyter_libertem_proxy as jx print("\nRunning test_setupcall...") print(jx.setup_libertem())
21.222222
40
0.659686
0
0
0
0
0
0
0
0
80
0.418848
0733497e7a5accdfb3af9d8db6169c656322604e
14,221
py
Python
launchpad/launch/worker_manager.py
LaudateCorpus1/launchpad
6068bbaff9da6d9d520c01314ef920d0d4978afc
[ "Apache-2.0" ]
null
null
null
launchpad/launch/worker_manager.py
LaudateCorpus1/launchpad
6068bbaff9da6d9d520c01314ef920d0d4978afc
[ "Apache-2.0" ]
1
2021-10-05T16:06:38.000Z
2021-10-05T16:06:38.000Z
launchpad/launch/worker_manager.py
LaudateCorpus1/launchpad
6068bbaff9da6d9d520c01314ef920d0d4978afc
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DeepMind Technologies Limited. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
33.779097
81
0.660713
12,363
0.869348
0
0
0
0
0
0
3,923
0.27586