hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
77a14e2c1619b9b0b6b65cea2a4c1d84bb23aa1d
3,489
py
Python
faststream.py
eddydg/fast-streaming
5e0af1f762ab746a6fdbe76eb48e2e1451b4582f
[ "MIT" ]
1
2018-07-22T13:29:36.000Z
2018-07-22T13:29:36.000Z
faststream.py
eddydg/fast-streaming
5e0af1f762ab746a6fdbe76eb48e2e1451b4582f
[ "MIT" ]
null
null
null
faststream.py
eddydg/fast-streaming
5e0af1f762ab746a6fdbe76eb48e2e1451b4582f
[ "MIT" ]
null
null
null
import sys import subprocess import time import os import urllib.parse import time import math import configparser import tempfile from send2trash import send2trash from babelfish import Language from subliminal import * configp = configparser.ConfigParser() if configp.read('config.ini'): config = configp['DEFAUL...
30.605263
140
0.625107
27dc287566187f589f722ec4e6d8b8913fa2527c
33,859
py
Python
BeyondChaos/beyondchaos.py
emberling/BeyondChaosRandomizer
2f69752611e25146a29aef51044d0446d4e80332
[ "MIT" ]
1
2021-06-15T03:54:53.000Z
2021-06-15T03:54:53.000Z
BeyondChaos/beyondchaos.py
emberling/BeyondChaosRandomizer
2f69752611e25146a29aef51044d0446d4e80332
[ "MIT" ]
1
2021-09-13T04:32:43.000Z
2021-09-13T04:32:43.000Z
BeyondChaos/BeyondChaos.py
razzlestorm/BeyondChaosRandomizer
04a0acdcd9d4c3991a3e42cf1bba4299adda4435
[ "MIT" ]
null
null
null
import config import sys from subprocess import call from PyQt5 import QtGui, QtCore from PyQt5.QtCore import pyqtRemoveInputHook from PyQt5.QtWidgets import QPushButton, QCheckBox, QWidget, QVBoxLayout, QLabel, QGroupBox, \ QHBoxLayout, QLineEdit, QRadioButton, QGridLayout, QComboBox, QFileDialog, QApplication, \...
41.190998
205
0.594967
c729051ea345eaf4b611a2623daeca81d28f5602
68,109
py
Python
model-optimizer/extensions/front/tf/ObjectDetectionAPI.py
shinh/dldt
693ab4e79a428e0801f17f4511b129a3fa8f4a62
[ "Apache-2.0" ]
1
2021-02-20T21:48:36.000Z
2021-02-20T21:48:36.000Z
model-optimizer/extensions/front/tf/ObjectDetectionAPI.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/front/tf/ObjectDetectionAPI.py
erinpark33/dldt
edd86d090592f7779f4dbb2681546e1f4e81284f
[ "Apache-2.0" ]
1
2018-12-14T07:52:51.000Z
2018-12-14T07:52:51.000Z
""" Copyright (c) 2018-2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
61.084305
120
0.688441
88d3743fdb906f647867ce1aa00cac7b284907e1
466
py
Python
tests/system/test_base.py
Supernomad/dnsbeat
120d0363187df8192e4fc2558cbd210b764a3d74
[ "Apache-2.0" ]
1
2017-09-02T15:13:15.000Z
2017-09-02T15:13:15.000Z
tests/system/test_base.py
supernomad/dnsbeat
120d0363187df8192e4fc2558cbd210b764a3d74
[ "Apache-2.0" ]
null
null
null
tests/system/test_base.py
supernomad/dnsbeat
120d0363187df8192e4fc2558cbd210b764a3d74
[ "Apache-2.0" ]
null
null
null
from dnsbeat import BaseTest import os class Test(BaseTest): def test_base(self): """ Basic test with exiting Dnsbeat normally """ self.render_config_template( path=os.path.abspath(self.working_dir) + "/log/*" ) dnsbeat_proc = self.start_beat() ...
23.3
72
0.622318
77ffe9c13732d8b6d34c616d69e8810463017eff
7,440
py
Python
venv/lib/python3.6/site-packages/ppb/systems/pg.py
Karagusto/Game_ppg
f5f7eccaf46495e3872b94aba8df56abab83b622
[ "Artistic-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/ppb/systems/pg.py
Karagusto/Game_ppg
f5f7eccaf46495e3872b94aba8df56abab83b622
[ "Artistic-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/ppb/systems/pg.py
Karagusto/Game_ppg
f5f7eccaf46495e3872b94aba8df56abab83b622
[ "Artistic-2.0" ]
null
null
null
from typing import Dict import pygame import ppb.buttons as buttons from ppb import Vector from ppb import events from ppb import keycodes as keys from ppb.systems import System # TODO: Be aware of circular imports from ppb.systems import default_resolution class EventPoller(System): """ An event poller th...
33.665158
99
0.595565
76a31f1d1eb416516b2a7480a50b7ea398ca633a
28,986
py
Python
tests/cupyx_tests/scipy_tests/ndimage_tests/test_filters.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
null
null
null
tests/cupyx_tests/scipy_tests/ndimage_tests/test_filters.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
54
2018-04-26T04:55:40.000Z
2022-03-15T05:26:47.000Z
tests/cupyx_tests/scipy_tests/ndimage_tests/test_filters.py
prkhrsrvstv1/cupy
ea86c8225b575af9d2855fb77a306cf86fd098ea
[ "MIT" ]
null
null
null
import numpy import pytest import cupy from cupy.cuda import runtime from cupy import testing import cupyx.scipy.ndimage # NOQA try: import scipy.ndimage # NOQA except ImportError: pass class FilterTestCaseBase: """ Add some utility methods for the parameterized tests for filters. these assume...
34.965018
79
0.567964
0798fcf6ce0a4b310564f467b4ad4074ef556ae9
3,861
py
Python
exercises/city_temperature_prediction.py
danielbusbib/IML.HUJI
e1279a78ef2874c1d46b7d53281658cde3daf5de
[ "MIT" ]
null
null
null
exercises/city_temperature_prediction.py
danielbusbib/IML.HUJI
e1279a78ef2874c1d46b7d53281658cde3daf5de
[ "MIT" ]
null
null
null
exercises/city_temperature_prediction.py
danielbusbib/IML.HUJI
e1279a78ef2874c1d46b7d53281658cde3daf5de
[ "MIT" ]
null
null
null
import IMLearn.learners.regressors.linear_regression from IMLearn.learners.regressors import PolynomialFitting from IMLearn.metrics import mean_square_error from IMLearn.utils import split_train_test import numpy as np import pandas as pd import plotly.express as px import plotly.io as pio pio.templates.default = "si...
37.852941
102
0.603989
00b1691846c0543b60f5288f912a923e295c3a86
28,755
py
Python
tests/cupyx_tests/scipy_tests/ndimage_tests/test_filters.py
iskode/cupy
025ca868a61b8cbd6b0b87b6be1e6d4f5888f212
[ "MIT" ]
null
null
null
tests/cupyx_tests/scipy_tests/ndimage_tests/test_filters.py
iskode/cupy
025ca868a61b8cbd6b0b87b6be1e6d4f5888f212
[ "MIT" ]
null
null
null
tests/cupyx_tests/scipy_tests/ndimage_tests/test_filters.py
iskode/cupy
025ca868a61b8cbd6b0b87b6be1e6d4f5888f212
[ "MIT" ]
null
null
null
import numpy import pytest import cupy from cupy.cuda import runtime from cupy import testing import cupyx.scipy.ndimage # NOQA try: import scipy.ndimage # NOQA except ImportError: pass class FilterTestCaseBase: """ Add some utility methods for the parameterized tests for filters. these assume...
35.067073
79
0.567658
a2b0986e16280a05643418208f0ee134880b6e69
692
py
Python
examples/start-vehicle.py
HKLM/sync-connect-sdk
16ec0fecd31042970ee29146011250a74f4742ae
[ "MIT" ]
null
null
null
examples/start-vehicle.py
HKLM/sync-connect-sdk
16ec0fecd31042970ee29146011250a74f4742ae
[ "MIT" ]
null
null
null
examples/start-vehicle.py
HKLM/sync-connect-sdk
16ec0fecd31042970ee29146011250a74f4742ae
[ "MIT" ]
null
null
null
import syncconnect client = syncconnect.AuthClient( '9fb503e0-715b-47e8-adfd-ad4b7770f73b', None, None) # Create client connection access = client.get_user_access_token( '<username>', '<password>') # Fetch client access token user = syncconnect.User(access['access_token']) # New User Object vehicle...
31.454545
68
0.729769
af40d9ca41bea504210e408c75977432806dd97a
9,054
py
Python
python/dask_cudf/dask_cudf/sorting.py
flygod1159/cudf
48f4e96adf8110b11af98a04b360e7287c5cff29
[ "Apache-2.0" ]
1
2022-01-26T09:49:43.000Z
2022-01-26T09:49:43.000Z
python/dask_cudf/dask_cudf/sorting.py
flygod1159/cudf
48f4e96adf8110b11af98a04b360e7287c5cff29
[ "Apache-2.0" ]
null
null
null
python/dask_cudf/dask_cudf/sorting.py
flygod1159/cudf
48f4e96adf8110b11af98a04b360e7287c5cff29
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. from collections.abc import Iterator import cupy import numpy as np import tlz as toolz from dask.base import tokenize from dask.dataframe import methods from dask.dataframe.core import DataFrame, Index, Series from dask.dataframe.shuffle import rearrange_by_column from dask....
31.113402
79
0.626243
2d086ae4ce6e5e5b7faf6d3c0f30863cf24185f7
1,169
py
Python
setup.py
The-Compiler/pytest-mccabe
9ac0717189496bbb2b76db35c96bf12fd4fb8076
[ "MIT" ]
13
2015-06-02T10:48:44.000Z
2020-07-06T19:07:48.000Z
setup.py
The-Compiler/pytest-mccabe
9ac0717189496bbb2b76db35c96bf12fd4fb8076
[ "MIT" ]
6
2015-06-11T04:23:08.000Z
2020-07-22T20:13:53.000Z
setup.py
The-Compiler/pytest-mccabe
9ac0717189496bbb2b76db35c96bf12fd4fb8076
[ "MIT" ]
9
2015-06-10T22:19:17.000Z
2020-07-14T18:41:09.000Z
from setuptools import setup setup( name='pytest-mccabe', description='pytest plugin to run the mccabe code complexity checker.', long_description=open("README.rst").read(), license="MIT license", version='2.0', author='Florian Bruhin', author_email='me@the-compiler.org', url='https://g...
36.53125
75
0.624465
72c88d1b71dffb65a254c4d5908b5a9c6ebb9c07
3,373
py
Python
billing/models/authorize_models.py
litchfield/merchant
e4fba8a88a326bbde39c26e937c17d5283817320
[ "BSD-3-Clause" ]
null
null
null
billing/models/authorize_models.py
litchfield/merchant
e4fba8a88a326bbde39c26e937c17d5283817320
[ "BSD-3-Clause" ]
null
null
null
billing/models/authorize_models.py
litchfield/merchant
e4fba8a88a326bbde39c26e937c17d5283817320
[ "BSD-3-Clause" ]
null
null
null
from django.db import models # Response Codes # APPROVED, DECLINED, ERROR, FRAUD_REVIEW = 1, 2, 3, 4 class AuthorizeAIMResponse(models.Model): RESPONSE_CODES = [ (1, 'Approved'), (2, 'Declined'), (3, 'Error'), (4, 'Held for Review'), ] ADDRESS_VERIFICATION_RESPONSE = [ ...
44.973333
132
0.682479
d2e02d1f8889491e83452cb868b574e19957e479
48,296
py
Python
tests/sagemaker/test_sagemaker_deployment_client.py
abhiramr/mlflow
2bbdc20f2d90d551fb7d40f982f2f799da9feca8
[ "Apache-2.0" ]
null
null
null
tests/sagemaker/test_sagemaker_deployment_client.py
abhiramr/mlflow
2bbdc20f2d90d551fb7d40f982f2f799da9feca8
[ "Apache-2.0" ]
null
null
null
tests/sagemaker/test_sagemaker_deployment_client.py
abhiramr/mlflow
2bbdc20f2d90d551fb7d40f982f2f799da9feca8
[ "Apache-2.0" ]
null
null
null
import os import pytest import time from collections import namedtuple from io import BytesIO from unittest import mock import boto3 import botocore import numpy as np import pandas as pd from click.testing import CliRunner from sklearn.linear_model import LogisticRegression import mlflow import mlflow.pyfunc import ...
37.55521
100
0.737514
65c28e565add4108370fe6969099bd74de3c0558
3,229
py
Python
python/es_tag_to_utc.py
vt-gs/gr-vcc
8f29e6448ad6d5e37789fadca96fa8c46edd8f7d
[ "MIT" ]
1
2021-04-28T03:52:20.000Z
2021-04-28T03:52:20.000Z
python/es_tag_to_utc.py
vt-gs/gr-vcc
8f29e6448ad6d5e37789fadca96fa8c46edd8f7d
[ "MIT" ]
null
null
null
python/es_tag_to_utc.py
vt-gs/gr-vcc
8f29e6448ad6d5e37789fadca96fa8c46edd8f7d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # MIT License # # Copyright (c) 2018 Virginia Tech Ground Station # # 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, includin...
38.903614
103
0.680087
26ee94209a5990ef3b5df7177b229123ce8b35bc
441
py
Python
utils/delete_im_util.py
alessiamarcolini/deepstreet
2958559920a082cacccb0a170f63644927df208a
[ "MIT" ]
74
2017-07-22T15:23:35.000Z
2022-03-26T14:46:08.000Z
utils/delete_im_util.py
HangJie720/deepstreet
2958559920a082cacccb0a170f63644927df208a
[ "MIT" ]
1
2020-12-02T09:05:23.000Z
2020-12-02T09:05:23.000Z
utils/delete_im_util.py
HangJie720/deepstreet
2958559920a082cacccb0a170f63644927df208a
[ "MIT" ]
27
2017-07-22T18:17:56.000Z
2021-01-11T17:11:05.000Z
import os import random path = "../dataset/train/" l_images = os.listdir(path) classes = {} target = 1 #number of images to remove for i in l_images: isplit = i.split("_") cl = isplit[0] if cl in classes: classes[cl].append(i) else: classes[cl] = [] for i in sorted(classes): f...
16.961538
38
0.587302
5c9e0bca8e6702ae23025af113a3a4e154508748
2,503
py
Python
pkg_tf_micromouse/scripts/v2/state_v2.py
SuyashVerma2311/micromouse_maze_solver
d36cc671eabccf568d1f3a55a4e8e7b0289537c6
[ "MIT" ]
null
null
null
pkg_tf_micromouse/scripts/v2/state_v2.py
SuyashVerma2311/micromouse_maze_solver
d36cc671eabccf568d1f3a55a4e8e7b0289537c6
[ "MIT" ]
null
null
null
pkg_tf_micromouse/scripts/v2/state_v2.py
SuyashVerma2311/micromouse_maze_solver
d36cc671eabccf568d1f3a55a4e8e7b0289537c6
[ "MIT" ]
null
null
null
import rospy from sensor_msgs.msg import LaserScan from geometry_msgs.msg import Twist from nav_msgs.msg import Odometry from tf import transformations import numpy as np import matplotlib.pyplot as plt class State(object): def __init__(self): self.sub = rospy.Subscriber('/my_mm_robot/laser/scan', LaserSc...
36.808824
98
0.588094
9b729c7c271ea342be7ac49e248ece9917131d57
4,286
py
Python
src/abstract_rl/neural_modules/neural_network.py
kosmitive/abstract_rl
13038a1a5a93c78374ba869c9e75221c2b73d290
[ "MIT" ]
1
2021-07-05T17:03:29.000Z
2021-07-05T17:03:29.000Z
src/abstract_rl/neural_modules/neural_network.py
kosmitive/abstract_rl
13038a1a5a93c78374ba869c9e75221c2b73d290
[ "MIT" ]
null
null
null
src/abstract_rl/neural_modules/neural_network.py
kosmitive/abstract_rl
13038a1a5a93c78374ba869c9e75221c2b73d290
[ "MIT" ]
null
null
null
import math as m import torch.nn as nn import torch from abstract_rl.src.data_structures.abstract_conf.syncable import Syncable from abstract_rl.src.misc.mixed import select_activation class MultilayerPerceptron(nn.Module, Syncable): """ Fully connected neural network """ def __init__(self, mc, hidd...
34.564516
124
0.609193
56334213148c9a4cbc3dedb2aef8681b55fb45ae
1,694
py
Python
src/encoded/upgrade/replicate.py
Parul-Kudtarkar/t2dream-portal
ad0514e71da95cd911e874cb04112037e10c5823
[ "MIT" ]
null
null
null
src/encoded/upgrade/replicate.py
Parul-Kudtarkar/t2dream-portal
ad0514e71da95cd911e874cb04112037e10c5823
[ "MIT" ]
null
null
null
src/encoded/upgrade/replicate.py
Parul-Kudtarkar/t2dream-portal
ad0514e71da95cd911e874cb04112037e10c5823
[ "MIT" ]
null
null
null
from snovault import upgrade_step from pyramid.traversal import find_root @upgrade_step('replicate', '', '3') def replicate_0_3(value, system): # http://redmine.encodedcc.org/issues/1074 context = system['context'] root = find_root(context) if 'library' in value: library = root.get_by_uuid(val...
30.25
81
0.618064
c1751528eb9ca9c482d07a0760d3ae5dc570c045
42,262
py
Python
archivebox/main.py
madfrog2047/ArchiveBox
ca3a3b3c22d6ad06eb9bf128cf5c635a48798a18
[ "MIT" ]
1
2021-03-21T03:51:08.000Z
2021-03-21T03:51:08.000Z
archivebox/main.py
Lencof/ArchiveBox
308be35367af5c2d1f4e369fe41f6bd4d8bff5be
[ "MIT" ]
null
null
null
archivebox/main.py
Lencof/ArchiveBox
308be35367af5c2d1f4e369fe41f6bd4d8bff5be
[ "MIT" ]
null
null
null
__package__ = 'archivebox' import os import sys import shutil import platform from pathlib import Path from datetime import date from typing import Dict, List, Optional, Iterable, IO, Union from crontab import CronTab, CronSlices from django.db.models import QuerySet from .cli import ( list_subcommands, run_...
37.169745
157
0.629005
e8e469fb85b8cdde8e7c53ae6fd655772c1c2643
172
py
Python
docs/conf.py
PlaidWeb/Authl
1e1f4e0500be25b61426c50c3192367cf0effc7a
[ "MIT" ]
19
2019-07-01T13:00:12.000Z
2022-01-11T21:31:37.000Z
docs/conf.py
PlaidWeb/Authl
1e1f4e0500be25b61426c50c3192367cf0effc7a
[ "MIT" ]
60
2019-07-06T23:56:38.000Z
2021-10-15T23:53:30.000Z
docs/conf.py
PlaidWeb/Authl
1e1f4e0500be25b61426c50c3192367cf0effc7a
[ "MIT" ]
3
2019-07-01T13:00:17.000Z
2021-02-21T04:48:44.000Z
project = "Authl" master_doc = "index" extensions = ["sphinx.ext.autodoc"] autoclass_content = "both" autodoc_member_order = "groupwise" autodoc_inherit_docstrings = False
24.571429
35
0.77907
d2749f3b73530f29b6d582684139159177526dbf
16,859
py
Python
source/appModules/kindle.py
PaulSVK/nvda
7bd9e8b1e184c222f8d3bb39681feca5e87db473
[ "bzip2-1.0.6" ]
1,592
2015-11-10T12:05:44.000Z
2022-03-31T11:50:40.000Z
source/appModules/kindle.py
PaulSVK/nvda
7bd9e8b1e184c222f8d3bb39681feca5e87db473
[ "bzip2-1.0.6" ]
9,479
2015-11-10T20:56:48.000Z
2022-03-31T23:51:30.000Z
source/appModules/kindle.py
PaulSVK/nvda
7bd9e8b1e184c222f8d3bb39681feca5e87db473
[ "bzip2-1.0.6" ]
682
2015-11-10T11:19:23.000Z
2022-03-31T07:51:29.000Z
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2016-2021 NV Access Limited # This file is covered by the GNU General Public License. # See the file COPYING for more details. from typing import Optional, Dict from comtypes import COMError from comtypes.hresult import S_OK import appModuleHandler i...
38.667431
191
0.735749
bfc96d86ed675cf8e21b1e3fe0e0c1becc70f140
18,544
py
Python
sdks/python/apache_beam/runners/interactive/interactive_runner.py
datadrivencz/beam
aa2b585a5356ce3b607dd3d17a3c6ab2ce65353b
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/interactive/interactive_runner.py
datadrivencz/beam
aa2b585a5356ce3b607dd3d17a3c6ab2ce65353b
[ "Apache-2.0" ]
null
null
null
sdks/python/apache_beam/runners/interactive/interactive_runner.py
datadrivencz/beam
aa2b585a5356ce3b607dd3d17a3c6ab2ce65353b
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
36.503937
93
0.717537
eda51a24261c9665cbbaf4251ddd8d21c0f0342a
7,781
py
Python
sample/SendByCodeSetting.py
qiyuesuo/sdk-python-sample
c3750b911482b3ce66b0e1a4f3ed04a9e0b39ab6
[ "MIT" ]
4
2018-01-26T07:52:17.000Z
2020-03-03T10:01:12.000Z
sample/SendByCodeSetting.py
qiyuesuo/sdk-python-sample
c3750b911482b3ce66b0e1a4f3ed04a9e0b39ab6
[ "MIT" ]
null
null
null
sample/SendByCodeSetting.py
qiyuesuo/sdk-python-sample
c3750b911482b3ce66b0e1a4f3ed04a9e0b39ab6
[ "MIT" ]
4
2019-07-30T00:57:08.000Z
2021-09-15T03:33:47.000Z
from httpClient.SdkClient import * from request.ContractDraftRequest import * from request.ContractSignCompanyRequest import * from request.ContractSignLpRequest import * from request.ContractPageRequest import * from request.DocumentAddByFileRequest import * from request.DocumentAddByTemplateRequest import * fr...
34.582222
99
0.790258
750b7a39a5fff77336de9ed2908ea567078827e4
1,204
py
Python
space/map/__init__.py
galactics/space-command
496b054883c6464bcd8d73d72c8145ae80606336
[ "MIT" ]
14
2019-03-22T08:12:39.000Z
2022-01-25T17:45:26.000Z
space/map/__init__.py
galactics/space-command
496b054883c6464bcd8d73d72c8145ae80606336
[ "MIT" ]
3
2019-11-07T09:34:14.000Z
2019-12-29T14:38:17.000Z
space/map/__init__.py
galactics/space-command
496b054883c6464bcd8d73d72c8145ae80606336
[ "MIT" ]
1
2019-12-12T00:48:39.000Z
2019-12-12T00:48:39.000Z
import sys import logging import matplotlib.pyplot as plt from ..utils import docopt, parse_date from ..sat import Sat from .map import MapAnim log = logging.getLogger(__name__) def space_map(*argv): """Animated map of earth with ground track of satellites Usage: space-map (- | <satellite>...) [op...
25.617021
80
0.571429
70144de386c3f6127b4d8194e5a5b3e003d07ef1
24,155
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/operations/_application_security_groups_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2019-08-23T21:14:00.000Z
2021-09-07T18:32:34.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/operations/_application_security_groups_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_11_01/operations/_application_security_groups_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.804124
219
0.671414
43f30b326b6892e1a663de275934a9993fc21965
80
py
Python
vmaig_blog/uwsgi-2.0.14/examples/bootstrap4.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
1
2018-11-24T16:10:49.000Z
2018-11-24T16:10:49.000Z
vmaig_blog/uwsgi-2.0.14/examples/bootstrap4.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
vmaig_blog/uwsgi-2.0.14/examples/bootstrap4.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
import sys import uwsgi sys.meta_path.insert(0, uwsgi.ZipImporter("data://0"))
16
54
0.75
6c9375fc10788913add0f010ca04760c1bd90811
4,822
py
Python
thenewboston_node/business_logic/models/blockchain_state.py
fonar/thenewboston-node
e8b574b32b3f0ff6d19a764105558ba1f3b31bc2
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/models/blockchain_state.py
fonar/thenewboston-node
e8b574b32b3f0ff6d19a764105558ba1f3b31bc2
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/models/blockchain_state.py
fonar/thenewboston-node
e8b574b32b3f0ff6d19a764105558ba1f3b31bc2
[ "MIT" ]
null
null
null
import logging from dataclasses import dataclass, field from typing import Any, Generator, Optional, Type, TypeVar from thenewboston_node.core.utils.dataclass import cover_docstring, revert_docstring from thenewboston_node.core.utils.misc import if_none from thenewboston_node.core.utils.types import hexstr from .acco...
36.255639
114
0.732891
b064202ee3fe012c67240b70ba4c35f5d5ea8328
17,952
py
Python
django/db/models/fields/files.py
willianz7/mlg1noticias
b8793dd00835c477363d22f1be3b0ab939e9833e
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
1
2018-06-12T22:48:28.000Z
2018-06-12T22:48:28.000Z
django/db/models/fields/files.py
willianz7/mlg1noticias
b8793dd00835c477363d22f1be3b0ab939e9833e
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
null
null
null
django/db/models/fields/files.py
willianz7/mlg1noticias
b8793dd00835c477363d22f1be3b0ab939e9833e
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
1
2018-06-12T23:01:07.000Z
2018-06-12T23:01:07.000Z
import datetime import posixpath from django import forms from django.core import checks from django.core.files.base import File from django.core.files.images import ImageFile from django.core.files.storage import Storage, default_storage from django.db.models import signals from django.db.models.fields import Field f...
37.873418
100
0.628899
be53d648102fce4f5482f65276c7f53c04a08ccf
577
py
Python
tests/utils_tests/test_count_dict.py
CYY666666/slim
80def99a2eee87a984e1467f83de02a040a2425f
[ "Zlib" ]
1
2020-08-21T01:59:11.000Z
2020-08-21T01:59:11.000Z
tests/test_count_dict.py
0xNone/slim
7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6
[ "Zlib" ]
null
null
null
tests/test_count_dict.py
0xNone/slim
7cc8bc6ac8773f63ef1ebcafe23c0b1ec52811c6
[ "Zlib" ]
null
null
null
from slim.utils.count_dict import CountDict, _CountSet class A: pass def test_count_dict1(): cd = CountDict() assert isinstance(cd[1], _CountSet) cd = CountDict() assert len(cd[1]) == 0 cd = CountDict() v = A() cd[1].add(v) assert len(cd[1]) == 1 del v assert 1 not in cd ...
16.970588
54
0.556326
ef95f2ef4d67488fb6923e4cb067c97ca55cfe44
9,496
py
Python
utest/test_templates/test_primitives.py
wuyonghong/Rammbock-python3
d882540ea71aef4759abfcd33578605e63f2b2f8
[ "Apache-2.0" ]
null
null
null
utest/test_templates/test_primitives.py
wuyonghong/Rammbock-python3
d882540ea71aef4759abfcd33578605e63f2b2f8
[ "Apache-2.0" ]
null
null
null
utest/test_templates/test_primitives.py
wuyonghong/Rammbock-python3
d882540ea71aef4759abfcd33578605e63f2b2f8
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase, main from Rammbock.templates.primitives import Char, UInt, PDU, Binary, Int from Rammbock.message import Field from Rammbock.binary_tools import to_bin class TestTemplateFields(TestCase): def test_int_static_field(self): field = Int('4', "field", '-72') self.assertT...
42.968326
105
0.629528
78b3e7672ee6274b5989f0055366f2ea2031763a
518
py
Python
neural_network.py
MichaelS52/SingleLayerPerceptronNetwork
fa28498602b66ed8c6180a8da50ef883a3b64c61
[ "MIT" ]
null
null
null
neural_network.py
MichaelS52/SingleLayerPerceptronNetwork
fa28498602b66ed8c6180a8da50ef883a3b64c61
[ "MIT" ]
null
null
null
neural_network.py
MichaelS52/SingleLayerPerceptronNetwork
fa28498602b66ed8c6180a8da50ef883a3b64c61
[ "MIT" ]
null
null
null
import numpy as np import math import sys from zellegraphics import * import time import matplotlib.pyplot as plt from SingleLayerPerceptronNetwork import * from helper import * def main(): ins,outs = training_sets_from_file() in_real = np.array([1,0,0,1]) nn = SingleLayerPerceptronNetwork(input_num=len(...
20.72
85
0.704633
ec088165722f8b6eec10734d8cde8a3ca7688fcf
456
py
Python
app/__init__.py
lambda-my-aws/blog-app-03
c1d3aeb311aaa092134208c1e14d2189ba0497b9
[ "Apache-2.0" ]
null
null
null
app/__init__.py
lambda-my-aws/blog-app-03
c1d3aeb311aaa092134208c1e14d2189ba0497b9
[ "Apache-2.0" ]
null
null
null
app/__init__.py
lambda-my-aws/blog-app-03
c1d3aeb311aaa092134208c1e14d2189ba0497b9
[ "Apache-2.0" ]
null
null
null
from datetime import datetime as dt from flask import ( Flask, jsonify, make_response, ) App = Flask(__name__) App.config.from_object("config") @App.route("/", methods=["GET"]) def hello(): """ Simple Hello World function """ answer = {'name': 'app03'} return make_response(jsonify(an...
18.24
68
0.640351
89274973952ab46a0682a2f3268fdbf8b1de1bbc
14,978
py
Python
project/apps/manual/migrations/0010_auto__add_workout.py
skoczen/skoczen
07d22029e7c9e21bc3322e26072471d01c059cc4
[ "BSD-2-Clause" ]
null
null
null
project/apps/manual/migrations/0010_auto__add_workout.py
skoczen/skoczen
07d22029e7c9e21bc3322e26072471d01c059cc4
[ "BSD-2-Clause" ]
null
null
null
project/apps/manual/migrations/0010_auto__add_workout.py
skoczen/skoczen
07d22029e7c9e21bc3322e26072471d01c059cc4
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Workout' db.create_table(u'manual_workout', ( ...
85.102273
171
0.569702
7d37f084fe2c1025b8b8f1b660f6b607c15178be
2,948
py
Python
app/models.py
amwaniki180/pitches
ace3a2c4762b427595b8ef5962b5854588e9353b
[ "MIT" ]
null
null
null
app/models.py
amwaniki180/pitches
ace3a2c4762b427595b8ef5962b5854588e9353b
[ "MIT" ]
null
null
null
app/models.py
amwaniki180/pitches
ace3a2c4762b427595b8ef5962b5854588e9353b
[ "MIT" ]
1
2019-08-06T06:27:32.000Z
2019-08-06T06:27:32.000Z
from . import db from werkzeug.security import generate_password_hash,check_password_hash from flask_login import UserMixin from . import login_manager @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(UserMixin,db.Model): __tablename__ = 'users' id = db.Co...
28.901961
93
0.666214
7112339d9f8c40bb3ef6d0924fddf5d32a577330
781,624
py
Python
src/evLexer.py
ccRlVDSyBZT1UK/ev-as
0b114578011fdbdab8eb73829fcf4c7bd97b8759
[ "MIT" ]
null
null
null
src/evLexer.py
ccRlVDSyBZT1UK/ev-as
0b114578011fdbdab8eb73829fcf4c7bd97b8759
[ "MIT" ]
null
null
null
src/evLexer.py
ccRlVDSyBZT1UK/ev-as
0b114578011fdbdab8eb73829fcf4c7bd97b8759
[ "MIT" ]
null
null
null
# Generated from ev.g4 by ANTLR 4.9.3 from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\17") ...
76.825634
103
0.585367
86f61b17c56e5a345cb0de9338d1bf69a1d4d94e
655
py
Python
var/spack/repos/builtin/packages/py-traceback2/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/py-traceback2/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/py-traceback2/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyTraceback2(PythonPackage): """Backports of the traceback module""" homepage = "http...
32.75
85
0.70687
d54b1b440966854d3bcef64f52b7f07c3a6d9327
5,320
py
Python
pymysqlreplication/binlogstream.py
liorsion/python-mysql-replication
1a28e344e3ebc0d8c9385d57fd3c0a999d1431a4
[ "Apache-2.0" ]
null
null
null
pymysqlreplication/binlogstream.py
liorsion/python-mysql-replication
1a28e344e3ebc0d8c9385d57fd3c0a999d1431a4
[ "Apache-2.0" ]
null
null
null
pymysqlreplication/binlogstream.py
liorsion/python-mysql-replication
1a28e344e3ebc0d8c9385d57fd3c0a999d1431a4
[ "Apache-2.0" ]
1
2021-07-26T18:21:06.000Z
2021-07-26T18:21:06.000Z
# -*- coding: utf-8 -*- import pymysql import pymysql.cursors import struct from pymysql.constants.COMMAND import COM_BINLOG_DUMP from pymysql.util import int2byte from .packet import BinLogPacketWrapper from .constants.BINLOG import TABLE_MAP_EVENT, ROTATE_EVENT from .event import NotImplementedEvent class BinLogS...
35.945946
91
0.618797
fa1f318224dbdbe08014a0ce4c528ca31094a390
21
py
Python
modules/monitor/system_call/__init__.py
WhySoGeeky/DroidPot
7c3d9e975dae3835e2ccf42c425d65b26466e82a
[ "MIT" ]
6
2016-02-18T10:00:34.000Z
2021-05-27T09:41:35.000Z
__init__.py
WhySoGeeky/DroidPot
7c3d9e975dae3835e2ccf42c425d65b26466e82a
[ "MIT" ]
6
2018-03-30T10:06:12.000Z
2021-06-10T17:59:44.000Z
web/__init__.py
WhySoGeeky/DroidPot
7c3d9e975dae3835e2ccf42c425d65b26466e82a
[ "MIT" ]
null
null
null
__author__ = 'droid'
10.5
20
0.714286
4df4657e4f6d3854824a396a2f0f1052258aa2c9
913
py
Python
commitlog/settings.py
k1000/django-commitlog
89c544a63898870c7d29beda4505c1da6a64029d
[ "MIT" ]
1
2015-11-05T15:17:06.000Z
2015-11-05T15:17:06.000Z
commitlog/settings.py
k1000/django-commitlog
89c544a63898870c7d29beda4505c1da6a64029d
[ "MIT" ]
null
null
null
commitlog/settings.py
k1000/django-commitlog
89c544a63898870c7d29beda4505c1da6a64029d
[ "MIT" ]
null
null
null
from django.conf import settings REPOS = getattr(settings, "REPOS", { "local": settings.PROJECT_PATH, "commitlog": "/home/kam/Projects/flatmate/env/src/commitlog/.git", "tasty-pie": "/home/kam/Projects/flatmate/django-tastypie/.git", #"commitlog": "/home/kam/Projects/flatmate/env/src/commitlog/.git", }) REPO_BR...
38.041667
87
0.763417
e5b9284c778dc24bc587824606321d81bb6b75bf
134
py
Python
stix2patterns_translator/data_models/__init__.py
ohsyln/stix2patterns_translator
848e1954d69bf6a427179991e115543f52f845d6
[ "Apache-2.0" ]
22
2017-10-11T19:24:59.000Z
2022-01-02T09:42:44.000Z
stix2patterns_translator/data_models/__init__.py
ohsyln/stix2patterns_translator
848e1954d69bf6a427179991e115543f52f845d6
[ "Apache-2.0" ]
8
2017-10-12T17:38:40.000Z
2018-10-06T10:53:13.000Z
stix2patterns_translator/data_models/__init__.py
ohsyln/stix2patterns_translator
848e1954d69bf6a427179991e115543f52f845d6
[ "Apache-2.0" ]
10
2017-11-30T03:04:31.000Z
2020-10-19T18:18:58.000Z
from stix2patterns_translator.data_models.car import CarDataMapper from stix2patterns_translator.data_models.cim import CimDataMapper
44.666667
66
0.910448
93005774fc00ec0c243c642e362d11966d13ee0e
2,376
py
Python
tests/test_sparql.py
oxigraph/oxrdflib
378fe3c6aadfbb064a45643c16e768fcc721c57b
[ "BSD-3-Clause" ]
5
2021-04-14T13:24:53.000Z
2021-12-18T16:24:45.000Z
tests/test_sparql.py
oxigraph/oxrdflib
378fe3c6aadfbb064a45643c16e768fcc721c57b
[ "BSD-3-Clause" ]
8
2020-08-09T21:36:13.000Z
2022-03-31T19:14:30.000Z
tests/test_sparql.py
oxigraph/oxrdflib
378fe3c6aadfbb064a45643c16e768fcc721c57b
[ "BSD-3-Clause" ]
2
2021-10-15T04:15:34.000Z
2021-12-15T11:52:03.000Z
import json import unittest from rdflib import RDF, ConjunctiveGraph, Graph, Namespace EX = Namespace("http://example.com/") class SparqlTestCase(unittest.TestCase): def test_ask_query(self): g = ConjunctiveGraph("OxMemory") g.add((EX.foo, RDF.type, EX.Entity)) # basic result = ...
33.942857
120
0.54798
b86ad0a8630c8622565212009ec60893df8e8058
9,401
py
Python
tools/fr_64asFrcnn_video.py
tszssong/mac-py-frcnn
49713b58838d704c400ed11f2afad917dc4ec8ba
[ "BSD-2-Clause" ]
null
null
null
tools/fr_64asFrcnn_video.py
tszssong/mac-py-frcnn
49713b58838d704c400ed11f2afad917dc4ec8ba
[ "BSD-2-Clause" ]
null
null
null
tools/fr_64asFrcnn_video.py
tszssong/mac-py-frcnn
49713b58838d704c400ed11f2afad917dc4ec8ba
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python # -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """ Demo script showin...
36.019157
199
0.566429
c4d7412a0af2dfef055f0baf2438dd8dea07ac69
10,052
py
Python
tools/export/makefile/__init__.py
ghsecuritylab/mbedos_stm32f427vi
c955e8b6e8b6c275ed55eda5893d9351d87b977b
[ "Apache-2.0" ]
1
2019-02-17T16:43:21.000Z
2019-02-17T16:43:21.000Z
tools/export/makefile/__init__.py
ghsecuritylab/mbedos_stm32f427vi
c955e8b6e8b6c275ed55eda5893d9351d87b977b
[ "Apache-2.0" ]
2
2017-03-13T16:10:00.000Z
2017-03-22T13:32:39.000Z
tools/export/makefile/__init__.py
ghsecuritylab/mbedos_stm32f427vi
c955e8b6e8b6c275ed55eda5893d9351d87b977b
[ "Apache-2.0" ]
2
2020-03-07T00:09:36.000Z
2022-01-25T15:41:46.000Z
""" mbed SDK Copyright (c) 2011-2016 ARM Limited 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 wr...
32.636364
93
0.580879
cd8bf57de82ec0b942252f5c8dd40b5a98820aae
145,554
py
Python
mi/instrument/nobska/mavs4/ooicore/driver.py
tapanagupta/mi-instrument
49a91ecc14dcd0a9eb24971e388ddae581f0cb86
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/nobska/mavs4/ooicore/driver.py
tapanagupta/mi-instrument
49a91ecc14dcd0a9eb24971e388ddae581f0cb86
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/nobska/mavs4/ooicore/driver.py
tapanagupta/mi-instrument
49a91ecc14dcd0a9eb24971e388ddae581f0cb86
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @package mi.instrument.nobska.mavs4.ooicore.driver @file /marine-integrations/mi/instrument/nobska/mavs4/ooicore/driver.py @author Bill Bollenbacher @brief Driver for the mavs4 Release notes: initial release """ import struct import time import re from mi.core.util ...
50.893007
133
0.607527
0f035bcd4e2bb71499e51d05bc7389f6957b1e0c
1,924
py
Python
scrape_twitter.py
sysblok/corpus_from_twitter
212d62e2c4f975b2dabb0d77f46a452a1270b46b
[ "MIT" ]
5
2019-04-05T09:23:58.000Z
2020-12-06T12:00:19.000Z
scrape_twitter.py
sysblok/corpus_from_twitter
212d62e2c4f975b2dabb0d77f46a452a1270b46b
[ "MIT" ]
null
null
null
scrape_twitter.py
sysblok/corpus_from_twitter
212d62e2c4f975b2dabb0d77f46a452a1270b46b
[ "MIT" ]
null
null
null
import keys import tweepy import json import langdetect as ld consumer_key = keys.consumer_key consumer_secret = keys.consumer_secret access_token = keys.access_token access_secret = keys.access_secret auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_secret...
37.72549
105
0.616424
48d8c80ffacf5ba78c9a84c3d4510e3b733c5792
580
py
Python
fairseq/modules/lightconv_layer/setup.py
ictnlp/GMA
1c48db457f2d7f468a2f869d808a82e6c3f08f79
[ "MIT" ]
3
2022-03-14T02:27:17.000Z
2022-03-28T14:16:40.000Z
fairseq/modules/lightconv_layer/setup.py
ictnlp/GMA
1c48db457f2d7f468a2f869d808a82e6c3f08f79
[ "MIT" ]
2
2022-03-29T03:03:51.000Z
2022-03-31T10:50:53.000Z
fairseq/modules/lightconv_layer/setup.py
ictnlp/GMA
1c48db457f2d7f468a2f869d808a82e6c3f08f79
[ "MIT" ]
2
2022-03-21T14:23:09.000Z
2022-03-27T05:36:01.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from setuptools import setup from torch.utils.cpp_extension import CUDAExtension, BuildExtension setup( name="ligh...
25.217391
67
0.634483
4b37eaa87b6ce56d8035eb9f34457e672423ee24
497
py
Python
amplitude_python_sdk/common/utils.py
Vaggelis-Sotiropoulos/amplitude-python-sdk
f260b2fdbd984f64db710cdaf45ae80b0535f19c
[ "MIT" ]
1
2022-03-02T02:37:05.000Z
2022-03-02T02:37:05.000Z
amplitude_python_sdk/common/utils.py
Vaggelis-Sotiropoulos/amplitude-python-sdk
f260b2fdbd984f64db710cdaf45ae80b0535f19c
[ "MIT" ]
2
2021-04-28T01:43:56.000Z
2021-05-10T20:27:31.000Z
amplitude_python_sdk/common/utils.py
Vaggelis-Sotiropoulos/amplitude-python-sdk
f260b2fdbd984f64db710cdaf45ae80b0535f19c
[ "MIT" ]
3
2021-04-24T00:40:11.000Z
2022-03-02T02:37:44.000Z
"""Contains utility functions used in both V1 and V2 SDK methods.""" import requests def return_or_raise(response: requests.Response): response.raise_for_status() return response def make_request( session: requests.Session, method: str, url, **kwargs ) -> requests.Response: """ Make a request u...
24.85
73
0.708249
f069a63f16be20a3f3f91e60bd7e873322e2bcbb
4,107
py
Python
src/interpreter.py
marijadebe/lab
b3b213116b25fc89db374f6e61a2513508d00934
[ "MIT" ]
null
null
null
src/interpreter.py
marijadebe/lab
b3b213116b25fc89db374f6e61a2513508d00934
[ "MIT" ]
null
null
null
src/interpreter.py
marijadebe/lab
b3b213116b25fc89db374f6e61a2513508d00934
[ "MIT" ]
null
null
null
from enum import Enum import sys import re from models.token import Token from models.tree import Tree from models.types import Types from controllers.lexer import lexer from controllers.ast import ast from controllers.out import out #Interpreter def interpreter(astree): variables = {} looping = 0 x = 0 ...
45.131868
133
0.454833
d6197d9e6a90188d22432a5ea0a2772ccd7a9ed6
900
py
Python
Thrift-Protobuf-Exp/client.py
ywu94/Code-Notes
8c4e9cbfe86163d39608ddce63e550e0e9797a8e
[ "MIT" ]
2
2020-09-11T10:40:43.000Z
2020-10-08T04:02:26.000Z
Thrift-Protobuf-Exp/client.py
ywu94/Code-Notes
8c4e9cbfe86163d39608ddce63e550e0e9797a8e
[ "MIT" ]
null
null
null
Thrift-Protobuf-Exp/client.py
ywu94/Code-Notes
8c4e9cbfe86163d39608ddce63e550e0e9797a8e
[ "MIT" ]
null
null
null
import sys import json from sample import Transmit from sample.ttypes import * from sample.constants import * from thrift import Thrift from thrift.transport import TSocket from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol import sample_pb2 def get_connection(): transport = TSocket....
24.324324
54
0.758889
2824f5ceb2e8b2f98bc8c85a077e0a469dc49d2d
6,407
py
Python
loldib/getratings/models/NA/na_annie/na_annie_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_annie/na_annie_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_annie/na_annie_jng.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings class NA_Annie_Jng_Aatrox(Ratings): pass class NA_Annie_Jng_Ahri(Ratings): pass class NA_Annie_Jng_Akali(Ratings): pass class NA_Annie_Jng_Alistar(Ratings): pass class NA_Annie_Jng_Amumu(Ratings): pass class NA_Annie_Jng_Anivia(Ratings): pass ...
15.364508
46
0.761667
dc79de57b7a1a5d70b913afd4618d16a343c524d
2,232
py
Python
package/cloudshell/cp/openstack/domain/services/session_providers/os_session_provider.py
QualiSystems/OpenStack-Shell
2e218ee249867550332a9b887a7c50b76ad52e20
[ "ISC" ]
1
2016-07-06T19:59:33.000Z
2016-07-06T19:59:33.000Z
package/cloudshell/cp/openstack/domain/services/session_providers/os_session_provider.py
QualiSystems/OpenStack-Shell
2e218ee249867550332a9b887a7c50b76ad52e20
[ "ISC" ]
256
2016-07-06T17:02:55.000Z
2020-10-01T09:35:03.000Z
package/cloudshell/cp/openstack/domain/services/session_providers/os_session_provider.py
QualiSystems/OpenStack-Shell
2e218ee249867550332a9b887a7c50b76ad52e20
[ "ISC" ]
1
2017-05-16T20:24:57.000Z
2017-05-16T20:24:57.000Z
"""Implements a wrapper class for OpenStack session. Called by Shell Driver""" from keystoneauth1 import identity as keystone_identity from keystoneauth1 import session as keystone_session class OpenStackSessionProvider(object): """A class that provides an OpenStack Session Object using the Password Authentic...
37.2
90
0.62052
77a0c64a88e6c054b13121526a7b1938dca64395
55,618
py
Python
Lib/test/test_array.py
zyxue/cpython
ce23914d8e9b6133fd87b82c8f44ea677afb4d7d
[ "0BSD" ]
5
2021-06-22T19:41:37.000Z
2022-01-03T18:49:33.000Z
Lib/test/test_array.py
zyxue/cpython
ce23914d8e9b6133fd87b82c8f44ea677afb4d7d
[ "0BSD" ]
50
2020-01-07T19:11:11.000Z
2022-03-01T14:40:03.000Z
Lib/test/test_array.py
thomboroboto/cpyth
7375b42fe8ac3562f5179ca5a6edcffda578ce35
[ "0BSD" ]
4
2018-07-13T08:20:36.000Z
2020-09-28T18:02:05.000Z
"""Test the arraymodule. Roger E. Masse """ import collections.abc import unittest from test import support from test.support import os_helper from test.support import _2G import weakref import pickle import operator import struct import sys import array from array import _array_reconstructor as array_reconstructo...
35.023929
92
0.573843
7f64a82845ab28a2e50c3fd982d797376e276254
2,659
py
Python
tests/visualization/test_instrument_monitor.py
quantify-os/quantify-core
748c29b374ed91f92c264be6ce6dd110f8f79842
[ "BSD-4-Clause" ]
1
2022-01-08T14:42:58.000Z
2022-01-08T14:42:58.000Z
tests/visualization/test_instrument_monitor.py
quantify-os/quantify-core
748c29b374ed91f92c264be6ce6dd110f8f79842
[ "BSD-4-Clause" ]
null
null
null
tests/visualization/test_instrument_monitor.py
quantify-os/quantify-core
748c29b374ed91f92c264be6ce6dd110f8f79842
[ "BSD-4-Clause" ]
null
null
null
import time import pyqtgraph.multiprocess as pgmp from pyqtgraph.multiprocess.remoteproxy import ClosedError from quantify_core.visualization.instrument_monitor import InstrumentMonitor class TestInstrumentMonitor: @classmethod def setup_class(cls): cls.inst_mon = InstrumentMonitor(name="ins_mon_tes...
32.426829
88
0.588943
d2720abe1440c6af572989f23f08b53b9173b077
22,274
py
Python
utils.py
mikksillaste/aima-python
cf7b90bccf10e682f073bb5dbdc2056be6f4eb40
[ "MIT" ]
1
2021-02-01T17:52:12.000Z
2021-02-01T17:52:12.000Z
utils.py
mikksillaste/aima-python
cf7b90bccf10e682f073bb5dbdc2056be6f4eb40
[ "MIT" ]
null
null
null
utils.py
mikksillaste/aima-python
cf7b90bccf10e682f073bb5dbdc2056be6f4eb40
[ "MIT" ]
1
2018-09-18T22:02:22.000Z
2018-09-18T22:02:22.000Z
"""Provides some utilities widely used by other modules""" import bisect import collections import collections.abc import operator import os.path import random import math import functools from itertools import chain, combinations # ______________________________________________________________________________ # Fun...
28.338422
99
0.610712
d38b044ef53096718724501d3ac09ffef312c234
2,117
py
Python
widgets/Scripting/Python3/Python3.py
rgschmitz1/BioDepot-workflow-builder
f74d904eeaf91ec52ec9b703d9fb38e9064e5a66
[ "MIT" ]
54
2017-01-08T17:21:49.000Z
2021-11-02T08:46:07.000Z
widgets/Scripting/Python3/Python3.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
22
2017-03-28T06:03:14.000Z
2021-07-28T05:43:55.000Z
widgets/Scripting/Python3/Python3.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
21
2017-01-26T21:12:09.000Z
2022-01-31T21:34:59.000Z
import os import glob import sys import functools import jsonpickle from collections import OrderedDict from Orange.widgets import widget, gui, settings import Orange.data from Orange.data.io import FileFormat from DockerClient import DockerClient from BwBase import OWBwBWidget, ConnectionDict, BwbGuiElements, getIconN...
33.603175
88
0.666037
1ff9da36ada1d44d1a551a0b3577f9e3fb1edbf6
1,312
py
Python
src/model_size.py
lodo1995/LiMNet
ec8b829f6acadd20d6d7bc811c416e1be7d7ff53
[ "Apache-2.0" ]
3
2021-05-17T13:35:16.000Z
2022-02-14T14:07:07.000Z
src/model_size.py
lodo1995/LiMNet
ec8b829f6acadd20d6d7bc811c416e1be7d7ff53
[ "Apache-2.0" ]
null
null
null
src/model_size.py
lodo1995/LiMNet
ec8b829f6acadd20d6d7bc811c416e1be7d7ff53
[ "Apache-2.0" ]
null
null
null
import argparse import pandas as pd import torch import util def load_state_dict(baseFolder, fromCheckpoint): if fromCheckpoint: state_dict = torch.load(util.latestCheckpoint(baseFolder), map_location = 'cpu')['model'] else: state_dict = torch.load(f'{baseFolder}/model.pt', map_location = 'cpu'...
37.485714
137
0.678354
82a4c5f48e4377d7db6e691290a298ed4841ab3e
1,154
py
Python
psdaq/psdaq/pyxpm/surf/axi/_AxiMonAxiL.py
ZhenghengLi/lcls2
94e75c6536954a58c8937595dcac295163aa1cdf
[ "BSD-3-Clause-LBNL" ]
134
2017-02-22T18:07:00.000Z
2022-03-21T16:12:23.000Z
python/surf/axi/_AxiMonAxiL.py
a-panella/surf
b7c116c9f84760bda2c1ea9fa89fddef58dd831d
[ "BSD-3-Clause-LBNL" ]
251
2017-04-26T23:42:42.000Z
2022-03-03T18:48:43.000Z
python/surf/axi/_AxiMonAxiL.py
a-panella/surf
b7c116c9f84760bda2c1ea9fa89fddef58dd831d
[ "BSD-3-Clause-LBNL" ]
38
2017-02-21T21:15:03.000Z
2022-02-06T00:22:37.000Z
#----------------------------------------------------------------------------- # Description: # PyRogue AXI4 Monitor Module Module #----------------------------------------------------------------------------- # This file is part of the 'SLAC Firmware Standard Library'. It is subject to # the license terms in the LICEN...
41.214286
78
0.533795
b7b082efe49d251a05a9be6ed6cb833369ed2924
2,117
py
Python
tests/wallet/test_replacemelisp.py
zcomputerwiz/replaceme-blockchain
b6dfc3ff502e0cb6b7b5fbc566c7fb9ae559757a
[ "Apache-2.0" ]
null
null
null
tests/wallet/test_replacemelisp.py
zcomputerwiz/replaceme-blockchain
b6dfc3ff502e0cb6b7b5fbc566c7fb9ae559757a
[ "Apache-2.0" ]
null
null
null
tests/wallet/test_replacemelisp.py
zcomputerwiz/replaceme-blockchain
b6dfc3ff502e0cb6b7b5fbc566c7fb9ae559757a
[ "Apache-2.0" ]
null
null
null
import pytest from replaceme.wallet.chialisp import ( apply, args, cons, eval, fail, first, is_zero, make_if, make_list, nth, quote, rest, sexp, ) class TestChialisp: def test_sexp(self): assert sexp() == "()" assert sexp(1) == "(1)" ass...
25.506024
70
0.455361
d529e8c3f56ec42bed19378769162223a46d53c0
25,199
py
Python
tests/components/switch/test_flux.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
4
2019-05-14T20:33:43.000Z
2021-09-25T14:56:08.000Z
tests/components/switch/test_flux.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
null
null
null
tests/components/switch/test_flux.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
null
null
null
"""The tests for the Flux switch platform.""" import unittest from unittest.mock import patch from homeassistant.setup import setup_component from homeassistant.components import switch, light from homeassistant.const import CONF_PLATFORM, STATE_ON, SERVICE_TURN_ON import homeassistant.loader as loader import homeassi...
41.514003
73
0.565419
0da2800c21a9e96aa8d098baafc60d5c3ea3e4f8
1,565
py
Python
venv/lib/python3.6/site-packages/Xlib/ext/__init__.py
LeonDante-ctrl/leons-blog
13e189ed4a25cd3152b62692616754a1a5ff4128
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/Xlib/ext/__init__.py
LeonDante-ctrl/leons-blog
13e189ed4a25cd3152b62692616754a1a5ff4128
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/Xlib/ext/__init__.py
LeonDante-ctrl/leons-blog
13e189ed4a25cd3152b62692616754a1a5ff4128
[ "MIT" ]
null
null
null
# Xlib.ext.__init__ -- X extension modules # # Copyright (C) 2000 Peter Liljenberg <petli@ctrl-c.liu.se> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software Foundation; either version 2.1 # of the L...
34.777778
76
0.683067
412104664a535fd09c2f5230258548770ae30ef1
8,716
py
Python
src/train.py
kumarnikhil936/MailClassification_NLTK_Sklearn_Flask_Docker
df919005e2ceafa1d90fb1ab0c302f2220e0906d
[ "MIT" ]
null
null
null
src/train.py
kumarnikhil936/MailClassification_NLTK_Sklearn_Flask_Docker
df919005e2ceafa1d90fb1ab0c302f2220e0906d
[ "MIT" ]
null
null
null
src/train.py
kumarnikhil936/MailClassification_NLTK_Sklearn_Flask_Docker
df919005e2ceafa1d90fb1ab0c302f2220e0906d
[ "MIT" ]
null
null
null
import ast import os import sys import json import yaml import warnings from joblib import dump from loguru import logger from shutil import copy from sklearn import metrics from sklearn.pipeline import Pipeline from sklearn.metrics import classification_report, precision_recall_fscore_support from sklearn.linear_mod...
44.020202
120
0.720055
fdcd2f1192c216562f9687b234e30238b4c5732d
5,209
py
Python
edb/schema/nodes.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
edb/schema/nodes.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
edb/schema/nodes.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # 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...
32.55625
77
0.614321
25113726c9d98fc0caf70aa8d4bcc1efc1cda631
2,217
py
Python
tools/telemetry/telemetry/core/gpu_info.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
20
2015-08-26T06:46:00.000Z
2019-02-27T09:05:58.000Z
tools/telemetry/telemetry/core/gpu_info.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/core/gpu_info.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
# Copyright 2013 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. from telemetry.core import gpu_device class GPUInfo(object): """Provides information about the GPUs on the system.""" def __init__(self, device_array,...
32.602941
79
0.709517
648c1728e6b013983e96ed7a5c0207c9b6aace53
3,063
py
Python
keras/datasets/fashion_mnist.py
websterkovacek/keras
631102a7c9efb57a351355090796d5850285663c
[ "Apache-2.0" ]
3
2021-03-15T05:32:36.000Z
2021-12-14T07:29:53.000Z
keras/datasets/fashion_mnist.py
websterkovacek/keras
631102a7c9efb57a351355090796d5850285663c
[ "Apache-2.0" ]
1
2021-01-30T14:36:06.000Z
2021-01-30T14:36:06.000Z
keras/datasets/fashion_mnist.py
websterkovacek/keras
631102a7c9efb57a351355090796d5850285663c
[ "Apache-2.0" ]
1
2021-01-10T09:06:39.000Z
2021-01-10T09:06:39.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.293478
80
0.650996
43c418f80f41f0bdcb1955781607f98c230a2d3e
2,942
py
Python
ENV/lib/python3.5/site-packages/pyrogram/api/types/secure_value_error_front_side.py
block1o1/CryptoPredicted
7f660cdc456fb8252b3125028f31fd6f5a3ceea5
[ "MIT" ]
4
2021-10-14T21:22:25.000Z
2022-03-12T19:58:48.000Z
ENV/lib/python3.5/site-packages/pyrogram/api/types/secure_value_error_front_side.py
inevolin/CryptoPredicted
7f660cdc456fb8252b3125028f31fd6f5a3ceea5
[ "MIT" ]
null
null
null
ENV/lib/python3.5/site-packages/pyrogram/api/types/secure_value_error_front_side.py
inevolin/CryptoPredicted
7f660cdc456fb8252b3125028f31fd6f5a3ceea5
[ "MIT" ]
1
2022-03-15T22:52:53.000Z
2022-03-15T22:52:53.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free S...
44.575758
1,136
0.722978
a52980603ab4c0ffc347b101d1692f308d440e56
11,446
py
Python
Welcomer2/MinorBackup/Modules/Init.py
TheRockettek/Welcomer
60706b4d6eec7d4f2500b3acc37530e42d846532
[ "MIT" ]
12
2019-09-10T21:31:51.000Z
2022-01-21T14:31:05.000Z
Welcomer2/MinorBackup/Modules/Init.py
TheRockettek/Welcomer
60706b4d6eec7d4f2500b3acc37530e42d846532
[ "MIT" ]
null
null
null
Welcomer2/MinorBackup/Modules/Init.py
TheRockettek/Welcomer
60706b4d6eec7d4f2500b3acc37530e42d846532
[ "MIT" ]
1
2021-09-17T09:03:54.000Z
2021-09-17T09:03:54.000Z
# coding=utf-8 import asyncio import discord import discord.abc import discord.utils import datetime import json import math import os import psutil import rethinkdb as r import requests import sys import time import traceback import concurrent.futures from datetime import datetime from discord.ext import commands f...
37.042071
267
0.598026
1952d1c8d7fb4a330aa188c1d26b843cb8c114d3
1,180
bzl
Python
source/bazel/deps/sdl2/get.bzl
luxe/unilang
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
[ "MIT" ]
33
2019-05-30T07:43:32.000Z
2021-12-30T13:12:32.000Z
source/bazel/deps/sdl2/get.bzl
luxe/unilang
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
[ "MIT" ]
371
2019-05-16T15:23:50.000Z
2021-09-04T15:45:27.000Z
source/bazel/deps/sdl2/get.bzl
luxe/unilang
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
[ "MIT" ]
6
2019-08-22T17:37:36.000Z
2020-11-07T07:15:32.000Z
# Do not edit this file directly. # It was auto-generated by: code/programs/reflexivity/reflexive_refresh load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def sdl2(): http_archive( name="sdl2" , build_file="//bazel/deps/sdl2:build.BUILD" , sha256="d532a339c0d33c4a09098...
39.333333
119
0.607627
806936e4d0af374239b8ea0395c8303482a054f9
8,021
py
Python
statsmodels/tsa/vector_ar/util.py
cdown/statsmodels
c99558b287735eb5f0c1e561866e1501e41fecbe
[ "BSD-3-Clause" ]
1
2018-05-07T16:28:07.000Z
2018-05-07T16:28:07.000Z
statsmodels/tsa/vector_ar/util.py
krasnars/statsmodels
c99558b287735eb5f0c1e561866e1501e41fecbe
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/vector_ar/util.py
krasnars/statsmodels
c99558b287735eb5f0c1e561866e1501e41fecbe
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Miscellaneous utility code for VAR estimation """ from __future__ import division from statsmodels.compat.python import range, string_types, asbytes, long from statsmodels.compat.pandas import frequencies import numpy as np import scipy.stats as stats import scipy.linalg.decomp as decomp i...
27.947735
80
0.587583
f116ba6ca0c0d3777c3e5771b4b5746aead9d27e
792
py
Python
Main.py
destroyer489/BattleShip
63c274617f815d434310aa31796eceade8170116
[ "BSD-3-Clause" ]
null
null
null
Main.py
destroyer489/BattleShip
63c274617f815d434310aa31796eceade8170116
[ "BSD-3-Clause" ]
3
2019-05-15T23:11:22.000Z
2021-12-24T01:17:07.000Z
Main.py
destroyer489/BattleShip
63c274617f815d434310aa31796eceade8170116
[ "BSD-3-Clause" ]
null
null
null
# Dominic Adamson # Put a date here # Programming Class Python Battleship Game import Class_Board Class_Board.main() # Extra credit suggestions: # # -Have the game ask if you want to play again. Do accordingly.+ # -Keep score of wins vs. losses+ # -Make the board size a variable for difficulty+ # -Add some o...
31.68
65
0.729798
cc1b9b470f9ae279d89b2a1e04784b49e453ff12
2,236
py
Python
git_project_updater_business/version/factories/version_changer_factory.py
Slidem/git-project-updater
2d0e91fab26f6c5e7cf5c92c9f0ee78925fb33b5
[ "MIT" ]
null
null
null
git_project_updater_business/version/factories/version_changer_factory.py
Slidem/git-project-updater
2d0e91fab26f6c5e7cf5c92c9f0ee78925fb33b5
[ "MIT" ]
null
null
null
git_project_updater_business/version/factories/version_changer_factory.py
Slidem/git-project-updater
2d0e91fab26f6c5e7cf5c92c9f0ee78925fb33b5
[ "MIT" ]
null
null
null
from git_project_updater_business.version.models.version import ChildVersionType from git_project_updater_business.version.factories.maven_version_changer import MavenVersionChanger, ProjectMavenVersionChangerXmlPathFinder, ParentMavenVersionChangerXmlPathFinder, DependencyArtifactXmlFinder, DependencyManagementArtifac...
55.9
278
0.83229
668da5f08c4a0b05ef3dba11ce10f63a94a6de70
3,184
py
Python
service/web.py
JiscPER/jper
00e638b0993bb6625ad70046fe8ffa0b4544ed15
[ "Apache-2.0" ]
2
2015-05-21T10:38:46.000Z
2015-06-10T15:49:50.000Z
service/web.py
JiscPER/jper
00e638b0993bb6625ad70046fe8ffa0b4544ed15
[ "Apache-2.0" ]
83
2015-05-05T11:10:13.000Z
2016-02-22T11:04:34.000Z
service/web.py
JiscPER/jper
00e638b0993bb6625ad70046fe8ffa0b4544ed15
[ "Apache-2.0" ]
3
2015-11-11T16:37:33.000Z
2016-07-26T10:33:52.000Z
""" Main module from which the application is started and the web interface mounted To start the application directly using the python web server, you can just do :: python web.py Refer to server installation documentation for more details how to deploy in production. """ from octopus.core import app, initialis...
31.215686
164
0.739008
0eb8b8c3cce462a0dde4079e3cb48bea02c575fe
1,971
py
Python
postlist/migrations/0001_initial.py
sahin88/Django_Html_Css_Js_BootStrap_SocialMediaApp_FullStack
ef34f533793b060a90cc3fa6e2c1b51b3349f14d
[ "Unlicense" ]
null
null
null
postlist/migrations/0001_initial.py
sahin88/Django_Html_Css_Js_BootStrap_SocialMediaApp_FullStack
ef34f533793b060a90cc3fa6e2c1b51b3349f14d
[ "Unlicense" ]
null
null
null
postlist/migrations/0001_initial.py
sahin88/Django_Html_Css_Js_BootStrap_SocialMediaApp_FullStack
ef34f533793b060a90cc3fa6e2c1b51b3349f14d
[ "Unlicense" ]
null
null
null
# Generated by Django 3.0.5 on 2020-05-11 01:56 import ckeditor.fields from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_...
43.8
127
0.61999
2d008a490740461ac0972002d04489d0d94633e7
13,326
py
Python
movingpandas/tests/test_trajectory.py
stevemarin/movingpandas
0e35e4087b8ca79ab3193130321b324cc6446184
[ "BSD-3-Clause" ]
null
null
null
movingpandas/tests/test_trajectory.py
stevemarin/movingpandas
0e35e4087b8ca79ab3193130321b324cc6446184
[ "BSD-3-Clause" ]
null
null
null
movingpandas/tests/test_trajectory.py
stevemarin/movingpandas
0e35e4087b8ca79ab3193130321b324cc6446184
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import pandas as pd from pandas.util.testing import assert_frame_equal from geopandas import GeoDataFrame from shapely.geometry import Point from datetime import datetime, timedelta from fiona.crs import from_epsg from movingpandas.trajectory import Trajectory, DIRECTION_COL_NAME,...
42.987097
125
0.6365
7ce22119840ebf9af032031968fc868924e02f07
423
py
Python
skeleton/migrations/0002_publicexperience_experience_id.py
danb-bh/AutisticaPlatformPrototype
b9102f18b310b7c2d9a351c0df54c64909b83084
[ "MIT" ]
1
2020-07-23T11:43:06.000Z
2020-07-23T11:43:06.000Z
skeleton/migrations/0002_publicexperience_experience_id.py
danb-bh/AutisticaPlatformPrototype
b9102f18b310b7c2d9a351c0df54c64909b83084
[ "MIT" ]
30
2020-07-27T14:32:43.000Z
2020-12-10T12:53:35.000Z
skeleton/migrations/0002_publicexperience_experience_id.py
fjThomasStanley/AutisticaPlatformPrototype
c846103af043dfd436d8c5ec5c53ea226d3d5ea0
[ "MIT" ]
5
2020-07-23T12:07:35.000Z
2020-08-28T10:41:07.000Z
# Generated by Django 2.2.3 on 2019-07-15 12:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('skeleton', '0001_initial'), ] operations = [ migrations.AddField( model_name='publicexperience', name='experience_id...
21.15
47
0.598109
bbd6b1a2e003fcc86d19cff8b87d7471f5d29cf4
552
py
Python
abraxas/lib/tag.py
ushahidi/Abraxas
ddba2bafb59834e706cfdec6c122e70cda8b4e4d
[ "BSD-3-Clause" ]
null
null
null
abraxas/lib/tag.py
ushahidi/Abraxas
ddba2bafb59834e706cfdec6c122e70cda8b4e4d
[ "BSD-3-Clause" ]
null
null
null
abraxas/lib/tag.py
ushahidi/Abraxas
ddba2bafb59834e706cfdec6c122e70cda8b4e4d
[ "BSD-3-Clause" ]
null
null
null
import urllib2 import urllib import simplejson def tag(text): if type(text) == unicode: text = text.encode('utf-8') values = dict(text=text,key='AAAABBBB') data = urllib.urlencode(values) request = urllib2.Request('http://silcc.nrny.net/api/tag', data) json_response = urllib2.urlopen(reque...
25.090909
68
0.682971
151c553b09abfdf2c766363e95a5e6f5d9916f67
2,704
py
Python
mypython/Lib/site-packages/pandas/tests/series/methods/test_count.py
lilianatang/data-modelling-with-postgresql
4b5d057d23c346cc36695dc0548f11908aeb5431
[ "Apache-2.0" ]
null
null
null
mypython/Lib/site-packages/pandas/tests/series/methods/test_count.py
lilianatang/data-modelling-with-postgresql
4b5d057d23c346cc36695dc0548f11908aeb5431
[ "Apache-2.0" ]
null
null
null
mypython/Lib/site-packages/pandas/tests/series/methods/test_count.py
lilianatang/data-modelling-with-postgresql
4b5d057d23c346cc36695dc0548f11908aeb5431
[ "Apache-2.0" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
import numpy as np import pytest import pandas as pd from pandas import Categorical, MultiIndex, Series import pandas._testing as tm class TestSeriesCount: def test_count_level_series(self): index = MultiIndex( levels=[["foo", "bar", "baz"], ["one", "two", "three", "four"]], ...
31.811765
81
0.569896
0ac6bea46051095973d4db8165ac08897a6b1c4b
4,429
py
Python
scad/enclosure.py
iorodeo/mini_motmot_enclosure
61e6169062288f6ffbf0255027150f6df4ee3036
[ "Apache-2.0" ]
1
2020-07-23T18:59:28.000Z
2020-07-23T18:59:28.000Z
scad/enclosure.py
iorodeo/mini_motmot_enclosure
61e6169062288f6ffbf0255027150f6df4ee3036
[ "Apache-2.0" ]
null
null
null
scad/enclosure.py
iorodeo/mini_motmot_enclosure
61e6169062288f6ffbf0255027150f6df4ee3036
[ "Apache-2.0" ]
null
null
null
""" Creates an enclosure """ from py2scad import * INCH2MM = 25.4 # Inside dimensions x,y,z = 7.5*INCH2MM, 3.25*INCH2MM, 1.5*INCH2MM hole_list = [] # Offset of pcb from walls pcb_offset_x = 0.5*INCH2MM pcb_offset_y = 0.125*INCH2MM # Size of teensy pcb and hole spacings teensy_x = 2.25*INCH2MM teensy_y = 3.0*INCH2M...
28.031646
72
0.596071
8470e415fe0da08ca4e939fb99799af7b1b7c8f8
186
py
Python
chapter1/hell_pymongo.py
Baw25/MongoStuff
0a6f35505948d36b3bf1b07a1a75709babaeca71
[ "MIT" ]
null
null
null
chapter1/hell_pymongo.py
Baw25/MongoStuff
0a6f35505948d36b3bf1b07a1a75709babaeca71
[ "MIT" ]
null
null
null
chapter1/hell_pymongo.py
Baw25/MongoStuff
0a6f35505948d36b3bf1b07a1a75709babaeca71
[ "MIT" ]
null
null
null
import pymongo from pymongo import MongoClient connection = MongoClient('localhost', 27017) db = connection.mongo_test teams = db.teams item = teams.find_one() print(item['name'])
13.285714
44
0.752688
ec5b4dd4f8f8bb45de38edcd495beb4b392fb3a5
15,922
py
Python
google/cloud/aiplatform_v1beta1/types/migration_service.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
google/cloud/aiplatform_v1beta1/types/migration_service.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1beta1/types/migration_service.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 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...
40.308861
208
0.667378
7af6b917e3e5f48ba3218e3cc4a9472b711ddf87
1,005
py
Python
var/spack/repos/builtin/packages/py-pystan/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-pystan/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/py-pystan/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyPystan(PythonPackage): """PyStan is a Python interface to Stan, a package for Ba...
37.222222
95
0.670647
d167afcc65d6ec12e889ec077d47c40e0fc28bab
453
py
Python
Dataset/Leetcode/train/56/513.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/56/513.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/56/513.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, intervals: List[List[int]]) -> List[List[int]]: if len(intervals) == 1: return intervals intervals.sort(key=lambda p: p[0]) res = [intervals[0]] for pair in intervals[1:]: last = res[-1] if last[0] <= pair[0]...
26.647059
65
0.463576
3f30297146b7f43d1fe5a1fccfd69d6f0f8208c3
8,097
py
Python
test/test_sha1.py
konradwilk/sha1
b0275f9228d82feb74eb5674c550e8d66c76ec4e
[ "Apache-2.0" ]
null
null
null
test/test_sha1.py
konradwilk/sha1
b0275f9228d82feb74eb5674c550e8d66c76ec4e
[ "Apache-2.0" ]
null
null
null
test/test_sha1.py
konradwilk/sha1
b0275f9228d82feb74eb5674c550e8d66c76ec4e
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Konrad Rzeszutek Wilk # # 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 ...
26.900332
95
0.599358
08087753dce8cf507a7c9eedf9b12fd9da3c7204
675
py
Python
components/gcp/container/component_sdk/python/kfp_component/core/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/gcp/container/component_sdk/python/kfp_component/core/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/gcp/container/component_sdk/python/kfp_component/core/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2018 The Kubeflow Authors # # 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...
42.1875
74
0.777778
0aa0a22c70ab2d32efc933008ac34e2f0b50a6f7
957
py
Python
Python 3 - Mundo 2/Desafio das Aulas - Mundo 2/Desafio39-AlistamentoMilitar.py
Pedro0901/python3-curso-em-video
2e8995a5352c1918e5da68e7868a613b938e9c29
[ "MIT" ]
1
2021-07-05T03:13:33.000Z
2021-07-05T03:13:33.000Z
Python 3 - Mundo 2/Desafio das Aulas - Mundo 2/Desafio39-AlistamentoMilitar.py
Pedro0901/python3-curso-em-video
2e8995a5352c1918e5da68e7868a613b938e9c29
[ "MIT" ]
null
null
null
Python 3 - Mundo 2/Desafio das Aulas - Mundo 2/Desafio39-AlistamentoMilitar.py
Pedro0901/python3-curso-em-video
2e8995a5352c1918e5da68e7868a613b938e9c29
[ "MIT" ]
null
null
null
''' Exercício Python 39: Faça um programa que leia o ano de nascimento de um jovem e informe, de acordo com a sua idade, se ele ainda vai se alistar ao serviço militar, se é a hora exata de se alistar ou se já passou do tempo do alistamento. Seu programa também deverá mostrar o tempo que falta ou que passou do prazo. '...
38.28
117
0.710554
6db7b143472915288e4b15ed6619006ac4a9a182
688
py
Python
ex19.py
ChoChoThet/coding-sprint
37d756178ef30daad11aaacf44963e4dd18a18e6
[ "MIT" ]
null
null
null
ex19.py
ChoChoThet/coding-sprint
37d756178ef30daad11aaacf44963e4dd18a18e6
[ "MIT" ]
null
null
null
ex19.py
ChoChoThet/coding-sprint
37d756178ef30daad11aaacf44963e4dd18a18e6
[ "MIT" ]
null
null
null
def cheese_and_crackers(cheese_count, boxes_of_crackers): print(f"You have {cheese_count} cheeses!") print(f"You have {boxes_of_crackers} boxes of crackers!") print("Man that's enough for a party!") print("Get a blanket.\n") print("We can just give the function numbers directly:") cheese_and_crackers(...
38.222222
70
0.761628
607eac70d7ece7af8dc8bda97374fcc24cd09bfd
118
py
Python
10179.py
XITO404/Baekjoon
6de9c66645160ff69b6c53d61e47d02b80ad6e44
[ "MIT" ]
null
null
null
10179.py
XITO404/Baekjoon
6de9c66645160ff69b6c53d61e47d02b80ad6e44
[ "MIT" ]
null
null
null
10179.py
XITO404/Baekjoon
6de9c66645160ff69b6c53d61e47d02b80ad6e44
[ "MIT" ]
null
null
null
a = int(input()) for i in range(a): price = float(input()) print('${:.2f}'.format(round(price*0.8, 2)))
16.857143
48
0.525424
2d2b7e026d9fcc7104deaf6261d0ec7609fd957b
3,413
py
Python
app/app/settings.py
raiatul14/recipe-app-api
3b2c02c94377ffe20340177ef4f3c802d94b10bd
[ "MIT" ]
null
null
null
app/app/settings.py
raiatul14/recipe-app-api
3b2c02c94377ffe20340177ef4f3c802d94b10bd
[ "MIT" ]
null
null
null
app/app/settings.py
raiatul14/recipe-app-api
3b2c02c94377ffe20340177ef4f3c802d94b10bd
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.0.10. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bu...
25.281481
91
0.686493
dea5a656988a322fe5bd34b4cb283eeb7ea06456
5,823
py
Python
pwbs/config/pwbs_config.py
paip-web/pwbs
21622712b6975ab68b7f5d7c1a944fa826ea87ba
[ "MIT" ]
2
2020-01-07T16:07:56.000Z
2020-02-15T05:57:58.000Z
pwbs/config/pwbs_config.py
paip-web/pwbs
21622712b6975ab68b7f5d7c1a944fa826ea87ba
[ "MIT" ]
3
2020-07-03T21:28:02.000Z
2021-06-25T15:29:18.000Z
pwbs/config/pwbs_config.py
paip-web/pwbs
21622712b6975ab68b7f5d7c1a944fa826ea87ba
[ "MIT" ]
1
2020-02-15T06:00:08.000Z
2020-02-15T06:00:08.000Z
# -*- coding: utf-8 -*- """PAiP Web Build System - PWBS Config Manager NAME - PAiP Web Build System AUTHOR - Patryk Adamczyk <patrykadamczyk@paipweb.com> LICENSE - MIT """ # Imports from __future__ import print_function from pwbs.log.logger import Logger from pwbs.config.config_manager import ConfigManager, PWBSInval...
34.868263
84
0.551434
4e5e4806a179ffe4e54d1d97cb315f8c69c1fa4c
95,755
py
Python
flopy/plot/plotutil.py
ntdosch/flopy
63ce93d23eb028017cccf6a83a9180560ba36f77
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/plot/plotutil.py
ntdosch/flopy
63ce93d23eb028017cccf6a83a9180560ba36f77
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/plot/plotutil.py
ntdosch/flopy
63ce93d23eb028017cccf6a83a9180560ba36f77
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
""" Module containing helper functions for plotting model data using ModelMap and ModelCrossSection. Functions for plotting shapefiles are also included. """ import os import sys import math import numpy as np import warnings from ..utils import Util3d from ..datbase import DataType, DataInterface try: import sha...
32.143337
90
0.482168
df801d916638d300af2efbc06213cad98cf9a39b
2,011
py
Python
tests/pytests/integration/states/test_idem.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
tests/pytests/integration/states/test_idem.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
tests/pytests/integration/states/test_idem.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Tests for the idem state """ import tempfile from contextlib import contextmanager import pytest import salt.state import salt.utils.idem as idem import salt.utils.path import tests.support.sminion pytestmark = [ pytest.mark.skipif(not idem.HAS_POP[0], reason=idem.HAS_POP[1]), ] @contextmanager def test_sta...
30.469697
86
0.664346
e2fecfdf7c6118b4d6e887fc1659eef8eaa5a693
10,375
py
Python
lib/third_party/google/cloud/appengine_v1beta/proto/operation_pb2.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/third_party/google/cloud/appengine_v1beta/proto/operation_pb2.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/third_party/google/cloud/appengine_v1beta/proto/operation_pb2.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/appengine_v1beta/proto/operation.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protob...
48.481308
933
0.774072
7ad8d4c8b3d8bc72c3a4d37ea299f9166c10b488
21,411
py
Python
deprecated/tools/spy_parser.py
qyz96/Legion
b12f0d1bd759788356385fbb6ae8b6321068e3b7
[ "Apache-2.0" ]
null
null
null
deprecated/tools/spy_parser.py
qyz96/Legion
b12f0d1bd759788356385fbb6ae8b6321068e3b7
[ "Apache-2.0" ]
null
null
null
deprecated/tools/spy_parser.py
qyz96/Legion
b12f0d1bd759788356385fbb6ae8b6321068e3b7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 Stanford University # # 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 applicabl...
56.344737
347
0.587362
4fbfec370bdd23b6255f42fe6cbb697ec74c992b
3,080
py
Python
datasets/wheelerutoaztecan/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
null
null
null
datasets/wheelerutoaztecan/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
null
null
null
datasets/wheelerutoaztecan/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
1
2018-10-19T11:58:00.000Z
2018-10-19T11:58:00.000Z
# coding: utf8 from __future__ import unicode_literals, print_function, division from six.moves.urllib.request import urlretrieve from clldutils.dsv import UnicodeReader from clldutils.misc import slug from clldutils.path import TemporaryDirectory from pylexibank.util import xls2csv from pylexibank.dataset import Cld...
35.813953
154
0.58474
8e387f63786e1b3ada43e92b0d04485dbada2ca9
1,224
py
Python
DL-HW1-KNN-classifier/hw1-q1.py
ShounakNR/DeepLearningECE579
329179be31008f45a3d258e13ed9f20ca68d6547
[ "MIT" ]
null
null
null
DL-HW1-KNN-classifier/hw1-q1.py
ShounakNR/DeepLearningECE579
329179be31008f45a3d258e13ed9f20ca68d6547
[ "MIT" ]
null
null
null
DL-HW1-KNN-classifier/hw1-q1.py
ShounakNR/DeepLearningECE579
329179be31008f45a3d258e13ed9f20ca68d6547
[ "MIT" ]
null
null
null
import numpy as np X= np.array([[0,1,0],[0,1,1],[1,2,1],[1,2,0],[1,2,2],[2,2,2],[1,2,-1],[2,2,3],[-1,-1,-1],[0,-1,-2],[0,-1,1],[-1,-2,1]]) # make X as an array of 12x3 dimension with the training data. first 4 entries are A, next 4 are of B and the last 4 are of C. Y = np.array([[1],[1],[1],[1],[2],[2],[2],[2],[3],[3],...
61.2
126
0.651961
446bdb81a27ae42bc787199b2bfab4f1cfdf5db8
80
py
Python
run.py
MathewGillroy/hello-python
6f33f3322c9bd5fd6553b39004077d557f7cacbb
[ "MIT" ]
null
null
null
run.py
MathewGillroy/hello-python
6f33f3322c9bd5fd6553b39004077d557f7cacbb
[ "MIT" ]
null
null
null
run.py
MathewGillroy/hello-python
6f33f3322c9bd5fd6553b39004077d557f7cacbb
[ "MIT" ]
null
null
null
if __name__ == '__main__': # Print Hello, World! print("Hello, World!")
20
26
0.6
49345a901e0ca73c39290b32465425bf4f7b3513
516
py
Python
fairseq/transform_tokenize.py
KentonMurray/fairseq-for-en-ar
9477ffa2ac3a4fda99c596a4741f394e77aff9ab
[ "MIT" ]
21
2021-09-09T00:18:42.000Z
2022-03-29T08:54:25.000Z
fairseq/transform_tokenize.py
KentonMurray/fairseq-for-en-ar
9477ffa2ac3a4fda99c596a4741f394e77aff9ab
[ "MIT" ]
1
2021-12-19T15:12:55.000Z
2021-12-20T04:35:26.000Z
fairseq/transform_tokenize.py
KentonMurray/fairseq-for-en-ar
9477ffa2ac3a4fda99c596a4741f394e77aff9ab
[ "MIT" ]
2
2021-12-16T11:32:23.000Z
2022-01-04T04:57:29.000Z
from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("lanwuwei/GigaBERT-v4-Arabic-and-English") fo = open("/export/c12/haoranxu/fairseq/arabic_bitext/data_transbpe/dev.32k.en2", encoding="utf-8") fw = open("/export/c12/haoranxu/fairseq/arabic_bitext/data_transbpe/dev.32k.en", "w"...
34.4
103
0.724806
97b08798f16d840b3ef45cbc5810fb5eb81c13e4
93,651
py
Python
tensorflow/python/eager/function_test.py
blairhan/tensorflow
abf1fdc85287bf03eddd19406009e05055ae9507
[ "Apache-2.0" ]
2
2019-09-10T17:53:52.000Z
2021-01-26T10:27:44.000Z
tensorflow/python/eager/function_test.py
abenmao/tensorflow
949474a44831bc28bac8a97bdafd1f7dc6589a97
[ "Apache-2.0" ]
null
null
null
tensorflow/python/eager/function_test.py
abenmao/tensorflow
949474a44831bc28bac8a97bdafd1f7dc6589a97
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.825447
80
0.665823
d26b99953ccb6e3ede823b8d670590690935547b
5,612
py
Python
helpful-stuff/cmd-developer-search.py
LokotamaTheMastermind/useful-python-scripts
cc5e17d1b0ec57354ccf773fd4c55de3b5f7c461
[ "MIT" ]
1
2020-08-27T15:30:01.000Z
2020-08-27T15:30:01.000Z
helpful-stuff/cmd-developer-search.py
LokotamaTheMastermind/useful-python-scripts
cc5e17d1b0ec57354ccf773fd4c55de3b5f7c461
[ "MIT" ]
2
2020-08-27T15:25:16.000Z
2020-08-28T08:52:43.000Z
helpful-stuff/cmd-developer-search.py
LokotamaTheMastermind/useful-python-scripts
cc5e17d1b0ec57354ccf773fd4c55de3b5f7c461
[ "MIT" ]
null
null
null
try: while 1: def normal_search(site_name, site_domain, query): if query != "": import webbrowser import time import os import platform op = platform.system() custom_website_search = f"https://www.{si...
44.539683
143
0.585887
4988c4e217ad097f8376f45396a9e6f54dc19e53
2,707
py
Python
Scripts/pilfile.py
Zendom88/web-api
4340ccc3a4c433676aec33f3e0b6254979504a70
[ "MIT" ]
null
null
null
Scripts/pilfile.py
Zendom88/web-api
4340ccc3a4c433676aec33f3e0b6254979504a70
[ "MIT" ]
null
null
null
Scripts/pilfile.py
Zendom88/web-api
4340ccc3a4c433676aec33f3e0b6254979504a70
[ "MIT" ]
null
null
null
#!c:\gfapps\d'sdoc~1\duong\code\web-api\scripts\python.exe # # The Python Imaging Library. # $Id$ # # a utility to identify image files # # this script identifies image files, extracting size and # pixel mode information for known file formats. Note that # you don't need the PIL C extension to use this module. # # Hi...
26.539216
77
0.573328
1f9034e124d9c78e8ec4be7fabdbda855c35e067
12,307
py
Python
ai4good/webapp/model_runner.py
AIforGoodSimulator/model-server
17662dc2a18b3e12e5c8ee51731e288088a51cf5
[ "MIT" ]
11
2020-06-12T11:46:26.000Z
2022-02-09T23:10:34.000Z
ai4good/webapp/model_runner.py
AIforGoodSimulator/model-server
17662dc2a18b3e12e5c8ee51731e288088a51cf5
[ "MIT" ]
54
2020-07-17T10:13:33.000Z
2021-03-08T16:38:29.000Z
ai4good/webapp/model_runner.py
AIforGoodSimulator/model-server
17662dc2a18b3e12e5c8ee51731e288088a51cf5
[ "MIT" ]
10
2020-07-03T16:12:50.000Z
2021-02-06T15:51:16.000Z
import traceback import numpy as np import pandas as pd import pickle import socket import secrets from datetime import datetime from typing import List from enum import Enum, auto import redis from flask_login import current_user from dask.distributed import Client, Future, Variable from ai4good.config import ModelCon...
40.35082
127
0.590396