hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
97cc531294afb11301fe771674b2ba6517514180
562
py
Python
data/coco_korean/coco_load_image.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
null
null
null
data/coco_korean/coco_load_image.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
1
2020-02-10T08:11:23.000Z
2020-02-10T08:11:23.000Z
data/coco_korean/coco_load_image.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
3
2020-02-09T11:14:33.000Z
2020-04-11T16:10:17.000Z
from PIL import Image import json import numpy as np from tqdm import tqdm with open('../../../coco/MSCOCO_train_val_Korean.json', 'r', encoding='utf-8') as f: info = json.load(f) # print(info[0]['file_path']) img_path = '../../../coco/' img_size = 64 images = np.empty((len(info), img_size, img_size, 3), dtype=n...
26.761905
84
0.658363
97ccf40733199c207a29b866cea4353f6edc523b
630
py
Python
programming/udemy/SLLCycle.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
1
2021-01-03T06:42:58.000Z
2021-01-03T06:42:58.000Z
programming/udemy/SLLCycle.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
programming/udemy/SLLCycle.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': # CREATE CYCLE LIST a = Node(1) b = Node(2) c = Node(3) a.nextnode = b b.nextnode = c c.nextnode = a # Cycle Here! # CREATE NON CYCLE LIST x = Node(1) y = Node(2) z = Node(3) x.nextnode = y y.nextnode = z print(cycle_check(a))
17.027027
33
0.539683
97cea0095c84b4a1f87650614e47111614016fd2
3,619
py
Python
awesome/plugins/other_xsh/__init__.py
Lparksi/bot
8a38953d09436b60e8edff4ebe86bf19fe3b7046
[ "MIT" ]
3
2020-03-31T10:36:31.000Z
2020-04-23T12:01:10.000Z
awesome/plugins/other_xsh/__init__.py
Lparksi/bot
8a38953d09436b60e8edff4ebe86bf19fe3b7046
[ "MIT" ]
1
2020-07-16T14:51:26.000Z
2020-07-30T12:46:55.000Z
awesome/plugins/other_xsh/__init__.py
Lparksi/bot
8a38953d09436b60e8edff4ebe86bf19fe3b7046
[ "MIT" ]
null
null
null
from nonebot import on_command, CommandSession from nonebot import on_natural_language, NLPSession, IntentCommand from jieba import posseg
35.480392
109
0.721194
97cf3240bc800a83f7619e974f4e80d78228793e
500
py
Python
calculatorapi/calculatorapi_client.py
sufyankhanrao/assignment_7_3_1
4bcf99c3e56f1ef5ae77990f59691f85b0307ff3
[ "MIT" ]
null
null
null
calculatorapi/calculatorapi_client.py
sufyankhanrao/assignment_7_3_1
4bcf99c3e56f1ef5ae77990f59691f85b0307ff3
[ "MIT" ]
null
null
null
calculatorapi/calculatorapi_client.py
sufyankhanrao/assignment_7_3_1
4bcf99c3e56f1ef5ae77990f59691f85b0307ff3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ calculatorapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ from calculatorapi.decorators import lazy_property from calculatorapi.configuration import Configuration from calculatorapi.controllers.simple_calculator_controller import SimpleCalcu...
21.73913
93
0.77
97cf4d5a480c01da483d0f38460e002acb1f26fe
3,387
py
Python
fabric_cf/broker/core/broker_kernel.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/broker/core/broker_kernel.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/broker/core/broker_kernel.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
43.423077
117
0.71804
97d09a3a5d1f3d145292ae525c74f813c38634ca
1,539
py
Python
app/account/migrations/0002_alter_user_options_alter_user_managers_and_more.py
NhatHox23/nhat-inventory-backend
d494d91c9b68a1a441e72d94018be86f07d2141e
[ "MIT" ]
1
2021-12-25T06:54:48.000Z
2021-12-25T06:54:48.000Z
app/account/migrations/0002_alter_user_options_alter_user_managers_and_more.py
NhatHox23/nhat-inventory-backend
d494d91c9b68a1a441e72d94018be86f07d2141e
[ "MIT" ]
null
null
null
app/account/migrations/0002_alter_user_options_alter_user_managers_and_more.py
NhatHox23/nhat-inventory-backend
d494d91c9b68a1a441e72d94018be86f07d2141e
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-17 08:04 from django.db import migrations, models
24.046875
64
0.489279
8ad8e73f0765a04eca466c875d8845aef87a9bad
372
py
Python
tests/lib/bes/hardware/test_Ftdi.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/hardware/test_Ftdi.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/hardware/test_Ftdi.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- import unittest from bes.hardware.Ftdi import Ftdi if __name__ == "__main__": unittest.main()
23.25
90
0.693548
8ad9c64ca58eeecc2c0887b2257ecd48066ce9be
6,097
py
Python
task3.py
Anchorboy/PR_FinalProject
e744723c9c9dd55e6995ae5929eb45f90c70819b
[ "MIT" ]
null
null
null
task3.py
Anchorboy/PR_FinalProject
e744723c9c9dd55e6995ae5929eb45f90c70819b
[ "MIT" ]
null
null
null
task3.py
Anchorboy/PR_FinalProject
e744723c9c9dd55e6995ae5929eb45f90c70819b
[ "MIT" ]
null
null
null
import os import random from itertools import cycle import cv2 import matplotlib.pyplot as plt import numpy as np from scipy import interp from skimage import exposure from skimage.feature import hog from sklearn import metrics from sklearn.decomposition import PCA from sklearn.preprocessing import label_binarize from...
36.951515
135
0.626866
8adba14d1116a00200adf306c8aff70161525c2c
6,504
py
Python
pyhdx/fitting_torch.py
sebaztiano/PyHDX
12fc2b5f67200885706226823bd8e1f46e3b5db1
[ "MIT" ]
null
null
null
pyhdx/fitting_torch.py
sebaztiano/PyHDX
12fc2b5f67200885706226823bd8e1f46e3b5db1
[ "MIT" ]
null
null
null
pyhdx/fitting_torch.py
sebaztiano/PyHDX
12fc2b5f67200885706226823bd8e1f46e3b5db1
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F from torch.optim import SGD import torch as t from scipy import constants import numpy as np import pandas as pd from pyhdx.models import Protein class TorchBatchFitResult(TorchFitResult):
36.745763
133
0.64837
8adcaaa5e04f3df5fcea316f738bf758a8c1621e
665
py
Python
backend/models.py
FoamyGuy/PyPortal_Signage_System
46515841bdb413b25e97604697901c2ad6ad471e
[ "MIT" ]
1
2022-03-27T20:51:28.000Z
2022-03-27T20:51:28.000Z
backend/models.py
FoamyGuy/PyPortal_Signage_System
46515841bdb413b25e97604697901c2ad6ad471e
[ "MIT" ]
null
null
null
backend/models.py
FoamyGuy/PyPortal_Signage_System
46515841bdb413b25e97604697901c2ad6ad471e
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models import uuid # Create your models here. from django.db.models import CASCADE
30.227273
81
0.697744
8adf4e176f915ff5864e25390bfbffbbd957feee
179
py
Python
jinja2_error/__init__.py
mumubin/jiaja2_error
f2f2df42ec60a99442f61d480ffbf8c67071a737
[ "MIT" ]
2
2020-06-12T09:50:09.000Z
2021-06-25T16:06:11.000Z
jinja2_error/__init__.py
mumubin/jiaja2_error
f2f2df42ec60a99442f61d480ffbf8c67071a737
[ "MIT" ]
null
null
null
jinja2_error/__init__.py
mumubin/jiaja2_error
f2f2df42ec60a99442f61d480ffbf8c67071a737
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .jinja2_error import ErrorExtension __author__ = 'Robin Hu' __email__ = 'given.hubin@gmail.com' __version__ = '0.1.0' __all__ = ['ErrorExtension']
17.9
40
0.698324
8ae079fb5cc787087019878ddc15a079fc9ed4df
2,165
py
Python
elements/python/9/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/9/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/9/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import collections TimestampValue = collections.namedtuple('TimestampValue', ['timestamp', 'value']) def test(): """ test example from figure 9.4 """ points = [ 1.3, None, 2.5, 3.7, None, 1.4, 2.6, None, 2.2, 1.7, None, None, None, None, 1.7 ...
23.031915
81
0.50485
8ae1bf6090dd889c0f197f2b8a758940dc94c4c9
992
py
Python
migrations/versions/035e7209663c_tags_and_base_with_unique.py
microservice-experiment-flask-0hsn/pocket-ws-flask
e7582a6ebe4b554070f183e43042c87762633085
[ "MIT" ]
null
null
null
migrations/versions/035e7209663c_tags_and_base_with_unique.py
microservice-experiment-flask-0hsn/pocket-ws-flask
e7582a6ebe4b554070f183e43042c87762633085
[ "MIT" ]
null
null
null
migrations/versions/035e7209663c_tags_and_base_with_unique.py
microservice-experiment-flask-0hsn/pocket-ws-flask
e7582a6ebe4b554070f183e43042c87762633085
[ "MIT" ]
null
null
null
"""tags and base with unique Revision ID: 035e7209663c Revises: Create Date: 2022-04-16 11:22:34.040818 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '035e7209663c' down_revision = None branch_labels = None depends_on = None
26.810811
72
0.680444
8ae23495524de5ac2aff79dd30996961f889e7e8
486
py
Python
bot/plugins/bongo.py
JastLucy/twitch-chat-bot
df7cde7e4f78d4789c69e63d0920063bf493d1ca
[ "MIT" ]
null
null
null
bot/plugins/bongo.py
JastLucy/twitch-chat-bot
df7cde7e4f78d4789c69e63d0920063bf493d1ca
[ "MIT" ]
null
null
null
bot/plugins/bongo.py
JastLucy/twitch-chat-bot
df7cde7e4f78d4789c69e63d0920063bf493d1ca
[ "MIT" ]
null
null
null
from __future__ import annotations from bot.config import Config from bot.data import command from bot.data import esc from bot.data import format_msg from bot.message import Message
23.142857
76
0.683128
8ae264be6fcb91ac2eb22ef29be6e415fafa0087
6,079
py
Python
recline/commands/man_utils.py
NetApp/recline
065d9d90b6f5b63b535a091f14552e4790c26ecc
[ "BSD-3-Clause" ]
4
2020-05-29T22:54:41.000Z
2021-10-03T07:59:07.000Z
recline/commands/man_utils.py
NetApp/recline
065d9d90b6f5b63b535a091f14552e4790c26ecc
[ "BSD-3-Clause" ]
2
2020-08-28T07:39:43.000Z
2021-04-05T12:45:39.000Z
recline/commands/man_utils.py
NetApp/recline
065d9d90b6f5b63b535a091f14552e4790c26ecc
[ "BSD-3-Clause" ]
null
null
null
""" This module holds some utility functions used as part of the man command to format text from CLI commands into consistent man pages that respond to the terminal width. """ import curses from recline.arg_types.positional import Positional from recline.arg_types.remainder import Remainder from recline.commands.cli_...
39.474026
92
0.623787
8ae39804dc5f4ef4b01469e35dccf93770837275
1,759
py
Python
bigml/tests/compare_forecasts_steps.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
null
null
null
bigml/tests/compare_forecasts_steps.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
3
2022-03-29T17:54:19.000Z
2022-03-29T17:54:42.000Z
bigml/tests/compare_forecasts_steps.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2022 BigML # # 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 ...
37.425532
77
0.675952
8ae58acf089690caafb8cdb5422fc701ad32f66a
2,749
py
Python
application.py
roupenminassian/UTS-DSI-x-Disability-Research-Network
e08378594f09560a477521f22f62a47622e07cdd
[ "MIT" ]
null
null
null
application.py
roupenminassian/UTS-DSI-x-Disability-Research-Network
e08378594f09560a477521f22f62a47622e07cdd
[ "MIT" ]
null
null
null
application.py
roupenminassian/UTS-DSI-x-Disability-Research-Network
e08378594f09560a477521f22f62a47622e07cdd
[ "MIT" ]
null
null
null
import pandas as pd import streamlit as st import openai import os import jsonlines import pickle from rank_bm25 import BM25Okapi openai.organization = "org-eiJyreiRZUtpiu8pm6LIIA8B" openai.api_key = st.secrets['API_KEY'] """ # Data Science Institute x Disability Research Network: A UTS HASS-DSI Research Project Th...
36.171053
441
0.706075
8ae5d110cb00dff54458d2c48b5bb3d0525b7694
2,468
py
Python
examples/tour_examples/bootstrap_xkcd_tour.py
chau11ece/GitStudy
d2f1130d529ec99e3a08878dba7af41f2a08e27d
[ "MIT" ]
null
null
null
examples/tour_examples/bootstrap_xkcd_tour.py
chau11ece/GitStudy
d2f1130d529ec99e3a08878dba7af41f2a08e27d
[ "MIT" ]
null
null
null
examples/tour_examples/bootstrap_xkcd_tour.py
chau11ece/GitStudy
d2f1130d529ec99e3a08878dba7af41f2a08e27d
[ "MIT" ]
null
null
null
from seleniumbase import BaseCase # studying git branching & merging # chautran: git checkout v1.0.24
36.294118
87
0.603728
8ae89e6b4029a557bbcd06a8ce74401ad918eb08
899
py
Python
tests/strawpoll_api_reader_tests.py
vaibhav-y/py-strawpoll
d725beb9a0e42ced84f9ae648bdf8a7216bd6e55
[ "MIT" ]
null
null
null
tests/strawpoll_api_reader_tests.py
vaibhav-y/py-strawpoll
d725beb9a0e42ced84f9ae648bdf8a7216bd6e55
[ "MIT" ]
1
2016-05-12T21:25:09.000Z
2016-07-20T08:58:57.000Z
tests/strawpoll_api_reader_tests.py
vaibhav-y/py-strawpoll
d725beb9a0e42ced84f9ae648bdf8a7216bd6e55
[ "MIT" ]
null
null
null
from strawpoll import StrawpollAPIReader from random import randrange import requests # Setup test fixtures for poll id `id` id = randrange(1, 1000) BASE_URL = 'https://strawpoll.me' API_PATH = 'api/v2/polls' json = requests.get('/'.join([BASE_URL, API_PATH, str(id)])) sp = dict(json=json.text, api=StrawpollAPIReader...
35.96
128
0.74416
8ae9058fefadf30c0326f4f63c43379b31ae9689
9,267
py
Python
src/tests/functional/test_entry_data_endpoint.py
jroberts07/fpl-stats-api
3a7b5faacec5f83643a16143000b46bea70b5364
[ "MIT" ]
null
null
null
src/tests/functional/test_entry_data_endpoint.py
jroberts07/fpl-stats-api
3a7b5faacec5f83643a16143000b46bea70b5364
[ "MIT" ]
7
2019-09-08T21:46:14.000Z
2019-12-23T15:06:53.000Z
src/tests/functional/test_entry_data_endpoint.py
jroberts07/fpl_stats_api
3a7b5faacec5f83643a16143000b46bea70b5364
[ "MIT" ]
null
null
null
from aioresponses import aioresponses from server import app as sanic_app
28.601852
75
0.499838
8aec45c46dd80ffcb2b3b4c997ad5691276264a2
916
py
Python
option/asian.py
Michany/pycing
761c3cd1a887d6a168909abc107c6ea0d80992d3
[ "MIT" ]
null
null
null
option/asian.py
Michany/pycing
761c3cd1a887d6a168909abc107c6ea0d80992d3
[ "MIT" ]
1
2020-02-12T15:12:41.000Z
2020-02-12T15:13:34.000Z
option/asian.py
Michany/pycing
761c3cd1a887d6a168909abc107c6ea0d80992d3
[ "MIT" ]
null
null
null
import numpy as np from ..core.derivative import Derivative
26.941176
85
0.578603
8aed0fd9be816c87487500edc230255c399c0ca8
8,283
py
Python
PyReQTL/annotate.py
nalomran/PyReQTL
020535e69dfd7ab3c074a3e28cda6cca465672e8
[ "MIT" ]
14
2020-09-23T18:51:41.000Z
2020-10-10T11:22:58.000Z
PyReQTL/annotate.py
nalomran/PyReQTL
020535e69dfd7ab3c074a3e28cda6cca465672e8
[ "MIT" ]
null
null
null
PyReQTL/annotate.py
nalomran/PyReQTL
020535e69dfd7ab3c074a3e28cda6cca465672e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Annotate the output of ReQTL as cis or trans Created on Aug, 29 2020 @author: Nawaf Alomran This module annotates the output of ReQTL as cis or trans based on whether the SNVs resides within its paired gene. Input + Options ---------------- + -r: the path to the ReQTL analysis result...
33
79
0.608234
8aef1e6b611dba02218b5cc706c486dafbea639a
940
py
Python
fx_bmark_extract.py
kiike/scripts
c58386288ff889dd14c91db4487734b294ba3a81
[ "ISC" ]
null
null
null
fx_bmark_extract.py
kiike/scripts
c58386288ff889dd14c91db4487734b294ba3a81
[ "ISC" ]
null
null
null
fx_bmark_extract.py
kiike/scripts
c58386288ff889dd14c91db4487734b294ba3a81
[ "ISC" ]
null
null
null
#!/usr/bin/env python """ Import a Firefox bookmarks file into a single json list """ import json import pprint with open("bmarks") as f: my_marks = [] j = json.load(f) walk(j) print(json.dumps(my_marks, indent=2))
24.736842
60
0.453191
8af06ba56b9d9246907fcee08895d969c1f3947a
429
py
Python
hostel/devices/migrations/0003_device_photos.py
phylocko/hostel
ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365
[ "Apache-2.0" ]
null
null
null
hostel/devices/migrations/0003_device_photos.py
phylocko/hostel
ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365
[ "Apache-2.0" ]
null
null
null
hostel/devices/migrations/0003_device_photos.py
phylocko/hostel
ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365
[ "Apache-2.0" ]
1
2020-10-31T17:33:52.000Z
2020-10-31T17:33:52.000Z
# Generated by Django 2.0.5 on 2021-10-05 00:52 from django.db import migrations, models
21.45
60
0.589744
8af62ad39d558e0d5a5806871f1e4a6b7a8df43e
194,948
py
Python
src/lib/tracker/multitracker.py
DerryHub/FairMOT-attack
2678cebe939eb8e14106c1e9e07f0c44b5ba975f
[ "MIT" ]
18
2021-11-18T15:38:46.000Z
2022-03-22T07:24:27.000Z
src/lib/tracker/multitracker.py
DerryHub/FairMOT-attack
2678cebe939eb8e14106c1e9e07f0c44b5ba975f
[ "MIT" ]
null
null
null
src/lib/tracker/multitracker.py
DerryHub/FairMOT-attack
2678cebe939eb8e14106c1e9e07f0c44b5ba975f
[ "MIT" ]
1
2021-11-25T03:14:37.000Z
2021-11-25T03:14:37.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # ------------------------------------------------------------------------------ from collections import deque import cv2 import numpy as np im...
43.986462
201
0.56671
8af66fdc8a9ee446bc7b0332263e370019166959
2,130
py
Python
t_system/db_fetching.py
sevgiun/T_System
2664e38843c36578bfb6c61e2642b56bd537352a
[ "MIT" ]
7
2019-11-06T10:00:39.000Z
2021-06-29T20:31:54.000Z
imline/db_fetching.py
MCYBA/ImLine
0d1bde9d196432905f3ed00b41cb048c97cf1b44
[ "MIT" ]
741
2019-11-01T11:23:33.000Z
2022-03-31T13:49:17.000Z
imline/db_fetching.py
MCYBA/ImLine
0d1bde9d196432905f3ed00b41cb048c97cf1b44
[ "MIT" ]
6
2019-11-01T11:49:27.000Z
2022-03-18T03:04:16.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ .. module:: database :platform: Unix :synopsis: the top-level submodule of T_System that contains the functions and classes related to T_System's database and table creation ability. Powered by TinyDB. .. moduleauthor:: Cem Baybars GL <cem.baybars@gmail.com> """ ...
34.354839
168
0.615493
8af9408c776206126f843ee9b5587d4d0acab636
5,153
py
Python
xcltk/utils/pileup_regions.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
null
null
null
xcltk/utils/pileup_regions.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
null
null
null
xcltk/utils/pileup_regions.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
2
2021-01-26T02:07:32.000Z
2021-02-03T03:56:55.000Z
# Copied from cellSNP, https://github.com/single-cell-genetics/cellSNP/blob/purePython/cellSNP/utils/pileup_regions.py # Utilility functions for pileup SNPs across regions # originally in from pileup_utils.py # Author: Yuanhua Huang # Date: 21/05/2018 # Modified by: Xianjie Huang from .pileup import * from .sam import...
38.744361
118
0.622938
8af96d0df5555eb37bb2040db58c0c8a963553d0
374
py
Python
scrapy_framework/demotest.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
scrapy_framework/demotest.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
scrapy_framework/demotest.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
import importlib # from scrapy_framework.config.settings import SPIDERS # # # for data in SPIDERS: # print(data) # path=data.rsplit(".",1)[0] # cls_name=data.rsplit(".",1)[1] # module=importlib.import_module(path) # cls=getattr(module, cls_name) # print(cls) d = {'a':1,'b':4,'c':2} c=sorted(...
20.777778
54
0.63369
8afad3555501f5f26b1ee0d4bb4ad784ace7da70
812
py
Python
imagersite/imager_images/urls.py
katcosgrove/django-imager
409081e6fa2933c7247fd8a9de49ec1cb053b778
[ "MIT" ]
null
null
null
imagersite/imager_images/urls.py
katcosgrove/django-imager
409081e6fa2933c7247fd8a9de49ec1cb053b778
[ "MIT" ]
2
2018-05-10T21:53:27.000Z
2018-05-15T17:37:20.000Z
imagersite/imager_images/urls.py
katcosgrove/django-imager
409081e6fa2933c7247fd8a9de49ec1cb053b778
[ "MIT" ]
null
null
null
from django.urls import path from .views import LibraryView, PhotosView, AlbumsView, PhotoView, AlbumView from .views import PhotoCreateView, AlbumCreateView, PhotoEditView, AlbumEditView urlpatterns = [ path('library/', LibraryView.as_view(), name='library'), path('photos/', PhotosView.as_view(), name='photo...
47.764706
81
0.704433
8afb97d50c56a425188ed738b021e57471f05003
758
py
Python
app/urls.py
jhabarsingh/polling_app
8e9d6f8489576170cacb47be76e5bc4ec6378d06
[ "MIT" ]
1
2021-05-03T14:55:20.000Z
2021-05-03T14:55:20.000Z
app/urls.py
jhabarsingh/polling_app
8e9d6f8489576170cacb47be76e5bc4ec6378d06
[ "MIT" ]
2
2021-03-01T16:37:30.000Z
2021-05-03T20:37:56.000Z
app/urls.py
jhabarsingh/polling_app
8e9d6f8489576170cacb47be76e5bc4ec6378d06
[ "MIT" ]
null
null
null
from django.urls import path from app import views app_name = 'poll' urlpatterns = [ path('', views.home, name='home'), path('register', views.register, name='register'), path('login', views.admin_login, name='login'), path('create_poll/', views.create_poll, name='create_poll'), path('show_polls/'...
39.894737
77
0.675462
8aff4d08b156fe05c3178ca97948dcab05b52a18
1,588
py
Python
famous_block/SENet.py
dongqifong/learning
a36453e82802f92c6fb4b03cd8e09938a763bac7
[ "MIT" ]
null
null
null
famous_block/SENet.py
dongqifong/learning
a36453e82802f92c6fb4b03cd8e09938a763bac7
[ "MIT" ]
null
null
null
famous_block/SENet.py
dongqifong/learning
a36453e82802f92c6fb4b03cd8e09938a763bac7
[ "MIT" ]
null
null
null
import torch import torch.nn as nn if __name__ == "__main__": in_c = 5 r = 4 kernel_size = 7 dummy_x = torch.randn((2, in_c, 128)) senet = SEBlock(in_c=in_c, r=r, kernel_size=kernel_size, dummy_x=dummy_x) out = senet(dummy_x) print(out.shape)
30.538462
108
0.537783
8aff5ab7850fa3bfa7318217948a0adf3698bd28
532
py
Python
otk/test/test_rii.py
draustin/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
7
2020-05-17T14:26:42.000Z
2022-02-14T04:52:54.000Z
otk/test/test_rii.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
17
2020-04-10T22:50:00.000Z
2020-06-18T04:54:19.000Z
otk/test/test_rii.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
1
2022-02-14T04:52:45.000Z
2022-02-14T04:52:45.000Z
import numpy as np from otk import rii
31.294118
93
0.640977
c1019da9fdbebdeb2177f41e024ec8a2375bfc50
355
py
Python
corehq/motech/migrations/0002_requestlog_payload_id.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/motech/migrations/0002_requestlog_payload_id.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/motech/migrations/0002_requestlog_payload_id.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.db import migrations, models
20.882353
74
0.588732
c10256e1a56feb6756445ccac8a450d8e5c12102
754
py
Python
revibe/_errors/data.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
revibe/_errors/data.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
revibe/_errors/data.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
from . import base from revibe._helpers import const, status # -----------------------------------------------------------------------------
31.416667
87
0.71618
c1041af258749524bc55eafa1ab81f6db8f7fd21
1,188
py
Python
erhsh/utils/file_util.py
erhsh/erhsh-python
aeb04352948a2e1f8125a2681b80104b5146bff8
[ "Apache-2.0" ]
3
2021-04-20T11:23:58.000Z
2022-01-17T02:57:33.000Z
erhsh/utils/file_util.py
erhsh/erhsh-python
aeb04352948a2e1f8125a2681b80104b5146bff8
[ "Apache-2.0" ]
null
null
null
erhsh/utils/file_util.py
erhsh/erhsh-python
aeb04352948a2e1f8125a2681b80104b5146bff8
[ "Apache-2.0" ]
null
null
null
import os from datetime import datetime
31.263158
79
0.677609
c1099cb2a2632c598917595fb2f7f6e6745f4161
3,885
py
Python
reddit_IG_FB.py
Wanatux/Reddit-to-FB-Page
9f70b4cff72aecc34bad047078d77b534a1abfb4
[ "MIT" ]
null
null
null
reddit_IG_FB.py
Wanatux/Reddit-to-FB-Page
9f70b4cff72aecc34bad047078d77b534a1abfb4
[ "MIT" ]
null
null
null
reddit_IG_FB.py
Wanatux/Reddit-to-FB-Page
9f70b4cff72aecc34bad047078d77b534a1abfb4
[ "MIT" ]
null
null
null
#Clean Code for Picture uploader for social media platform import praw import random import pandas as pd import config from openpyxl import load_workbook import requests import json #Reddit Creds r = praw.Reddit( client_id= "Enter Info Here", client_secret= "Enter Info Here", user_agent= "Enter Info Here",...
28.566176
97
0.605405
c10abea2f9bc648d3729f1ca476f5d8723fdfb12
3,914
py
Python
eph/interface.py
bluePhlavio/eph
9ad8d753ba70d7ed147a591c4181edd56b9533cc
[ "MIT" ]
1
2021-05-07T23:35:32.000Z
2021-05-07T23:35:32.000Z
eph/interface.py
bluePhlavio/eph
9ad8d753ba70d7ed147a591c4181edd56b9533cc
[ "MIT" ]
8
2019-11-02T01:04:26.000Z
2021-06-02T00:01:37.000Z
eph/interface.py
bluePhlavio/eph
9ad8d753ba70d7ed147a591c4181edd56b9533cc
[ "MIT" ]
1
2019-03-20T13:55:52.000Z
2019-03-20T13:55:52.000Z
""" Contains classes and functions useful to interact with the `Jpl Horizons service`_ from NASA. .. _`Jpl Horizons service`: https://ssd.jpl.nasa.gov/?horizons """ import requests from astropy.table import QTable from .util import addparams2url, wrap from .config import read_config from .models import BaseMap from...
28.992593
92
0.628258
c10b7e02be55b3e42b50607092409d07c6db24f8
64
py
Python
phanpy/pokedex/admin.py
wengole/phanpy
17392d3770af16a35198f35a7b2bfa24ff18a1be
[ "BSD-3-Clause" ]
null
null
null
phanpy/pokedex/admin.py
wengole/phanpy
17392d3770af16a35198f35a7b2bfa24ff18a1be
[ "BSD-3-Clause" ]
1
2016-02-03T00:07:34.000Z
2016-02-03T00:07:34.000Z
phanpy/pokedex/admin.py
wengole/phanpy
17392d3770af16a35198f35a7b2bfa24ff18a1be
[ "BSD-3-Clause" ]
null
null
null
from .autoregister import autoregister autoregister('pokedex')
16
38
0.828125
c10de940ca61195f3abd45d17f60bcb7de5621f4
3,834
py
Python
uil/core/templatetags/transformat.py
UiL-OTS-labs/django-shared-core
702ca346f1be861108ec70ceed2ed3b99623f0a3
[ "Apache-2.0" ]
null
null
null
uil/core/templatetags/transformat.py
UiL-OTS-labs/django-shared-core
702ca346f1be861108ec70ceed2ed3b99623f0a3
[ "Apache-2.0" ]
13
2019-06-25T13:23:30.000Z
2022-02-10T07:00:39.000Z
uil/core/templatetags/transformat.py
UiL-OTS-labs/django-shared-core
702ca346f1be861108ec70ceed2ed3b99623f0a3
[ "Apache-2.0" ]
null
null
null
from django.template import Library, Node, TemplateSyntaxError, Variable, VariableDoesNotExist from django.template.base import render_value_in_context from django.utils.safestring import SafeData, mark_safe register = Library()
36.865385
116
0.603286
c10e02e2fe07318224fa852f647944dd03346223
422
py
Python
omnipark/api/v1/login/views.py
ryanpineo/omnipark-back
2b8fa6a4e576a6c187c3ad1ce42a95d7accbe29f
[ "Apache-2.0" ]
null
null
null
omnipark/api/v1/login/views.py
ryanpineo/omnipark-back
2b8fa6a4e576a6c187c3ad1ce42a95d7accbe29f
[ "Apache-2.0" ]
null
null
null
omnipark/api/v1/login/views.py
ryanpineo/omnipark-back
2b8fa6a4e576a6c187c3ad1ce42a95d7accbe29f
[ "Apache-2.0" ]
null
null
null
from rest_framework import response, viewsets from .serializers import LoginSerializer
30.142857
59
0.734597
c1151c01209f2be4a1e7c4a0edc5ad3a63d4466c
3,425
py
Python
generate_text/generate_tensorflow.py
renjunxiang/Text_Generate
209f2fcf58aed7661de71f34549d555e33feae53
[ "MIT" ]
101
2018-07-31T16:02:57.000Z
2022-03-20T22:50:33.000Z
generate_text/generate_tensorflow.py
renjunxiang/generate_text
209f2fcf58aed7661de71f34549d555e33feae53
[ "MIT" ]
1
2020-12-07T04:32:38.000Z
2021-08-18T04:47:49.000Z
generate_text/generate_tensorflow.py
Jiaogh/Text_Generate
209f2fcf58aed7661de71f34549d555e33feae53
[ "MIT" ]
26
2019-01-21T06:36:00.000Z
2022-03-15T06:29:45.000Z
import os import numpy as np import tensorflow as tf from .rnn import model_tensorflow import re import pickle DIR = os.path.dirname(os.path.abspath(__file__)) def generate_tensorflow(process_path=DIR + '/model/poem/poem.pkl', model_path=DIR + '/model/poem/train', maxl...
36.052632
89
0.494891
c1162fbd326c2f2b744b4495ef4678ed8f97bd59
1,042
py
Python
ymir/backend/src/ymir-app/app/models/model.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir-app/app/models/model.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir-app/app/models/model.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from sqlalchemy import ( Boolean, Column, DateTime, Float, Integer, String, Text, UniqueConstraint, ) from app.config import settings from app.db.base_class import Base
28.162162
82
0.696737
c117e2d8b5f1b909c31dcd1e8e67fe7c83ac1b66
2,348
py
Python
apps/checkout/views.py
amyhoo/django-oscar-alipay
eacad65416428c6e09974219487a206577d34312
[ "BSD-3-Clause" ]
59
2015-08-29T10:51:34.000Z
2021-11-03T10:00:25.000Z
apps/checkout/views.py
amyhoo/django-oscar-alipay
eacad65416428c6e09974219487a206577d34312
[ "BSD-3-Clause" ]
4
2015-09-02T08:55:42.000Z
2017-05-15T10:33:00.000Z
apps/checkout/views.py
amyhoo/django-oscar-alipay
eacad65416428c6e09974219487a206577d34312
[ "BSD-3-Clause" ]
22
2015-08-10T10:46:18.000Z
2020-04-04T07:11:55.000Z
####################################################################################### # PaymentMethodView , # PaymentDetailsView (alipay) ####################################################################################### from oscar.apps.checkout.views import PaymentMethodView,PaymentDetailsView as OscarPayment...
44.301887
101
0.668654
c1186e20834312aecb510b36bdf673c14a6fdea9
553
py
Python
studzie/keras_tutor/keras_cifar100.py
amozie/amozie
fb7c16ce537bc5567f9c87cfc22c564a4dffc4ef
[ "Apache-2.0" ]
null
null
null
studzie/keras_tutor/keras_cifar100.py
amozie/amozie
fb7c16ce537bc5567f9c87cfc22c564a4dffc4ef
[ "Apache-2.0" ]
null
null
null
studzie/keras_tutor/keras_cifar100.py
amozie/amozie
fb7c16ce537bc5567f9c87cfc22c564a4dffc4ef
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from keras.models import Sequential, Model from keras.layers import Dense, Activation, Input, Dropout, Flatten, Reshape, \ Conv2D, MaxPooling2D, concatenate, GlobalMaxPooling2D from keras.datasets import cifar100 from keras.callbacks import EarlyStopping from keras...
39.5
79
0.819168
c11b5bc00c820d2149831a6a5219b716f80b5da6
497
py
Python
evaluate.py
QData/DeepDiff
2aef9c5520595b14da265578c2c04c3d65a4ad01
[ "Apache-2.0" ]
6
2021-04-28T22:46:11.000Z
2022-02-06T05:02:57.000Z
evaluate.py
QData/DeepDiff
2aef9c5520595b14da265578c2c04c3d65a4ad01
[ "Apache-2.0" ]
null
null
null
evaluate.py
QData/DeepDiff
2aef9c5520595b14da265578c2c04c3d65a4ad01
[ "Apache-2.0" ]
1
2022-03-11T01:41:49.000Z
2022-03-11T01:41:49.000Z
import numpy import torch import scipy import scipy.sparse as sp import logging from six.moves import xrange from collections import OrderedDict import sys import pdb from sklearn import metrics import torch.nn.functional as F from torch.autograd import Variable
20.708333
70
0.810865
c11bc2c07ea4c7d0324366918fff40bddd73b06c
1,585
py
Python
crawler/scrapy_ffxiv/spiders/gathering_spider.py
shengzhc/sc-ff14-scrapy
2d5b74980e47ec140a4b8d506079fcc94dde54a2
[ "MIT" ]
null
null
null
crawler/scrapy_ffxiv/spiders/gathering_spider.py
shengzhc/sc-ff14-scrapy
2d5b74980e47ec140a4b8d506079fcc94dde54a2
[ "MIT" ]
null
null
null
crawler/scrapy_ffxiv/spiders/gathering_spider.py
shengzhc/sc-ff14-scrapy
2d5b74980e47ec140a4b8d506079fcc94dde54a2
[ "MIT" ]
null
null
null
import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from scrapy_ffxiv.items import FfxivGatheringNode """ Spider to gather info from `www.ffxiv-gathering.com` """
35.222222
157
0.55142
c11c4e38953d87d8740e1177783eb8eb9e19cef3
927
py
Python
horizon/test_horizon-controller-node.py
cyberxml/testinfra-openstack-tests
8b57ff2901463deeaa4d58486bb6d14f65ba3d24
[ "MIT" ]
null
null
null
horizon/test_horizon-controller-node.py
cyberxml/testinfra-openstack-tests
8b57ff2901463deeaa4d58486bb6d14f65ba3d24
[ "MIT" ]
null
null
null
horizon/test_horizon-controller-node.py
cyberxml/testinfra-openstack-tests
8b57ff2901463deeaa4d58486bb6d14f65ba3d24
[ "MIT" ]
null
null
null
import pytest
25.054054
58
0.651564
c11f7822c5bd888ca47b611e77c261bcc7260743
15,956
py
Python
tests/annotator/test_structured_incident_annotator.py
langstok/EpiTator
721fdc444382a0493702ee5976c987954753f47a
[ "Apache-2.0" ]
40
2017-05-27T03:53:22.000Z
2021-08-07T16:33:58.000Z
tests/annotator/test_structured_incident_annotator.py
langstok/EpiTator
721fdc444382a0493702ee5976c987954753f47a
[ "Apache-2.0" ]
25
2017-07-17T14:33:24.000Z
2021-04-09T10:27:56.000Z
tests/annotator/test_structured_incident_annotator.py
langstok/EpiTator
721fdc444382a0493702ee5976c987954753f47a
[ "Apache-2.0" ]
9
2017-11-15T05:13:53.000Z
2021-08-07T16:33:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import unittest from epitator.annotator import AnnoDoc from epitator.structured_incident_annotator import StructuredIncidentAnnotator import datetime # import logging # from .test_utils import with_log_level
32.169355
245
0.572324
c1211c97bd0c2cd978848796f6323f97d81c815a
3,492
py
Python
fastseq/optimizer/fairseq/__init__.py
nttcs-ds/fastseq
f1338f1125612df318c9d1f030a8457397ed05a6
[ "MIT" ]
346
2020-11-28T14:25:21.000Z
2022-03-25T14:50:22.000Z
fastseq/optimizer/fairseq/__init__.py
nttcs-ds/fastseq
f1338f1125612df318c9d1f030a8457397ed05a6
[ "MIT" ]
22
2020-12-03T18:52:04.000Z
2022-02-26T05:19:14.000Z
fastseq/optimizer/fairseq/__init__.py
nttcs-ds/fastseq
f1338f1125612df318c9d1f030a8457397ed05a6
[ "MIT" ]
35
2020-11-30T21:37:45.000Z
2022-03-23T01:54:51.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ Automatically apply the optimizations if the supported versions of FairSeq are detected. """ import logging import sys from packaging import version from fastseq.config import FASTSEQ_VERSION, MAX_FAIRSEQ_VERSION, MIN_FAIRSEQ_VERSION from f...
37.148936
106
0.71134
c1219d3a603a918463a09f2d7d78debd9182f482
192
py
Python
eula-scan/app/counts.py
davidbstein/ml-law
2db439a9b618384c57acb51ddc0d55cf864ed8be
[ "MIT" ]
null
null
null
eula-scan/app/counts.py
davidbstein/ml-law
2db439a9b618384c57acb51ddc0d55cf864ed8be
[ "MIT" ]
null
null
null
eula-scan/app/counts.py
davidbstein/ml-law
2db439a9b618384c57acb51ddc0d55cf864ed8be
[ "MIT" ]
null
null
null
import model print(dict(model._ex("select count(*) policies from tos_text").fetchone())) print(dict(model._ex("select count(*) companies from company where last_error is null").fetchone()))
38.4
100
0.75
c123c8a1452dd7217130353820cbbb49ad40ee13
1,340
py
Python
__main__.py
vmenezio/clippr
78d2d8e14090fcde3c43da1656afae25d7b1629e
[ "MIT" ]
1
2015-12-20T13:32:51.000Z
2015-12-20T13:32:51.000Z
__main__.py
vmenezio/clippr
78d2d8e14090fcde3c43da1656afae25d7b1629e
[ "MIT" ]
null
null
null
__main__.py
vmenezio/clippr
78d2d8e14090fcde3c43da1656afae25d7b1629e
[ "MIT" ]
null
null
null
#! python3 # -*- coding: utf-8 -*- # [ clipper ] # # # # Hey, welcome to clipper! This is a small tool I # # have been building for personal use as a means # # to take, analyze and upload screenshots quickly. # # ...
37.222222
139
0.54403
c124253bfbcd49e0f1812986a73b8ad635b8c1fb
936
py
Python
core/setup.py
DiegoGH117/cellare
c0c68f6f53ee8f31999c3538c327ddca34ba6e94
[ "MIT" ]
null
null
null
core/setup.py
DiegoGH117/cellare
c0c68f6f53ee8f31999c3538c327ddca34ba6e94
[ "MIT" ]
null
null
null
core/setup.py
DiegoGH117/cellare
c0c68f6f53ee8f31999c3538c327ddca34ba6e94
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.md', 'r') as f: long_description = f.read() setup( name = 'CellARE', version = '0.0.2', description = 'A cellular automaton based implementation to run SIR simulations', py_modules = ['cellare'], package_dir = {'':'src'}, classif...
33.428571
87
0.569444
c1248143e6872a13760d0d34115b96fb5c387e21
12,008
py
Python
deploy-tools/auction-deploy/tests/test_cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
9
2019-02-28T06:24:08.000Z
2021-05-29T04:43:56.000Z
deploy-tools/auction-deploy/tests/test_cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
425
2019-04-02T08:07:27.000Z
2021-07-01T18:29:02.000Z
deploy-tools/auction-deploy/tests/test_cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
10
2019-02-25T08:40:24.000Z
2022-03-08T10:22:57.000Z
import csv import re import pytest from click.testing import CliRunner from deploy_tools.cli import test_json_rpc, test_provider from eth_tester.exceptions import TransactionFailed from eth_utils import to_checksum_address import auction_deploy.core from auction_deploy.cli import AuctionState, main from auction_deplo...
30.4
123
0.713358
c1257c741492e036061014a924bb9f56f773f5b1
10,555
py
Python
core/plugins/rabbitmq.py
dnegreira/hotsos
c88375d8700bf53faed4e5de55c34bd0bdc66187
[ "Apache-2.0" ]
null
null
null
core/plugins/rabbitmq.py
dnegreira/hotsos
c88375d8700bf53faed4e5de55c34bd0bdc66187
[ "Apache-2.0" ]
null
null
null
core/plugins/rabbitmq.py
dnegreira/hotsos
c88375d8700bf53faed4e5de55c34bd0bdc66187
[ "Apache-2.0" ]
null
null
null
import os from core.log import log from core.cli_helpers import CLIHelper from core.utils import mktemp_dump, sorted_dict from core.ycheck.events import YEventCheckerBase from core.searchtools import ( SearchDef, SequenceSearchDef, FileSearcher, ) from core import ( checks, plugintools, ) RMQ_SERV...
34.158576
168
0.559545
c127d6465fa7c0671438fe8816025b96ec521c2a
31,776
py
Python
src/mercs/core/Mercs.py
MattiasDC/mercs
466962e254c4f56f4a16a31b1a3d7bd893c8e23e
[ "MIT" ]
11
2020-01-28T16:15:53.000Z
2021-05-20T08:05:42.000Z
src/mercs/core/Mercs.py
MattiasDC/mercs
466962e254c4f56f4a16a31b1a3d7bd893c8e23e
[ "MIT" ]
null
null
null
src/mercs/core/Mercs.py
MattiasDC/mercs
466962e254c4f56f4a16a31b1a3d7bd893c8e23e
[ "MIT" ]
4
2020-02-06T09:02:28.000Z
2022-02-14T09:42:04.000Z
import itertools import warnings from inspect import signature from timeit import default_timer from sklearn.preprocessing import normalize import dask import numpy as np try: import shap except: msg = "SHAP not found, therefore using SHAP-values for feature importance not available." warnings.warn(msg) ...
30.97076
113
0.606905
c12a3cb2ec282c49961e4c9f8bc0a286e747e3af
13,135
py
Python
pysnmp/HUAWEI-LswRSTP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HUAWEI-LswRSTP-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HUAWEI-LswRSTP-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 HUAWEI-LswRSTP-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-LswRSTP-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:34:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
125.095238
1,870
0.767035
c12c2ac656b7260dfdb953a62cfeab4d5b386d09
6,377
py
Python
src/ydata_quality/duplicates/engine.py
poga/ydata-quality
0cdda2774b05101c5f4f773b5e946f2a6544da09
[ "MIT" ]
242
2021-09-22T17:16:49.000Z
2022-03-30T10:26:25.000Z
src/ydata_quality/duplicates/engine.py
poga/ydata-quality
0cdda2774b05101c5f4f773b5e946f2a6544da09
[ "MIT" ]
13
2021-09-23T00:15:10.000Z
2022-02-04T16:33:42.000Z
src/ydata_quality/duplicates/engine.py
poga/ydata-quality
0cdda2774b05101c5f4f773b5e946f2a6544da09
[ "MIT" ]
21
2021-09-24T09:59:30.000Z
2022-03-16T02:48:11.000Z
""" Implementation of DuplicateChecker engine class to run duplicate records analysis. """ from typing import List, Optional, Union from pandas import DataFrame from src.ydata_quality.core.warnings import Priority from ..core import QualityEngine, QualityWarning from ..utils.auxiliary import find_duplicate_columns ...
45.877698
120
0.631175
c12f3aad32b9c24ae341c2d85562fa4d677a6dca
89
py
Python
notebooks/classic/exercise/matplotlib-subplots.py
kmunve/ml-workshop
96a42e663bb656e97231eff17ef4ca21e2a14b0e
[ "MIT" ]
3
2020-02-17T13:35:56.000Z
2020-10-22T13:15:28.000Z
notebooks/classic/exercise/matplotlib-subplots.py
kmunve/ml-workshop
96a42e663bb656e97231eff17ef4ca21e2a14b0e
[ "MIT" ]
7
2020-02-09T17:52:44.000Z
2020-02-09T17:52:53.000Z
notebooks/classic/exercise/matplotlib-subplots.py
kmunve/ml-workshop
96a42e663bb656e97231eff17ef4ca21e2a14b0e
[ "MIT" ]
4
2019-07-22T17:05:52.000Z
2020-01-23T12:17:59.000Z
fig, ax = plt.subplots(2, sharex='all', figsize=(10, 5)) fig.savefig("two-subplots.png")
29.666667
56
0.674157
c12f7689727d68b07585dc735616888c343cb5e6
3,575
py
Python
dataio/python/pprint.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
dataio/python/pprint.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
dataio/python/pprint.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
import collections import re from icecube import icetray from icecube import dataclasses from icecube import dataio def format_line( frame, key, maxwidth = None, ellipsis = '...' ): '''Given an icecube frame and a key in that frame, return exactly one line of text describing the I3FrameObject with that key. ...
30.818966
86
0.575385
c12ff6fc86fc337cb5664cef1cd543659806c57c
600
py
Python
staris.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
staris.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
staris.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #You are climbing a stair case. It takes n steps to reach to the top. #Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? solution=Solution() solution.climbStairs(35)
18.181818
97
0.675
c131857f7131f2f64a0c9cd301cbb4e69c3dcbec
9,619
py
Python
CryptoAttacks/Block/ecb.py
akbarszcz/CryptoAttacks
ae675d016b314414a3dc9b23c7d8a32da4c62457
[ "MIT" ]
54
2017-03-28T23:46:58.000Z
2022-02-23T01:53:38.000Z
CryptoAttacks/Block/ecb.py
maximmasiutin/CryptoAttacks
d1d47d3cb2ce38738a60b728bc35ce80bfe64374
[ "MIT" ]
null
null
null
CryptoAttacks/Block/ecb.py
maximmasiutin/CryptoAttacks
d1d47d3cb2ce38738a60b728bc35ce80bfe64374
[ "MIT" ]
13
2017-03-31T06:07:23.000Z
2021-11-20T19:01:30.000Z
from __future__ import absolute_import, division, print_function import string from builtins import bytes, range from CryptoAttacks.Math import factors from CryptoAttacks.Utils import (add_padding, b2h, chunks, log, print_chunks, random_bytes) def encryption_oracle(payload): """...
39.584362
132
0.640607
c133b030e2d992d0cf7302a80fd9d38d5daf7e7c
973
py
Python
codes/convergence_elasticity_advection/bilinear.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2021-06-18T14:52:03.000Z
2021-06-18T14:52:03.000Z
codes/comparison/fem/bilinear.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2019-01-07T13:11:11.000Z
2019-01-07T13:11:11.000Z
codes/convergence_elasticity_advection/bilinear.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy as np
28.617647
66
0.464543
c133b53053daca0e859c64e76f3f3420f8594a0a
1,827
py
Python
MR-OCP/MROCPdjango/computation/algs/max_avg_degree/max_avg_deg.py
justi/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
12
2015-03-11T22:07:17.000Z
2016-01-29T21:24:29.000Z
MR-OCP/MROCPdjango/computation/algs/max_avg_degree/max_avg_deg.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
213
2015-01-30T16:02:57.000Z
2016-01-29T21:45:02.000Z
MR-OCP/MROCPdjango/computation/algs/max_avg_degree/max_avg_deg.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
5
2015-02-04T13:58:12.000Z
2016-01-29T21:24:46.000Z
#!/usr/bin/env python # Copyright 2014 Open Connectome Project (http://openconnecto.me) # # 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 # #...
38.0625
104
0.749316
c13494ee29e2f123470e1509930b8cc4d4a82910
4,828
py
Python
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/adtk/_transformer_base.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
null
null
null
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/adtk/_transformer_base.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
null
null
null
tests/sandbox/.venv_ccf_sandbox/lib/python3.8/site-packages/adtk/_transformer_base.py
iLuSIAnn/test
10d0a20dc1a646b5c1f6c7bff2960e3f5df0510e
[ "Apache-2.0" ]
null
null
null
from typing import Union import pandas as pd from ._base import ( _NonTrainableMultivariateModel, _NonTrainableUnivariateModel, _TrainableMultivariateModel, _TrainableUnivariateModel, )
28.233918
79
0.606462
c134bdbfe11dbc33ecbecbfb4d500d8cdb08c69d
3,511
py
Python
src/accounts/views.py
m2jobe/tafseer
8f7d4bddbcd8a73c607f39a2b1d27c78aef86a15
[ "MIT" ]
null
null
null
src/accounts/views.py
m2jobe/tafseer
8f7d4bddbcd8a73c607f39a2b1d27c78aef86a15
[ "MIT" ]
null
null
null
src/accounts/views.py
m2jobe/tafseer
8f7d4bddbcd8a73c607f39a2b1d27c78aef86a15
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404 from django_rest_logger import log from knox.auth import TokenAuthentication from knox.models import AuthToken from rest_framework import status from rest_framework.authentication import BasicAuthentication from rest_framework.generics import GenericAPIView from rest_frame...
36.195876
117
0.710339
c1365b2df1fdc2c37aa4c5a090e8a65cce8207d8
2,985
py
Python
enigma.py
danhab99/EnigmaPY
b7526c26ac98675e911a8d0dcaf1acfe6d2659fb
[ "MIT" ]
null
null
null
enigma.py
danhab99/EnigmaPY
b7526c26ac98675e911a8d0dcaf1acfe6d2659fb
[ "MIT" ]
null
null
null
enigma.py
danhab99/EnigmaPY
b7526c26ac98675e911a8d0dcaf1acfe6d2659fb
[ "MIT" ]
null
null
null
import create from lib import Machine from lib import Transformer import argparse import pickle from itertools import chain from random import shuffle parser = argparse.ArgumentParser(description='A simulation of the enigma encryption algorithm', prog='enigma.py') subparsers = parser.add_subparsers(help='Which comman...
33.166667
163
0.669012
c13aeff29bda001891c8cf3e8b1bc374fc0c165c
754
py
Python
autoimpute/analysis/__init__.py
gjdv/autoimpute
aa418102d3b64fc7e0c0dafa6839746f0b9a6545
[ "MIT" ]
191
2019-03-16T17:00:33.000Z
2022-03-11T12:14:17.000Z
autoimpute/analysis/__init__.py
MlataIbrahim/autoimpute
d22cd86db6facd4a68746c8c0fcb3fae70071dac
[ "MIT" ]
57
2019-03-09T23:59:38.000Z
2022-03-01T08:17:33.000Z
autoimpute/analysis/__init__.py
MlataIbrahim/autoimpute
d22cd86db6facd4a68746c8c0fcb3fae70071dac
[ "MIT" ]
19
2019-04-13T19:01:23.000Z
2021-05-14T08:59:27.000Z
"""Manage the analysis folder from the autoimpute package. This module handles imports from the analysis folder that should be accessible whenever someone imports autoimpute.analysis. The list below specifies the methods and classes that are available on import. This module handles `from autoimpute.analysis import *`...
31.416667
78
0.802387
c13af56264e5c19bd63a5cb098d1273308f7f27f
5,962
py
Python
tests/sdk/test_client_response.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
6
2019-10-16T02:35:06.000Z
2021-02-03T13:39:43.000Z
tests/sdk/test_client_response.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
23
2020-03-17T13:16:02.000Z
2021-04-23T15:09:51.000Z
tests/sdk/test_client_response.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
null
null
null
import requests from parameterized import parameterized, parameterized_class import aito.client.requests as aito_requests import aito.schema as aito_schema from aito.client import AitoClient from tests.cases import CompareTestCase from tests.sdk.contexts import grocery_demo_client def get_requests_resp_and_aito_resp...
42.283688
121
0.679638
c13c4bfee1c9c7430580db61de18561beb73453a
157
py
Python
test/integration/default/testinfra/test_docker.py
joe-bowman/docker-formula
efc3cc4ecb86163b179d476ebaf96d9a2fc1d476
[ "Apache-2.0" ]
null
null
null
test/integration/default/testinfra/test_docker.py
joe-bowman/docker-formula
efc3cc4ecb86163b179d476ebaf96d9a2fc1d476
[ "Apache-2.0" ]
null
null
null
test/integration/default/testinfra/test_docker.py
joe-bowman/docker-formula
efc3cc4ecb86163b179d476ebaf96d9a2fc1d476
[ "Apache-2.0" ]
null
null
null
import testinfra
22.428571
49
0.783439
c13d31a85ce3ce0b7615b9c5e782008402d5a721
9,292
py
Python
lib/worker.py
GuoxiaWang/InstanceLabelTool
ece37a0dfe1467ad24d6d3472adb50b20b6abd24
[ "MIT" ]
6
2018-10-28T07:43:34.000Z
2021-04-11T15:15:14.000Z
lib/worker.py
GuoxiaWang/InstanceLabelTool
ece37a0dfe1467ad24d6d3472adb50b20b6abd24
[ "MIT" ]
2
2019-03-13T15:16:57.000Z
2019-04-15T02:35:46.000Z
lib/worker.py
GuoxiaWang/InstanceLabelTool
ece37a0dfe1467ad24d6d3472adb50b20b6abd24
[ "MIT" ]
1
2020-01-16T10:23:36.000Z
2020-01-16T10:23:36.000Z
""" Copyright (c) 2018- Guoxia Wang mingzilaochongtu at gmail com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, subject to the following conditions: The above cop...
36.439216
113
0.567908
c13ec1a7b5e150d075490c6a5d27c1d7f874d34f
1,266
py
Python
ark_nlp/dataset/__init__.py
yubuyuabc/ark-nlp
165d35cfacd7476791c0aeba19bf43f4f8079553
[ "Apache-2.0" ]
1
2022-03-23T05:10:55.000Z
2022-03-23T05:10:55.000Z
ark_nlp/dataset/__init__.py
yubuyuabc/ark-nlp
165d35cfacd7476791c0aeba19bf43f4f8079553
[ "Apache-2.0" ]
null
null
null
ark_nlp/dataset/__init__.py
yubuyuabc/ark-nlp
165d35cfacd7476791c0aeba19bf43f4f8079553
[ "Apache-2.0" ]
null
null
null
from ark_nlp.dataset.base._dataset import * from ark_nlp.dataset.base._sentence_classification_dataset import SentenceClassificationDataset from ark_nlp.dataset.base._sentence_classification_dataset import SentenceClassificationDataset as SCDataset from ark_nlp.dataset.base._sentence_classification_dataset import Pair...
70.333333
120
0.919431
c142870cdc5b68b605e9ca3cb9dda2dd39df1fad
674
py
Python
fastquotes/index/csi.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
4
2020-11-18T11:25:00.000Z
2021-04-08T01:02:49.000Z
fastquotes/index/csi.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
null
null
null
fastquotes/index/csi.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
1
2020-11-18T11:25:01.000Z
2020-11-18T11:25:01.000Z
import codecs import json import requests from ..const import CUSTOM_HEADER def latest_year_data(code: str, latest_year: int) -> list: """ lastest_year: 135 """ url = ( f"http://www.csindex.com.cn/zh-CN/indices/index-detail/{code}?" f"earnings_performance={latest_year}%E5%B9%B4&data_...
23.241379
71
0.578635
c144afd84ce935554287482e6c1ce7b3ab3a0525
5,596
py
Python
Python/split-array-into-fibonacci-sequence.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/split-array-into-fibonacci-sequence.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/split-array-into-fibonacci-sequence.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(n^3) # Space: O(n) # 842 # Given a string S of digits, such as S = "123456579", # we can split it into a Fibonacci-like sequence [123, 456, 579]. # # Formally, a Fibonacci-like sequence is a list F of non-negative # integers such that: # # 0 <= F[i] <= 2^31 - 1, # (that is, each integer fits a 32-bit signed...
32.16092
120
0.454789
c144dd7ed4502a22ce0fcfc2f712cd5108d540e6
5,160
py
Python
substrabac/substrapp/utils.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
substrabac/substrapp/utils.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
substrabac/substrapp/utils.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
import io import hashlib import logging import os import tempfile from os import path from os.path import isfile, isdir import shutil import requests import tarfile import zipfile import uuid from checksumdir import dirhash from django.conf import settings from rest_framework import status
27.593583
105
0.64845
c1472dfe5defd2c2cedbd1490cbcbbe0967be5ae
67
py
Python
{{cookiecutter.git_project_name}}/core/views/__init__.py
imAsparky/django-cookiecutter
6608b46d3b3a75ef8880b18724eb06e9ed7567df
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.git_project_name}}/core/views/__init__.py
imAsparky/django-cookiecutter
6608b46d3b3a75ef8880b18724eb06e9ed7567df
[ "BSD-3-Clause" ]
128
2021-09-28T03:17:40.000Z
2022-03-19T00:21:50.000Z
{{cookiecutter.git_project_name}}/core/views/__init__.py
imAsparky/django-cookiecutter
6608b46d3b3a75ef8880b18724eb06e9ed7567df
[ "BSD-3-Clause" ]
null
null
null
"""Initialise {{cookiecutter.git_project_name}} Core App Views."""
33.5
66
0.746269
c1484f680c8d5268a7187ffd0cd5d37747e57a92
1,569
py
Python
Algorithms/Assign1/v2.py
thebishaldeb/ClassAssignments
f44c51695266da0c98d1ab3516c473c6d1008933
[ "MIT" ]
null
null
null
Algorithms/Assign1/v2.py
thebishaldeb/ClassAssignments
f44c51695266da0c98d1ab3516c473c6d1008933
[ "MIT" ]
null
null
null
Algorithms/Assign1/v2.py
thebishaldeb/ClassAssignments
f44c51695266da0c98d1ab3516c473c6d1008933
[ "MIT" ]
null
null
null
# FUNCTION # Dictionaries to store databases from the text files db1 = {} db2 = {} with open("db1.txt","r") as file: for line in file: x = line.split("- ") db1[int(x[0])] = x[1][0:len(x[1])-1] with open("db2.txt","r") as file: for line in file: x = line.split("- ") ...
26.59322
82
0.586361
c1486548c7b778a225198dc3750c6bc512122e6c
4,025
py
Python
brain-imaging/run_tsne_brain.py
agramfort/spatio-temporal-alignements
18594cf0372dc874decccecad69e310f84142c88
[ "BSD-3-Clause" ]
28
2019-10-18T07:29:52.000Z
2022-01-27T15:12:45.000Z
brain-imaging/run_tsne_brain.py
agramfort/spatio-temporal-alignements
18594cf0372dc874decccecad69e310f84142c88
[ "BSD-3-Clause" ]
2
2021-01-16T18:34:31.000Z
2022-02-03T14:49:34.000Z
brain-imaging/run_tsne_brain.py
agramfort/spatio-temporal-alignements
18594cf0372dc874decccecad69e310f84142c88
[ "BSD-3-Clause" ]
4
2021-01-16T17:22:23.000Z
2022-01-11T03:24:24.000Z
import mne import pickle import numpy as np from sta import sta_matrix, sdtw_matrix from sklearn.manifold import TSNE # change this if you have GPUs # in our platform, this experiment ran on 4 GPUs in around 20 minutes n_gpu_devices = 0 def generate_samples(n_samples, n_times, time_point, space_points, M, ...
37.268519
79
0.640248
c14cdcac7d3354fc54dac9a43c5883bc3c65d04c
2,161
py
Python
cyphercat/datadefs/cifar10_dataset.py
arafin-lab/model_inversion_experiments
8e491f22ae847d8d0f2f31caed6ad0078c9b6a49
[ "Apache-2.0" ]
101
2018-10-26T14:39:19.000Z
2022-03-28T11:38:45.000Z
cyphercat/datadefs/cifar10_dataset.py
zhampel/cyphercat
4029ae8683b9056013e6424d8931afe79afa618e
[ "Apache-2.0" ]
32
2018-10-10T23:02:04.000Z
2019-11-11T21:30:57.000Z
cyphercat/datadefs/cifar10_dataset.py
zhampel/cyphercat
4029ae8683b9056013e6424d8931afe79afa618e
[ "Apache-2.0" ]
49
2018-10-05T17:54:49.000Z
2022-02-10T07:47:25.000Z
import torch from torch.utils.data import Dataset, ConcatDataset import torchvision from cyphercat.definitions import DATASETS_DIR, DATASPLITS_DIR from tqdm import tqdm import pandas as pd import numpy as np import pickle import os from .splitter import splitter, dataset_split def Cifar10_preload_and_split(path=None,...
32.742424
105
0.690421
c14dc762e4ac7e02bd632552dcbebfc3d90dd126
31
py
Python
easyTCP/SERVER/utils/__init__.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
4
2018-12-09T13:57:59.000Z
2019-10-19T19:34:28.000Z
easyTCP/SERVER/utils/__init__.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
easyTCP/SERVER/utils/__init__.py
dsal3389/easyTCP
0a11ffe4726bfd0461c24fa459e417fd2fe3cd7f
[ "MIT" ]
null
null
null
#from .BUILD_IN import BUILD_IN
31
31
0.83871
c14f824a0678ada5998332bc22d1955b5b7acece
19,547
py
Python
src/muscle_synergies/vicon_data/user_data.py
elvis-sik/muscle_synergies
eff0d016f2032faa9b8fba5363249e6fdb150abf
[ "MIT" ]
6
2021-02-05T21:53:08.000Z
2022-01-20T16:50:39.000Z
src/muscle_synergies/vicon_data/user_data.py
elvis-sik/muscle_synergies
eff0d016f2032faa9b8fba5363249e6fdb150abf
[ "MIT" ]
1
2021-02-06T14:14:52.000Z
2021-03-01T03:44:23.000Z
src/muscle_synergies/vicon_data/user_data.py
elvis-sik/muscle_synergies
eff0d016f2032faa9b8fba5363249e6fdb150abf
[ "MIT" ]
null
null
null
"""Types that help building the final representation of the data. From the point of view of the internal API, the main type in this module is :py:class:`Builder`, which uses the data stored in an :py:class:`~muscle_synergies.vicon_data.aggregator.Aggregator` to build the :py:class:`ViconNexusData`. That object, in tur...
37.020833
91
0.65785
c1530d1f98179c78b07bae3b02ff2a685a89878e
1,629
py
Python
tests/modification-check.py
luisriverag/certbot
52e207a404ab3600637fc7a24492e2c68512ce2d
[ "Apache-2.0" ]
1
2017-05-14T17:09:38.000Z
2017-05-14T17:09:38.000Z
tests/modification-check.py
luisriverag/certbot
52e207a404ab3600637fc7a24492e2c68512ce2d
[ "Apache-2.0" ]
5
2021-03-15T21:43:04.000Z
2021-07-22T20:31:43.000Z
tests/modification-check.py
luisriverag/certbot
52e207a404ab3600637fc7a24492e2c68512ce2d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Ensures there have been no changes to important certbot-auto files.""" import hashlib import os # Relative to the root of the Certbot repo, these files are expected to exist # and have the SHA-256 hashes contained in this dictionary. These hashes were # taken from our v1.14.0 tag which was t...
33.9375
90
0.745242
c153b504e55b04acb0b49c1e4ecd7223c00968b8
560
py
Python
tests/test_load.py
michaelpeterswa/qsml
e3aeb48ac8ba7bb3eca7ec866f6d75258cfdc7c2
[ "MIT" ]
7
2020-06-28T16:28:54.000Z
2020-09-18T13:18:55.000Z
tests/test_load.py
michaelpeterswa/qsml
e3aeb48ac8ba7bb3eca7ec866f6d75258cfdc7c2
[ "MIT" ]
1
2020-06-27T08:36:02.000Z
2020-06-28T23:30:03.000Z
tests/test_load.py
michaelpeterswa/qsml
e3aeb48ac8ba7bb3eca7ec866f6d75258cfdc7c2
[ "MIT" ]
1
2020-07-30T05:03:38.000Z
2020-07-30T05:03:38.000Z
import unittest import qsml if __name__ == "__main__": unittest.main()
25.454545
73
0.583929
c153e1c37eaaf1da2ce812283ce1bb7f91f0f0b1
6,012
py
Python
votesim/utilities/decorators.py
johnh865/election_sim
b73b7e65f1bb22abb82cbe8442fcf02b0c20894e
[ "MIT" ]
8
2019-10-21T23:24:51.000Z
2021-09-14T03:04:59.000Z
votesim/utilities/decorators.py
johnh865/election_sim
b73b7e65f1bb22abb82cbe8442fcf02b0c20894e
[ "MIT" ]
2
2021-02-09T23:52:47.000Z
2021-02-10T04:08:35.000Z
votesim/utilities/decorators.py
johnh865/election_sim
b73b7e65f1bb22abb82cbe8442fcf02b0c20894e
[ "MIT" ]
1
2019-10-21T23:32:18.000Z
2019-10-21T23:32:18.000Z
""" Collection of utilities such as memoization, automatic property storage, etc """ from __future__ import print_function, absolute_import, division from functools import wraps, partial import logging from votesim.utilities import misc logger = logging.getLogger(__name__) # #def lazyprop(fn): # ...
23.669291
100
0.58849
c15402f1ab58bd4a60c7b4bb3dddbb75ea0cbef9
10,304
py
Python
portcran.py
yzgyyang/portcran
04fa6ce8cd8585ed96aab19177d030b030ff79c9
[ "BSD-2-Clause" ]
1
2021-07-15T04:35:08.000Z
2021-07-15T04:35:08.000Z
portcran.py
yzgyyang/portcran
04fa6ce8cd8585ed96aab19177d030b030ff79c9
[ "BSD-2-Clause" ]
null
null
null
portcran.py
yzgyyang/portcran
04fa6ce8cd8585ed96aab19177d030b030ff79c9
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 from argparse import ArgumentParser, Namespace from pathlib import Path from re import search from sys import argv from typing import Callable, Iterable, List, Optional, TextIO, Tuple from urllib.request import urlopen, urlretrieve from ports import Platform, PortError, PortLicense, Ports from po...
40.566929
120
0.595885
c15423c94eae9054e142abda74c8200dd59d29fa
6,484
py
Python
calendarserver/tools/validcalendardata.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
1
2017-02-18T19:22:19.000Z
2017-02-18T19:22:19.000Z
calendarserver/tools/validcalendardata.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
calendarserver/tools/validcalendardata.py
eventable/CalendarServer
384444edb1966b530bc391789afbe3fb9cd6fd3e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ## # Copyright (c) 2012-2015 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
27.35865
120
0.609963
c155e8b957ea1abd8dd89360b9558b67dc020499
1,243
py
Python
src/gluonts/nursery/torch_arsgls_rbpf/test/basic_tests/conv.py
richardk53/gluon-ts
5bde492198c0348b550ac6f7269f1740a699ec30
[ "Apache-2.0" ]
null
null
null
src/gluonts/nursery/torch_arsgls_rbpf/test/basic_tests/conv.py
richardk53/gluon-ts
5bde492198c0348b550ac6f7269f1740a699ec30
[ "Apache-2.0" ]
null
null
null
src/gluonts/nursery/torch_arsgls_rbpf/test/basic_tests/conv.py
richardk53/gluon-ts
5bde492198c0348b550ac6f7269f1740a699ec30
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn from utils.utils import compute_conv_output_img_dims
38.84375
77
0.442478
c1561171d3885a4dc3c76906c27aa5632df77a77
589
py
Python
OOP/deep_dive_tkinter/many_widget_example.py
Amaranese/python-exercises-notes-solutions-projects
58f7677ecb97971733d9f4ff87fda75e23d7c0cb
[ "Unlicense" ]
1
2021-12-03T12:38:33.000Z
2021-12-03T12:38:33.000Z
OOP/deep_dive_tkinter/many_widget_example.py
Amaranese/python-exercises-notes-solutions-projects
58f7677ecb97971733d9f4ff87fda75e23d7c0cb
[ "Unlicense" ]
null
null
null
OOP/deep_dive_tkinter/many_widget_example.py
Amaranese/python-exercises-notes-solutions-projects
58f7677ecb97971733d9f4ff87fda75e23d7c0cb
[ "Unlicense" ]
null
null
null
import tkinter as tk parent = tk.Tk() # tk.WidgetName(parent_frame, options) tk.Entry(parent, width=25).pack() tk.Button(parent, text="LOOKOUT!").pack() tk.Checkbutton(parent, text='RememberMe', variable=tk.IntVar()).pack() tk.Label(parent, text="What's Your Name?").pack() tk.OptionMenu(parent, tk.IntVar(), "Select ...
32.722222
83
0.702886
c156565f017d48828a6c04509f6eaa61d605a332
432
py
Python
hardhat/recipes/x11/driver/xf86-video-nouveau.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/x11/driver/xf86-video-nouveau.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/x11/driver/xf86-video-nouveau.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from ..base import X11DriverBaseRecipe
33.230769
69
0.664352
c1588d562ae990566fc09dd0f8d1a7453c6a6f20
3,563
py
Python
fem_dsa/networks/autoencoders.py
idealab-isu/DSA
b9157eb9307c0ff06d91ff2bdcd8f70df5b896cb
[ "BSD-3-Clause" ]
3
2022-01-18T01:33:34.000Z
2022-03-22T20:46:16.000Z
DiffNet/networks/autoencoders.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
1
2022-03-30T10:16:47.000Z
2022-03-30T10:16:47.000Z
DiffNet/networks/autoencoders.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
2
2021-12-01T20:53:24.000Z
2021-12-02T06:42:39.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable
33.299065
128
0.541959
c1598a3545cd8dc90345c280e6f51a6897b9912a
2,215
py
Python
week02/03.MoreTesting/fractions/tests_collect_fractions.py
TsvetomirTsvetkov/Python-Course-101
1c5ea4631128c22effe3c4ee5a18c43f5e79d463
[ "MIT" ]
null
null
null
week02/03.MoreTesting/fractions/tests_collect_fractions.py
TsvetomirTsvetkov/Python-Course-101
1c5ea4631128c22effe3c4ee5a18c43f5e79d463
[ "MIT" ]
null
null
null
week02/03.MoreTesting/fractions/tests_collect_fractions.py
TsvetomirTsvetkov/Python-Course-101
1c5ea4631128c22effe3c4ee5a18c43f5e79d463
[ "MIT" ]
null
null
null
# tests_collect_fractions.py import unittest from collect_fractions import ( validate_input_collect, lcm, collect_fractions ) if __name__ == '__main__': unittest.main()
25.170455
96
0.751242
c159e41ff48b6f66e8bdd24ff1ed589656d0c172
3,278
py
Python
exporter/management/commands/exporter.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
null
null
null
exporter/management/commands/exporter.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
170
2021-02-12T12:52:37.000Z
2022-03-28T14:37:05.000Z
exporter/management/commands/exporter.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
null
null
null
import gzip import logging import shutil from django.conf import settings from django.core.management.base import BaseCommand from django.db import connections from yapw.methods.blocking import ack from exporter.util import Export, create_client logger = logging.getLogger(__name__)
29.531532
113
0.556742
c15a19cb03f23c0c130c7938dd4eba13516d4750
71
py
Python
config.py
SuShu19/TiTIC
7dd83a1527ee0e57e354eb7843c75ad2e53d69fc
[ "Apache-2.0" ]
null
null
null
config.py
SuShu19/TiTIC
7dd83a1527ee0e57e354eb7843c75ad2e53d69fc
[ "Apache-2.0" ]
null
null
null
config.py
SuShu19/TiTIC
7dd83a1527ee0e57e354eb7843c75ad2e53d69fc
[ "Apache-2.0" ]
null
null
null
code_path = "F://apsec 2021/TiTIC" data_path = "D:/fasttext_data"
17.75
38
0.71831
c15a975febae16e23c4a925f353cceee52893986
147
py
Python
terrascript/pingdom/d.py
jackluo923/python-terrascript
ed4b626e6d28621ea1b02fc16f7277a094d89830
[ "BSD-2-Clause" ]
4
2022-02-07T21:08:14.000Z
2022-03-03T04:41:28.000Z
terrascript/pingdom/d.py
jackluo923/python-terrascript
ed4b626e6d28621ea1b02fc16f7277a094d89830
[ "BSD-2-Clause" ]
null
null
null
terrascript/pingdom/d.py
jackluo923/python-terrascript
ed4b626e6d28621ea1b02fc16f7277a094d89830
[ "BSD-2-Clause" ]
2
2022-02-06T01:49:42.000Z
2022-02-08T14:15:00.000Z
# terrascript/pingdom/d.py import terrascript
13.363636
40
0.768707
c15bdeecdedb2772bfcc37455ef18ef0155dfd42
154
py
Python
src/arcrest/hostedservice/__init__.py
kevinsigwart/ArcREST
2d83bd87e23f3f78d6bba2131e6d47cf8e2e07c1
[ "Apache-2.0" ]
null
null
null
src/arcrest/hostedservice/__init__.py
kevinsigwart/ArcREST
2d83bd87e23f3f78d6bba2131e6d47cf8e2e07c1
[ "Apache-2.0" ]
null
null
null
src/arcrest/hostedservice/__init__.py
kevinsigwart/ArcREST
2d83bd87e23f3f78d6bba2131e6d47cf8e2e07c1
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from .service import AdminFeatureService, AdminFeatureServiceLayer, AdminMapService, Services __version__ = "3.5.6"
51.333333
93
0.857143
c160f505df5dab1a29a92764a36839b1cc74f021
3,357
py
Python
test_triplegan.py
AmirHosseinAmeli/Triple-GAN
127948d9e22767d315a4b3ca58fc4a56d92ff9d3
[ "MIT" ]
29
2020-09-03T08:35:47.000Z
2022-02-10T18:39:29.000Z
test_triplegan.py
AmirHosseinAmeli/Triple-GAN
127948d9e22767d315a4b3ca58fc4a56d92ff9d3
[ "MIT" ]
6
2020-12-22T14:43:14.000Z
2022-03-12T00:55:24.000Z
test_triplegan.py
AmirHosseinAmeli/Triple-GAN
127948d9e22767d315a4b3ca58fc4a56d92ff9d3
[ "MIT" ]
8
2020-10-01T04:03:40.000Z
2022-03-21T10:23:40.000Z
import copy import os import pickle import torch import torch.nn as nn import numpy as np from library import inputs, eval_inception_score from Utils.checkpoints import save_context, Logger from Utils import flags from Utils import config import Torture FLAGS = flags.FLAGS KEY_ARGUMENTS = config.load_config(FLAGS.c...
32.278846
84
0.712541
c16138a7cd5144aec3ed7335c23d116573f315f9
2,093
py
Python
pages/product_page.py
DedMazzai/stepic_test_project
f5dc9e71c9f18b48edf017cbfde86ada888482e2
[ "Apache-2.0" ]
null
null
null
pages/product_page.py
DedMazzai/stepic_test_project
f5dc9e71c9f18b48edf017cbfde86ada888482e2
[ "Apache-2.0" ]
null
null
null
pages/product_page.py
DedMazzai/stepic_test_project
f5dc9e71c9f18b48edf017cbfde86ada888482e2
[ "Apache-2.0" ]
null
null
null
from .base_page import BasePage from .locators import ProductPageLocators
49.833333
117
0.763497
c16436e269d25cef8488abc134bc5e666d9d98ac
2,863
py
Python
ViyaCasual/CAS/CASTableBase.py
willhaley-bne/ViyaCasual
9c0ca9b05a9602e67c8d56e2f63eba01e1218e42
[ "MIT" ]
null
null
null
ViyaCasual/CAS/CASTableBase.py
willhaley-bne/ViyaCasual
9c0ca9b05a9602e67c8d56e2f63eba01e1218e42
[ "MIT" ]
null
null
null
ViyaCasual/CAS/CASTableBase.py
willhaley-bne/ViyaCasual
9c0ca9b05a9602e67c8d56e2f63eba01e1218e42
[ "MIT" ]
null
null
null
import pandas as pd
28.63
96
0.653161
c164a2131f24d47c407acfa16109127338defe1a
102
py
Python
Beecrowd/Python/ex1060.py
yurifalves/Exercises
a4e84ac76b9432f6c2efdeef6e5e2a093c39882d
[ "MIT" ]
null
null
null
Beecrowd/Python/ex1060.py
yurifalves/Exercises
a4e84ac76b9432f6c2efdeef6e5e2a093c39882d
[ "MIT" ]
null
null
null
Beecrowd/Python/ex1060.py
yurifalves/Exercises
a4e84ac76b9432f6c2efdeef6e5e2a093c39882d
[ "MIT" ]
null
null
null
cont = 0 for i in range(6): if float(input()) >= 0: cont += 1 print(f'{cont} valores positivos')
17
37
0.598039
c164aad97b718794ec2487936b78ec7212cf88c1
1,523
py
Python
Library/operations.py
marcelodaher/ArraySim
f42db96e30acff6f3ce3829dc89a79ef5473b4db
[ "MIT" ]
1
2019-12-06T16:48:10.000Z
2019-12-06T16:48:10.000Z
Library/operations.py
marcelodaher/ArraySim
f42db96e30acff6f3ce3829dc89a79ef5473b4db
[ "MIT" ]
null
null
null
Library/operations.py
marcelodaher/ArraySim
f42db96e30acff6f3ce3829dc89a79ef5473b4db
[ "MIT" ]
null
null
null
# coding=utf-8 import numpy as np def colKRproduct(A,B): ''' columnwise Khatri-Rao product between matrix A and B ''' if A.shape[1] != B.shape[1]: raise TypeError("A and B must have the same number of columns") q = A.shape[1] C = np.zeros([A.shape[0]*B.shape[0],q]) for ...
27.196429
76
0.512147
c1653d9ca159307ad4091c89f53debf9a3453ffc
1,337
py
Python
gtsfm/runner/run_scene_optimizer_olssonloader.py
swershrimpy/gtsfm
8d301eb3ef9172345a1ac1369fd4e19764d28946
[ "Apache-2.0" ]
122
2021-02-07T23:01:58.000Z
2022-03-30T13:10:35.000Z
gtsfm/runner/run_scene_optimizer_olssonloader.py
swershrimpy/gtsfm
8d301eb3ef9172345a1ac1369fd4e19764d28946
[ "Apache-2.0" ]
273
2021-01-30T16:45:26.000Z
2022-03-16T15:02:33.000Z
gtsfm/runner/run_scene_optimizer_olssonloader.py
swershrimpy/gtsfm
8d301eb3ef9172345a1ac1369fd4e19764d28946
[ "Apache-2.0" ]
13
2021-03-12T03:01:27.000Z
2022-03-11T03:16:54.000Z
import argparse import os from pathlib import Path import gtsfm.utils.logger as logger_utils from gtsfm.loader.loader_base import LoaderBase from gtsfm.loader.olsson_loader import OlssonLoader from gtsfm.runner.gtsfm_runner_base import GtsfmRunnerBase DATA_ROOT = Path(__file__).resolve().parent.parent.parent / "test...
31.833333
115
0.729993