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
ea4430c870df5f7cb35f3b4eb8439be6a855324e
770
py
Python
extras/scripts/test-client.py
claudiosv/unisparks
6215faddbc5a656c7f387c3bea811d435b122042
[ "Apache-2.0" ]
null
null
null
extras/scripts/test-client.py
claudiosv/unisparks
6215faddbc5a656c7f387c3bea811d435b122042
[ "Apache-2.0" ]
3
2022-01-26T22:55:56.000Z
2022-02-04T18:41:54.000Z
extras/scripts/test-client.py
claudiosv/unisparks
6215faddbc5a656c7f387c3bea811d435b122042
[ "Apache-2.0" ]
1
2021-10-05T17:42:55.000Z
2021-10-05T17:42:55.000Z
#!/usr/bin/python import socket import sys import time import struct MCADDR = '239.255.223.01' PORT = 0xDF0D s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((MCADDR, PORT)) mreq = struct.pack("4sl", socket.inet_aton(MCADDR), socket.INADDR_ANY) s.sets...
33.478261
157
0.697403
ea49cec9477540e45ca7a41005246f0770863e18
925
py
Python
algorithms/bfs/levelorder.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
10
2020-09-21T22:23:09.000Z
2022-01-25T16:58:44.000Z
algorithms/bfs/levelorder.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
algorithms/bfs/levelorder.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
""" Breadth-First Search - Implemented using queues This can be implemented for both Trees / Graphs Here, we will use Trees as examples. """ from collections import deque
23.717949
54
0.505946
ea4a0594644cef9b0c271ea046c042822efb0f38
1,065
py
Python
setup.py
mariocesar/boot.py
a75098759e91e4fb6be15ccab3745de13840d8d2
[ "MIT" ]
2
2018-02-16T01:26:50.000Z
2021-10-31T09:50:50.000Z
setup.py
mariocesar/boot.py
a75098759e91e4fb6be15ccab3745de13840d8d2
[ "MIT" ]
null
null
null
setup.py
mariocesar/boot.py
a75098759e91e4fb6be15ccab3745de13840d8d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from setuptools import find_packages, setup if sys.version_info < (3, 6): sys.exit('Python 3.6 is the minimum required version') description, long_description = ( open('README.rst', 'rt').read().split('\n\n', 1)) setup( name='boot.py', author='Mario Csar Seoranis Ay...
30.428571
71
0.634742
ea4b5a3f51b0afdbeab25267ee595b2878076d5e
132
py
Python
salesforce_api/models/__init__.py
octopyth/python-salesforce-api
3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d
[ "MIT" ]
25
2019-05-20T06:38:45.000Z
2022-02-22T02:10:37.000Z
salesforce_api/models/__init__.py
octopyth/python-salesforce-api
3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d
[ "MIT" ]
19
2019-07-02T10:12:09.000Z
2022-01-09T23:33:21.000Z
salesforce_api/models/__init__.py
octopyth/python-salesforce-api
3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d
[ "MIT" ]
16
2019-12-04T20:45:16.000Z
2021-12-17T23:29:29.000Z
from . import bulk, deploy, retrieve, tooling __all__ = [ 'bulk', 'deploy', 'retrieve', 'tooling', 'shared' ]
12
45
0.55303
ea4b8753181269244e4522f00e994e35347590a8
5,470
py
Python
radioactivedecay/plots.py
BGameiro2000/radioactivedecay
98a84345b9f15001dd99b177e131cfa17714804d
[ "MIT" ]
16
2020-09-06T13:33:31.000Z
2021-10-17T19:05:45.000Z
radioactivedecay/plots.py
BGameiro2000/radioactivedecay
98a84345b9f15001dd99b177e131cfa17714804d
[ "MIT" ]
14
2020-11-13T18:44:18.000Z
2021-10-08T23:39:43.000Z
radioactivedecay/plots.py
BGameiro2000/radioactivedecay
98a84345b9f15001dd99b177e131cfa17714804d
[ "MIT" ]
5
2021-02-16T03:26:45.000Z
2021-07-20T19:23:04.000Z
""" The plots module defines functions used for creating decay chain diagrams via the Nuclide class ``plot()`` method, and activity decay graphs via the Inventory class ``plot()`` method. """ from typing import List, Set, Optional, Tuple import matplotlib import matplotlib.pyplot as plt import numpy as np # pylint:...
27.766497
93
0.619378
ea4b8a09282f55e57d81cc0d165e7b33f0d9e90a
8,006
py
Python
quests/models.py
donvvo/questr-master
6363ffb4c11ef61f3b6976e75c86a5cbc7f38590
[ "MIT" ]
null
null
null
quests/models.py
donvvo/questr-master
6363ffb4c11ef61f3b6976e75c86a5cbc7f38590
[ "MIT" ]
null
null
null
quests/models.py
donvvo/questr-master
6363ffb4c11ef61f3b6976e75c86a5cbc7f38590
[ "MIT" ]
null
null
null
#All Django Imports from django.core.exceptions import ValidationError from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils import timezone #All local imports (libs, contribs, models) from users.models import * #All external imports (libs, packages) import hashlib i...
29.433824
80
0.635648
ea4b97e6ac91091a8e88abbbe3bf71c11b15a7ef
9,436
py
Python
game/base_game.py
hilearn/ai-game
5eead5964fc9a4481317402374b13109e09f56c2
[ "MIT" ]
null
null
null
game/base_game.py
hilearn/ai-game
5eead5964fc9a4481317402374b13109e09f56c2
[ "MIT" ]
3
2021-10-03T08:46:08.000Z
2021-10-04T18:14:56.000Z
game/base_game.py
hilearn/ai-game
5eead5964fc9a4481317402374b13109e09f56c2
[ "MIT" ]
null
null
null
import time import random from enum import Enum from dataclasses import dataclass from .gameobject import Action, GameObject, Player, Weapon from .map import Cell, Map class Game: FENCE_SIZE = 50 MAX_NUM_TICKS = 2880 # number of ticks till the end of the game
34.312727
78
0.533171
ea4c18689ee08c3f8d8b39e185c87dfd9d7065ed
10,313
py
Python
AgendaContato/lib.py
jooaomarcos/Projeto-Agenda-de-Contato-em-Python
18b4aba4c5b5232951d8861fd67e7562160165c3
[ "MIT" ]
null
null
null
AgendaContato/lib.py
jooaomarcos/Projeto-Agenda-de-Contato-em-Python
18b4aba4c5b5232951d8861fd67e7562160165c3
[ "MIT" ]
null
null
null
AgendaContato/lib.py
jooaomarcos/Projeto-Agenda-de-Contato-em-Python
18b4aba4c5b5232951d8861fd67e7562160165c3
[ "MIT" ]
null
null
null
from banco import con from time import sleep import os # Validao de Valor Inteiro # Validao de String # Cabecalho # Menu Principal # Inserir Contato # Listar Contatos # Consultar Contato # Editar Contato # Deletar Contato
36.441696
283
0.456511
ea4c67653d6bf178d84a235b1ed66aa70ed28be1
519
py
Python
demos/reusable/hello/src/hello/web/tests/test_views.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
17
2020-08-29T18:45:51.000Z
2022-03-02T19:37:13.000Z
demos/reusable/hello/src/hello/web/tests/test_views.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
29
2020-07-18T04:34:03.000Z
2021-07-06T09:42:36.000Z
demos/reusable/hello/src/hello/web/tests/test_views.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
1
2022-03-14T08:41:42.000Z
2022-03-14T08:41:42.000Z
import unittest from app import main from wheezy.http.functional import WSGIClient path_for = main.options["path_for"]
23.590909
63
0.666667
ea4caab7d834c695bbaddfe9cef2659ee71e7d1c
713
py
Python
support/distribute/binbuild/build/make_cert_links.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
131
2015-06-04T09:06:57.000Z
2022-02-01T12:11:29.000Z
support/distribute/binbuild/build/make_cert_links.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
690
2015-10-17T12:18:08.000Z
2022-03-31T16:15:58.000Z
support/distribute/binbuild/build/make_cert_links.py
rieder/amuse
3ac3b6b8f922643657279ddee5c8ab3fc0440d5e
[ "Apache-2.0" ]
102
2015-01-22T10:00:29.000Z
2022-02-09T13:29:43.000Z
import os import os.path import subprocess import sys if __name__ == "__main__": dirname = sys.argv[1] for x in os.listdir(dirname): if x.endswith('.crt'): try: filename = os.path.join(dirname, x) filehash = subprocess.check_output(['openssl', 'x509', '-noout...
33.952381
115
0.530154
ea4cdc13bf9b75390076a5ba97dd800d3216b133
2,525
py
Python
tests/pipeline/nodes/augment/test_contrast.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
1
2021-12-02T05:15:58.000Z
2021-12-02T05:15:58.000Z
tests/pipeline/nodes/augment/test_contrast.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
tests/pipeline/nodes/augment/test_contrast.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 AI Singapore # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
36.071429
81
0.662574
ea4dead28982f46428283499653ee29c5df82988
5,343
py
Python
DeformationLearningSolver/scripts/DLS/core/fnData.py
WebberHuang/DeformationLearningSolver
c58f2c7eb8e4f172948de9acd2b3e6cb39bb8bc2
[ "BSD-3-Clause" ]
160
2015-12-29T15:11:36.000Z
2022-02-22T11:40:11.000Z
DeformationLearningSolver/scripts/DLS/core/fnData.py
wentingwei/DeformationLearningSolver
9c9f42678f2fb1c7a0318527a616b171064130b5
[ "BSD-3-Clause" ]
2
2016-08-05T10:54:31.000Z
2017-09-04T21:34:42.000Z
DeformationLearningSolver/scripts/DLS/core/fnData.py
wentingwei/DeformationLearningSolver
9c9f42678f2fb1c7a0318527a616b171064130b5
[ "BSD-3-Clause" ]
51
2015-12-29T16:03:38.000Z
2022-01-03T15:02:24.000Z
__author__ = "Webber Huang" __contact__ = "xracz.fx@gmail.com" __website__ = "http://riggingtd.com" import maya.cmds as cmds import maya.OpenMaya as om import maya.OpenMayaAnim as oma from DLS.core import utils
32.381818
102
0.546509
ea4f5bbe5c9fe40d0892aa0b04a02c7abbbc8a2d
64
py
Python
src/dump1090exporter/__init__.py
bgulla/dump1090-exporter
147f23451a0607b72a320e2901160f3f747b3a56
[ "MIT" ]
60
2016-10-26T11:11:40.000Z
2022-03-06T14:32:44.000Z
src/dump1090exporter/__init__.py
bgulla/dump1090-exporter
147f23451a0607b72a320e2901160f3f747b3a56
[ "MIT" ]
20
2017-06-14T06:09:17.000Z
2022-03-16T01:20:59.000Z
src/dump1090exporter/__init__.py
bgulla/dump1090-exporter
147f23451a0607b72a320e2901160f3f747b3a56
[ "MIT" ]
14
2017-07-03T19:18:38.000Z
2022-02-04T14:38:54.000Z
from .exporter import Dump1090Exporter __version__ = "21.10.0"
16
38
0.78125
ea4f94dc62eb152286ddb45f21d8cbc92ac2d88f
1,697
py
Python
sample_data/make_sample_data.py
mhernan88/reshape_tools
e08de72629079457f4194a8a14dbb8641b5b0a13
[ "MIT" ]
null
null
null
sample_data/make_sample_data.py
mhernan88/reshape_tools
e08de72629079457f4194a8a14dbb8641b5b0a13
[ "MIT" ]
null
null
null
sample_data/make_sample_data.py
mhernan88/reshape_tools
e08de72629079457f4194a8a14dbb8641b5b0a13
[ "MIT" ]
null
null
null
import pandas as pd from datetime import datetime
37.711111
75
0.5769
ea5034df827000a7c021ce8d10922be02ea67910
70
py
Python
chatrender/celery.py
The-Politico/django-politico-slackchat-renderer
adb3ed2ba5039a97ee7b021d39aa40cab11e5661
[ "MIT" ]
2
2018-07-02T16:49:35.000Z
2018-07-09T03:52:28.000Z
chatrender/celery.py
The-Politico/django-politico-slackchat-renderer
adb3ed2ba5039a97ee7b021d39aa40cab11e5661
[ "MIT" ]
42
2018-02-14T21:28:54.000Z
2022-02-10T18:30:58.000Z
chatrender/celery.py
The-Politico/django-politico-slackchat-renderer
adb3ed2ba5039a97ee7b021d39aa40cab11e5661
[ "MIT" ]
null
null
null
# flake8: noqa from chatrender.tasks.publish import publish_slackchat
23.333333
54
0.842857
ea507ff5ce0b048fae3891ba72d4dee04d5ab84a
5,242
py
Python
disentanglement_lib/methods/unsupervised/unsupervised_train.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/methods/unsupervised/unsupervised_train.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
disentanglement_lib/methods/unsupervised/unsupervised_train.py
erow/disentanglement_lib
c875207fdeadc44880277542447544941bc0bd0a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The DisentanglementLib 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 # # Un...
38.262774
91
0.689432
ea50fbdd5b47c4790c000e6a763c6ba66c891802
763
py
Python
chat/models.py
horsehair/unimate
13fd7336307120ea36ff7eb8a28f6d1966222130
[ "MIT" ]
null
null
null
chat/models.py
horsehair/unimate
13fd7336307120ea36ff7eb8a28f6d1966222130
[ "MIT" ]
null
null
null
chat/models.py
horsehair/unimate
13fd7336307120ea36ff7eb8a28f6d1966222130
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import Model, TextField, DateTimeField, ForeignKey, CASCADE from accounts.models import User from rooms.models import Room # Create your models here.
40.157895
81
0.671035
ea528f46ed31b6469c3c5eda3e10a9823f9f1742
1,088
py
Python
tests/test_replica/test_factory.py
maxipavlovic/django-cqrs
d401819b5bca7c2e833d44e8426251fdd4b6b8b9
[ "Apache-2.0" ]
52
2020-05-28T13:25:36.000Z
2022-03-05T12:31:45.000Z
tests/test_replica/test_factory.py
maxipavlovic/django-cqrs
d401819b5bca7c2e833d44e8426251fdd4b6b8b9
[ "Apache-2.0" ]
26
2020-07-30T08:17:13.000Z
2022-02-18T12:54:38.000Z
tests/test_replica/test_factory.py
maxipavlovic/django-cqrs
d401819b5bca7c2e833d44e8426251fdd4b6b8b9
[ "Apache-2.0" ]
15
2020-05-28T13:25:40.000Z
2022-03-07T04:14:36.000Z
# Copyright 2021 Ingram Micro Inc. All rights reserved. from dj_cqrs.constants import SignalType from dj_cqrs.controller.consumer import route_signal_to_replica_model from dj_cqrs.mixins import ReplicaMixin import pytest
31.085714
74
0.769301
ea52a83735f5ee01c90e086d751f1daff7428111
56,867
py
Python
openff/interchange/components/smirnoff.py
openforcefield/openff-interchange
275bd4146dd2724c5eeb2b52d3177b53371edb7c
[ "MIT" ]
10
2021-06-17T20:10:53.000Z
2022-02-24T15:43:25.000Z
openff/interchange/components/smirnoff.py
openforcefield/openff-interchange
275bd4146dd2724c5eeb2b52d3177b53371edb7c
[ "MIT" ]
198
2021-06-11T19:49:08.000Z
2022-03-31T13:33:12.000Z
openff/interchange/components/smirnoff.py
openforcefield/openff-interchange
275bd4146dd2724c5eeb2b52d3177b53371edb7c
[ "MIT" ]
7
2021-06-18T18:17:32.000Z
2022-01-25T18:40:52.000Z
"""Models and utilities for processing SMIRNOFF data.""" import abc import copy import functools from collections import defaultdict from typing import ( TYPE_CHECKING, Any, DefaultDict, Dict, List, Tuple, Type, TypeVar, Union, ) import numpy as np from openff.toolkit.topology impor...
37.760292
112
0.60441
ea52d5083a4473548f4cfa6f4f7011c183c68791
15,926
py
Python
homeworks/HW5/task1_tkinter_sympy.py
vzavadskyi/made-robotics
5bd913bcf26f5a35ee42348e636b7f8fde5d35f8
[ "Apache-2.0" ]
null
null
null
homeworks/HW5/task1_tkinter_sympy.py
vzavadskyi/made-robotics
5bd913bcf26f5a35ee42348e636b7f8fde5d35f8
[ "Apache-2.0" ]
null
null
null
homeworks/HW5/task1_tkinter_sympy.py
vzavadskyi/made-robotics
5bd913bcf26f5a35ee42348e636b7f8fde5d35f8
[ "Apache-2.0" ]
null
null
null
from tkinter import * import math import heapq from sympy import Point, Polygon # from shapely.geometry import Point, Polygon '''================= Your classes and methods =================''' ids = [] path_list = [] if __name__ == "__main__": run = Window() run.run()
33.599156
133
0.545649
ea52ff82a564cab19ee80cfe0f0d2458594e285e
6,035
py
Python
net/views/enhance.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
1
2020-03-06T05:15:07.000Z
2020-03-06T05:15:07.000Z
net/views/enhance.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
null
null
null
net/views/enhance.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import pylab as plt import numpy as np from django.http import HttpResponse, HttpResponseRedirect, HttpResponseBadRequest, QueryDict from django.shortcuts import render_to_response, get_object_or_404, redirect, render from django.template import Context, RequestContext, loader fr...
31.432292
93
0.565866
ea53a2f6728326b1b36786fedcd4897662372db2
1,636
py
Python
libpycr/editor.py
JcDelay/pycr
f729e003473b421b76bc49c5d55d06d7086d63cc
[ "Apache-2.0" ]
1
2015-03-12T10:34:38.000Z
2015-03-12T10:34:38.000Z
libpycr/editor.py
JcDelay/pycr
f729e003473b421b76bc49c5d55d06d7086d63cc
[ "Apache-2.0" ]
null
null
null
libpycr/editor.py
JcDelay/pycr
f729e003473b421b76bc49c5d55d06d7086d63cc
[ "Apache-2.0" ]
null
null
null
"""This module provides convenient use of EDITOR""" import os import subprocess import tempfile from libpycr.config import Config def get_editor(): """Return the user's editor, or vi if not defined :rtype: str """ return os.environ.get('EDITOR') or os.environ.get('VISUAL') or 'vi' def strip_comm...
25.5625
79
0.654034
ea53fd441fd38a9c7b9db7db2a21779711dfe5a5
195
py
Python
xin-era/foundation/segment_tree/main.py
fan-weiwei/algo-prep
56514630cfe58d451dd126897459cca81bf1b2af
[ "Apache-2.0" ]
null
null
null
xin-era/foundation/segment_tree/main.py
fan-weiwei/algo-prep
56514630cfe58d451dd126897459cca81bf1b2af
[ "Apache-2.0" ]
null
null
null
xin-era/foundation/segment_tree/main.py
fan-weiwei/algo-prep
56514630cfe58d451dd126897459cca81bf1b2af
[ "Apache-2.0" ]
null
null
null
# Goal: # # Find the sums of subsections of an array # Change an element of the array and don't recalculate everything if __name__ == '__main__': arr = [1,2,3,4,5] print('here')
15
65
0.641026
ea540d35be6aa8bb6a870342c44c751f5089211c
2,658
py
Python
Python/visualization.py
richieliuse/SegmentationCNN
12aaeff53d01f7c2ddd1f27489283b3062bb1d4a
[ "MIT" ]
54
2016-11-19T02:12:04.000Z
2022-02-24T14:26:41.000Z
Python/visualization.py
richieliuse/SegmentationCNN
12aaeff53d01f7c2ddd1f27489283b3062bb1d4a
[ "MIT" ]
7
2019-05-01T10:51:36.000Z
2022-02-10T04:24:54.000Z
Python/visualization.py
richieliuse/SegmentationCNN
12aaeff53d01f7c2ddd1f27489283b3062bb1d4a
[ "MIT" ]
13
2016-08-06T00:15:55.000Z
2021-12-26T20:20:35.000Z
# encoding: utf-8 """ Visualization functions for features and predictions. Copyright 2016 Matthias Leimeister """ import numpy as np from feature_extraction import load_raw_features from evaluation import post_processing import matplotlib.pyplot as plt import pickle def visualize_predictions(): """ ...
25.805825
110
0.648232
ea546f15a82d98847008f1b61316d71d6a4f99fe
7,468
py
Python
python/edgeauth/token_builder.py
ian-ross/EdgeAuth
f00fcd5287dafbe350ac6ac97d7d073dec6278de
[ "Apache-2.0" ]
3
2020-07-27T07:08:42.000Z
2021-11-07T20:02:03.000Z
python/edgeauth/token_builder.py
ian-ross/EdgeAuth
f00fcd5287dafbe350ac6ac97d7d073dec6278de
[ "Apache-2.0" ]
2
2021-04-12T18:34:38.000Z
2021-04-29T15:17:11.000Z
python/edgeauth/token_builder.py
ian-ross/EdgeAuth
f00fcd5287dafbe350ac6ac97d7d073dec6278de
[ "Apache-2.0" ]
7
2020-01-17T09:54:34.000Z
2021-11-11T17:16:52.000Z
from time import time from datetime import datetime from .digest_tokens import DigestTokens
28.287879
98
0.604847
ea55fb37f7d90d99122deeb02d480c900db16d68
343
py
Python
myhood/migrations/0010_remove_neighborhood_occupants_count.py
kiptoo-rotich/neighborhood
54974922dbd52e83ccfc6ab8c5cf5e3b258211fb
[ "MIT" ]
null
null
null
myhood/migrations/0010_remove_neighborhood_occupants_count.py
kiptoo-rotich/neighborhood
54974922dbd52e83ccfc6ab8c5cf5e3b258211fb
[ "MIT" ]
null
null
null
myhood/migrations/0010_remove_neighborhood_occupants_count.py
kiptoo-rotich/neighborhood
54974922dbd52e83ccfc6ab8c5cf5e3b258211fb
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-26 18:46 from django.db import migrations
19.055556
47
0.609329
ea584960cfdef9e2884e44f505e9d436fd02c8f8
954
py
Python
modules/blog.py
rdelfin/personal-site
cb89a9b9fe4d2c522e18d953c5a26e28219066e8
[ "MIT" ]
null
null
null
modules/blog.py
rdelfin/personal-site
cb89a9b9fe4d2c522e18d953c5a26e28219066e8
[ "MIT" ]
null
null
null
modules/blog.py
rdelfin/personal-site
cb89a9b9fe4d2c522e18d953c5a26e28219066e8
[ "MIT" ]
null
null
null
from flask import Blueprint, Response, abort, render_template from utils import blog as blog_utils from utils import tags as tag_utils bp = Blueprint("blog", __name__)
28.909091
88
0.708595
ea588a3617cbc016fb5719414b03fb8f8e82c488
3,208
py
Python
autolint/runners.py
fmontoto/autolint
25430e5b654d69c14d80f66d1297dc7a7ade9f79
[ "MIT" ]
null
null
null
autolint/runners.py
fmontoto/autolint
25430e5b654d69c14d80f66d1297dc7a7ade9f79
[ "MIT" ]
null
null
null
autolint/runners.py
fmontoto/autolint
25430e5b654d69c14d80f66d1297dc7a7ade9f79
[ "MIT" ]
null
null
null
import collections import subprocess
32.734694
80
0.569202
ea5ac3ac50c918deeb7f8f4138b0c8ba4507a1ff
138
py
Python
app/recipe/models.py
shivam230697/recipe-api
3b614a591577b75d48eb2d9d458ddd3abd81644c
[ "MIT" ]
null
null
null
app/recipe/models.py
shivam230697/recipe-api
3b614a591577b75d48eb2d9d458ddd3abd81644c
[ "MIT" ]
null
null
null
app/recipe/models.py
shivam230697/recipe-api
3b614a591577b75d48eb2d9d458ddd3abd81644c
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
17.25
47
0.76087
ea5bc5156458545268e929502e53f862acdfcdb2
590
py
Python
133. Clone Graph.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
4
2020-11-17T05:24:24.000Z
2021-06-14T21:01:45.000Z
133. Clone Graph.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
133. Clone Graph.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
""" # Definition for a Node. class Node: def __init__(self, val = 0, neighbors = None): self.val = val self.neighbors = neighbors if neighbors is not None else [] """
25.652174
67
0.549153
ea5bdaa1291c21dac6e42524e3e0a66e0bdee80e
1,580
py
Python
pythonidbot/error/__init__.py
hexatester/pythonidbot
39964a340dca90dd64e3cd45d0513d5ae0be3986
[ "MIT" ]
1
2021-02-01T15:19:25.000Z
2021-02-01T15:19:25.000Z
bot/error/__init__.py
hexatester/ptb-skeleton
f6f8b3b0dd814e223a8650a70a6749b6f208a225
[ "MIT" ]
null
null
null
bot/error/__init__.py
hexatester/ptb-skeleton
f6f8b3b0dd814e223a8650a70a6749b6f208a225
[ "MIT" ]
null
null
null
import logging from telegram.error import ( TelegramError, Unauthorized, BadRequest, TimedOut, ChatMigrated, NetworkError, ) from .badrequest import badrequest from .chatmigrated import chatmigrated from .networkerror import networkerror from .telegramerror import telegramerror from .timedout im...
29.811321
88
0.703797
ea5c2b0dc4b47d7f49ad8aff5279a05c1976c300
2,590
py
Python
numpyro/examples/runge_kutta.py
ahmadsalim/numpyro
015c80ddd24cf6bc89006fc3a70b424fecd09331
[ "Apache-2.0" ]
3
2020-08-25T14:31:08.000Z
2020-08-26T02:23:08.000Z
numpyro/examples/runge_kutta.py
ahmadsalim/numpyro
015c80ddd24cf6bc89006fc3a70b424fecd09331
[ "Apache-2.0" ]
null
null
null
numpyro/examples/runge_kutta.py
ahmadsalim/numpyro
015c80ddd24cf6bc89006fc3a70b424fecd09331
[ "Apache-2.0" ]
1
2020-09-11T10:08:27.000Z
2020-09-11T10:08:27.000Z
import functools from typing import Callable, TypeVar import jax import jax.numpy as jnp KwArg = TypeVar('KwArg')
37.536232
114
0.563707
ea5ce034937183164e81a955f75fc682707059c6
131
py
Python
python-opencv/blog2-pixel/demo7.py
meteor1993/python-learning
4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40
[ "MIT" ]
83
2019-10-15T06:54:06.000Z
2022-03-28T14:08:21.000Z
python-opencv/blog2-pixel/demo7.py
wenxuefeng3930/python-learning
4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40
[ "MIT" ]
1
2020-04-16T08:13:19.000Z
2020-07-14T01:52:46.000Z
python-opencv/blog2-pixel/demo7.py
wenxuefeng3930/python-learning
4ee574c9360caf6e63bb6ee2ef31fa6a9918fa40
[ "MIT" ]
74
2019-11-02T08:10:36.000Z
2022-02-19T12:23:36.000Z
import cv2 as cv from matplotlib import pyplot as plt img=cv.imread('maliao.jpg', cv.IMREAD_COLOR) plt.imshow(img) plt.show()
21.833333
45
0.740458
ea5d2e688d4dea54f8e149ad7683f67e025d7b0f
1,713
py
Python
editaveis/prototipos/protoLevenshtein.py
Ziul/tcc1
97dc2b9afcd6736aa8158066b95a698301629543
[ "CC-BY-3.0" ]
null
null
null
editaveis/prototipos/protoLevenshtein.py
Ziul/tcc1
97dc2b9afcd6736aa8158066b95a698301629543
[ "CC-BY-3.0" ]
2
2015-11-21T02:30:20.000Z
2015-11-21T02:30:35.000Z
editaveis/prototipos/protoLevenshtein.py
Ziul/tcc1
97dc2b9afcd6736aa8158066b95a698301629543
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Code to rank packages from a search in APT using Levenshtein """ from apt import Cache from Levenshtein import ratio from exact import Pack, _parser from multiprocessing.pool import ThreadPool as Pool _MAX_PEERS = 20 if __name__ == '__main__': (_options, _args) = _parser.parse_a...
27.190476
69
0.590776
ea5d44be711e561c7884cf746acc4f8a140b0e15
4,991
py
Python
inpystem/tools/matlab_interface.py
etienne-monier/inpystem
7914008374d0eb32362c447052de1af2b1ea9fa9
[ "MIT" ]
2
2020-04-29T21:45:58.000Z
2020-06-12T04:39:18.000Z
inpystem/tools/matlab_interface.py
etienne-monier/inpystem
7914008374d0eb32362c447052de1af2b1ea9fa9
[ "MIT" ]
8
2021-04-20T19:19:52.000Z
2022-03-12T00:12:00.000Z
inpystem/tools/matlab_interface.py
etienne-monier/inpystem
7914008374d0eb32362c447052de1af2b1ea9fa9
[ "MIT" ]
1
2020-10-02T20:54:05.000Z
2020-10-02T20:54:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This module defines an interface to run matlab codes from python. """ import os import time import sys import logging import pathlib import numpy as np import scipy.io as sio _logger = logging.getLogger(__name__) def matlab_interface(program, dataDico): """Int...
29.532544
80
0.601082
ea5d9376e7e61ab783150c786ab9ecc5e0df5125
4,719
py
Python
binho/commands/binho_adc.py
binhollc/binho-python-package
21ea73b03755c4205e93525ed24b4becba23c93e
[ "BSD-3-Clause" ]
4
2021-03-11T12:40:27.000Z
2022-02-01T10:08:20.000Z
binho/commands/binho_adc.py
binhollc/binho-python-package
21ea73b03755c4205e93525ed24b4becba23c93e
[ "BSD-3-Clause" ]
1
2021-11-26T10:20:18.000Z
2021-11-30T14:25:56.000Z
binho/commands/binho_adc.py
binhollc/binho-python-package
21ea73b03755c4205e93525ed24b4becba23c93e
[ "BSD-3-Clause" ]
2
2021-02-28T00:39:39.000Z
2021-04-05T12:45:56.000Z
#!/usr/bin/env python3 from __future__ import print_function import sys import errno import statistics import serial from binho.utils import log_silent, log_verbose, binhoArgumentParser from binho.errors import DeviceNotFoundError, CapabilityError if __name__ == "__main__": main()
32.321918
120
0.546726
ea5e0c05fc5fd1bd126ce33ac9399b17f9572400
6,349
py
Python
server/app/models.py
ju1115kr/hash-brown
93c5e636404608c7cba889cc9f9e0f3d3d0723b2
[ "Apache-2.0" ]
4
2018-06-27T10:28:54.000Z
2020-03-15T10:44:37.000Z
server/app/models.py
ju1115kr/hash-brown
93c5e636404608c7cba889cc9f9e0f3d3d0723b2
[ "Apache-2.0" ]
9
2018-06-27T10:29:37.000Z
2021-12-13T19:48:39.000Z
server/app/models.py
ju1115kr/hash-brown
93c5e636404608c7cba889cc9f9e0f3d3d0723b2
[ "Apache-2.0" ]
2
2018-07-04T16:54:20.000Z
2018-07-04T16:58:36.000Z
# -*- coding: utf-8 -*- from flask import url_for, current_app, g from werkzeug import secure_filename from werkzeug.security import generate_password_hash, check_password_hash from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from . import db from app.exceptions import ValidationError from datetim...
35.272222
93
0.599779
ea5f3e26198b37258a038046ed6c084a792a8485
1,098
py
Python
PlotGenGain_PathsOfSelection_TBV.py
janaobsteter/Genotype_CODES
8adf70660ebff4dd106c666db02cdba8b8ce4f97
[ "Apache-2.0" ]
1
2021-10-07T18:55:03.000Z
2021-10-07T18:55:03.000Z
PlotGenGain_PathsOfSelection_TBV.py
janaobsteter/Genotype_CODES
8adf70660ebff4dd106c666db02cdba8b8ce4f97
[ "Apache-2.0" ]
null
null
null
PlotGenGain_PathsOfSelection_TBV.py
janaobsteter/Genotype_CODES
8adf70660ebff4dd106c666db02cdba8b8ce4f97
[ "Apache-2.0" ]
1
2017-04-13T09:07:41.000Z
2017-04-13T09:07:41.000Z
import pandas as pd import sys import numpy as np import matplotlib.pyplot as plt T = pd.read_csv('GenTrends_cat.csv') T.index = T.cat T = T.drop('cat', axis=1) tT = np.transpose(T) tT.loc[:,'Cycle'] = [i.strip('_vars').strip('_mean') for i in list(tT.index)] tT_mean = tT.ix[0::2,:] tT_var = tT.ix[1::2,:] cats = [i ...
28.894737
111
0.675774
ea5f6a8299056823901669f8b2e31fd53aa748a1
1,094
py
Python
web_info.py
B4t33n/web_info
a0f8d5be160c96e6e949140a7e3c8982bfce4ab5
[ "Apache-2.0" ]
1
2021-05-16T13:29:17.000Z
2021-05-16T13:29:17.000Z
web_info.py
B4t33n/web_info
a0f8d5be160c96e6e949140a7e3c8982bfce4ab5
[ "Apache-2.0" ]
null
null
null
web_info.py
B4t33n/web_info
a0f8d5be160c96e6e949140a7e3c8982bfce4ab5
[ "Apache-2.0" ]
null
null
null
print("\033[92m") import os import urllib2 import sys print("---------------------------------------------") os.system("figlet web info") print("----------------------------------------------") print("\033[91m") print("#############################################") print(" Coded by B4t33n ...
23.782609
60
0.399452
ea61b0a3ba0b11abd7ed94000c53187e3c4b4ffc
109
py
Python
viper_dev.py
safinsingh/viper
f7fa9182713c4f0fbb33c2e881f668b807fd3956
[ "MIT" ]
null
null
null
viper_dev.py
safinsingh/viper
f7fa9182713c4f0fbb33c2e881f668b807fd3956
[ "MIT" ]
null
null
null
viper_dev.py
safinsingh/viper
f7fa9182713c4f0fbb33c2e881f668b807fd3956
[ "MIT" ]
null
null
null
from viper import * import inspect
18.166667
35
0.724771
ea631526ede5cfa72720ca402cc33b3e8ab33c52
925
py
Python
cride/utils/models.py
jpablocardona/platzi-django-advance
591fbfbb318ba235933544e585a6866ede829d63
[ "MIT" ]
null
null
null
cride/utils/models.py
jpablocardona/platzi-django-advance
591fbfbb318ba235933544e585a6866ede829d63
[ "MIT" ]
6
2020-06-06T01:34:33.000Z
2022-03-12T00:21:34.000Z
cride/utils/models.py
jpablocardona/platzi-django-advance
591fbfbb318ba235933544e585a6866ede829d63
[ "MIT" ]
null
null
null
""" django models utilities""" from django.db import models
26.428571
80
0.646486
ea63c3548941af69f71d32ce6f27172728ac718b
1,811
py
Python
lambda/VisitorsDynamoDBClient.py
kyhau/hello-visitor
6c0c6685c1c2a7226f00a87e8858d9e0a2f01699
[ "Unlicense" ]
null
null
null
lambda/VisitorsDynamoDBClient.py
kyhau/hello-visitor
6c0c6685c1c2a7226f00a87e8858d9e0a2f01699
[ "Unlicense" ]
null
null
null
lambda/VisitorsDynamoDBClient.py
kyhau/hello-visitor
6c0c6685c1c2a7226f00a87e8858d9e0a2f01699
[ "Unlicense" ]
1
2017-08-24T06:14:22.000Z
2017-08-24T06:14:22.000Z
import boto3 import json import uuid from datetime import datetime import logging # Update the root logger to get messages at DEBUG and above logging.getLogger().setLevel(logging.DEBUG) logging.getLogger("botocore").setLevel(logging.CRITICAL) logging.getLogger("boto3").setLevel(logging.CRITICAL) logging.getLogger("url...
35.509804
139
0.651022
ea65ee07c7aea0580031cc966706784863780580
2,735
py
Python
merge.py
marcelbrueckner/merge-intervals
d8f6329f12bfe6ec48180ba215f40214f476f654
[ "MIT" ]
null
null
null
merge.py
marcelbrueckner/merge-intervals
d8f6329f12bfe6ec48180ba215f40214f476f654
[ "MIT" ]
null
null
null
merge.py
marcelbrueckner/merge-intervals
d8f6329f12bfe6ec48180ba215f40214f476f654
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from argparse import ArgumentParser, ArgumentError import re, sys # Define a custom argument type `interval_int` to properly parse arguments # https://docs.python.org/3/library/argparse.html#type def interval_int(arg): """ Validate given interval and return as list """ pattern ...
36.959459
122
0.669835
ea668e4c3f0055d09aecf153fc4a7af6e486eded
388
py
Python
factor_vae/types.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
factor_vae/types.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
factor_vae/types.py
kiwi0fruit/jats-semi-supervised-pytorch
67e9bb85f09f8ef02e17e495784d1d9a71c3adec
[ "MIT" ]
null
null
null
from typing import Tuple from abc import abstractmethod from torch import Tensor from torch.nn import Module
27.714286
94
0.729381
ea6700a25cf2ed6741438c3d34e31d11883d00c5
1,484
py
Python
day6/main.py
urosZoretic/adventofcode2021
aa55b9ba9d07ef70ad2ecfd0b72b14329e7685ba
[ "Apache-2.0" ]
null
null
null
day6/main.py
urosZoretic/adventofcode2021
aa55b9ba9d07ef70ad2ecfd0b72b14329e7685ba
[ "Apache-2.0" ]
null
null
null
day6/main.py
urosZoretic/adventofcode2021
aa55b9ba9d07ef70ad2ecfd0b72b14329e7685ba
[ "Apache-2.0" ]
null
null
null
inputFile = "day6/day6_1_input.txt" # https://adventofcode.com/2021/day/6 if __name__ == '__main__': print("Lanternfish") with open(inputFile, "r") as f: fishArray = [int(num) for num in f.read().strip().split(",")] # for part2... not needed to read array again from file origFishArray = fishA...
31.574468
102
0.58558
ea68b376b16e104101a6c8ebb4b9a9fa6ab801a5
7,915
py
Python
datasets/Voc_Dataset.py
DLsnowman/Deeplab-v3plus
f7001f669c91aac02ff4e9c39e53037ad863979d
[ "MIT" ]
333
2018-10-31T03:19:26.000Z
2022-03-15T07:31:13.000Z
datasets/Voc_Dataset.py
mqchen1993/Deeplab-v3plus
886041c2099a069bf4b667b981b650be7931be73
[ "MIT" ]
19
2018-10-31T06:37:25.000Z
2022-01-13T00:56:31.000Z
datasets/Voc_Dataset.py
mqchen1993/Deeplab-v3plus
886041c2099a069bf4b667b981b650be7931be73
[ "MIT" ]
68
2018-10-31T03:51:25.000Z
2022-03-30T04:58:55.000Z
# -*- coding: utf-8 -*- # @Time : 2018/9/21 17:21 # @Author : HLin # @Email : linhua2017@ia.ac.cn # @File : Voc_Dataset.py # @Software: PyCharm import PIL import random import scipy.io from PIL import Image, ImageOps, ImageFilter import numpy as np import cv2 import os import torch import torch.utils.data as ...
36.643519
118
0.552622
ea6a9e7274c58c8850478174965f8dcd501745fd
2,341
py
Python
tool/grid.py
David-Loibl/gistemp
4b96696243cbbb425c7b27fed35398e0fef9968d
[ "BSD-3-Clause" ]
1
2020-02-04T13:16:05.000Z
2020-02-04T13:16:05.000Z
tool/grid.py
David-Loibl/gistemp4.0
4b96696243cbbb425c7b27fed35398e0fef9968d
[ "BSD-3-Clause" ]
null
null
null
tool/grid.py
David-Loibl/gistemp4.0
4b96696243cbbb425c7b27fed35398e0fef9968d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/local/bin/python3.4 # # Avi Persin, Revision 2016-01-06 # grid.py """ grid YYYY-MM [v2-file] Display gridded anomalies as SVG file. """ # Regular expression used to match/validate the "when" argument. RE_WHEN = r'(\d{4})-(\d{2})' def map(when, inp, out): """Take a cccgistemp subbox file in V2 mean form...
23.41
77
0.547202
ea6aca3a1ab763492e5a9e482d9cc0174a64d165
1,460
py
Python
nlu_flow/retrieval/faq_answer_retrieval/inferencer.py
cheesama/nlflow
5c504fc4bfc5aa0ca3892af7b01b2eb46f5edfbb
[ "Apache-2.0" ]
1
2022-03-22T23:01:33.000Z
2022-03-22T23:01:33.000Z
nlu_flow/retrieval/faq_answer_retrieval/inferencer.py
cheesama/nlu_flow
5c504fc4bfc5aa0ca3892af7b01b2eb46f5edfbb
[ "Apache-2.0" ]
null
null
null
nlu_flow/retrieval/faq_answer_retrieval/inferencer.py
cheesama/nlu_flow
5c504fc4bfc5aa0ca3892af7b01b2eb46f5edfbb
[ "Apache-2.0" ]
null
null
null
from fastapi import FastAPI from transformers import ElectraModel, ElectraTokenizer from koelectra_fine_tuner import KoelectraQAFineTuner from nlu_flow.preprocessor.text_preprocessor import normalize import torch import faiss import dill app = FastAPI() is_ready = False #load chitchat_retrieval_model model = None...
26.545455
126
0.761644
ea6ace3dbcf73350bee9a00aa55e54d97dc8b537
930
py
Python
Processing_api.py
enpmo/first-personal-work
23c64cd11405256af50e9b2e930f580b4d918e9b
[ "Apache-2.0" ]
null
null
null
Processing_api.py
enpmo/first-personal-work
23c64cd11405256af50e9b2e930f580b4d918e9b
[ "Apache-2.0" ]
null
null
null
Processing_api.py
enpmo/first-personal-work
23c64cd11405256af50e9b2e930f580b4d918e9b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[8]: import requests import re import time import json url = 'https://api.yonyoucloud.com/apis/dst/ncov/wholeworld' html = get_one_page(url) print(html) # In[15]: import json b = json.dumps(html) f2 = open('json2.json', 'w',encoding='utf-8') f2.write(b) f2.close() # ...
17.54717
113
0.648387
ea6d08e4b75d46d8c207e5f66fc96bf1e79be92d
2,434
py
Python
docs/index_functions.py
guyms/pyansys
7a9182a7c44098d9b99a0d1eb2fd183b7256ac01
[ "MIT" ]
null
null
null
docs/index_functions.py
guyms/pyansys
7a9182a7c44098d9b99a0d1eb2fd183b7256ac01
[ "MIT" ]
null
null
null
docs/index_functions.py
guyms/pyansys
7a9182a7c44098d9b99a0d1eb2fd183b7256ac01
[ "MIT" ]
null
null
null
#============================================================================== # load a beam and write it #============================================================================== import pyansys from pyansys import examples # Sample *.cdb filename = examples.hexarchivefile # Read ansys archive file archive = p...
26.747253
79
0.595727
ea6ff3d5fd97a9be844e9c0c6ad45a5997b57e35
5,401
py
Python
PAST3/o.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
1
2021-03-09T04:28:13.000Z
2021-03-09T04:28:13.000Z
PAST3/o.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
PAST3/o.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
# included from libs/mincostflow.py """ Min Cost Flow """ # derived: https://atcoder.jp/contests/practice2/submissions/16726003 from heapq import heappush, heappop # end of libs/mincostflow.py # included from snippets/main.py def debug(*x, msg=""): import sys print(msg, *x, file=sys.stderr) def solve(...
24.004444
75
0.478245
ea7173b82ff50e9cc6614bf2f1132029d50e0907
1,512
py
Python
reo/migrations/0112_auto_20210713_0037.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
7
2022-01-29T12:10:10.000Z
2022-03-28T13:45:20.000Z
reo/migrations/0112_auto_20210713_0037.py
NREL/reopt_api
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
12
2022-02-01T18:23:18.000Z
2022-03-31T17:22:17.000Z
reo/migrations/0112_auto_20210713_0037.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
3
2022-02-08T19:44:40.000Z
2022-03-12T11:05:36.000Z
# Generated by Django 3.1.12 on 2021-07-13 00:37 from django.db import migrations
34.363636
75
0.65873
ea7787caeef8cdf78dfed953bd54966edcd2ae6e
150
py
Python
deepstreampy/constants/call_state.py
sapid/deepstreampy-twisted
78025141bb0ac3aadc248d68f9273bf8993fc3d4
[ "MIT" ]
null
null
null
deepstreampy/constants/call_state.py
sapid/deepstreampy-twisted
78025141bb0ac3aadc248d68f9273bf8993fc3d4
[ "MIT" ]
null
null
null
deepstreampy/constants/call_state.py
sapid/deepstreampy-twisted
78025141bb0ac3aadc248d68f9273bf8993fc3d4
[ "MIT" ]
null
null
null
INITIAL = 'INITIAL' CONNECTING = 'CONNECTING' ESTABLISHED = 'ESTABLISHED' ACCEPTED = 'ACCEPTED' DECLINED = 'DECLINED' ENDED = 'ENDED' ERROR = 'ERROR'
18.75
27
0.72
ea778e1c5be8fff0511c1fa6bd9148f44fac726e
901
py
Python
data/ZLData.py
sharmavins23/Zhongli-Artifact-and-Weapon-Calcs
3254ca25238604865f34ac7084c10202db5713e0
[ "MIT" ]
null
null
null
data/ZLData.py
sharmavins23/Zhongli-Artifact-and-Weapon-Calcs
3254ca25238604865f34ac7084c10202db5713e0
[ "MIT" ]
null
null
null
data/ZLData.py
sharmavins23/Zhongli-Artifact-and-Weapon-Calcs
3254ca25238604865f34ac7084c10202db5713e0
[ "MIT" ]
null
null
null
# Static data class for character stats
24.351351
77
0.556049
ea78ba9051ae04427d4f22dd53746203619b8ac9
369
py
Python
app/__init__.py
abhishtagatya/pandubot
ec0f20b31fc61b5581753711d774213bbf70d438
[ "MIT" ]
1
2018-08-29T12:03:06.000Z
2018-08-29T12:03:06.000Z
app/__init__.py
abhishtagatya/pandubot
ec0f20b31fc61b5581753711d774213bbf70d438
[ "MIT" ]
null
null
null
app/__init__.py
abhishtagatya/pandubot
ec0f20b31fc61b5581753711d774213bbf70d438
[ "MIT" ]
null
null
null
import os import sys from instance.config import DATABASE_URI from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_compress import Compress app = Flask(__name__) Compress(app) app.config['SQLALCHEMY_DATABASE_URI'] = DATABASE_URI app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlche...
20.5
52
0.821138
ea79a3dbc9f8a91f2ad34706bc154dae9826035f
302
py
Python
docker/app/app/backend/apps/_archive/accounts_new/profiles/serializers.py
JTarball/tetherbox
cae7a4bb6e29da0f34670f8c8d228faf5f909f3a
[ "0BSD" ]
1
2018-02-26T07:26:30.000Z
2018-02-26T07:26:30.000Z
docker/app/app/backend/apps/_archive/accounts_new/profiles/serializers.py
JTarball/docker-django-polymer-starter-kit
b5250030b1646e29567c15d01ba4668c6ad535c9
[ "0BSD" ]
null
null
null
docker/app/app/backend/apps/_archive/accounts_new/profiles/serializers.py
JTarball/docker-django-polymer-starter-kit
b5250030b1646e29567c15d01ba4668c6ad535c9
[ "0BSD" ]
null
null
null
""" accounts.profile.serializers ============================ Serializers file for a basic Accounts App """ from rest_framework import serializers from .models import AccountsUser
17.764706
58
0.672185
ea79a9740f615953bdb03c857f3a9afc44c42c3d
20,551
py
Python
src/ops.py
Elite-Volumetric-Capture-Sqad/DDRNet
10340d1bff26c41e429562d8ff42fc15afd9e3d5
[ "MIT" ]
128
2018-07-28T13:02:43.000Z
2022-03-03T11:59:49.000Z
src/ops.py
Elite-Volumetric-Capture-Sqad/DDRNet
10340d1bff26c41e429562d8ff42fc15afd9e3d5
[ "MIT" ]
3
2018-08-31T15:07:26.000Z
2019-04-10T13:12:57.000Z
src/ops.py
Elite-Volumetric-Capture-Sqad/DDRNet
10340d1bff26c41e429562d8ff42fc15afd9e3d5
[ "MIT" ]
20
2018-08-21T12:32:18.000Z
2022-02-08T07:58:01.000Z
import numpy as np import sys import tensorflow as tf slim = tf.contrib.slim def depth_to_normals_tf(depth, intrinsics, scope=None, eps=1e-4): """ :param depth: real depth (B,1,H,W) :param intrinsics: (B,4) :return: normals (B,3,H,W) """ with tf.name_scope(scope, 'depth_to_normals_tf', [d...
46.920091
124
0.617586
ea7a9655fe05af9a10f1098bf7c17031501e094a
829
py
Python
tests/fractalmusic/test_fm_split.py
alexgorji/musurgia
81d37afbf1ac70348002a93299db228b5ed4a591
[ "MIT" ]
null
null
null
tests/fractalmusic/test_fm_split.py
alexgorji/musurgia
81d37afbf1ac70348002a93299db228b5ed4a591
[ "MIT" ]
45
2020-02-24T19:37:00.000Z
2021-04-06T16:13:56.000Z
tests/fractalmusic/test_fm_split.py
alexgorji/musurgia
81d37afbf1ac70348002a93299db228b5ed4a591
[ "MIT" ]
null
null
null
import os from musicscore.musictree.treescoretimewise import TreeScoreTimewise from musurgia.unittest import TestCase from musurgia.fractaltree.fractalmusic import FractalMusic path = str(os.path.abspath(__file__).split('.')[0])
27.633333
68
0.670688
ea7b1fb5e109895783f00bbbc89f3c2e5c72c142
96
py
Python
docs/p3/setup.py
khchine5/atelier
25a287595d35b14f7eaa8379636b7538e1c4314f
[ "BSD-2-Clause" ]
1
2018-09-20T12:49:51.000Z
2018-09-20T12:49:51.000Z
docs/p3/setup.py
khchine5/atelier
25a287595d35b14f7eaa8379636b7538e1c4314f
[ "BSD-2-Clause" ]
2
2016-01-12T20:07:51.000Z
2016-01-13T22:55:19.000Z
docs/p3/setup.py
khchine5/atelier
25a287595d35b14f7eaa8379636b7538e1c4314f
[ "BSD-2-Clause" ]
2
2016-10-12T16:13:16.000Z
2021-02-28T07:15:59.000Z
from setuptools import setup if __name__ == '__main__': setup(name='foo', version='1.0.0')
19.2
38
0.677083
ea7b6fc02919fcb3d751ed35c29312f28ec2bea8
8,324
py
Python
ParaMol/Objective_function/Properties/regularization.py
mnagaku/ParaMol
13529f584e2d50076e038388ecbdd57af23c73b9
[ "MIT" ]
15
2021-03-08T17:56:36.000Z
2022-03-30T01:46:29.000Z
ParaMol/Objective_function/Properties/regularization.py
mnagaku/ParaMol
13529f584e2d50076e038388ecbdd57af23c73b9
[ "MIT" ]
7
2021-03-28T05:53:59.000Z
2021-10-15T15:37:56.000Z
ParaMol/Objective_function/Properties/regularization.py
mnagaku/ParaMol
13529f584e2d50076e038388ecbdd57af23c73b9
[ "MIT" ]
2
2021-04-30T06:42:09.000Z
2021-06-21T05:49:29.000Z
# -*- coding: utf-8 -*- """ Description ----------- This module defines the :obj:`ParaMol.Objective_function.Properties.regularization.Regularization` class, which is a ParaMol representation of the regularization property. """ import numpy as np from .property import * # ------------------------------------------...
36.349345
171
0.555142
ea7b9d12029f07974525dc659c2414d6e62953e4
643
py
Python
conversion/octalToDecimal.py
slowy07/pythonApps
22f9766291dbccd8185035745950c5ee4ebd6a3e
[ "MIT" ]
10
2020-10-09T11:05:18.000Z
2022-02-13T03:22:10.000Z
conversion/octalToDecimal.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
null
null
null
conversion/octalToDecimal.py
khairanabila/pythonApps
f90b8823f939b98f7bf1dea7ed35fe6e22e2f730
[ "MIT" ]
6
2020-11-26T12:49:43.000Z
2022-03-06T06:46:43.000Z
if __name__ == '__main__': from doctest import testmod testmod()
30.619048
66
0.656299
ea80ed40b25b2af9be9e4742f1f9e34326e94328
879
py
Python
newsXtract.py
selection-bias-www2018/NewsXtract
6b66024fea912ed5f34a5ac2fe051d9abf8e5ee2
[ "BSD-3-Clause" ]
1
2019-10-24T10:04:59.000Z
2019-10-24T10:04:59.000Z
newsXtract.py
selection-bias-www2018/selection-bias-code
6b66024fea912ed5f34a5ac2fe051d9abf8e5ee2
[ "BSD-3-Clause" ]
null
null
null
newsXtract.py
selection-bias-www2018/selection-bias-code
6b66024fea912ed5f34a5ac2fe051d9abf8e5ee2
[ "BSD-3-Clause" ]
1
2021-05-04T12:51:23.000Z
2021-05-04T12:51:23.000Z
import os,json import requests BASE_URL = 'http://epfl.elasticsearch.spinn3r.com/content*/_search' BULK_SIZE = 100 SPINN3R_SECRET = os.environ['SPINN3R_SECRET'] HEADERS = { 'X-vendor': 'epfl', 'X-vendor-auth': SPINN3R_SECRET } query = { "size": BULK_SIZE, "query":{ "bool":{ "must":{ ...
18.702128
68
0.482366
ea827b47a08c581fe5f57d1e383518173508f1a0
1,672
py
Python
core/plugins/hibp.py
area55git/Gitmails
813234909f7bc59ef13113c92d8a52d86c896338
[ "MIT" ]
140
2018-04-26T18:29:01.000Z
2022-02-22T01:32:31.000Z
core/plugins/hibp.py
area55git/Gitmails
813234909f7bc59ef13113c92d8a52d86c896338
[ "MIT" ]
4
2018-04-26T20:18:47.000Z
2018-05-02T14:46:24.000Z
core/plugins/hibp.py
area55git/Gitmails
813234909f7bc59ef13113c92d8a52d86c896338
[ "MIT" ]
23
2018-04-26T19:08:26.000Z
2022-02-12T22:13:14.000Z
import time import requests from core.utils.parser import Parser from core.utils.helpers import Helpers from core.models.plugin import BasePlugin
30.962963
84
0.586124
ea83c30edcb40ded19cfef34c991c3cc46a06772
2,099
py
Python
app/purchases.py
thowell332/Mini-Amazon
927c387d569aef00275b7d6ecaae891fc16025e9
[ "MIT" ]
null
null
null
app/purchases.py
thowell332/Mini-Amazon
927c387d569aef00275b7d6ecaae891fc16025e9
[ "MIT" ]
null
null
null
app/purchases.py
thowell332/Mini-Amazon
927c387d569aef00275b7d6ecaae891fc16025e9
[ "MIT" ]
null
null
null
from re import S from flask import render_template, redirect, url_for, flash, request from flask_paginate import Pagination, get_page_parameter from flask_login import current_user from flask_wtf import FlaskForm from wtforms import SubmitField from flask_babel import _, lazy_gettext as _l from flask_login import curre...
41.98
177
0.769414
ea84710a91e9ce1a19dd0a2f68da27eda2cd6074
835
bzl
Python
ml_metadata/workspace.bzl
zijianjoy/ml-metadata
2fe02bc234408c49c3df37c7c5b276a85990da7d
[ "Apache-2.0" ]
458
2019-01-18T18:11:00.000Z
2022-03-28T15:27:33.000Z
ml_metadata/workspace.bzl
DrStarkXavier/ml-metadata
3434ebaf36db54a7e67dbb0793980a74ec0c5d50
[ "Apache-2.0" ]
108
2019-01-24T02:17:46.000Z
2022-03-30T18:36:46.000Z
ml_metadata/workspace.bzl
DrStarkXavier/ml-metadata
3434ebaf36db54a7e67dbb0793980a74ec0c5d50
[ "Apache-2.0" ]
128
2019-01-24T05:42:43.000Z
2022-03-25T11:11:44.000Z
# Copyright 2018 Google LLC # # 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, ...
36.304348
91
0.758084
ea87a3235f180eca6e23bc04d0cf3cf624a85395
8,072
py
Python
python/py_src/sudachipy/command_line.py
sorami/sudachi.rs
0e3462841f281472d149140481889a265bd12dd1
[ "Apache-2.0" ]
69
2019-11-23T14:24:44.000Z
2021-03-07T11:59:34.000Z
python/py_src/sudachipy/command_line.py
sorami/sudachi.rs
0e3462841f281472d149140481889a265bd12dd1
[ "Apache-2.0" ]
5
2019-11-23T12:37:16.000Z
2020-08-20T07:07:48.000Z
python/py_src/sudachipy/command_line.py
hata6502/sudachi-wasm
7afc1c59d81cf2bacd859087fdff40f238293c25
[ "Apache-2.0" ]
7
2019-11-27T13:42:03.000Z
2020-10-29T05:46:54.000Z
# Copyright (c) 2019 Works Applications Co., Ltd. # # 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 a...
38.807692
115
0.622646
ea891fd6d6e8d2f7b5c477a52da9998bb0a91863
4,487
py
Python
behave/formatter/json.py
stackedsax/behave
0cdd1d7e0ebcb43e08d7c5d0b25f62d7ffbfeb5f
[ "BSD-2-Clause" ]
null
null
null
behave/formatter/json.py
stackedsax/behave
0cdd1d7e0ebcb43e08d7c5d0b25f62d7ffbfeb5f
[ "BSD-2-Clause" ]
null
null
null
behave/formatter/json.py
stackedsax/behave
0cdd1d7e0ebcb43e08d7c5d0b25f62d7ffbfeb5f
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import base64 try: import json except ImportError: import simplejson as json from behave.formatter.base import Formatter
27.869565
71
0.556274
ea898ea65cb361916f48efa47b1354040802b387
54,368
py
Python
MUNIT/networks.py
NoaBrazilay/DeepLearningProject
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
2
2021-09-03T11:44:31.000Z
2021-09-22T11:51:47.000Z
MUNIT/networks.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
null
null
null
MUNIT/networks.py
NoaBrazilay/MISSGAN
5c44d21069de1fc5fa2687c4121286670be3d773
[ "MIT" ]
1
2020-10-20T08:06:50.000Z
2020-10-20T08:06:50.000Z
""" Copyright (C) 2018 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ from torch import nn from torch.autograd import Variable import torch import torch.nn.functional as F import utils import functools try: from...
42.60815
157
0.580672
ea8d3c9ed97f275534ba12a7a2adf9b3f80643b1
24,084
py
Python
nyc_bike_flow.py
AngeloManzatto/NYCBikeFlow
cd7f936c4d4627e4a90e17d416fb1f628b2445c6
[ "MIT" ]
1
2020-09-09T01:36:57.000Z
2020-09-09T01:36:57.000Z
nyc_bike_flow.py
AngeloManzatto/NYCBikeFlow
cd7f936c4d4627e4a90e17d416fb1f628b2445c6
[ "MIT" ]
null
null
null
nyc_bike_flow.py
AngeloManzatto/NYCBikeFlow
cd7f936c4d4627e4a90e17d416fb1f628b2445c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Aug 5 14:01:56 2019 @author: Angelo Antonio Manzatto This implementation use ST-ResNet for inflow / outflow bike prediction on the city of NY Article: https://arxiv.org/pdf/1610.00081.pdf References and credits: Junbo Zhang, Yu Zheng, Dekang Qi. Deep Spatio-Temporal Resid...
40.073211
161
0.594918
ea8e6944b6396b7bf5801d8ee489a2d3e3266596
802
py
Python
scripts/reduce.py
inlgmeeting/inlgmeeting.github.io
5af7273eaa04407afc894374d11cbc8587fd343b
[ "MIT" ]
null
null
null
scripts/reduce.py
inlgmeeting/inlgmeeting.github.io
5af7273eaa04407afc894374d11cbc8587fd343b
[ "MIT" ]
null
null
null
scripts/reduce.py
inlgmeeting/inlgmeeting.github.io
5af7273eaa04407afc894374d11cbc8587fd343b
[ "MIT" ]
1
2022-03-08T11:22:31.000Z
2022-03-08T11:22:31.000Z
import argparse import csv import json import sklearn.manifold import torch if __name__ == "__main__": args = parse_arguments() emb = torch.load(args.embeddings) out = sklearn.manifold.TSNE(n_components=2).fit_transform(emb.cpu().numpy()) d = [] with open(args.papers, "r") as f: ...
28.642857
87
0.65586
ea8ffc8379c8866cb56248edf88ff78b6a856f02
1,838
py
Python
Breast_cancer_prediction1.py
HagerBesar/Breast_cancer_prediction1
f391a37f8064cabefdf9c416f2dbb40e3bd0e98a
[ "MIT" ]
1
2021-03-23T15:03:39.000Z
2021-03-23T15:03:39.000Z
Breast_cancer_prediction1.py
HagerBesar/Breast_cancer_prediction1
f391a37f8064cabefdf9c416f2dbb40e3bd0e98a
[ "MIT" ]
null
null
null
Breast_cancer_prediction1.py
HagerBesar/Breast_cancer_prediction1
f391a37f8064cabefdf9c416f2dbb40e3bd0e98a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: ####################################<<<<Breast_cancer_prediction>>>>>>#################################### # In[ ]: #part(1)--By:Manar Moeanse # In[1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt # In[2]: DB = pd.read_csv('Breast_c...
10.268156
106
0.600653
ea9175a6523f472b33f34201baced746430025fa
290
py
Python
regphot/pyprofit.py
raphaelshirley/regphot
05b382e5360099dadd7599187b5f25c1fcbd5a61
[ "MIT" ]
null
null
null
regphot/pyprofit.py
raphaelshirley/regphot
05b382e5360099dadd7599187b5f25c1fcbd5a61
[ "MIT" ]
null
null
null
regphot/pyprofit.py
raphaelshirley/regphot
05b382e5360099dadd7599187b5f25c1fcbd5a61
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Feb 1 17:13:54 2017 Should have similar functions as galfit and allow a model object to use functions to calculate chisq and optimse using standard optimisation. @author: rs548 """ import pyprofit
18.125
85
0.713793
ea9198eb50dfdf75e05b7e2f2c6b062c8ea681fb
6,061
py
Python
chrome/common/extensions/docs/server2/branch_utility_test.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/branch_utility_test.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/branch_utility_test.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import unittest from branch_utility import BranchUtility from fake_url_fetcher import FakeUrlFetcher from obj...
41.513699
77
0.683881
ea931348dc1add94d3976c115411349771183b34
6,818
py
Python
src/mlServiceAPI.py
juliangruendner/ketos_brain_api
6ec7e01a0996abb03dba090d832a5e1020df4180
[ "MIT" ]
null
null
null
src/mlServiceAPI.py
juliangruendner/ketos_brain_api
6ec7e01a0996abb03dba090d832a5e1020df4180
[ "MIT" ]
null
null
null
src/mlServiceAPI.py
juliangruendner/ketos_brain_api
6ec7e01a0996abb03dba090d832a5e1020df4180
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful_swagger_2 import Api from resources.userResource import UserListResource, UserResource, UserLoginResource from resources.imageResource import ImageListResource, ImageResource from resources.environmentResource import EnvironmentListResource, EnvironmentResource, UserEnvironmen...
80.211765
228
0.839689
ea93a4863758bc25492b7cc4b0d277a031dd4e69
427
py
Python
Python/Tutorial - 3/check.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
Python/Tutorial - 3/check.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
Python/Tutorial - 3/check.py
JC2295/FCC_Tutorial_Projects
990e1221b2177acb9e4db0264adab518620404a0
[ "MIT" ]
null
null
null
x = float(input("Enter Number: ")) if(x % 2) == 0 and x > 0: print("The number you entered is positive and even.") elif(x % 2) == 0 and x < 0: print("The number you entered is negative and even.") elif(x % 2) != 0 and x > 0: print("The number you entered is positive and odd.") elif(x % 2) != 0 and x < 0: ...
32.846154
57
0.618267
ea9492335887a907444003adbfacda8abe09f88a
18,763
py
Python
solver.py
itrosen/hall-solver
70ca5364b6c16bf62b7faa69ac30d14f972d7320
[ "MIT" ]
null
null
null
solver.py
itrosen/hall-solver
70ca5364b6c16bf62b7faa69ac30d14f972d7320
[ "MIT" ]
null
null
null
solver.py
itrosen/hall-solver
70ca5364b6c16bf62b7faa69ac30d14f972d7320
[ "MIT" ]
null
null
null
""" Created on Dec 16 2021 @author: Ilan Rosen Poisson equation solver for the Hall effect. Includes classes for Hall bars, Hall bars in a nonlocal geometry, and Corbino disks. The Hall bar class has build in methods for longitudinal and Hall 4-probe resistance measurements. Plotting functions assume coordinates are in...
33.807207
196
0.666525
ea94f186e674605c91c929e6c34cf14e026507ea
2,078
py
Python
tools/python/boutiques/util/utils.py
glatard/boutiques
a75de1b2fcf96e0eb196974ee2376b014972e847
[ "MIT" ]
2
2016-11-01T15:08:37.000Z
2018-09-07T20:56:43.000Z
tools/python/boutiques/util/utils.py
glatard/boutiques
a75de1b2fcf96e0eb196974ee2376b014972e847
[ "MIT" ]
null
null
null
tools/python/boutiques/util/utils.py
glatard/boutiques
a75de1b2fcf96e0eb196974ee2376b014972e847
[ "MIT" ]
1
2018-03-20T15:51:00.000Z
2018-03-20T15:51:00.000Z
import os import simplejson as json from boutiques.logger import raise_error # Parses absolute path into filename # Helper function that loads the JSON object coming from either a string, # a local file or a file pulled from Zenodo def loadJson(userInput, verbose=False): # Check for JSON file (local or from Ze...
31.484848
73
0.606833
ea95124323bddaa7f489eebee0d325f17c311f5a
214
py
Python
python/exercism/word_count.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
7
2016-01-03T19:42:07.000Z
2018-10-23T14:03:12.000Z
python/exercism/word_count.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
null
null
null
python/exercism/word_count.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
1
2018-03-09T08:52:01.000Z
2018-03-09T08:52:01.000Z
import re
17.833333
55
0.411215
ea966da9c7d51e718e4e2994743bb27ac7739401
1,913
py
Python
src/core/forms.py
artinnok/billing
11a100462e898bf059f89fe77ebb405c2da2806f
[ "MIT" ]
null
null
null
src/core/forms.py
artinnok/billing
11a100462e898bf059f89fe77ebb405c2da2806f
[ "MIT" ]
null
null
null
src/core/forms.py
artinnok/billing
11a100462e898bf059f89fe77ebb405c2da2806f
[ "MIT" ]
null
null
null
from django import forms from core.models import Profile
28.132353
112
0.588082
ea96d847da2a30f013707da8c63074bc8c9579c8
19,736
py
Python
fabfile.py
CCMS-UCSD/ProteoSAFe_Workflow_Deployment
2ce1e68d0c153b76316ccd2b6956d1faa1ad6217
[ "CC0-1.0" ]
1
2021-04-12T18:40:34.000Z
2021-04-12T18:40:34.000Z
fabfile.py
CCMS-UCSD/ProteoSAFe_Workflow_Deployment
2ce1e68d0c153b76316ccd2b6956d1faa1ad6217
[ "CC0-1.0" ]
28
2019-09-05T20:41:22.000Z
2021-06-23T18:10:06.000Z
fabfile.py
CCMS-UCSD/CCMSDeployments
2ce1e68d0c153b76316ccd2b6956d1faa1ad6217
[ "CC0-1.0" ]
null
null
null
from fabric2 import Connection from fabric2 import task from fabric2 import config import os import time from xml.etree import ElementTree as ET import uuid import glob import json import urllib.parse import io workflow_components = ['input.xml', 'binding.xml', 'flow.xml', 'result.xml', 'tool.xml'] def read_makefile(...
42.443011
218
0.641214
ea983ff474c1e9c14d38adcbbefd09dbeedc005c
5,529
py
Python
tests/test_volume.py
mathieuboudreau/electropy
586f93b076448f39255727ff36afe50edb6255bc
[ "MIT" ]
5
2019-04-06T02:40:34.000Z
2020-09-09T20:31:56.000Z
tests/test_volume.py
mathieuboudreau/electropy
586f93b076448f39255727ff36afe50edb6255bc
[ "MIT" ]
6
2019-04-06T02:40:36.000Z
2021-03-03T17:46:07.000Z
tests/test_volume.py
mathieuboudreau/electropy
586f93b076448f39255727ff36afe50edb6255bc
[ "MIT" ]
1
2020-04-10T19:22:17.000Z
2020-04-10T19:22:17.000Z
import unittest from electropy.charge import Charge import numpy as np from electropy import volume
28.06599
76
0.558691
ea99720b3ead320ff8f07f3efbaae5fb0d1681fb
94
py
Python
aiida_icl/__init__.py
chrisjsewell/aiida-cx1scheduler
fd9a1723f65d3858aee678bf035a7b63a03c5885
[ "MIT" ]
null
null
null
aiida_icl/__init__.py
chrisjsewell/aiida-cx1scheduler
fd9a1723f65d3858aee678bf035a7b63a03c5885
[ "MIT" ]
null
null
null
aiida_icl/__init__.py
chrisjsewell/aiida-cx1scheduler
fd9a1723f65d3858aee678bf035a7b63a03c5885
[ "MIT" ]
2
2020-07-01T07:43:13.000Z
2020-07-07T20:00:02.000Z
""" AiiDA Plugin Template Adapt this template for your own needs. """ __version__ = '0.3.4'
11.75
39
0.691489
ea9a826f91fe349d070b4bf03eccad1b591d9ea9
794
py
Python
opt/resource/test_out.py
cosee-concourse/mysql-resource
765f9f5eae1026b024b1148c10a5605dad77f1ca
[ "MIT" ]
2
2018-11-15T16:42:14.000Z
2020-01-30T22:32:04.000Z
opt/resource/test_out.py
cosee-concourse/mysql-resource
765f9f5eae1026b024b1148c10a5605dad77f1ca
[ "MIT" ]
null
null
null
opt/resource/test_out.py
cosee-concourse/mysql-resource
765f9f5eae1026b024b1148c10a5605dad77f1ca
[ "MIT" ]
null
null
null
import unittest from concourse_common import testutil import out
20.358974
46
0.399244
ea9d55f992bddeb052a30ca5d5fa389dffc4128f
2,877
py
Python
auctionCrawler/poxy.py
wd18535470628/PythonCraw
9be3519da1219ad4ffc0d26cc97ceabcb0a7c06b
[ "Apache-2.0" ]
null
null
null
auctionCrawler/poxy.py
wd18535470628/PythonCraw
9be3519da1219ad4ffc0d26cc97ceabcb0a7c06b
[ "Apache-2.0" ]
null
null
null
auctionCrawler/poxy.py
wd18535470628/PythonCraw
9be3519da1219ad4ffc0d26cc97ceabcb0a7c06b
[ "Apache-2.0" ]
null
null
null
#-*- coding=utf-8 -*- import urllib2, time, datetime from lxml import etree import sqlite3,time if __name__ == "__main__": now = datetime.datetime.now() print "Start at %s" % now obj=getProxy() obj.loop(5)
30.284211
91
0.54814
ea9e52a902c07d07faf47b9e8450b5190bcaf693
214
py
Python
Agents/utils/readMonFiles.py
mbay-SAG/cumulocity-thinedge-example
e0fa9a52fab16ad791093e0ab3d4383c653a10fd
[ "Apache-2.0" ]
1
2021-03-12T12:22:46.000Z
2021-03-12T12:22:46.000Z
Agents/utils/readMonFiles.py
mbay-SAG/cumulocity-thinedge-example
e0fa9a52fab16ad791093e0ab3d4383c653a10fd
[ "Apache-2.0" ]
2
2020-11-20T16:58:35.000Z
2020-11-25T15:37:06.000Z
Agents/utils/readMonFiles.py
SoftwareAG/cumulocity-thinedge-example
6311a7f2e3d6515b85af5de24758f799e389aaed
[ "Apache-2.0" ]
null
null
null
import sys
19.454545
87
0.509346
ea9e964b93453f94a10dfd91125416960a5c91b6
1,046
py
Python
tests/test_search.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
23
2021-07-28T19:32:25.000Z
2022-03-19T07:57:36.000Z
tests/test_search.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
6
2021-07-16T22:31:56.000Z
2022-03-11T21:09:40.000Z
tests/test_search.py
capellaspace/console-client
bad631f207043231630c9b8c0893a1b4382d4061
[ "MIT" ]
1
2022-01-05T18:38:46.000Z
2022-01-05T18:38:46.000Z
#!/usr/bin/env python import pytest from .test_data import get_search_test_cases, search_catalog_get_stac_ids from capella_console_client import client from capella_console_client.validate import _validate_uuid from capella_console_client.search import _paginated_search
33.741935
86
0.799235
eaa18ae73ed1cc5860673f523cf535ff57268751
6,514
py
Python
lib/score_functions/mahalanobis_score.py
alabrashJr/Maha-Odd
cce4bab1f30589cf3d52636fe511c0269058679e
[ "MIT" ]
null
null
null
lib/score_functions/mahalanobis_score.py
alabrashJr/Maha-Odd
cce4bab1f30589cf3d52636fe511c0269058679e
[ "MIT" ]
null
null
null
lib/score_functions/mahalanobis_score.py
alabrashJr/Maha-Odd
cce4bab1f30589cf3d52636fe511c0269058679e
[ "MIT" ]
null
null
null
# Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # ME...
37.436782
89
0.682069
575b35db9c979401cf63c36c72e33a04e3269d4a
69
py
Python
win/devkit/other/pymel/extras/completion/py/maya/app/sceneAssembly/__init__.py
leegoonz/Maya-devkit
b81fe799b58e854e4ef16435426d60446e975871
[ "ADSL" ]
21
2015-04-27T05:01:36.000Z
2021-11-22T13:45:14.000Z
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/sceneAssembly/__init__.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
null
null
null
python/maya/site-packages/pymel-1.0.5/extras/completion/py/maya/app/sceneAssembly/__init__.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
9
2018-06-02T09:18:49.000Z
2021-12-20T09:24:35.000Z
from . import adskPrepareRender import maya.cmds as cmd import maya
13.8
31
0.811594
575bf6573208aa2419b03e74d851335d108eb00a
503
py
Python
ask_user_data.py
sukarita/basics-phyton
8e05d3b19fc0dcbf2a4c16473aa7fbe45e5eb27e
[ "MIT" ]
null
null
null
ask_user_data.py
sukarita/basics-phyton
8e05d3b19fc0dcbf2a4c16473aa7fbe45e5eb27e
[ "MIT" ]
null
null
null
ask_user_data.py
sukarita/basics-phyton
8e05d3b19fc0dcbf2a4c16473aa7fbe45e5eb27e
[ "MIT" ]
null
null
null
#Ask user for name name = input("What is your name?: ") #Ask user for the age age = input("How old are you? ") #Ask user for city city = input("What city do you live in? ") #Ask user what they enjoy hobbies = input("What are your hobbies?, What do you love doing? ") #Create output text using placeholders to concat...
25.15
83
0.697813
575d46348486aea3cf156ef36a9337580b89061b
2,568
py
Python
skexplain/main/PermutationImportance/multiprocessing_utils.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
null
null
null
skexplain/main/PermutationImportance/multiprocessing_utils.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
7
2022-03-06T01:51:33.000Z
2022-03-28T13:06:34.000Z
skexplain/main/PermutationImportance/multiprocessing_utils.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
null
null
null
"""These are utilities designed for carefully handling communication between processes while multithreading. The code for ``pool_imap_unordered`` is copied nearly wholesale from GrantJ's `Stack Overflow answer here <https://stackoverflow.com/questions/5318936/python-multiprocessing-pool-lazy-iteration?noredirect=1&lq...
29.181818
109
0.633178
575d9a80ceb32000695149a7edeb2329ae95f171
4,786
py
Python
mi/dataset/parser/test/test_flntu_x_mmp_cds.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
1
2015-05-10T01:08:44.000Z
2015-05-10T01:08:44.000Z
mi/dataset/parser/test/test_flntu_x_mmp_cds.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/dataset/parser/test/test_flntu_x_mmp_cds.py
petercable/mi-dataset
d3c1607ea31af85fbba5719a31d4a60bf39f8dd3
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
#!/usr/bin/env python """ @package mi.dataset.parser.test.test_flcdrpf_ckl_mmp_cds @file marine-integrations/mi/dataset/parser/test/test_flcdrpf_ckl_mmp_cds.py @author Mark Worden @brief Test code for a flcdrpf_ckl_mmp_cds data parser """ import os from nose.plugins.attrib import attr from mi.core.exce...
36.815385
110
0.661513
575dbd1d29e5f8459314be7e87d2a432414925fc
6,602
py
Python
lib/python3.6/site-packages/pkginfo/commandline.py
backcountryinfosec/iocparser
99d6b2cf8506c7731ea2fcb1b75689eac2da7ced
[ "MIT" ]
4
2018-07-27T05:48:13.000Z
2020-05-12T06:54:55.000Z
lib/python3.6/site-packages/pkginfo/commandline.py
backcountryinfosec/iocparser
99d6b2cf8506c7731ea2fcb1b75689eac2da7ced
[ "MIT" ]
4
2020-07-26T02:10:42.000Z
2021-03-31T18:48:58.000Z
lib/python3.6/site-packages/pkginfo/commandline.py
backcountryinfosec/iocparser
99d6b2cf8506c7731ea2fcb1b75689eac2da7ced
[ "MIT" ]
2
2020-02-20T20:59:54.000Z
2022-03-07T06:28:51.000Z
"""Print the metadata for one or more Python package distributions. Usage: %prog [options] path+ Each 'path' entry can be one of the following: o a source distribution: in this case, 'path' should point to an existing archive file (.tar.gz, .tar.bz2, or .zip) as generated by 'setup.py sdist'. o a binary distrib...
32.204878
77
0.567404
575f3985ac6999b8a0ba401f38fcd2e12e1655c9
2,109
py
Python
app_jumanji/migrations/0007_resume.py
arifgafizov/jumanji_v2
e06ec7556544abef66b35cace5a0456f6021bcca
[ "MIT" ]
1
2021-12-02T11:23:39.000Z
2021-12-02T11:23:39.000Z
app_jumanji/migrations/0007_resume.py
arifgafizov/jumanji_v2
e06ec7556544abef66b35cace5a0456f6021bcca
[ "MIT" ]
null
null
null
app_jumanji/migrations/0007_resume.py
arifgafizov/jumanji_v2
e06ec7556544abef66b35cace5a0456f6021bcca
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-16 18:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
54.076923
141
0.556188
575f61b15fc74259a459d89fa6848538684d3cf4
1,135
py
Python
molecule/resources/tests_err/test_err.py
fletort/rpi_noobs_recovery
ee81e148bf730ec110bbfda1e46b3ce0820ebcca
[ "MIT" ]
null
null
null
molecule/resources/tests_err/test_err.py
fletort/rpi_noobs_recovery
ee81e148bf730ec110bbfda1e46b3ce0820ebcca
[ "MIT" ]
null
null
null
molecule/resources/tests_err/test_err.py
fletort/rpi_noobs_recovery
ee81e148bf730ec110bbfda1e46b3ce0820ebcca
[ "MIT" ]
null
null
null
import os import pytest import json import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_failed_task_name(host, failure_info, waited_failed_task_name): assert failure_info['task_name'] == wai...
27.682927
71
0.765639
575fbd0bfed909e1050ca5a148b9e03632bf0387
54,744
py
Python
sed_vis/visualization.py
TUT-ARG/sed_vis
41ae82ce4191caf1c3d9cdd985c53b135d7550a0
[ "MIT" ]
79
2016-03-07T01:35:55.000Z
2022-03-31T02:52:08.000Z
sed_vis/sed_vis/visualization.py
jim-schwoebel/sound_event_detection
24cd385d23da6382ab92c37587d9478e4324cda0
[ "ECL-2.0", "Apache-2.0" ]
6
2017-10-11T09:41:29.000Z
2021-10-15T23:55:34.000Z
sed_vis/visualization.py
TUT-ARG/sed_vis
41ae82ce4191caf1c3d9cdd985c53b135d7550a0
[ "MIT" ]
27
2016-05-21T15:59:52.000Z
2021-12-03T07:06:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Visualization ================== This is module contains a simple visualizer to show event lists along with the audio. The visualizer can show multiple event lists for the same reference audio allowing the comparison of the reference and estimated event lists. .. imag...
35.295938
173
0.536643
576046bf13a9a9a373df939e68641affef31278c
498
py
Python
myApp/views.py
geniyong/oauth_practice
c62b461a59299a28538472d9955c57c86c61cad3
[ "MIT" ]
null
null
null
myApp/views.py
geniyong/oauth_practice
c62b461a59299a28538472d9955c57c86c61cad3
[ "MIT" ]
null
null
null
myApp/views.py
geniyong/oauth_practice
c62b461a59299a28538472d9955c57c86c61cad3
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. from django.shortcuts import render,redirect, render_to_response from .models import * from django.views.generic import TemplateView, ListView, DetailView, CreateView, UpdateView, DeleteView from django.urls import reverse from django.http import HttpRespo...
26.210526
103
0.757028
5762429b1b1dd01cf1b9389178f64cf1b092cca8
2,095
py
Python
apps/establishment_system/search_indexes.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
4
2015-01-29T17:17:26.000Z
2021-03-03T08:17:03.000Z
apps/establishment_system/search_indexes.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
null
null
null
apps/establishment_system/search_indexes.py
camilortte/RecomendadorUD
ebf9ee4482c4093d4751a27c90f56637a9c692a4
[ "MIT" ]
1
2015-09-22T08:35:26.000Z
2015-09-22T08:35:26.000Z
# -*- encoding: utf-8 -*- """ search_indexex.py: Creacion de los indices de busqueda. @author Camilo Ramrez @contact camilolinchis@gmail.com camilortte@hotmail.com @camilortte on Twitter @copyright Copyright 2014-2015, RecomendadorUD @license GPL ...
35.508475
99
0.690215
576265ad1cf9770159b84c4c099a658ff418fcd7
1,968
py
Python
utils.py
jeffasante/captcha
7e97d3ed0caf253efd400acfa9f7a754e314c93b
[ "MIT" ]
null
null
null
utils.py
jeffasante/captcha
7e97d3ed0caf253efd400acfa9f7a754e314c93b
[ "MIT" ]
null
null
null
utils.py
jeffasante/captcha
7e97d3ed0caf253efd400acfa9f7a754e314c93b
[ "MIT" ]
1
2022-01-02T10:51:37.000Z
2022-01-02T10:51:37.000Z
''' Handling the data io ''' from torchvision import transforms, datasets import numpy as np import zipfile from io import open import glob from PIL import Image, ImageOps import os import string # Read data def extractZipFiles(zip_file, extract_to): ''' Extract from zip ''' with zipfile.ZipFile(zip_file, ...
24.296296
85
0.643801
5766b267912e78674e78fd7d2805ec7078a5c543
4,072
py
Python
tests/test_metaregistry.py
kkaris/bioregistry
e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7
[ "MIT" ]
null
null
null
tests/test_metaregistry.py
kkaris/bioregistry
e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7
[ "MIT" ]
null
null
null
tests/test_metaregistry.py
kkaris/bioregistry
e8cdaf8e8c5670873ce10a5a67d7850b76e5eff7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for the metaregistry.""" import unittest import bioregistry from bioregistry.export.rdf_export import metaresource_to_rdf_str from bioregistry.schema import Registry
43.319149
109
0.638507
57697b1541d35be66a3cab37aa617e895a535842
341
py
Python
ex038.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
ex038.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
ex038.py
honeyhugh/PythonCurso
e5b8efe04e100ea0b0c0aacde1caf7ae52489f40
[ "MIT" ]
null
null
null
print('Analisador de nmeros') print('=-=' * 15) n1 = int(input('Digite o primeiro nmero: ')) n2 = int(input('Digite o segundo nmero: ')) if n1 > n2: print('O nmero {} maior que o nmero {}'.format(n1, n2)) elif n2 > n1: print('O nmero {} maior que o nmero {}'.format(n2, n1)) else: print('Os dois valores so...
31
63
0.624633