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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fcc6c86765fcf633c28691ba399ab19c5fd57779 | 461 | py | Python | Addresses/checkboxes.py | bruceqqqqq/Tkinter-Course | 5c4260a1b6aa45c5a7c406f940a57d778afce20b | [
"Apache-2.0"
] | null | null | null | Addresses/checkboxes.py | bruceqqqqq/Tkinter-Course | 5c4260a1b6aa45c5a7c406f940a57d778afce20b | [
"Apache-2.0"
] | null | null | null | Addresses/checkboxes.py | bruceqqqqq/Tkinter-Course | 5c4260a1b6aa45c5a7c406f940a57d778afce20b | [
"Apache-2.0"
] | null | null | null | from tkinter import *
from PIL import ImageTk, Image
root = Tk()
root.title('Batman')
root.iconbitmap('images/batman.ico')
root.geometry('400x400')
var = StringVar()
check = Checkbutton(root, text='Check this box', variable=var, onvalue='On', offvalue='Off')
check.deselect()
check.pack()
myButton = Button(root, tex... | 20.043478 | 92 | 0.707158 |
fcc79406b9832714fea2809a9345d147398abb57 | 38,295 | py | Python | model/interact/modeling.py | shanestorks/piglet | be8ab482503a94a61667bef66e8aac8584ee5a9c | [
"MIT"
] | 48 | 2021-06-02T01:44:06.000Z | 2022-01-19T05:10:54.000Z | model/interact/modeling.py | shanestorks/piglet | be8ab482503a94a61667bef66e8aac8584ee5a9c | [
"MIT"
] | 2 | 2021-07-07T21:53:37.000Z | 2022-01-11T20:46:31.000Z | model/interact/modeling.py | shanestorks/piglet | be8ab482503a94a61667bef66e8aac8584ee5a9c | [
"MIT"
] | 7 | 2021-06-02T14:41:05.000Z | 2022-03-11T21:37:01.000Z | import tensorflow as tf
import sys
sys.path.append('../../')
from model.model_utils import bfloat16_getter, get_shape_list, gelu, dropout, layer_norm, sequence_xe_loss, \
construct_host_call, get_assignment_map_from_checkpoint, _sequence_xe_loss_noreduce, stack_jagged, \
get_ltr_attention_mask
from data.thor_c... | 48.352273 | 125 | 0.589215 |
fcc845234e6840c99dfb161a50d8b03c190825b7 | 16,564 | py | Python | tests/docker/test_docker.py | radiocosmology/alpenhorn | a91df899d864e04699b6f49c33f473383ee10cfc | [
"MIT"
] | 3 | 2017-03-10T00:51:01.000Z | 2018-04-25T16:50:13.000Z | tests/docker/test_docker.py | radiocosmology/alpenhorn | a91df899d864e04699b6f49c33f473383ee10cfc | [
"MIT"
] | 106 | 2017-03-16T23:57:10.000Z | 2021-10-05T23:44:48.000Z | tests/docker/test_docker.py | radiocosmology/alpenhorn | a91df899d864e04699b6f49c33f473383ee10cfc | [
"MIT"
] | 1 | 2018-07-26T23:32:13.000Z | 2018-07-26T23:32:13.000Z | import os
import re
import time
from os.path import dirname, exists, join
import pytest
import yaml
from alpenhorn import acquisition as ac
from alpenhorn import archive as ar
from alpenhorn import storage as st
if ("RUN_DOCKER_TESTS" not in os.environ) and ("PLAYGROUND" not in os.environ):
pytestmark = pytest... | 27.745394 | 90 | 0.604262 |
fcc9b8226e96c6e28f85197970bc3c0f4fa4224e | 1,219 | py | Python | Unit 5/t.py | yeshellohi/CodeHS-APCS-Java | f5dd2ecc6635b01d38d08f046bf893e36d20453e | [
"MIT"
] | 2 | 2021-04-21T21:27:25.000Z | 2021-04-21T21:27:27.000Z | Unit 5/t.py | hristojj/CodeHS-APCS-Java | 35257c9ce09b68d93b20d7c89a2b4be98e6b0698 | [
"MIT"
] | null | null | null | Unit 5/t.py | hristojj/CodeHS-APCS-Java | 35257c9ce09b68d93b20d7c89a2b4be98e6b0698 | [
"MIT"
] | null | null | null |
a="5.2.6 Our First Array"
b="5.2.7 Array Length"
c="5.2.8 Last Element in Array"
d="5.3.6 Print Array"
e="5.3.7 Print Odd Array Indices"
f="5.3.8 Find the Minimum Index"
g="5.3.12 Find the Median"
h="5.3.13 Top Student"
i="5.4.6 Get First Element"
j="5.4.9 Road Trip"
nameL = {1:a,
2:b,
3:c,
4:d,
... | 30.475 | 80 | 0.488925 |
fcc9d5e6a05c79b1bf39adf1c4fcd4c98f9a6d85 | 95 | py | Python | scorecards/apps.py | moshthepitt/probsc | 9b8cab206bb1c41238e36bd77f5e0573df4d8e2d | [
"MIT"
] | null | null | null | scorecards/apps.py | moshthepitt/probsc | 9b8cab206bb1c41238e36bd77f5e0573df4d8e2d | [
"MIT"
] | null | null | null | scorecards/apps.py | moshthepitt/probsc | 9b8cab206bb1c41238e36bd77f5e0573df4d8e2d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 15.833333 | 34 | 0.768421 |
fccaf2f4d3d6f7c59cec4ee5700bfdb021bb5807 | 855 | py | Python | user/permissions.py | arabindamahato/CanteenMS | 3e7b592798f62fba2c12405ab0d9b4f2fe89a248 | [
"MIT"
] | null | null | null | user/permissions.py | arabindamahato/CanteenMS | 3e7b592798f62fba2c12405ab0d9b4f2fe89a248 | [
"MIT"
] | 6 | 2021-03-19T03:34:04.000Z | 2021-09-22T19:03:24.000Z | user/permissions.py | arabindamahato/CanteenMS | 3e7b592798f62fba2c12405ab0d9b4f2fe89a248 | [
"MIT"
] | null | null | null | from rest_framework import permissions
# class IsGetOrPatchOrPut(permissions.BasePermission):
# def has_permission(self, request, view):
# allowed_methods = ['GET', 'PATCH', 'PUT']
# if request.method in allowed_methods:
# return True
# else:
# return False
| 27.580645 | 59 | 0.736842 |
fccb331c2eb46090371d60f7632d229d2233551e | 10,172 | py | Python | SparseSC/optimizers/cd_line_search.py | cclauss/SparseSC | bd5c65f162a5431f92ed957df3385c803f2d3365 | [
"MIT"
] | null | null | null | SparseSC/optimizers/cd_line_search.py | cclauss/SparseSC | bd5c65f162a5431f92ed957df3385c803f2d3365 | [
"MIT"
] | null | null | null | SparseSC/optimizers/cd_line_search.py | cclauss/SparseSC | bd5c65f162a5431f92ed957df3385c803f2d3365 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.optimize import line_search
import locale
locale.setlocale(locale.LC_ALL, '')
print_stop_iteration = 1
def cdl_search(score,
guess,
jac,
tol = 1e-4,
aggressiveness = 0.1,# aggressiveness
alpha_mult = .9,
... | 42.383333 | 159 | 0.567735 |
fccf49b1abdfc57fe1c9a3e98dcfeba511b3cef0 | 2,495 | py | Python | runOgre.py | songsiwei/Ogre_r_sv | b31dc64133f082ae395196ebedf41c8cc825ebfd | [
"BSD-3-Clause"
] | null | null | null | runOgre.py | songsiwei/Ogre_r_sv | b31dc64133f082ae395196ebedf41c8cc825ebfd | [
"BSD-3-Clause"
] | null | null | null | runOgre.py | songsiwei/Ogre_r_sv | b31dc64133f082ae395196ebedf41c8cc825ebfd | [
"BSD-3-Clause"
] | null | null | null | from ogre import generators
import argparse
from configparser import ConfigParser
from ase.io import read, write
import os
from ogre.utils.utils import print_run_time
#print('################')
#teat_a = read('TETCEN.cif', format= 'cif')
#print(teat_a)
if __name__ == "__main__":
main()
| 38.384615 | 92 | 0.662926 |
fcd051cc9d371ceb9894a4f98003dc7676180be6 | 2,405 | py | Python | src/display.py | Gravens/AirDimples | 5531b0e43afb1349b121a54bb8ab1dd29bba0a84 | [
"Apache-2.0"
] | null | null | null | src/display.py | Gravens/AirDimples | 5531b0e43afb1349b121a54bb8ab1dd29bba0a84 | [
"Apache-2.0"
] | 2 | 2021-07-14T09:32:01.000Z | 2021-07-19T16:25:15.000Z | src/display.py | Gravens/AirDimples | 5531b0e43afb1349b121a54bb8ab1dd29bba0a84 | [
"Apache-2.0"
] | 1 | 2021-07-14T15:31:02.000Z | 2021-07-14T15:31:02.000Z | import time
from threading import Thread
import cv2
import keyboard
import drawing
import utils
from config import config
from gameplay import GameWithFriendOpenVINO
from utils import log
| 29.329268 | 118 | 0.600832 |
fcd4786f27f6a842e4576395961babc0a8399812 | 19 | py | Python | data/external/repositories/136086/kaggle-master/hierarchical-text/tree_structure/constants.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/136086/kaggle-master/hierarchical-text/tree_structure/constants.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/136086/kaggle-master/hierarchical-text/tree_structure/constants.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | TRAIN_SIZE = 23654
| 9.5 | 18 | 0.789474 |
fcd6079c76e2339ed83df903d08fd0f21d9fd5ff | 1,524 | py | Python | lens_it.py | chemicoPy/lens_it | 36005bc82f1fec32280e91ee6841ba3a17db97aa | [
"Apache-2.0"
] | null | null | null | lens_it.py | chemicoPy/lens_it | 36005bc82f1fec32280e91ee6841ba3a17db97aa | [
"Apache-2.0"
] | 1 | 2021-06-19T13:03:08.000Z | 2021-06-24T20:36:58.000Z | lens_it.py | chemicoPy/lens_it | 36005bc82f1fec32280e91ee6841ba3a17db97aa | [
"Apache-2.0"
] | 1 | 2021-07-01T03:27:54.000Z | 2021-07-01T03:27:54.000Z | import numpy as np
from numpy import *
import pandas as pd
from pandas import DataFrame, Series
from numpy.random import randn
import tensorflow as tf
import matplotlib.pyplot as plt
from PIL import Image
import re
from skimage.io import imread, imshow
from termcolor import colored
import keras
import h5py
... | 24.983607 | 91 | 0.736877 |
fcd7544768bb3229ec5e9ae800a2ea3ee4d1fbda | 603 | py | Python | asyncmy/sa/__init__.py | dnp1/asyncmy | ae8a09e4d7d64d6d5cb448b7d7154e715071d414 | [
"Apache-2.0"
] | 1 | 2021-10-22T01:35:21.000Z | 2021-10-22T01:35:21.000Z | asyncmy/sa/__init__.py | dnp1/asyncmy | ae8a09e4d7d64d6d5cb448b7d7154e715071d414 | [
"Apache-2.0"
] | null | null | null | asyncmy/sa/__init__.py | dnp1/asyncmy | ae8a09e4d7d64d6d5cb448b7d7154e715071d414 | [
"Apache-2.0"
] | null | null | null | """Optional support for sqlalchemy.sql dynamic query generation."""
from asyncmy.sa.connection import SAConnection
from .engine import create_engine, Engine
from .exc import (Error, ArgumentError, InvalidRequestError,
NoSuchColumnError, ResourceClosedError)
from . import result
__all__ = ('create_e... | 35.470588 | 71 | 0.749585 |
fcd93a3e56808b06287beaf9ab650f7bd54032be | 13,058 | py | Python | quantile_ml/utils_scoring.py | doordash/auto_ml | 7e6873265c4c2c0a03946c3f68a954930cda3bb2 | [
"MIT"
] | 17 | 2016-09-23T03:29:23.000Z | 2022-03-22T10:42:34.000Z | quantile_ml/utils_scoring.py | doordash/auto_ml | 7e6873265c4c2c0a03946c3f68a954930cda3bb2 | [
"MIT"
] | 3 | 2016-09-21T23:12:51.000Z | 2016-12-01T19:17:18.000Z | quantile_ml/utils_scoring.py | doordash/auto_ml | 7e6873265c4c2c0a03946c3f68a954930cda3bb2 | [
"MIT"
] | 3 | 2017-05-30T17:30:30.000Z | 2020-03-26T09:43:24.000Z | from collections import OrderedDict
import math
from quantile_ml import utils
import pandas as pd
from sklearn.ensemble import GradientBoostingRegressor, GradientBoostingClassifier
from sklearn.metrics import mean_squared_error, make_scorer, brier_score_loss, accuracy_score, explained_variance_score, mean_absolute_err... | 40.055215 | 362 | 0.652856 |
fcda80063c8aaa6e840fe53a93438e5045c6f364 | 1,150 | py | Python | setup.py | icon-project/loopchain_tools | 3441f0ade654bbaedc382d94230f526b14baea1a | [
"Apache-2.0"
] | 1 | 2020-08-15T16:15:03.000Z | 2020-08-15T16:15:03.000Z | setup.py | icon-project/loopchain_tools | 3441f0ade654bbaedc382d94230f526b14baea1a | [
"Apache-2.0"
] | null | null | null | setup.py | icon-project/loopchain_tools | 3441f0ade654bbaedc382d94230f526b14baea1a | [
"Apache-2.0"
] | 2 | 2021-06-02T07:50:57.000Z | 2021-12-01T23:35:10.000Z | import os
from setuptools import setup, find_packages
version = os.environ.get('VERSION')
if version is None:
with open(os.path.join('.', 'VERSION')) as version_file:
version = version_file.read().strip()
setup_options = {
'name': 'loopchain tools',
'description': 'CLI tools for loopchain',
... | 31.944444 | 61 | 0.64087 |
fcdb510122b20178c2555bc294630f212df04c12 | 1,315 | py | Python | lecture_6/stack_4.py | Willianan/Interview_Book | bde1a975bcffdb1179f234cb3380f51d4c800b12 | [
"Apache-2.0"
] | 2 | 2019-11-12T09:07:56.000Z | 2020-07-15T06:28:58.000Z | lecture_6/stack_4.py | Willianan/Interview_Book | bde1a975bcffdb1179f234cb3380f51d4c800b12 | [
"Apache-2.0"
] | null | null | null | lecture_6/stack_4.py | Willianan/Interview_Book | bde1a975bcffdb1179f234cb3380f51d4c800b12 | [
"Apache-2.0"
] | 1 | 2020-05-04T13:46:38.000Z | 2020-05-04T13:46:38.000Z | # -*- coding:utf-8 -*-
"""
@AuthorCharles Van
@E-mail: williananjhon@hotmail.com
@Time2019-08-13 15:52
@Project:InterView_Book
@Filename:stack_4.py
@description:
"""
'''
3n12
3
'''
if __name__ == "__main__":
hm = HanoiMove(3,1,2)
hm.printMoveSteps() | 23.909091 | 92 | 0.698859 |
fcdc751153a77f14d59683f2518a461ca9f696b9 | 34,911 | py | Python | src/genopandas/core/matrix.py | jrderuiter/genopandas | 8d4bd46cfcd3a9c27c1f561ed25b3e5c3ff4b8a5 | [
"MIT"
] | null | null | null | src/genopandas/core/matrix.py | jrderuiter/genopandas | 8d4bd46cfcd3a9c27c1f561ed25b3e5c3ff4b8a5 | [
"MIT"
] | null | null | null | src/genopandas/core/matrix.py | jrderuiter/genopandas | 8d4bd46cfcd3a9c27c1f561ed25b3e5c3ff4b8a5 | [
"MIT"
] | null | null | null | import functools
import itertools
import operator
import re
import numpy as np
import pandas as pd
from pandas.api.types import is_numeric_dtype
import toolz
from genopandas import plotting as gplot
from genopandas.util.pandas_ import DfWrapper
from .frame import GenomicDataFrame, GenomicSlice
RANGED_REGEX = r'(?P<... | 34.462981 | 80 | 0.595085 |
fcdcb04e7d7ccb6b7e169672c64a338e2a347415 | 936 | py | Python | GUI/Generic/GScrollableBases.py | gcewing/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 9 | 2019-07-15T19:03:27.000Z | 2021-11-24T19:50:02.000Z | GUI/Generic/GScrollableBases.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 3 | 2019-09-11T13:22:10.000Z | 2020-08-19T20:13:00.000Z | GUI/Generic/GScrollableBases.py | mnabeelp/PyGUI | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | [
"MIT"
] | 4 | 2020-02-23T16:50:06.000Z | 2022-02-10T07:15:35.000Z | #-------------------------------------------------------------------------------
#
# Python GUI - Scrollable objects mixin - Generic
#
#-------------------------------------------------------------------------------
from GUI.Properties import overridable_property
| 28.363636 | 80 | 0.600427 |
fcdd8fbbacd99d5950045aa9617eefdf52b571c4 | 345 | py | Python | calibration_tool/trajectory/trajectory.py | liwen-deepmotion/map_based_lidar_camera_calibration_tool | d260380729b05b153c2efd1e76d4ae077c48c4b1 | [
"MIT"
] | 26 | 2021-04-24T08:07:20.000Z | 2022-03-13T15:21:02.000Z | calibration_tool/trajectory/trajectory.py | Grandzxw/map_based_lidar_camera_calibration_tool | d260380729b05b153c2efd1e76d4ae077c48c4b1 | [
"MIT"
] | null | null | null | calibration_tool/trajectory/trajectory.py | Grandzxw/map_based_lidar_camera_calibration_tool | d260380729b05b153c2efd1e76d4ae077c48c4b1 | [
"MIT"
] | 9 | 2021-04-19T23:32:21.000Z | 2022-03-03T06:31:19.000Z |
from typing import List
from trajectory.trajectory_node import TrajectoryNode
| 19.166667 | 65 | 0.704348 |
fcdf6498cef441e9307973c5719c094eefe1d7d2 | 5,047 | py | Python | lap/create_lap_dataset.py | saadyousuf45/age-gender-estimation | 50ff4bce716e8eba717c53009c2e0fa6feaae03c | [
"MIT"
] | 1,437 | 2017-04-10T04:55:35.000Z | 2022-03-31T04:49:26.000Z | lap/create_lap_dataset.py | saadyousuf45/age-gender-estimation | 50ff4bce716e8eba717c53009c2e0fa6feaae03c | [
"MIT"
] | 130 | 2017-05-19T02:39:38.000Z | 2022-03-21T14:10:35.000Z | lap/create_lap_dataset.py | saadyousuf45/age-gender-estimation | 50ff4bce716e8eba717c53009c2e0fa6feaae03c | [
"MIT"
] | 542 | 2017-05-10T10:18:15.000Z | 2022-03-21T05:52:35.000Z | import argparse
import better_exceptions
import sys
import time
from pathlib import Path
import zipfile
import bz2
import urllib.request
import dlib
import cv2
zip_names = ["train_1.zip", "train_2.zip", "train_gt.zip", "valid.zip", "valid_gt.zip"]
urls = ["http://***/train_1.zip",
"http://***/train_2.zip",
... | 36.572464 | 112 | 0.650684 |
fce0375babdffaec108464100e4d42cc1e0f5f14 | 364 | py | Python | FastSimulation/CTPPSSimHitProducer/python/CTPPSSimHitProducer_cfi.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | FastSimulation/CTPPSSimHitProducer/python/CTPPSSimHitProducer_cfi.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | FastSimulation/CTPPSSimHitProducer/python/CTPPSSimHitProducer_cfi.py | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
CTPPSSimHits = cms.EDProducer('CTPPSSimHitProducer',
MCEvent = cms.untracked.InputTag("LHCTransport"),
Z_Tracker1 = cms.double(203.827),# first tracker z position in m
Z_Tracker2 = cms.double(212.550),# second tracker z position in m
Z_Timing = cms.double(215... | 33.090909 | 71 | 0.730769 |
fce0601a6ff2cda3356985a40d589f3821be9bbb | 1,222 | py | Python | tests/test_visitor.py | christophevg/schema-tools | 50e7650a4d13662f231234ec12b3c0a8af759c09 | [
"MIT"
] | 1 | 2020-11-15T20:57:20.000Z | 2020-11-15T20:57:20.000Z | tests/test_visitor.py | christophevg/schema-tools | 50e7650a4d13662f231234ec12b3c0a8af759c09 | [
"MIT"
] | null | null | null | tests/test_visitor.py | christophevg/schema-tools | 50e7650a4d13662f231234ec12b3c0a8af759c09 | [
"MIT"
] | null | null | null | from schema_tools import yaml
from schema_tools.schema import build
from schema_tools.schema.json import IntegerSchema, StringSchema, TupleItem
| 30.55 | 75 | 0.724223 |
fce08866ab83bbd7410f4a2c43e3cbea905390f5 | 209 | py | Python | cmake/CMakeBuild/bin/cmake_docutil.py | kevleyski/VVCSoftware_VTM | 693b6b263a6e643189a8977ff2f2ef2d2c0f5d25 | [
"BSD-3-Clause"
] | 3 | 2021-05-29T00:05:42.000Z | 2022-03-17T00:11:29.000Z | cmake/CMakeBuild/bin/cmake_docutil.py | kevleyski/VVCSoftware_VTM | 693b6b263a6e643189a8977ff2f2ef2d2c0f5d25 | [
"BSD-3-Clause"
] | 7 | 2021-09-18T14:48:01.000Z | 2021-09-21T13:16:13.000Z | cmake/CMakeBuild/bin/cmake_docutil.py | kevleyski/VVCSoftware_VTM | 693b6b263a6e643189a8977ff2f2ef2d2c0f5d25 | [
"BSD-3-Clause"
] | 5 | 2019-10-07T17:31:42.000Z | 2022-02-19T14:07:29.000Z | #!/usr/bin/python
#
# cmake_docutil.py
#
import pyhhi.build.app.cmkdocapp
import pyhhi.build.common.util
app = pyhhi.build.app.cmkdocapp.CMakeDocUtilApp()
pyhhi.build.common.util.exec_main_default_try(app)
| 17.416667 | 50 | 0.789474 |
fce1e97e1f94b6f6d602eef5a26d80a7fb984cce | 1,068 | py | Python | library/old_tools_methods/tools.py | kensoi/testcanarybot | 1570b6dab1ae6902f6179d4d1fed0bb83229ad08 | [
"Apache-2.0"
] | null | null | null | library/old_tools_methods/tools.py | kensoi/testcanarybot | 1570b6dab1ae6902f6179d4d1fed0bb83229ad08 | [
"Apache-2.0"
] | 1 | 2021-02-03T12:48:23.000Z | 2021-02-03T12:48:23.000Z | library/old_tools_methods/tools.py | kensoi/testcanarybot | 1570b6dab1ae6902f6179d4d1fed0bb83229ad08 | [
"Apache-2.0"
] | 1 | 2021-11-03T12:36:51.000Z | 2021-11-03T12:36:51.000Z | from datetime import datetime
name_cases = ['nom', 'gen', 'dat', 'acc', 'ins', 'abl']
everyone = ['@everyone', '@all', '@']
| 28.105263 | 99 | 0.562734 |
fce41f5398739ee51c0146bd32f70e90c45cd487 | 10,999 | py | Python | app/api/v1/resources/deregdevice.py | a-wakeel/Device-Registration-Subsystem | dd9fa387e2087a6ccea9676303debe640bd99422 | [
"Unlicense"
] | 6 | 2018-11-07T12:41:30.000Z | 2020-04-12T18:07:03.000Z | app/api/v1/resources/deregdevice.py | a-wakeel/Device-Registration-Subsystem | dd9fa387e2087a6ccea9676303debe640bd99422 | [
"Unlicense"
] | 1 | 2020-10-20T12:33:18.000Z | 2020-10-20T12:33:18.000Z | app/api/v1/resources/deregdevice.py | a-wakeel/Device-Registration-Subsystem | dd9fa387e2087a6ccea9676303debe640bd99422 | [
"Unlicense"
] | 10 | 2018-11-12T06:15:19.000Z | 2021-11-18T05:45:12.000Z | """
DRS De-Registration device resource package.
Copyright (c) 2018-2020 Qualcomm Technologies, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
... | 62.851429 | 844 | 0.638967 |
fce42dcc84df1e368c75a961a2e92119ffaf9405 | 3,193 | py | Python | fixedfield-to-csv.py | curtisalexander/fixedfield-to-csv | 57ef87ed698321bb700ed2a2f4dafe07d6a7213d | [
"MIT"
] | null | null | null | fixedfield-to-csv.py | curtisalexander/fixedfield-to-csv | 57ef87ed698321bb700ed2a2f4dafe07d6a7213d | [
"MIT"
] | null | null | null | fixedfield-to-csv.py | curtisalexander/fixedfield-to-csv | 57ef87ed698321bb700ed2a2f4dafe07d6a7213d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import csv
from itertools import compress
from struct import Struct
def check_ctl(incsv):
"""Check the Length variable within the control file.
Length = Start - End + 1
"""
with open(incsv, 'rU') as f:
csv_reader = csv.DictReader(f)
for row in csv_reader:
... | 37.127907 | 108 | 0.606953 |
fce46c304276b9b24990e4e0366dffce626e8138 | 1,515 | py | Python | bumblebee/core/respadapter.py | nosoyyo/bumblebee | 60452b03b2cd255ae4582a830b463fe7183e209e | [
"Apache-2.0"
] | null | null | null | bumblebee/core/respadapter.py | nosoyyo/bumblebee | 60452b03b2cd255ae4582a830b463fe7183e209e | [
"Apache-2.0"
] | null | null | null | bumblebee/core/respadapter.py | nosoyyo/bumblebee | 60452b03b2cd255ae4582a830b463fe7183e209e | [
"Apache-2.0"
] | null | null | null | __doc__ = 'for adapting 3 main types of resp: requests, baidubce & bumblebee'
import json
from requests import Response as RequestsResponse
from utils.bce import BceResponse
from utils import SelfAssemblingClass
| 34.431818 | 78 | 0.590759 |
fce6cd181284a407deac3e65af5c7526a1141077 | 698 | py | Python | scripts/hotandcold.py | jkutner/minecraft-python-server | 9c09ffb6fb0001d89100d7f5b55c5a682a7ff81f | [
"MIT"
] | null | null | null | scripts/hotandcold.py | jkutner/minecraft-python-server | 9c09ffb6fb0001d89100d7f5b55c5a682a7ff81f | [
"MIT"
] | null | null | null | scripts/hotandcold.py | jkutner/minecraft-python-server | 9c09ffb6fb0001d89100d7f5b55c5a682a7ff81f | [
"MIT"
] | 1 | 2021-01-02T16:16:56.000Z | 2021-01-02T16:16:56.000Z | from mcpi.minecraft import Minecraft
import math
import time
import random
import pycraft
mc = pycraft.new_minecraft()
destX = random.randint(-127, 127)
destZ = random.randint(-127, 127)
destY = mc.getHeight(destX, destZ)
block = 57
mc.setBlock(destX, destY, destZ, block)
mc.postToChat("Block set")
while True:
pos ... | 21.8125 | 66 | 0.696275 |
fce82e902ad945e4eaa9e4c10493543217fafc73 | 2,368 | py | Python | fuzzinator/tracker/bugzilla.py | elecro/fuzzinator | 2ed30127c364d50af960ad9f5cecbbae5cde2381 | [
"BSD-3-Clause"
] | null | null | null | fuzzinator/tracker/bugzilla.py | elecro/fuzzinator | 2ed30127c364d50af960ad9f5cecbbae5cde2381 | [
"BSD-3-Clause"
] | null | null | null | fuzzinator/tracker/bugzilla.py | elecro/fuzzinator | 2ed30127c364d50af960ad9f5cecbbae5cde2381 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016-2018 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.
import os
from bugzilla import *
from .base import BaseTracker
| 36.430769 | 106 | 0.559122 |
fceb36dd10a7c2e8d6eea587eff7fe47021932ef | 3,741 | py | Python | HW2/gradebook_202101-14765_HW20220Assignment_2021-03-11-18-59-42/Libraries/HT_natural_convection.py | CarlGriffinsteed/UVM-ME144-Heat-Transfer | 9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca | [
"CC-BY-3.0"
] | 7 | 2017-06-02T20:31:22.000Z | 2021-04-05T13:52:33.000Z | HW2/gradebook_202101-14765_HW20220Assignment_2021-03-11-18-59-42/Libraries/HT_natural_convection.py | CarlGriffinsteed/UVM-ME144-Heat-Transfer | 9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca | [
"CC-BY-3.0"
] | null | null | null | HW2/gradebook_202101-14765_HW20220Assignment_2021-03-11-18-59-42/Libraries/HT_natural_convection.py | CarlGriffinsteed/UVM-ME144-Heat-Transfer | 9c477449d6ba5d6a9ee7c57f1c0ed4aab0ce4cca | [
"CC-BY-3.0"
] | 9 | 2019-01-24T17:43:41.000Z | 2021-07-25T18:08:34.000Z | """
Object name: HorizontalCylinder
Functions: Gr(g,beta,DT,D,nu) gives the Grashoff number based on:
gravity g, thermal expansion coefficient beta, Temperature difference DT,
length scale D, viscosity nu
Ra(g,beta,DT,D,nu,alpha) gives the Rayleigh number where alpha is the thermal ... | 35.971154 | 102 | 0.493718 |
fced7903bc90aa448acbe8f9d949ea135dc54660 | 3,765 | py | Python | bdd/contact_steps.py | Nadezhda-Sokolova/Python_training_from_software-testing.ru | 5ce65cee1d538dc5d0b25beba67547b32e612a10 | [
"Apache-2.0"
] | null | null | null | bdd/contact_steps.py | Nadezhda-Sokolova/Python_training_from_software-testing.ru | 5ce65cee1d538dc5d0b25beba67547b32e612a10 | [
"Apache-2.0"
] | null | null | null | bdd/contact_steps.py | Nadezhda-Sokolova/Python_training_from_software-testing.ru | 5ce65cee1d538dc5d0b25beba67547b32e612a10 | [
"Apache-2.0"
] | null | null | null | from pytest_bdd import given, when, then
from model.contact import Contact
import random
| 46.481481 | 160 | 0.705976 |
fcedb493e14ec02820c3a65afad5786b78965f96 | 2,968 | py | Python | collections/comprehensions.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | collections/comprehensions.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | collections/comprehensions.py | rolandovillca/python_introduction_basic | d1333a832a9e2b103e128a9dfc0c0da0952c267f | [
"MIT"
] | null | null | null | '''
The comprehentions really make it easy to add those loops and
conditionals on the existing comprehentions.
'''
nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# EXAMPLE 1: Print Lists in a simple way:
# ==============================================================================
my_list1 = [n for n in nums]
my_list2 = [... | 27.738318 | 80 | 0.487871 |
fceeb5c97dcacc7efd221c426aaa56e4566fd2c1 | 3,050 | py | Python | tests/validate_mcts.py | hdelecki/AdaptiveStressTestingToolbox | 184d7d7f1b4acb65eecb749e3c3a78cbcfc3c4ed | [
"MIT"
] | 29 | 2019-01-09T23:56:35.000Z | 2022-03-18T03:41:10.000Z | tests/validate_mcts.py | hdelecki/AdaptiveStressTestingToolbox | 184d7d7f1b4acb65eecb749e3c3a78cbcfc3c4ed | [
"MIT"
] | 39 | 2019-01-10T00:32:26.000Z | 2022-03-12T00:29:05.000Z | tests/validate_mcts.py | hdelecki/AdaptiveStressTestingToolbox | 184d7d7f1b4acb65eecb749e3c3a78cbcfc3c4ed | [
"MIT"
] | 11 | 2019-01-10T08:11:47.000Z | 2021-12-28T15:56:02.000Z | from examples.AV.example_runner_mcts_av import runner as mcts_runner
if __name__ == '__main__':
validate_mcts()
| 31.770833 | 102 | 0.475738 |
fcef799a7e5f6146dab0e6c5b4b7d8fd2a2c8798 | 10,058 | py | Python | steps/optimize.py | bartubisgin/z-quantum-core | b61aef12cc86f0a8234229b9b26b21cde950d6f1 | [
"Apache-2.0"
] | null | null | null | steps/optimize.py | bartubisgin/z-quantum-core | b61aef12cc86f0a8234229b9b26b21cde950d6f1 | [
"Apache-2.0"
] | null | null | null | steps/optimize.py | bartubisgin/z-quantum-core | b61aef12cc86f0a8234229b9b26b21cde950d6f1 | [
"Apache-2.0"
] | 1 | 2022-03-19T02:23:53.000Z | 2022-03-19T02:23:53.000Z | import json
import numpy as np
from openfermion import SymbolicOperator
from typing import Union, Dict, Optional, List
from zquantum.core.circuit import (
Circuit,
load_circuit,
load_circuit_template_params,
save_circuit_template_params,
load_parameter_grid,
)
from zquantum.core.cost_function impo... | 43.921397 | 116 | 0.741897 |
fcf06f020add9f824d183bcba4b082d5c4bee1d3 | 2,200 | py | Python | experiments/detectability_one_net/train_model.py | cassianobecker/msbm | 6ce22f93f63071dc3ca722d499db376ea678eb23 | [
"MIT"
] | null | null | null | experiments/detectability_one_net/train_model.py | cassianobecker/msbm | 6ce22f93f63071dc3ca722d499db376ea678eb23 | [
"MIT"
] | null | null | null | experiments/detectability_one_net/train_model.py | cassianobecker/msbm | 6ce22f93f63071dc3ca722d499db376ea678eb23 | [
"MIT"
] | null | null | null | # Experiment that generates several sets of networks of varying CH-divergence types
# then trains an msbm of a single type in a "consensus" type of way. Then we report the
# average rand_index and average entropy of the z variables, which are indicators of how well
# the algorithm is learning the true model.
import o... | 34.920635 | 97 | 0.617273 |
fcf0f7d0ced8ceb827bbd618ebf3aa2adb347d1b | 833 | py | Python | goodbuyDatabase/tests/test_urls.py | code-goodbuy/Goodbuy | d23363a46988f65f121a6edb75609fdddaa95cde | [
"Unlicense"
] | 2 | 2019-03-20T20:30:16.000Z | 2019-04-10T19:54:32.000Z | goodbuyDatabase/tests/test_urls.py | code-goodbuy/Goodbuy | d23363a46988f65f121a6edb75609fdddaa95cde | [
"Unlicense"
] | 30 | 2019-02-22T17:24:13.000Z | 2019-05-15T09:29:51.000Z | goodbuyDatabase/tests/test_urls.py | code-goodbuy/Goodbuy | d23363a46988f65f121a6edb75609fdddaa95cde | [
"Unlicense"
] | 1 | 2020-04-08T07:53:09.000Z | 2020-04-08T07:53:09.000Z | from django.test import TestCase
from django.urls import reverse, resolve
from goodbuyDatabase.endpoints import is_in_own_database
from goodbuyDatabase.views import product_list, show_list_of_codes
| 36.217391 | 83 | 0.755102 |
fcf41308fbf0ea2ddf14fd935e69cbfa21da77dc | 1,274 | py | Python | SocialDistanceDetector/loggingModule.py | Rankush888/Social-Distancing-Detector | e4a73ad84c63a6152fefdf9606ccf8850be7d629 | [
"MIT"
] | null | null | null | SocialDistanceDetector/loggingModule.py | Rankush888/Social-Distancing-Detector | e4a73ad84c63a6152fefdf9606ccf8850be7d629 | [
"MIT"
] | null | null | null | SocialDistanceDetector/loggingModule.py | Rankush888/Social-Distancing-Detector | e4a73ad84c63a6152fefdf9606ccf8850be7d629 | [
"MIT"
] | null | null | null | try:
import logging
import os
except BaseException:
print('Exception got in importing the module.')
| 28.954545 | 66 | 0.530612 |
fcf437071f3aca1716b10d46267ae94434da6f1c | 372 | py | Python | sparweltbitool/client_redis.py | checkout-charlie/bitool | e41ce66ab2b88992dbfc08d79372bf3965724f3e | [
"MIT"
] | null | null | null | sparweltbitool/client_redis.py | checkout-charlie/bitool | e41ce66ab2b88992dbfc08d79372bf3965724f3e | [
"MIT"
] | null | null | null | sparweltbitool/client_redis.py | checkout-charlie/bitool | e41ce66ab2b88992dbfc08d79372bf3965724f3e | [
"MIT"
] | 1 | 2015-07-22T16:53:42.000Z | 2015-07-22T16:53:42.000Z | import redis
from sparweltbitool.config import config
from sparweltbitool.singleton import Singleton
| 21.882353 | 46 | 0.637097 |
fcf50282811ffc8a770fa38ebbb80b3ac990778e | 6,317 | py | Python | analytics/analyser/tests/unittest_analyser.py | sadikovi/Pulsar | 3267426cf5bd676a3c4c20cbee88a80b89e65b0f | [
"Apache-2.0"
] | null | null | null | analytics/analyser/tests/unittest_analyser.py | sadikovi/Pulsar | 3267426cf5bd676a3c4c20cbee88a80b89e65b0f | [
"Apache-2.0"
] | 29 | 2015-02-23T07:59:13.000Z | 2015-04-05T09:49:53.000Z | analytics/analyser/tests/unittest_analyser.py | sadikovi/Pulsar | 3267426cf5bd676a3c4c20cbee88a80b89e65b0f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
'''
Copyright 2015 Ivan Sadikov
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... | 39.72956 | 107 | 0.611999 |
fcf6780f79287563663f060074514f87c285483f | 1,618 | py | Python | modelzoo/SOK/DLRM/data/bin2bin.py | aalbersk/DeepRec | f673a950780959b44dcda99398880a1d883ab338 | [
"Apache-2.0"
] | 292 | 2021-12-24T03:24:33.000Z | 2022-03-31T15:41:05.000Z | modelzoo/SOK/DLRM/data/bin2bin.py | aalbersk/DeepRec | f673a950780959b44dcda99398880a1d883ab338 | [
"Apache-2.0"
] | 54 | 2021-12-24T06:40:09.000Z | 2022-03-30T07:57:24.000Z | modelzoo/SOK/DLRM/data/bin2bin.py | aalbersk/DeepRec | f673a950780959b44dcda99398880a1d883ab338 | [
"Apache-2.0"
] | 75 | 2021-12-24T04:48:21.000Z | 2022-03-29T10:13:39.000Z | import os
import argparse
import time
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('input', type=str)
parser.add_argument('output', type=str)
args = parser.parse_args()
os.makedirs(args.output)
size = os.path.getsize(args.input)
assert(size % 160 == 0... | 29.962963 | 120 | 0.592089 |
fcf7b3bbe71b81f791bb6c3c67628d01ea766d4a | 836 | py | Python | aes_classifier/helpers/database_importer.py | tinenbruno/aes_classifier | 31d358c4e34a056cf67a5e602ad945011283a6ed | [
"MIT"
] | null | null | null | aes_classifier/helpers/database_importer.py | tinenbruno/aes_classifier | 31d358c4e34a056cf67a5e602ad945011283a6ed | [
"MIT"
] | null | null | null | aes_classifier/helpers/database_importer.py | tinenbruno/aes_classifier | 31d358c4e34a056cf67a5e602ad945011283a6ed | [
"MIT"
] | null | null | null | from ml_buff.models.input_data import InputData
from ml_buff.database_helper import create_tables, drop_tables
from ml_buff.models.base_model import database
DATABASE = {
'drivername': 'postgresql',
'host': 'localhost',
'port': '5432',
'username': 'postgres',
'password': 'postgr... | 26.125 | 73 | 0.671053 |
fcf7d278277033217c65b945fa153e84b5082b8a | 9,050 | py | Python | title_screen.py | matthew-sirman/mongoose-game | 02751a85c3849ddb9da48414e165363a6d8a931e | [
"Unlicense"
] | null | null | null | title_screen.py | matthew-sirman/mongoose-game | 02751a85c3849ddb9da48414e165363a6d8a931e | [
"Unlicense"
] | null | null | null | title_screen.py | matthew-sirman/mongoose-game | 02751a85c3849ddb9da48414e165363a6d8a931e | [
"Unlicense"
] | null | null | null | import pygame
import socket
import errno
import threading
from button import Button
from text import Text, TextFeed
from textbox import TextBox
from message import Message
from instructions import Instruction
from cards import Deck, Card
| 35.351563 | 119 | 0.572376 |
fcf84360ff359b57ca0fd18707821b983a769abc | 1,357 | py | Python | tests/tests.py | CoderOJ/RLJ | 20bb7ffd1581bf8cf820e0f594b63d2760ea721c | [
"MIT"
] | 45 | 2017-11-19T06:54:07.000Z | 2022-03-21T14:44:42.000Z | tests/tests.py | CoderOJ/RLJ | 20bb7ffd1581bf8cf820e0f594b63d2760ea721c | [
"MIT"
] | 6 | 2017-12-12T05:33:16.000Z | 2018-08-28T12:30:50.000Z | tests/tests.py | CoderOJ/RLJ | 20bb7ffd1581bf8cf820e0f594b63d2760ea721c | [
"MIT"
] | 12 | 2017-12-12T04:43:04.000Z | 2022-02-23T00:13:47.000Z | # import pytest
from rlj import Judge, JudgeStatus, Config, makeConfig
import os
arguments = {
'--O2': False,
'--delete': False,
'--genConfig': False,
'--help': False,
'--silent': False,
'--version': False,
'-c': 'config.yml',
'-j': None,
'FILE': None
}
| 23.396552 | 64 | 0.585851 |
fcf8e2c0ca1804414fbed4b83ad2f9184ee49834 | 1,246 | py | Python | 1._metis_models_and_data_2019-12-16b/METIS source code/Context actions/default/InvalidateKPIs.py | tamas-borbath/METIS | cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036 | [
"CC-BY-4.0"
] | 1 | 2021-12-07T09:05:48.000Z | 2021-12-07T09:05:48.000Z | 1._metis_models_and_data_2019-12-16b/METIS source code/Context actions/default/InvalidateKPIs.py | tamas-borbath/METIS_data_and_scripts | cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036 | [
"CC-BY-4.0"
] | null | null | null | 1._metis_models_and_data_2019-12-16b/METIS source code/Context actions/default/InvalidateKPIs.py | tamas-borbath/METIS_data_and_scripts | cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036 | [
"CC-BY-4.0"
] | null | null | null | ########################################################
# Copyright (c) 2015-2017 by European Commission. #
# All Rights Reserved. #
########################################################
"""
This context action deletes all KPI values in the current context
"""
from com.artel... | 32.789474 | 149 | 0.668539 |
fcf9531b2057af5f9ea183e50dad9241ce6ec6e4 | 1,358 | py | Python | 2021/Day06/Day06-Prob2-Unlimited-fish.py | guilhermebaos/Advent-of-Code-Solutions | 232facf72a21284478134b2c56357352b4aaaf74 | [
"MIT"
] | null | null | null | 2021/Day06/Day06-Prob2-Unlimited-fish.py | guilhermebaos/Advent-of-Code-Solutions | 232facf72a21284478134b2c56357352b4aaaf74 | [
"MIT"
] | null | null | null | 2021/Day06/Day06-Prob2-Unlimited-fish.py | guilhermebaos/Advent-of-Code-Solutions | 232facf72a21284478134b2c56357352b4aaaf74 | [
"MIT"
] | null | null | null | # Puzzle Input ----------
with open('Day06-Input.txt', 'r') as file:
puzzle = list(map(int, file.read().split(',')))
with open('Day06-Test01.txt', 'r') as file:
test01 = list(map(int, file.read().split(',')))
# Main Code ----------
# Count the first few fish and organize them by age in a dictionary
# See ... | 29.521739 | 96 | 0.627393 |
fcf9aa65396644ce8956039d18797ae05615fb61 | 19 | py | Python | fossa/__init__.py | tresni/fossa | 38a25d2c9091bbe28462a596fcfedd1179880358 | [
"MIT"
] | null | null | null | fossa/__init__.py | tresni/fossa | 38a25d2c9091bbe28462a596fcfedd1179880358 | [
"MIT"
] | null | null | null | fossa/__init__.py | tresni/fossa | 38a25d2c9091bbe28462a596fcfedd1179880358 | [
"MIT"
] | null | null | null | APP_NAME = "fossa"
| 9.5 | 18 | 0.684211 |
fcfa435f98d43ada5cc2452165b6ea6be9181640 | 1,188 | py | Python | src/boost_histogram/_internal/storage.py | andrzejnovak/boost-histogram | cdbfabb1c22f5545bf3900be01f2025411e699f1 | [
"BSD-3-Clause"
] | 105 | 2019-03-08T14:59:37.000Z | 2022-03-11T12:46:17.000Z | src/boost_histogram/_internal/storage.py | andrzejnovak/boost-histogram | cdbfabb1c22f5545bf3900be01f2025411e699f1 | [
"BSD-3-Clause"
] | 400 | 2019-03-11T23:10:18.000Z | 2022-03-25T14:02:06.000Z | src/boost_histogram/_internal/storage.py | andrzejnovak/boost-histogram | cdbfabb1c22f5545bf3900be01f2025411e699f1 | [
"BSD-3-Clause"
] | 25 | 2019-03-11T18:02:31.000Z | 2022-03-10T20:14:22.000Z | import boost_histogram
from .._core import storage as store
from .utils import set_module
# Simple mixin to provide a common base class for types
| 22.846154 | 73 | 0.751684 |
fcfade839bbd2f518955cd01678b3f38bc653fa2 | 18,424 | py | Python | adventure.py | brianquinlan/2016-christmas-adventure | 40558968765a585414bb1c5b284e716dd4981957 | [
"MIT"
] | null | null | null | adventure.py | brianquinlan/2016-christmas-adventure | 40558968765a585414bb1c5b284e716dd4981957 | [
"MIT"
] | null | null | null | adventure.py | brianquinlan/2016-christmas-adventure | 40558968765a585414bb1c5b284e716dd4981957 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import itertools
import random
import subprocess
import sys
WELCOME_TEXT = """Welcome {name} to the land of Pavlisha.
Many have entered this land but few have returned.
Your quest is to slay the Bad King, who has stolen the Clock of Time. Without
the Clock of Time it will be 2016 forever and ... | 31.174281 | 104 | 0.651162 |
fcfb1989c996cbe167fe37e33ab960b7feff5dd5 | 7,649 | py | Python | wax/modules/online_supervised_learner_test.py | eserie/wax-ml | 9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e | [
"MIT",
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 42 | 2021-06-14T16:27:54.000Z | 2022-03-23T09:51:42.000Z | wax/modules/online_supervised_learner_test.py | eserie/wax-ml | 9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e | [
"MIT",
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-10-01T12:45:29.000Z | 2021-10-03T18:06:39.000Z | wax/modules/online_supervised_learner_test.py | eserie/wax-ml | 9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e | [
"MIT",
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 5 | 2021-06-11T12:32:41.000Z | 2022-02-17T16:13:15.000Z | # Copyright 2021 The WAX-ML 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 31.093496 | 127 | 0.676298 |
fcfc2b1fb4d4ad2e27520f6caefbdcadcd160c6c | 2,814 | py | Python | src/cvhelpers/visualization/objects.py | yewzijian/RegTR | 64e5b3f0ccc1e1a11b514eb22734959d32e0cec6 | [
"MIT"
] | 25 | 2022-03-28T06:26:16.000Z | 2022-03-30T14:21:24.000Z | src/cvhelpers/visualization/objects.py | yewzijian/RegTR | 64e5b3f0ccc1e1a11b514eb22734959d32e0cec6 | [
"MIT"
] | null | null | null | src/cvhelpers/visualization/objects.py | yewzijian/RegTR | 64e5b3f0ccc1e1a11b514eb22734959d32e0cec6 | [
"MIT"
] | 2 | 2022-03-29T09:37:50.000Z | 2022-03-30T06:26:35.000Z | """Functions to create objects to add to the visualizer"""
import numpy as np
import torch
from .vtk_object import VTKObject
def _convert_torch_to_numpy(arr):
"""If arr is torch.Tensor, return the numpy equivalent, else return arr
as it is"""
if isinstance(arr, torch.Tensor):
arr = arr.detach().... | 26.299065 | 80 | 0.672708 |
fcfc93a2b90466a4bcdb00869bfa82e76236d6e4 | 2,980 | py | Python | cv-classify.py | linovaldivia/cv-classify | f60cb2e4de4d020ac51e6e046f5dc9c6a6c4656c | [
"MIT"
] | null | null | null | cv-classify.py | linovaldivia/cv-classify | f60cb2e4de4d020ac51e6e046f5dc9c6a6c4656c | [
"MIT"
] | null | null | null | cv-classify.py | linovaldivia/cv-classify | f60cb2e4de4d020ac51e6e046f5dc9c6a6c4656c | [
"MIT"
] | null | null | null | import sys
import getopt
import trainer
import classifier
main(sys.argv[1:])
| 41.971831 | 259 | 0.590268 |
fcff3d85fe99542b6a26eb81efd2192cd0645652 | 622 | py | Python | src/mono_test.py | hb-jones/rp1-ros | afc2888f5da7a2b4cc6d9e07ce017f26996e58c3 | [
"Apache-2.0"
] | null | null | null | src/mono_test.py | hb-jones/rp1-ros | afc2888f5da7a2b4cc6d9e07ce017f26996e58c3 | [
"Apache-2.0"
] | null | null | null | src/mono_test.py | hb-jones/rp1-ros | afc2888f5da7a2b4cc6d9e07ce017f26996e58c3 | [
"Apache-2.0"
] | null | null | null | import time, cv2, json
from vision.monocular import Monocular, test_publisher_pixel_coordinate
if __name__ == "__main__":
main()
| 23.923077 | 72 | 0.622186 |
fcffd6e5c047818eed25631c704cc70770c625fb | 4,562 | py | Python | dream_machine/webgl/render_targets.py | Aeva/dream_machine | 6f8e913096806bf04d7db257a9033e580d5d46d4 | [
"Apache-2.0"
] | 3 | 2020-08-03T15:49:13.000Z | 2020-08-08T03:14:00.000Z | dream_machine/webgl/render_targets.py | Aeva/dream_machine | 6f8e913096806bf04d7db257a9033e580d5d46d4 | [
"Apache-2.0"
] | 28 | 2020-08-26T01:45:44.000Z | 2020-11-12T03:12:13.000Z | dream_machine/webgl/render_targets.py | Aeva/dream_machine | 6f8e913096806bf04d7db257a9033e580d5d46d4 | [
"Apache-2.0"
] | null | null | null |
# Copyright 2020 Aeva Palecek
#
# 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... | 32.820144 | 144 | 0.707584 |
fcffe22efcddd524aff30bbd278fd51ef10be4d7 | 1,301 | py | Python | modules/input_output.py | hhandika/journal-unlocker | b35133565c991688c726643949a102beefdedfc8 | [
"MIT"
] | 1 | 2020-11-29T08:10:16.000Z | 2020-11-29T08:10:16.000Z | modules/input_output.py | hhandika/journal-unlocker | b35133565c991688c726643949a102beefdedfc8 | [
"MIT"
] | null | null | null | modules/input_output.py | hhandika/journal-unlocker | b35133565c991688c726643949a102beefdedfc8 | [
"MIT"
] | null | null | null | import webbrowser as wb
from modules import converter | 30.255814 | 72 | 0.597233 |
1e011925c6302c4ad1c6ff5f9211ec00aafbb0c5 | 959 | py | Python | tests/file_iterators/test_trillian_xml.py | mtlynch/chat_unifier | 7449ca4f2dd48d8b76fc29e150643076dd0b3334 | [
"MIT"
] | 2 | 2018-10-16T18:39:06.000Z | 2019-01-22T01:38:09.000Z | tests/file_iterators/test_trillian_xml.py | mtlynch/chat_unifier | 7449ca4f2dd48d8b76fc29e150643076dd0b3334 | [
"MIT"
] | 2 | 2018-10-19T00:00:21.000Z | 2018-10-19T17:15:25.000Z | tests/file_iterators/test_trillian_xml.py | mtlynch/chat_unifier | 7449ca4f2dd48d8b76fc29e150643076dd0b3334 | [
"MIT"
] | null | null | null | import os
import unittest
import mock
from chat_unifier.file_iterators import trillian_xml
| 33.068966 | 68 | 0.552659 |
1e01397b0e0b55041950595176edcb92e499b82c | 169 | py | Python | mtd/__init__.py | jbernhard/mtd | 6326fdb44f071311ace7862371e658d609f43d08 | [
"MIT"
] | 4 | 2017-02-21T21:20:07.000Z | 2020-11-03T15:54:13.000Z | mtd/__init__.py | jbernhard/mtd | 6326fdb44f071311ace7862371e658d609f43d08 | [
"MIT"
] | null | null | null | mtd/__init__.py | jbernhard/mtd | 6326fdb44f071311ace7862371e658d609f43d08 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__version__ = '0.1.dev0'
from .multigp import MultiGP
from .pca import PCA
from .util import *
from . import priors
from george import kernels
| 16.9 | 28 | 0.710059 |
1e037702ba339edd20a07331a6e5b456dd7810a0 | 952 | py | Python | SpriteSheetPacker/packer.py | ithilelda/ModLoaderLite | 14899f8d1a406563600c2abe76ac1a2c58c6135d | [
"MIT"
] | 1 | 2022-01-19T05:16:02.000Z | 2022-01-19T05:16:02.000Z | SpriteSheetPacker/packer.py | ithilelda/ModLoaderLite | 14899f8d1a406563600c2abe76ac1a2c58c6135d | [
"MIT"
] | null | null | null | SpriteSheetPacker/packer.py | ithilelda/ModLoaderLite | 14899f8d1a406563600c2abe76ac1a2c58c6135d | [
"MIT"
] | null | null | null | import os
import math
from PIL import Image
path = r'E:\export\fuwen'
pack_directory(path) | 28.848485 | 103 | 0.582983 |
1e03ed577f62b4839e55690fb48c279d0a38fc65 | 28,226 | py | Python | libs/graph_embeddings/graph_embeddings/embeddings.py | skojaku/residual2vec | ea10caae3c2671953fbc295358040baa36ee1547 | [
"MIT"
] | 2 | 2022-01-20T18:03:11.000Z | 2022-03-04T08:21:42.000Z | libs/graph_embeddings/graph_embeddings/embeddings.py | skojaku/residual2vec | ea10caae3c2671953fbc295358040baa36ee1547 | [
"MIT"
] | null | null | null | libs/graph_embeddings/graph_embeddings/embeddings.py | skojaku/residual2vec | ea10caae3c2671953fbc295358040baa36ee1547 | [
"MIT"
] | null | null | null | """Modules for graph embedding methods."""
import logging
import gensim
import networkx as nx
import numpy as np
import pandas as pd
# For GCN
import stellargraph as sg
import tensorflow as tf
from graph_embeddings import samplers, utils
from scipy import sparse
from sklearn import model_selection
from stellargraph.... | 32.406429 | 132 | 0.571034 |
1e04313b1a59f752d444d642a7310789f916860e | 6,410 | py | Python | CrudSimulation/forms.py | CodexLink/AdvancedCRUD-Django | aea8da56b1713735196f675a5c0acf2dde974616 | [
"MIT"
] | 1 | 2020-04-13T03:35:19.000Z | 2020-04-13T03:35:19.000Z | CrudSimulation/forms.py | CodexLink/AdvancedCRUD-Django | aea8da56b1713735196f675a5c0acf2dde974616 | [
"MIT"
] | 6 | 2020-04-12T17:59:08.000Z | 2021-09-22T18:52:24.000Z | CrudSimulation/forms.py | CodexLink/Django_Single_Page_CRUD | b37bc61bed2434a3e35ca7afe3b99e95a2289487 | [
"MIT"
] | 1 | 2020-05-03T14:00:32.000Z | 2020-05-03T14:00:32.000Z | from django import forms
from django.core.validators import MaxValueValidator, MinValueValidator
from .additionals.metaData import *
from .models import UserCredentials, UserTasks, UserDepartment
from django.contrib.auth.forms import AuthenticationForm
| 75.411765 | 294 | 0.7 |
1e047aa179f50c2fad3a719fb925ab7747594f6a | 9,184 | py | Python | basedir/__init__.py | fenhl/python-xdg-basedir | 17032de6c9728ddba5c40a983c50088d69dc631e | [
"MIT"
] | null | null | null | basedir/__init__.py | fenhl/python-xdg-basedir | 17032de6c9728ddba5c40a983c50088d69dc631e | [
"MIT"
] | null | null | null | basedir/__init__.py | fenhl/python-xdg-basedir | 17032de6c9728ddba5c40a983c50088d69dc631e | [
"MIT"
] | null | null | null | import collections.abc
import json
import os
import os.path
import pathlib
import subprocess
__version__ = parse_version_string()
data_home = BaseDir('XDG_DATA_HOME', pathlib.Path.home() / '.local' / 'share')
config_home = BaseDir('XDG_CONFIG_HOME', pathlib.Path.home() / '.config')
data_dirs = BaseDirs('XDG_DATA_DIRS... | 39.416309 | 351 | 0.582753 |
1e054a3c6b84d4385ce18db1a386851ca484d0f1 | 2,861 | py | Python | convert_to_tf_records.py | andreweskeclarke/toxic_kaggle | e761f4aad0688423bdbe4098fe7efddddea4b0d9 | [
"MIT"
] | null | null | null | convert_to_tf_records.py | andreweskeclarke/toxic_kaggle | e761f4aad0688423bdbe4098fe7efddddea4b0d9 | [
"MIT"
] | null | null | null | convert_to_tf_records.py | andreweskeclarke/toxic_kaggle | e761f4aad0688423bdbe4098fe7efddddea4b0d9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import collections
import csv
import tensorflow as tf
import numpy as np
from google_research.bert.tokenizer import FullTokenizer
if __name__ == '__main__':
main()
| 47.683333 | 110 | 0.645928 |
1e05d2ddced6438f7254bbde6bd745d89e9f2ec4 | 3,733 | py | Python | djusagi/bin/contacts_update.py | carthage-college/django-djusagi | 8fb2fe0b9100ac4bd6ebd0ea7cf44d732f7fcc5a | [
"BSD-3-Clause"
] | null | null | null | djusagi/bin/contacts_update.py | carthage-college/django-djusagi | 8fb2fe0b9100ac4bd6ebd0ea7cf44d732f7fcc5a | [
"BSD-3-Clause"
] | 2 | 2020-03-06T14:09:23.000Z | 2021-11-30T21:33:26.000Z | djusagi/bin/contacts_update.py | carthage-college/django-djusagi | 8fb2fe0b9100ac4bd6ebd0ea7cf44d732f7fcc5a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import os, sys
# env
sys.path.append('/usr/local/lib/python2.7/dist-packages/')
sys.path.append('/usr/lib/python2.7/dist-packages/')
sys.path.append('/usr/lib/python2.7/')
sys.path.append('/data2/django_projects/')
sys.path.append('/data2/django_third/')
os.environ.setdefault("DJANGO_SETTINGS_... | 26.856115 | 80 | 0.556389 |
1e05fc418915f277ab4a685fd9b838701e4c7fe8 | 14,246 | py | Python | fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_transformations.py | vkirilenko/FEDOT | d287d899e47fe5aebf52c12733892e103b75842b | [
"BSD-3-Clause"
] | 1 | 2021-11-09T10:24:38.000Z | 2021-11-09T10:24:38.000Z | fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_transformations.py | vkirilenko/FEDOT | d287d899e47fe5aebf52c12733892e103b75842b | [
"BSD-3-Clause"
] | null | null | null | fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_transformations.py | vkirilenko/FEDOT | d287d899e47fe5aebf52c12733892e103b75842b | [
"BSD-3-Clause"
] | null | null | null | from typing import Optional
import numpy as np
from sklearn.decomposition import KernelPCA, PCA
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import MinMaxScaler, OneHotEncoder, PolynomialFeatures, StandardScaler
from fedot.core.data.data import InputData
from fedot.core.data.data import data_ha... | 38.711957 | 116 | 0.653727 |
1e0722a167a785c6b5484768dc494ed00583b144 | 559 | py | Python | allauth_saml2/urls.py | davidmgvaz/allauth_saml2 | 0a797b66831fedb0a5bce7ba2bdde001efbf6956 | [
"MIT"
] | 1 | 2021-07-29T00:56:27.000Z | 2021-07-29T00:56:27.000Z | allauth_saml2/urls.py | davidmgvaz/allauth_saml2 | 0a797b66831fedb0a5bce7ba2bdde001efbf6956 | [
"MIT"
] | 1 | 2022-03-01T21:17:54.000Z | 2022-03-14T07:51:09.000Z | allauth_saml2/urls.py | davidmgvaz/allauth_saml2 | 0a797b66831fedb0a5bce7ba2bdde001efbf6956 | [
"MIT"
] | 2 | 2021-11-18T21:05:34.000Z | 2022-03-11T23:31:44.000Z | from django.urls import include, path
from allauth.utils import import_attribute
| 32.882353 | 80 | 0.692308 |
1e08575a33b1bf77c5ac73909e8b814796a5d007 | 421 | py | Python | json_extract.py | Puratinamu/Application-Document-Generator | 6e6068fc8f360f8b2ccd15ca66d028ad37055593 | [
"Apache-2.0"
] | 1 | 2019-03-01T18:10:56.000Z | 2019-03-01T18:10:56.000Z | json_extract.py | Puratinamu/Application-Document-Generator | 6e6068fc8f360f8b2ccd15ca66d028ad37055593 | [
"Apache-2.0"
] | null | null | null | json_extract.py | Puratinamu/Application-Document-Generator | 6e6068fc8f360f8b2ccd15ca66d028ad37055593 | [
"Apache-2.0"
] | null | null | null | import json
def extract(filename):
''' (str) -> list of object
Given the filename of a JSON file in the current directory, extract and return
its data.
:param filename: name of the JSON file:
:return data: data extracted from the JSON file:
'''
file = open(filename, 'r')
json_decode = ... | 24.764706 | 82 | 0.64133 |
1e0a45dc70c943024981f87b2475e50be7bce1eb | 1,990 | py | Python | src/DataExploration/Python/PHE_PracticeProfileIndicators_Analysis.py | shashidarette/healthcare_dataviz | f638a60b3e3f31e68704fe73cce700e01bf25dfe | [
"MIT"
] | null | null | null | src/DataExploration/Python/PHE_PracticeProfileIndicators_Analysis.py | shashidarette/healthcare_dataviz | f638a60b3e3f31e68704fe73cce700e01bf25dfe | [
"MIT"
] | null | null | null | src/DataExploration/Python/PHE_PracticeProfileIndicators_Analysis.py | shashidarette/healthcare_dataviz | f638a60b3e3f31e68704fe73cce700e01bf25dfe | [
"MIT"
] | null | null | null |
# coding: utf-8
# ## This notebook is to analyse the practice indicators available from PHE dataset
# In[1]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
# In[2]:
# General Practice Indicators from PHE (It includes England, CCG level indicators as well)
GPIndicat... | 16.722689 | 127 | 0.711055 |
1e0a8cd86646fb6782dcda7592bb726bc8b672cd | 656 | py | Python | python/agenciesModule.py | leomaurodesenv/travel-dataset-generator | 6d97012ea50ab94d8513cd4d4a5b17d36fa94469 | [
"CC-BY-4.0"
] | 3 | 2019-09-24T20:53:21.000Z | 2021-07-06T17:39:01.000Z | python/agenciesModule.py | leomaurodesenv/travel-dataset-generator | 6d97012ea50ab94d8513cd4d4a5b17d36fa94469 | [
"CC-BY-4.0"
] | null | null | null | python/agenciesModule.py | leomaurodesenv/travel-dataset-generator | 6d97012ea50ab94d8513cd4d4a5b17d36fa94469 | [
"CC-BY-4.0"
] | 2 | 2019-09-24T20:57:11.000Z | 2020-02-28T15:07:55.000Z | #- Import packages
import random
'''
@module: Travel Dataset Generator
@authors: Leonardo Mauro <leomaurodesenv>
@link: https://github.com/Argo-Solutions/travel-dataset-generator GitHub
@license: Creative Commons BY License
@copyright: 2019 Argo Solutions
@access: public
'''
#- Functions
def funcAgencyGenerator(flig... | 26.24 | 72 | 0.71189 |
1e0ed9639458ffbc0cde9e78e007150cad47b135 | 237 | py | Python | user/admin.py | calumlim/talentalps | cc66eabf71e04b6ab5831ee15f57e771cba82279 | [
"FSFAP"
] | null | null | null | user/admin.py | calumlim/talentalps | cc66eabf71e04b6ab5831ee15f57e771cba82279 | [
"FSFAP"
] | null | null | null | user/admin.py | calumlim/talentalps | cc66eabf71e04b6ab5831ee15f57e771cba82279 | [
"FSFAP"
] | null | null | null | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.UserProfile)
admin.site.register(models.Candidate)
admin.site.register(models.Company)
admin.site.register(models.CompanyImage) | 33.857143 | 40 | 0.831224 |
1e0fb8e5cdbf2596f9936f5922fbf205cea62135 | 5,965 | py | Python | src/functions.py | directedbyshawn/Spotlight | 80fa18a038ef0ac996bc5102c097587f7f3a54be | [
"MIT"
] | null | null | null | src/functions.py | directedbyshawn/Spotlight | 80fa18a038ef0ac996bc5102c097587f7f3a54be | [
"MIT"
] | null | null | null | src/functions.py | directedbyshawn/Spotlight | 80fa18a038ef0ac996bc5102c097587f7f3a54be | [
"MIT"
] | null | null | null | '''
Basic functions used throughout the entirety
of the project.
---------------------------------------------------
---------------------------------------------------
---------------------------------------------------
---------------------------------------------------
-----------------... | 27.615741 | 142 | 0.524895 |
1e0fdbf7190da408c69ac345f5e674132d380c9e | 5,059 | py | Python | ghidra_9.0/Ghidra/Features/Base/ghidra_scripts/mark_in_out.py | ChristopherMorrison/ghidra | e53aa57d1aff79a1df93728f746705c58fe95ab0 | [
"Apache-2.0"
] | 3 | 2019-11-14T13:11:35.000Z | 2019-12-02T20:51:49.000Z | ghidra_9.0/Ghidra/Features/Base/ghidra_scripts/mark_in_out.py | ChristopherMorrison/ghidra | e53aa57d1aff79a1df93728f746705c58fe95ab0 | [
"Apache-2.0"
] | 3 | 2019-07-17T22:51:04.000Z | 2019-12-04T05:43:56.000Z | ghidra_9.0/Ghidra/Features/Base/ghidra_scripts/mark_in_out.py | ChristopherMorrison/ghidra | e53aa57d1aff79a1df93728f746705c58fe95ab0 | [
"Apache-2.0"
] | 3 | 2019-12-02T13:36:50.000Z | 2019-12-04T05:40:12.000Z | # Sets up IOPORT IN/OUT references for the Program
#@category Instructions
# Before running this script, you should have created an OVERLAY memory
# space called IOMEM, starting at address 0, size 0x10000.
#
# Note: This script is rather sloppy and should probably be cleaned up.
from ghidra.program.model.lang.Operand... | 50.59 | 82 | 0.572247 |
1e10bd551541e3f85348ce7df075595f398b1a18 | 193 | py | Python | Learn_Python_the_Hard_Way/ex13.py | XC-Li/old_python_programs | 8f9b10120c94cf06978aec3f47be4517f463ca76 | [
"MIT"
] | null | null | null | Learn_Python_the_Hard_Way/ex13.py | XC-Li/old_python_programs | 8f9b10120c94cf06978aec3f47be4517f463ca76 | [
"MIT"
] | null | null | null | Learn_Python_the_Hard_Way/ex13.py | XC-Li/old_python_programs | 8f9b10120c94cf06978aec3f47be4517f463ca76 | [
"MIT"
] | null | null | null | #LPHW ex13
from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "First Var:", first
print "Second Var:", second
print "Third Var:", third | 24.125 | 38 | 0.699482 |
1e12c6a3aa526ef23aa7034fa618c29135d58d92 | 672 | py | Python | wrappers/python/tests/anoncreds/test_issuer_create_credential.py | sklump/indy-sdk | ee05a89ddf60b42f7483bebf2d89a936e12730df | [
"Apache-2.0"
] | 636 | 2017-05-25T07:45:43.000Z | 2022-03-23T22:30:34.000Z | wrappers/python/tests/anoncreds/test_issuer_create_credential.py | Nick-1979/indy-sdk | e5f812e14962f0d51cf96f843033754ff841ce30 | [
"Apache-2.0"
] | 731 | 2017-05-29T07:15:08.000Z | 2022-03-31T07:55:58.000Z | wrappers/python/tests/anoncreds/test_issuer_create_credential.py | Nick-1979/indy-sdk | e5f812e14962f0d51cf96f843033754ff841ce30 | [
"Apache-2.0"
] | 904 | 2017-05-25T07:45:49.000Z | 2022-03-31T07:43:31.000Z | import pytest
from indy import error
from indy.anoncreds import issuer_create_credential
# noinspection PyUnusedLocal
# noinspection PyUnusedLocal
| 32 | 109 | 0.83631 |
1e12e199bdc44676eec4cb40e4b40d0b6977cd06 | 259 | py | Python | watermarks/settings.py | pmaigutyak/mp-watermarks | a5d3e2e00fcfbeee2b06a110b1bc796c809feb5a | [
"0BSD"
] | 2 | 2018-02-26T21:58:57.000Z | 2021-09-25T14:31:38.000Z | watermarks/settings.py | pmaigutyak/mp-watermarks | a5d3e2e00fcfbeee2b06a110b1bc796c809feb5a | [
"0BSD"
] | 2 | 2022-01-13T00:41:17.000Z | 2022-02-16T08:52:21.000Z | watermarks/settings.py | pmaigutyak/mp-watermarks | a5d3e2e00fcfbeee2b06a110b1bc796c809feb5a | [
"0BSD"
] | null | null | null |
default = WatermarksSettings
| 17.266667 | 54 | 0.629344 |
1e13707a70a02716acbba14e0252bf893cec27b1 | 179 | py | Python | engine/render/__init__.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | 1 | 2020-10-11T15:34:56.000Z | 2020-10-11T15:34:56.000Z | engine/render/__init__.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | null | null | null | engine/render/__init__.py | TWoolhouse/Libraries | 26079ed387cb800cb97f20980720ae094008c7bf | [
"MIT"
] | null | null | null | from .primitive import Primitive
from .shape import Polygon
from .text import Text, Font
from .colour import Colour
__all__ = ["Primitive",
"Polygon", "Text", "Font", "Colour"
]
| 19.888889 | 35 | 0.731844 |
1e18059d12840f8a0185aebcabdddc4603c7b343 | 9,891 | py | Python | test/graph/test_graph.py | openeuler-mirror/pkgship | 5aaa4953023fde8ff03892fe5608f0711a26a942 | [
"MulanPSL-1.0"
] | null | null | null | test/graph/test_graph.py | openeuler-mirror/pkgship | 5aaa4953023fde8ff03892fe5608f0711a26a942 | [
"MulanPSL-1.0"
] | null | null | null | test/graph/test_graph.py | openeuler-mirror/pkgship | 5aaa4953023fde8ff03892fe5608f0711a26a942 | [
"MulanPSL-1.0"
] | 1 | 2021-11-20T00:10:53.000Z | 2021-11-20T00:10:53.000Z | #!/usr/bin/python3
# ******************************************************************************
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
# licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a c... | 35.967273 | 98 | 0.652512 |
1e184b235ee24c10614c3bd2ea14856e7508653c | 98 | py | Python | output/models/ms_data/simple_type/st_e065_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/ms_data/simple_type/st_e065_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/ms_data/simple_type/st_e065_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.ms_data.simple_type.st_e065_xsd.st_e065 import Root
__all__ = [
"Root",
]
| 16.333333 | 70 | 0.744898 |
1e19aaec4f9f9c19341dbc0cda0f3aa30674340b | 1,066 | py | Python | examples/example.py | jacobdeery/souvlaki | 4e420857b02ff6dfa626c2b45f00efb564edc1a0 | [
"MIT"
] | null | null | null | examples/example.py | jacobdeery/souvlaki | 4e420857b02ff6dfa626c2b45f00efb564edc1a0 | [
"MIT"
] | null | null | null | examples/example.py | jacobdeery/souvlaki | 4e420857b02ff6dfa626c2b45f00efb564edc1a0 | [
"MIT"
] | null | null | null | import os
import random
import souvlaki as sv
if __name__ == "__main__":
main()
| 23.173913 | 71 | 0.651032 |
1e1ac363161eed75ef1bc0fa12a7f4f0d899c140 | 716 | py | Python | api/controllers/student/field_update_controller.py | NoisyBotDude/MIS-Backend | fa402b0a6d5d6862634b0ed55bc57178856c1eba | [
"MIT"
] | 1 | 2022-03-28T06:13:11.000Z | 2022-03-28T06:13:11.000Z | api/controllers/student/field_update_controller.py | NoisyBotDude/MIS-Backend | fa402b0a6d5d6862634b0ed55bc57178856c1eba | [
"MIT"
] | 1 | 2021-12-21T13:59:47.000Z | 2021-12-21T13:59:47.000Z | api/controllers/student/field_update_controller.py | NoisyBotDude/MIS-Backend | fa402b0a6d5d6862634b0ed55bc57178856c1eba | [
"MIT"
] | 10 | 2021-12-24T18:08:57.000Z | 2022-03-18T13:18:25.000Z | from api.drivers.student import student_drivers
from api.schemas.student.request_schemas import student_request_schemas
from api.utils.exceptions import exceptions
| 25.571429 | 82 | 0.73324 |
1e1adf5c90b9d3bac8d132f53c4fd34036e51397 | 2,074 | py | Python | regex/ex05.py | stormabq/python-examples | 1c1acfc3863a2cf1a9e202c9299f3a526858eb34 | [
"MIT"
] | 1 | 2021-12-12T04:39:53.000Z | 2021-12-12T04:39:53.000Z | regex/ex05.py | stormabq/python-examples | 1c1acfc3863a2cf1a9e202c9299f3a526858eb34 | [
"MIT"
] | null | null | null | regex/ex05.py | stormabq/python-examples | 1c1acfc3863a2cf1a9e202c9299f3a526858eb34 | [
"MIT"
] | 6 | 2020-05-05T17:21:28.000Z | 2021-12-12T04:39:57.000Z | ## See the html directory in this repo
import re
testary = [
"Organism Enterococcus sp. 8G7_MSG3316 has 2625 proteins with network connections.,overview.1834191.html",
"Organism Lachnoclostridium sp. YL32 has 4965 proteins with network connections.,overview.1834196.html",
"Organism Hungateiclostridiacea... | 56.054054 | 121 | 0.761813 |
1e1b73599dd7ea98dc2b2062486c37f98c1e9a64 | 15,070 | py | Python | gym_electric_motor/physical_systems/physical_systems.py | zizai/gym-electric-motor | 48a0232edf3474e441453126df0f52dc391aed11 | [
"MIT"
] | null | null | null | gym_electric_motor/physical_systems/physical_systems.py | zizai/gym-electric-motor | 48a0232edf3474e441453126df0f52dc391aed11 | [
"MIT"
] | null | null | null | gym_electric_motor/physical_systems/physical_systems.py | zizai/gym-electric-motor | 48a0232edf3474e441453126df0f52dc391aed11 | [
"MIT"
] | null | null | null | import numpy as np
from gym.spaces import Box
from ..core import PhysicalSystem
from ..physical_systems import electric_motors as em, mechanical_loads as ml, converters as cv, \
voltage_supplies as vs, noise_generators as ng, solvers as sv
from ..utils import instantiate, set_state_array
def _set_li... | 40.951087 | 121 | 0.633842 |
1e1dafb5a95a9a832f3c83dbbe21c7e9367c6af2 | 1,538 | py | Python | apps/live_discussion_sentiment.py | VaishnaviVV/Covid19_sentiment_analysis | 6b6d0f76566bee1522eb69e407dc59d450e033b7 | [
"MIT"
] | 2 | 2021-04-13T06:12:59.000Z | 2021-07-21T14:04:45.000Z | apps/live_discussion_sentiment.py | VaishnaviVV/Covid19_sentiment_analysis | 6b6d0f76566bee1522eb69e407dc59d450e033b7 | [
"MIT"
] | null | null | null | apps/live_discussion_sentiment.py | VaishnaviVV/Covid19_sentiment_analysis | 6b6d0f76566bee1522eb69e407dc59d450e033b7 | [
"MIT"
] | 1 | 2021-06-19T09:06:38.000Z | 2021-06-19T09:06:38.000Z |
#Essential Modules
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#Dashboard Modules
import dash
import dash_table
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go
from dash.dependencies import Inpu... | 26.982456 | 82 | 0.702861 |
1e1de33c28ddf64ae7dbf8f82938a19f029d7af5 | 1,768 | py | Python | Lib/fontbakery/profiles/dsig.py | yellowsquid/fontbakery | 3228e20d108726fc35bd0e09211e7ffe38559029 | [
"Apache-2.0"
] | null | null | null | Lib/fontbakery/profiles/dsig.py | yellowsquid/fontbakery | 3228e20d108726fc35bd0e09211e7ffe38559029 | [
"Apache-2.0"
] | null | null | null | Lib/fontbakery/profiles/dsig.py | yellowsquid/fontbakery | 3228e20d108726fc35bd0e09211e7ffe38559029 | [
"Apache-2.0"
] | null | null | null | from fontbakery.callable import check
from fontbakery.status import WARN, PASS
from fontbakery.message import Message
# used to inform get_module_profile whether and how to create a profile
from fontbakery.fonts_profile import profile_factory # NOQA pylint: disable=unused-import
| 52 | 286 | 0.677036 |
1e1f1f99e22282cac2d668c68acaa5cc5f58efad | 961 | py | Python | start_trouper.py | meltaxa/troupe | fbec6cec09ced6c29695a0741420cb61893134d3 | [
"MIT"
] | 28 | 2020-10-03T02:20:13.000Z | 2021-11-12T11:26:23.000Z | start_trouper.py | meltaxa/troupe | fbec6cec09ced6c29695a0741420cb61893134d3 | [
"MIT"
] | null | null | null | start_trouper.py | meltaxa/troupe | fbec6cec09ced6c29695a0741420cb61893134d3 | [
"MIT"
] | 7 | 2020-10-03T09:11:43.000Z | 2021-01-29T06:45:46.000Z | #!/usr/bin/env python3
from slackbot.bot import Bot
import logging
import socket
import uuid
import os
# If you are running multiple homeops bots on the same server enable
# unique device names.
unique_device_names = False
if unique_device_names:
os.environ['DEVICE_NAME'] = '{}-{}'.format(socket.gethostname(),
... | 25.289474 | 75 | 0.651405 |
1e1f6283140215b06df34b5565f0d75e854b79a7 | 943 | py | Python | Aula01/Exercicio03.py | gabriel-correia0408/Sala_Green_GabrielCorreia | 1d22f466d372786c5f8c8eaba7202844b5f03445 | [
"Apache-2.0"
] | null | null | null | Aula01/Exercicio03.py | gabriel-correia0408/Sala_Green_GabrielCorreia | 1d22f466d372786c5f8c8eaba7202844b5f03445 | [
"Apache-2.0"
] | null | null | null | Aula01/Exercicio03.py | gabriel-correia0408/Sala_Green_GabrielCorreia | 1d22f466d372786c5f8c8eaba7202844b5f03445 | [
"Apache-2.0"
] | null | null | null | # Classe Circulo: Crie uma classe que modele uma bola:
#
# Atributos: Cor, raio, material
# Mtodos: trocaCor, mostraCor, area (math.pi*raio**2)
# para acessar o pi:
# import math
# math.pi
# Classe Quadrado: Crie uma classe que modele um quadrado:
#
# Atributos: Tamanho do lado
# Mtodos: Mudar valor do Lado, Retornar ... | 23.575 | 82 | 0.693531 |
1e1fceddc66231ee1517373a6448d3a3f572702e | 713 | py | Python | test/jit/test_ivalue.py | YifanShenSZ/pytorch | b4232f7cbe407909f9d95b91304c73fdc4c66a50 | [
"Intel"
] | null | null | null | test/jit/test_ivalue.py | YifanShenSZ/pytorch | b4232f7cbe407909f9d95b91304c73fdc4c66a50 | [
"Intel"
] | null | null | null | test/jit/test_ivalue.py | YifanShenSZ/pytorch | b4232f7cbe407909f9d95b91304c73fdc4c66a50 | [
"Intel"
] | null | null | null | # Owner(s): ["oncall: jit"]
import os
import sys
import torch
# Make the helper files in test/ importable
pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(pytorch_test_dir)
from torch.testing._internal.jit_utils import JitTestCase
if __name__ == "__main__":
raise R... | 25.464286 | 79 | 0.680224 |
1e2079ace258f371ce2dd6d8234af7c77fb15387 | 3,457 | py | Python | 12/common.py | KorotkiyEugene/dsp_sdr_basic | 2aa4b22427b638f09c85948ccf442faba573a29f | [
"MIT"
] | 7 | 2021-05-16T22:34:15.000Z | 2022-02-19T17:19:32.000Z | 12/common.py | KorotkiyEugene/dsp_sdr_basic | 78a77736d0c33951d782f6889884633e4a42c5bd | [
"MIT"
] | null | null | null | 12/common.py | KorotkiyEugene/dsp_sdr_basic | 78a77736d0c33951d782f6889884633e4a42c5bd | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import math
from scipy.io.wavfile import read as read_wav
from scipy.io.wavfile import write as write_wav
from scipy.fftpack import fft, fftshift
from scipy.signal import lfilter, firwin
| 30.06087 | 73 | 0.633497 |
1e2129baa188476cce9f545b130b193ede0c9647 | 6,829 | py | Python | src/callback.py | modichirag/VI_reconstruction | 64def5226a5723877a60943c29f592319bbe8e95 | [
"MIT"
] | null | null | null | src/callback.py | modichirag/VI_reconstruction | 64def5226a5723877a60943c29f592319bbe8e95 | [
"MIT"
] | null | null | null | src/callback.py | modichirag/VI_reconstruction | 64def5226a5723877a60943c29f592319bbe8e95 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import sys, os
sys.path.append('../../galference/utils/')
import tools
import diagnostics as dg
| 29.059574 | 100 | 0.542832 |
1e233744186d29b648450453c95858ec334e1c71 | 3,769 | py | Python | automix/config.py | MZehren/Automix | dfaa00a9e7c5c0938c0a9d275c07f3a3e5f87e43 | [
"MIT"
] | 18 | 2020-07-20T01:51:40.000Z | 2022-02-25T07:32:11.000Z | automix/config.py | MZehren/Automix | dfaa00a9e7c5c0938c0a9d275c07f3a3e5f87e43 | [
"MIT"
] | 2 | 2021-03-23T03:26:02.000Z | 2021-07-19T12:51:25.000Z | automix/config.py | MZehren/Automix | dfaa00a9e7c5c0938c0a9d275c07f3a3e5f87e43 | [
"MIT"
] | 5 | 2021-01-03T15:34:28.000Z | 2022-02-22T06:07:06.000Z | """
TODO: Move the functions to the correct location
"""
import logging as log
import os
DATASET_LOCATION = "/home/mickael/Documents/programming/dj-tracks-switch-points/"
CACHE_LOCATION = "../annotations/"
CACHE_LEVEL = 0
LOG_LEVEL = log.DEBUG
log.getLogger().setLevel(LOG_LEVEL)
def k_fold_split(X, Y, k=10, shuffle... | 33.353982 | 124 | 0.633059 |
1e24d32a4b962928ad46fd58d2e17a25d1a7ba33 | 255 | py | Python | old_fashioned_nlp/tagging/__init__.py | ChenghaoMou/old-fashioned-nlp | a88d510273d6f729274e0eab9242b6eb4e08c2a9 | [
"MIT"
] | 1 | 2020-10-27T21:16:54.000Z | 2020-10-27T21:16:54.000Z | old_fashioned_nlp/tagging/__init__.py | sleeplessindebugging/old-fashioned-nlp | a88d510273d6f729274e0eab9242b6eb4e08c2a9 | [
"MIT"
] | null | null | null | old_fashioned_nlp/tagging/__init__.py | sleeplessindebugging/old-fashioned-nlp | a88d510273d6f729274e0eab9242b6eb4e08c2a9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Update : 2020-09-05 09:46:01
# @Author : Chenghao Mou (mouchenghao@gmail.com)
"""Sequence taggers."""
from old_fashioned_nlp.tagging.token import CharTfidfTagger
__all__ = ['CharTfidfTagger'] | 25.5 | 59 | 0.67451 |
1e25a796cccb23405dd95548e2edaa9a7d0b72fc | 2,342 | py | Python | saleor/graphql/rider/mutations.py | WarHawk007/erocerytest | 0f481e08012eaf2f9c987fc33d641deb8e335ba0 | [
"CC-BY-4.0"
] | null | null | null | saleor/graphql/rider/mutations.py | WarHawk007/erocerytest | 0f481e08012eaf2f9c987fc33d641deb8e335ba0 | [
"CC-BY-4.0"
] | 10 | 2021-02-02T22:55:05.000Z | 2022-02-10T23:01:13.000Z | saleor/graphql/rider/mutations.py | WarHawk007/erocerytest | 0f481e08012eaf2f9c987fc33d641deb8e335ba0 | [
"CC-BY-4.0"
] | null | null | null | import graphene
from django.conf import settings
from django.core.exceptions import ValidationError
from ...rider import models as rider_models
from ...subshop import models as subshop_models
from ...account import models as account_models
from ..account.validation import isPhoneNumber, isCnic
from ..core.mutations im... | 40.37931 | 130 | 0.687874 |
1e2739d879c1c382a8deb97538a12818514a90c7 | 953 | py | Python | car_composite/utils.py | kerry-t-johnson/car-composite | ba39bed0883517a3884a1e68c8ab6522119eab4f | [
"Apache-2.0"
] | null | null | null | car_composite/utils.py | kerry-t-johnson/car-composite | ba39bed0883517a3884a1e68c8ab6522119eab4f | [
"Apache-2.0"
] | null | null | null | car_composite/utils.py | kerry-t-johnson/car-composite | ba39bed0883517a3884a1e68c8ab6522119eab4f | [
"Apache-2.0"
] | null | null | null | '''
Copyright 2021 Kerry Johnson
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 ... | 36.653846 | 75 | 0.698846 |
1e27c0a9bf1d7f0cef71bafda66175150392e15d | 166 | py | Python | areas.py | cout/sm_terminal_tracker | e39567dd087aaca50c4d0aaf08fb63c623f4734e | [
"MIT"
] | 1 | 2021-08-16T17:47:00.000Z | 2021-08-16T17:47:00.000Z | areas.py | cout/sm_terminal_tracker | e39567dd087aaca50c4d0aaf08fb63c623f4734e | [
"MIT"
] | null | null | null | areas.py | cout/sm_terminal_tracker | e39567dd087aaca50c4d0aaf08fb63c623f4734e | [
"MIT"
] | null | null | null | Areas = {
0x00: 'Crateria',
0x01: 'Brinstar',
0x02: 'Norfair',
0x03: 'WreckedShip',
0x04: 'Maridia',
0x05: 'Tourian',
0x06: 'Ceres',
0x07: 'Debug',
}
| 15.090909 | 22 | 0.572289 |
1e27f18ab5ef993c02caa01656b29f1ecbe96024 | 11,458 | py | Python | yegsecbot.py | jershmagersh/yegsecbot | 147c1ad4e0bbf7688f55ee0075b9c03fddf4223c | [
"Apache-2.0"
] | 1 | 2019-02-20T23:24:02.000Z | 2019-02-20T23:24:02.000Z | yegsecbot.py | jershmagersh/yegsecbot | 147c1ad4e0bbf7688f55ee0075b9c03fddf4223c | [
"Apache-2.0"
] | null | null | null | yegsecbot.py | jershmagersh/yegsecbot | 147c1ad4e0bbf7688f55ee0075b9c03fddf4223c | [
"Apache-2.0"
] | 3 | 2019-02-20T01:43:10.000Z | 2019-06-19T00:08:29.000Z | #!/usr/bin/python
"""
I wrote this in a couple afternoons while watching Netflix, so it can probably be better.
-jmag
"""
from slackclient import SlackClient
import sys, json, sqlite3, time, re, datetime
MENTION_REGEX = "^<@(|[WU][A-Z0-9]+?)>(.*)"
if __name__ == "__main__":
bot = YegsecBot("config.json"... | 42.913858 | 239 | 0.56598 |
1e29069e2cd68e343ce7e90b98d21551b24dc656 | 5,072 | py | Python | workon/contrib/tracker/utils.py | devittek/django-workon | c39ddecac2649406a7a58922646478c5615d4cfd | [
"BSD-3-Clause"
] | 1 | 2018-01-19T16:08:54.000Z | 2018-01-19T16:08:54.000Z | workon/contrib/tracker/utils.py | devittek/django-workon | c39ddecac2649406a7a58922646478c5615d4cfd | [
"BSD-3-Clause"
] | 1 | 2020-07-06T08:35:18.000Z | 2020-07-06T08:35:18.000Z | workon/contrib/tracker/utils.py | devittek/django-workon | c39ddecac2649406a7a58922646478c5615d4cfd | [
"BSD-3-Clause"
] | 4 | 2020-04-08T06:14:46.000Z | 2020-12-11T14:28:06.000Z | from django.conf import settings
__all__ = ['track']
if 'workon.contrib.tracker' not in settings.INSTALLED_APPS:
else:
import time
import datetime
from operator import itemgetter
def track(*fields, save=True):
"""
Tracks property changes on a model instance.
The ch... | 38.424242 | 124 | 0.522082 |
1e299d7235c61aa6b1b77e65519ef77467227619 | 3,296 | py | Python | tda_api_helper/models.py | alexgolec/tda-api-helper | 6dfb842379883c6e82bd053df072babfe78c3df9 | [
"MIT"
] | null | null | null | tda_api_helper/models.py | alexgolec/tda-api-helper | 6dfb842379883c6e82bd053df072babfe78c3df9 | [
"MIT"
] | 7 | 2021-12-31T01:37:18.000Z | 2022-01-13T04:19:14.000Z | tda_api_helper/models.py | alexgolec/tda-api-helper | 6dfb842379883c6e82bd053df072babfe78c3df9 | [
"MIT"
] | null | null | null | import os
from sqlalchemy import Column, DateTime, ForeignKey, Integer, String
from sqlalchemy import create_engine
from sqlalchemy.orm import declarative_base, relationship
from sqlalchemy.sql import func
Base = declarative_base()
def get_engine(db_file):
db_file = os.path.abspath(db_file)
db_path = f's... | 32.633663 | 82 | 0.660498 |
1e2b1e90e65d462ea33a73daa9aaad6d0c9d572b | 46,103 | py | Python | python/sandbox/core.py | geometer/sandbox | 373ec96e69df76744a19b51f7caa865cbc6b58cd | [
"Apache-2.0"
] | 6 | 2020-04-19T11:26:18.000Z | 2021-06-21T18:42:51.000Z | python/sandbox/core.py | geometer/sandbox | 373ec96e69df76744a19b51f7caa865cbc6b58cd | [
"Apache-2.0"
] | 31 | 2020-04-21T17:24:39.000Z | 2020-08-27T15:59:12.000Z | python/sandbox/core.py | geometer/sandbox | 373ec96e69df76744a19b51f7caa865cbc6b58cd | [
"Apache-2.0"
] | null | null | null | """
Core module.
Normally, do not add new construction methods here, do this in scene.py instead.
"""
from enum import Enum, auto, unique
import itertools
import re
import sympy as sp
from typing import List
from .figure import Figure
from .reason import Reason
from .util import LazyComment, Comment, divide
clas... | 42.064781 | 139 | 0.549899 |
1e2b6f738581b2742bd1ca8b2f9482692264a225 | 345 | py | Python | while_example.py | ISE2012/ch5 | cce470d418419bff0c9d37233755ee39e1362a27 | [
"MIT"
] | null | null | null | while_example.py | ISE2012/ch5 | cce470d418419bff0c9d37233755ee39e1362a27 | [
"MIT"
] | null | null | null | while_example.py | ISE2012/ch5 | cce470d418419bff0c9d37233755ee39e1362a27 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 14 10:08:03 2020
@author: ucobiz
"""
num = 0 # we have to initialize num to zero
while num <= 0: # so that we can use it here
num = int(input("Enter a positive number: "))
# the while loop has exited b/c num is positive
print("Thank you. The number... | 21.5625 | 51 | 0.611594 |
1e2d130d98704094b0d5ff31b8c5866899ab9c1f | 12,633 | py | Python | entry/light_menu.py | way864/BattleTracker | 7204d613165b1c461ee301e5078cd4e2b7a072c4 | [
"MIT"
] | null | null | null | entry/light_menu.py | way864/BattleTracker | 7204d613165b1c461ee301e5078cd4e2b7a072c4 | [
"MIT"
] | null | null | null | entry/light_menu.py | way864/BattleTracker | 7204d613165b1c461ee301e5078cd4e2b7a072c4 | [
"MIT"
] | null | null | null | import math
import tkinter as tk
from tkinter import ttk, messagebox
from tkinter.constants import X, Y
from ttkthemes import ThemedStyle
| 32.392308 | 225 | 0.432676 |
1e2e52b3d0a6b948e6c8f945ff393631222f7c91 | 123 | py | Python | ievv_opensource/demo/demoapp/translation.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | null | null | null | ievv_opensource/demo/demoapp/translation.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 37 | 2015-10-26T09:14:12.000Z | 2022-02-10T10:35:33.000Z | ievv_opensource/demo/demoapp/translation.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T07:56:34.000Z | 2015-11-06T07:56:34.000Z | from django.utils.translation import gettext_lazy as _
| 20.5 | 54 | 0.788618 |
1e2ed5d13acdd2a38212da944c819fc33a4a6530 | 11,151 | py | Python | tests/ozpcenter_api/test_api_library.py | emosher/ozp-backend | d31d00bb8a28a8d0c999813f616b398f41516244 | [
"Apache-2.0"
] | 1 | 2018-10-05T17:03:01.000Z | 2018-10-05T17:03:01.000Z | tests/ozpcenter_api/test_api_library.py | emosher/ozp-backend | d31d00bb8a28a8d0c999813f616b398f41516244 | [
"Apache-2.0"
] | 1 | 2017-01-06T19:20:32.000Z | 2017-01-06T19:20:32.000Z | tests/ozpcenter_api/test_api_library.py | emosher/ozp-backend | d31d00bb8a28a8d0c999813f616b398f41516244 | [
"Apache-2.0"
] | 7 | 2016-12-16T15:42:05.000Z | 2020-09-05T01:11:27.000Z | import datetime
import pytz
from django.test import override_settings
from rest_framework import status
from ozpcenter import model_access as generic_model_access
from ozpcenter.scripts import sample_data_generator as data_gen
from tests.ozp.cases import APITestCase
from tests.ozpcenter.helper import APITestHelper
| 44.426295 | 125 | 0.565958 |
1e2f08d63ce02790e0954f0c2b48a364a5e50d1b | 2,335 | py | Python | vize/150401012/client.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | 2 | 2021-04-01T18:51:44.000Z | 2021-06-13T19:46:20.000Z | vize/150401012/client.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | null | null | null | vize/150401012/client.py | hasan-se/blm304 | 893d15282497a426ff96b0c8b6c77d57c406742e | [
"Unlicense"
] | null | null | null | #Yiit Yre 150401012
import socket
import os
import sys
try:
socket.gethostbyname(sys.argv[1])
except socket.error:
print("Geersiz IP adresi")
sys.exit()
host = sys.argv[1]
port = int(sys.argv[2])
try:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
print("stemci soketi balatld")
except sock... | 26.235955 | 92 | 0.543041 |