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
bdea9e6b97593d90098f8d8b3ebe1705ac2d52bf
1,790
py
Python
sesion_03/songs/migrations/0001_initial.py
bernest/modulo-django-desarrollo-web-cdmx-20-05pt
33f971f032f7d3902a49a993d46e3ecefb21d59b
[ "MIT" ]
null
null
null
sesion_03/songs/migrations/0001_initial.py
bernest/modulo-django-desarrollo-web-cdmx-20-05pt
33f971f032f7d3902a49a993d46e3ecefb21d59b
[ "MIT" ]
null
null
null
sesion_03/songs/migrations/0001_initial.py
bernest/modulo-django-desarrollo-web-cdmx-20-05pt
33f971f032f7d3902a49a993d46e3ecefb21d59b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-27 02:15 from django.db import migrations, models import django.db.models.deletion
38.913043
114
0.576536
bdebaf164c0ff546fcd1eead404c3f46b7076366
2,997
py
Python
tb_rest_client/api/api_pe/__init__.py
maksonlee/python_tb_rest_client
a6cd17ef4de31f68c3226b7a9835292fbac4b1fa
[ "Apache-2.0" ]
1
2021-07-19T10:09:04.000Z
2021-07-19T10:09:04.000Z
tb_rest_client/api/api_pe/__init__.py
moravcik94/python_tb_rest_client
985361890cdf4ccce93d2b24905ad9003c8dfcaa
[ "Apache-2.0" ]
null
null
null
tb_rest_client/api/api_pe/__init__.py
moravcik94/python_tb_rest_client
985361890cdf4ccce93d2b24905ad9003c8dfcaa
[ "Apache-2.0" ]
null
null
null
# Copyright 2020. ThingsBoard # # # 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 ...
53.517857
94
0.869536
bdee48464a89567d8ec4639ebab5392690cfa7ed
733
py
Python
src/models/description_to_salary/lstm.py
uiqkos/jobviz
d36d6476f8a56e306eccb25d467f05d924bf759f
[ "MIT" ]
null
null
null
src/models/description_to_salary/lstm.py
uiqkos/jobviz
d36d6476f8a56e306eccb25d467f05d924bf759f
[ "MIT" ]
null
null
null
src/models/description_to_salary/lstm.py
uiqkos/jobviz
d36d6476f8a56e306eccb25d467f05d924bf759f
[ "MIT" ]
null
null
null
from typing import List import tensorflow as tf from tensorflow.keras.layers import Embedding, Layer, LSTM, Input from src.features.preprocessing import get_embedding, get_text_vectorization from src.models.embedding_model import EmbeddingModel
25.275862
76
0.693042
bdf17b299d090870958700b534d35f52575641f8
440
py
Python
photohub/logger/__init__.py
HurTeng/PhotoHub
298b4f24858f53c1744afa8f2114bf61f28509ae
[ "MIT" ]
null
null
null
photohub/logger/__init__.py
HurTeng/PhotoHub
298b4f24858f53c1744afa8f2114bf61f28509ae
[ "MIT" ]
null
null
null
photohub/logger/__init__.py
HurTeng/PhotoHub
298b4f24858f53c1744afa8f2114bf61f28509ae
[ "MIT" ]
null
null
null
# coding=utf-8 import logging from logging.handlers import RotatingFileHandler #
29.333333
95
0.725
bdf1b8afe9f09a449f9e483ecc8f98231f337ba4
11,150
py
Python
sdk/python/pulumi_oci/core/get_dedicated_vm_host.py
EladGabay/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
5
2021-08-17T11:14:46.000Z
2021-12-31T02:07:03.000Z
sdk/python/pulumi_oci/core/get_dedicated_vm_host.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-06T11:21:29.000Z
2021-09-06T11:21:29.000Z
sdk/python/pulumi_oci/core/get_dedicated_vm_host.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-24T23:31:30.000Z
2022-01-02T19:26:54.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
44.071146
344
0.689865
bdf424a5d5b3c9f2dd9b4dce3474d58c4da50931
383
py
Python
cloud function/Database.py
Med-ELOMARI/marocovid19-dashboard
3b02a93bc617501a5d66e81fb8ca3722e0b76ad2
[ "MIT" ]
null
null
null
cloud function/Database.py
Med-ELOMARI/marocovid19-dashboard
3b02a93bc617501a5d66e81fb8ca3722e0b76ad2
[ "MIT" ]
null
null
null
cloud function/Database.py
Med-ELOMARI/marocovid19-dashboard
3b02a93bc617501a5d66e81fb8ca3722e0b76ad2
[ "MIT" ]
null
null
null
import firebase_admin from firebase_admin import credentials # conf.json not included in the repo because it have write access to the database cred = credentials.Certificate("conf.json") firebase_admin.initialize_app( cred, {"databaseURL": "https://covid19maroc-632de.firebaseio.com"} ) # Import database module. ...
27.357143
82
0.785901
bdf4bba83ce926e7df5ccce4b0f2ff6a517c48e0
19,839
py
Python
Host_DM/plot_results.py
obscode/CSPMCMC
3811d5196a99f2f0adea2b6d0e01b12d93fd9639
[ "MIT" ]
1
2019-09-30T13:57:57.000Z
2019-09-30T13:57:57.000Z
Host_DM/plot_results.py
obscode/CSPMCMC
3811d5196a99f2f0adea2b6d0e01b12d93fd9639
[ "MIT" ]
null
null
null
Host_DM/plot_results.py
obscode/CSPMCMC
3811d5196a99f2f0adea2b6d0e01b12d93fd9639
[ "MIT" ]
null
null
null
#!/usr/bin/env python import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt from numpy import * import pickle import sys,os,string from astropy.io import ascii from myplotlib import PanelPlot import config import STANstats import get_data import sigfig try: import corner except: corner = None ...
34.502609
85
0.63849
bdf505ca9a1a225a58333b964de613bd5f5c503c
2,286
py
Python
api/tests/test_svs.py
gsbevilaqua/elections
3675cbac34bdc691cb9530a05c857cf7bbdd6bb3
[ "BSD-3-Clause" ]
null
null
null
api/tests/test_svs.py
gsbevilaqua/elections
3675cbac34bdc691cb9530a05c857cf7bbdd6bb3
[ "BSD-3-Clause" ]
null
null
null
api/tests/test_svs.py
gsbevilaqua/elections
3675cbac34bdc691cb9530a05c857cf7bbdd6bb3
[ "BSD-3-Clause" ]
null
null
null
import os,sys,inspect current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parent_dir = os.path.dirname(current_dir) sys.path.insert(0, parent_dir) from Elections import Elections from ScoreVoting import ScoreVoting from nose.tools import assert_equals elec = None elec2 = None svs =...
43.961538
166
0.552931
bdf5bee97baaa9733230a42c37c0bd9bbaeb04da
670
py
Python
moai/validation/metrics/object_pose/__init__.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
10
2021-04-02T11:21:33.000Z
2022-01-18T18:32:32.000Z
moai/validation/metrics/object_pose/__init__.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
1
2022-03-22T20:10:55.000Z
2022-03-24T13:11:02.000Z
moai/validation/metrics/object_pose/__init__.py
tzole1155/moai
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
[ "Apache-2.0" ]
3
2021-05-16T20:47:40.000Z
2021-12-01T21:15:36.000Z
from moai.validation.metrics.object_pose.position import NormalizedPositionError from moai.validation.metrics.object_pose.rotation import AngleError from moai.validation.metrics.object_pose.accuracy import ( Accuracy2, Accuracy5, Accuracy10 ) from moai.validation.metrics.object_pose.add import ( SixD2, ...
20.9375
80
0.707463
bdf7b75dfd9d336aaba1144fdb79a37fe4431f04
2,581
py
Python
lume/config/config.py
alice-biometrics/lume
a5605f75f05c9007e164e0644dd34f83dfbdfc7d
[ "MIT" ]
15
2020-03-20T19:33:07.000Z
2022-01-07T15:11:08.000Z
lume/config/config.py
alice-biometrics/lume
a5605f75f05c9007e164e0644dd34f83dfbdfc7d
[ "MIT" ]
18
2020-04-07T10:53:30.000Z
2022-01-24T07:13:39.000Z
lume/config/config.py
alice-biometrics/lume
a5605f75f05c9007e164e0644dd34f83dfbdfc7d
[ "MIT" ]
null
null
null
from typing import Dict, List import yaml from lume.config.install_config import InstallConfig from lume.config.setup_config import SetupConfig from lume.config.step_config import StepConfig, read_env_from_file
37.955882
80
0.582332
bdf7bf85b3ce1b90e1791df7be1e922a5a3624fd
3,015
py
Python
religion/religion_county.py
natelowry/data_visualization
8d01b6ae5337ff5c7a4eda59e657a53d19af5f32
[ "MIT" ]
null
null
null
religion/religion_county.py
natelowry/data_visualization
8d01b6ae5337ff5c7a4eda59e657a53d19af5f32
[ "MIT" ]
null
null
null
religion/religion_county.py
natelowry/data_visualization
8d01b6ae5337ff5c7a4eda59e657a53d19af5f32
[ "MIT" ]
1
2021-01-08T03:20:45.000Z
2021-01-08T03:20:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 23 07:33:30 2018 @author: aaronpenne """ import os import pandas as pd import numpy as np code_dir = os.path.dirname(__file__) # Returns full path of this script data_dir = os.path.join(code_dir, 'data') output_dir = os.path.join(code_dir, 'outpu...
37.222222
131
0.585075
bdf98c35dfedf42ae3f3e2625c17fcce87259110
8,820
py
Python
blackjack.py
shipperizer/solid-enigma
fd8c7a989fde9b401ff4b4e06a5355c148fd3d15
[ "MIT" ]
null
null
null
blackjack.py
shipperizer/solid-enigma
fd8c7a989fde9b401ff4b4e06a5355c148fd3d15
[ "MIT" ]
null
null
null
blackjack.py
shipperizer/solid-enigma
fd8c7a989fde9b401ff4b4e06a5355c148fd3d15
[ "MIT" ]
null
null
null
from nameko_sqlalchemy import Session from nameko.rpc import rpc from sqlalchemy import and_ from sqlalchemy.sql.expression import func from models import Match, Player, Deck, Card, Hand, Base def _make_players(self, match_uuid): ''' Create a player and a dealer ''' dealer = Play...
34.588235
116
0.593991
bdfb42ca294f0ab9d879e29cdd846b2039bce7a7
2,666
py
Python
app/classifier.py
hp0404/base-classifier
5639d011b1750112b2db8a636a07953f4f6d6ce4
[ "MIT" ]
null
null
null
app/classifier.py
hp0404/base-classifier
5639d011b1750112b2db8a636a07953f4f6d6ce4
[ "MIT" ]
null
null
null
app/classifier.py
hp0404/base-classifier
5639d011b1750112b2db8a636a07953f4f6d6ce4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import uuid import spacy from app.models import InputDocument, ModelResponse
31.738095
87
0.420855
bdfc35f54a9b8bd1f3bd3c52660efd98b04dbd81
6,342
py
Python
tests/test_hdf5.py
MSLNZ/MSL-IO
0b7a1f6ddacc936a98f134fd67f209840a500030
[ "MIT" ]
6
2021-06-27T00:26:09.000Z
2022-02-11T06:04:23.000Z
tests/test_hdf5.py
MSLNZ/MSL-IO
0b7a1f6ddacc936a98f134fd67f209840a500030
[ "MIT" ]
null
null
null
tests/test_hdf5.py
MSLNZ/MSL-IO
0b7a1f6ddacc936a98f134fd67f209840a500030
[ "MIT" ]
1
2018-03-01T03:11:00.000Z
2018-03-01T03:11:00.000Z
import os import tempfile import pytest import numpy as np try: import h5py except ImportError: h5py = None from msl.io import read, HDF5Writer, JSONWriter from msl.io.readers import HDF5Reader from helper import read_sample, roots_equal
33.555556
97
0.621728
bdfc9c8e124f0a48f2759070e1803358d93989ca
477
py
Python
taattack/constraints/text_constraints/min_use_sim.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/constraints/text_constraints/min_use_sim.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/constraints/text_constraints/min_use_sim.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
from taattack.utils import get_use_sim from .text_constraint import TextConstraint
28.058824
99
0.687631
bdfcfa1e1523a70d45e7858d69a70c5083100232
1,798
py
Python
src/pkgs/ui/calibrationMsgBox.py
Electronya/rc-mission-command
c801cde1a68a5c113cee56747b0f0709b1b92e2f
[ "MIT" ]
null
null
null
src/pkgs/ui/calibrationMsgBox.py
Electronya/rc-mission-command
c801cde1a68a5c113cee56747b0f0709b1b92e2f
[ "MIT" ]
6
2021-09-06T18:45:48.000Z
2021-12-17T01:30:30.000Z
src/pkgs/ui/calibrationMsgBox.py
Electronya/rc-mission-commander
c801cde1a68a5c113cee56747b0f0709b1b92e2f
[ "MIT" ]
null
null
null
import logging import tkinter as tk
33.924528
73
0.591769
bdfdd1cb82722a58f52e1adbc2a616a8ec2e7a8c
2,997
py
Python
resources/panels/maps/images.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
32
2016-08-27T01:31:42.000Z
2022-03-21T08:59:28.000Z
resources/panels/maps/images.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
3
2016-08-27T00:51:47.000Z
2019-08-26T13:23:04.000Z
resources/panels/maps/images.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
10
2016-08-28T14:14:41.000Z
2021-03-18T03:24:22.000Z
# -*- coding: utf-8 -*- ##--------------------------------------------------------------------------------------------------- # # Images Panel # ##--------------------------------------------------------------------------------------------------- import imports from imports import * import config # set this to False...
42.814286
322
0.61328
bdfe74268bdb6547d0e390d454435fb7eb897563
4,685
py
Python
main.py
skattel49/quotes_scraper
ad4372ad77370531f3a74a13eaf79b3cbf51431a
[ "MIT" ]
null
null
null
main.py
skattel49/quotes_scraper
ad4372ad77370531f3a74a13eaf79b3cbf51431a
[ "MIT" ]
null
null
null
main.py
skattel49/quotes_scraper
ad4372ad77370531f3a74a13eaf79b3cbf51431a
[ "MIT" ]
null
null
null
from enum import auto from flask import Flask, request from bs4 import BeautifulSoup from flask_cors import CORS import requests import json import random import time from dotenv import load_dotenv import os import json load_dotenv() SECRET_KEY=os.getenv("SECRET_KEY") ACCESS_KEY=os.getenv("ACCESS_KEY") random.seed(ti...
35.225564
120
0.648879
bdfebf77834253f5884d71147594f2ecb2b724e7
381
py
Python
ringity/readwrite/diagram.py
ClusterDuck123/ringity
44505d192b72a1d47f6b7b0a90f0db83d98b6156
[ "MIT" ]
null
null
null
ringity/readwrite/diagram.py
ClusterDuck123/ringity
44505d192b72a1d47f6b7b0a90f0db83d98b6156
[ "MIT" ]
null
null
null
ringity/readwrite/diagram.py
ClusterDuck123/ringity
44505d192b72a1d47f6b7b0a90f0db83d98b6156
[ "MIT" ]
null
null
null
import numpy as np from ringity.classes.diagram import PersistenceDiagram def read_pdiagram(fname, **kwargs): """ Wrapper for numpy.genfromtxt. """ return PersistenceDiagram(np.genfromtxt(fname, **kwargs)) def write_pdiagram(dgm, fname, **kwargs): """ Wrapper for numpy.savetxt. """ ...
25.4
61
0.671916
bdfed926ea149d5168a3e4fd9633573526327ba9
717
py
Python
dmarcap/identifiers.py
Nekmo/dmarc-aggregate-parser
5bd6cfd3df811c36fc79536c284f07a02140ada6
[ "MIT" ]
6
2018-01-11T14:58:05.000Z
2020-07-09T12:23:20.000Z
dmarcap/identifiers.py
Nekmo/dmarc-aggregate-parser
5bd6cfd3df811c36fc79536c284f07a02140ada6
[ "MIT" ]
2
2020-03-23T14:27:45.000Z
2020-04-28T01:58:38.000Z
dmarcap/identifiers.py
Nekmo/dmarc-aggregate-parser
5bd6cfd3df811c36fc79536c284f07a02140ada6
[ "MIT" ]
3
2020-03-06T16:59:30.000Z
2020-06-30T23:03:12.000Z
""" dmarcap/identifiers/py - DMARC aggregate report IdentifierType representation Ref. https://tools.ietf.org/html/rfc7489#appendix-C """ from builtins import object
35.85
77
0.659693
bdff7fbaed4c921f4a4b8b7f1a2e716c636428fa
3,087
py
Python
cube.py
dairequinlan/bedlam-solver
71250a4882de2eae2b63c64ed09b31692aa8b492
[ "Apache-2.0" ]
null
null
null
cube.py
dairequinlan/bedlam-solver
71250a4882de2eae2b63c64ed09b31692aa8b492
[ "Apache-2.0" ]
null
null
null
cube.py
dairequinlan/bedlam-solver
71250a4882de2eae2b63c64ed09b31692aa8b492
[ "Apache-2.0" ]
null
null
null
""" Cube class contains the logic for maintaining the current state of the container, or Bedlam Cube, and methods for checking, inserting, and removing individual Shape objects from the cube space. """ """ Each Cube is made up of X * Y * Z Cuboids, Each of which for simplicities sakes contain all the...
36.317647
117
0.551992
bdfffe8078436e4119057b8686df08784d5206d4
854
py
Python
StaticEstimates/PriorLearn.py
horribleheffalump/AUVResearch
f9bf37da4a74662fcd1df88a8177a654fccf0728
[ "MIT" ]
4
2020-06-23T07:24:40.000Z
2021-05-24T04:57:52.000Z
StaticEstimates/PriorLearn.py
horribleheffalump/AUVResearch
f9bf37da4a74662fcd1df88a8177a654fccf0728
[ "MIT" ]
null
null
null
StaticEstimates/PriorLearn.py
horribleheffalump/AUVResearch
f9bf37da4a74662fcd1df88a8177a654fccf0728
[ "MIT" ]
3
2020-09-23T07:14:26.000Z
2021-07-10T12:50:28.000Z
import numpy as np from sklearn.model_selection import train_test_split
31.62963
87
0.62178
da00ed6eab4691bf8ae09817f4bff2f338f59adc
2,758
py
Python
exp_final_whitebox_attacker.py
alanefl/graph-based-recommender-attacks
4b7545b32bb18ebe89cbfdcd8463550296373002
[ "MIT" ]
3
2019-03-08T09:09:52.000Z
2019-12-05T02:39:43.000Z
exp_final_whitebox_attacker.py
alanefl/graph-based-recommender-attacks
4b7545b32bb18ebe89cbfdcd8463550296373002
[ "MIT" ]
2
2018-12-07T19:03:43.000Z
2018-12-08T03:16:15.000Z
exp_final_whitebox_attacker.py
alanefl/graph-based-recommender-attacks
4b7545b32bb18ebe89cbfdcd8463550296373002
[ "MIT" ]
3
2019-01-28T09:13:42.000Z
2022-02-22T00:27:29.000Z
import traceback import sys import numpy as np from gbra.data.network_loader import Movielens100kLoader from gbra.attackers.attacker import * from gbra.recommender.recommenders import PixieRandomWalkRecommender ITERATIONS = 5 PIXIE_PARAMS = { 'n_p': 30, 'n_v': 4, 'max_steps_in_walk': 1000, 'alpha': 0...
29.978261
91
0.734228
da0111a040169a77c5725489ef257839e6734184
339
py
Python
demo/cities/urls.py
mrmikardo/django-map-widgets
573c6cab0abffed44dc197f6495f4b75c167a695
[ "MIT" ]
425
2016-02-21T21:02:20.000Z
2022-03-17T02:11:17.000Z
demo/cities/urls.py
mrmikardo/django-map-widgets
573c6cab0abffed44dc197f6495f4b75c167a695
[ "MIT" ]
112
2016-08-24T02:24:06.000Z
2022-01-27T10:38:36.000Z
demo/cities/urls.py
mrmikardo/django-map-widgets
573c6cab0abffed44dc197f6495f4b75c167a695
[ "MIT" ]
132
2016-06-01T09:56:00.000Z
2022-02-16T14:42:17.000Z
from django.urls import path, re_path from cities.views import CityCreateView, CityListView, CityDetailView app_name = 'cities' urlpatterns = [ path('', CityListView.as_view(), name="list"), re_path(r'^(?P<pk>\d+)/$', CityDetailView.as_view(), name="detail"), re_path(r'^create/$', CityCreateView.as_view()...
33.9
72
0.696165
da013d7bf5bd3738906f5171efb4f3e2276d7876
695
py
Python
Examples/connection_test.py
Wenlin88/MonoDAQ-U-X
51bf5986537211bea6d36dcbcb515689ecd361d5
[ "MIT" ]
1
2019-09-30T18:03:21.000Z
2019-09-30T18:03:21.000Z
Examples/connection_test.py
Wenlin88/MonoDAQ-U-X
51bf5986537211bea6d36dcbcb515689ecd361d5
[ "MIT" ]
null
null
null
Examples/connection_test.py
Wenlin88/MonoDAQ-U-X
51bf5986537211bea6d36dcbcb515689ecd361d5
[ "MIT" ]
null
null
null
from isotel.idm import gateway, monodaq import pickle from pathlib import Path # For quick access; remote ip adress; username and password is stored at little.secrets pickle. Note! Newer use donwloaded pickle. It can be hacked! little_secrets = pickle.load(open(str(Path.home()) + "/little.secrets", "rb" ) ) remote_ip ...
38.611111
148
0.667626
da01d99d3694118507249205b667843394406091
2,605
py
Python
figures/ts_clustering.py
ultmaster/deeper-insights-weight-sharing
2a7f852cd22190b0ccd2bad3e7a1c208f01986b5
[ "MIT" ]
6
2020-01-21T09:55:54.000Z
2021-08-09T02:10:49.000Z
figures/ts_clustering.py
ultmaster/deeper-insights-weight-sharing
2a7f852cd22190b0ccd2bad3e7a1c208f01986b5
[ "MIT" ]
2
2020-09-08T07:57:19.000Z
2021-06-02T00:53:09.000Z
figures/ts_clustering.py
ultmaster/deeper-insights-weight-sharing
2a7f852cd22190b0ccd2bad3e7a1c208f01986b5
[ "MIT" ]
2
2020-02-29T18:01:29.000Z
2020-03-04T13:53:03.000Z
import functools import os from argparse import ArgumentParser import networkx import numpy as np from visualize import heatmap if __name__ == "__main__": main()
36.180556
102
0.611132
da02ff546d9c3aa935540c80812687d46dd3b1a9
1,582
py
Python
backend/algorithms/msn2_backend/elite.py
AroMorin/DNNOP
271e65811fe7cadcffc8155049e256fa78c0c5c6
[ "MIT" ]
6
2020-01-14T00:01:34.000Z
2021-12-28T14:31:05.000Z
backend/algorithms/msn2_backend/elite.py
AroMorin/DNNOP
271e65811fe7cadcffc8155049e256fa78c0c5c6
[ "MIT" ]
null
null
null
backend/algorithms/msn2_backend/elite.py
AroMorin/DNNOP
271e65811fe7cadcffc8155049e256fa78c0c5c6
[ "MIT" ]
1
2020-09-06T10:44:29.000Z
2020-09-06T10:44:29.000Z
"""Base class for elite.""" import copy
34.391304
79
0.614412
da03a31757da96abc382fc61fe58ac8b0cd58b3b
196
py
Python
Ex031 Custo da Viagem.py
JeanPauloGarcia/Python-Exercicios
faff4670806c423680ee00a88d3c4c49b437e72e
[ "MIT" ]
null
null
null
Ex031 Custo da Viagem.py
JeanPauloGarcia/Python-Exercicios
faff4670806c423680ee00a88d3c4c49b437e72e
[ "MIT" ]
null
null
null
Ex031 Custo da Viagem.py
JeanPauloGarcia/Python-Exercicios
faff4670806c423680ee00a88d3c4c49b437e72e
[ "MIT" ]
null
null
null
n = float(input('Distncia viagem: ')) '''if n > 200: n1 = n*0.45 else: n1 = n*0.5''' # modo 2 n1 = n*0.5 if n<=200 else n*0.45 print('Sua viagem de {}km custar {} reais'.format(n, n1))
19.6
58
0.561224
da03f879406cf2904e2913dd3ae22cdaad77e225
1,826
py
Python
sfdc_cli/commands/packagexml_local.py
exiahuang/sfdc-cli
0770b2cb66b7a564656fd6ea49232ce6f3d01ebe
[ "Apache-2.0" ]
2
2021-03-31T19:23:43.000Z
2021-03-31T19:24:01.000Z
sfdc_cli/commands/packagexml_local.py
exiahuang/sfdc-cli
0770b2cb66b7a564656fd6ea49232ce6f3d01ebe
[ "Apache-2.0" ]
null
null
null
sfdc_cli/commands/packagexml_local.py
exiahuang/sfdc-cli
0770b2cb66b7a564656fd6ea49232ce6f3d01ebe
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from sfdc_cli.package_xml import PackageXml command_name = os.path.basename(__file__).split('.', 1)[0].replace("_", ":")
35.803922
76
0.440854
da042fc7b2d888458f265ca8fd3b7f3c76def6db
882
py
Python
mhack/basic_app/urls.py
team-anything/Briefly-web
a8e07e1d4a993cbf62b5e61dd17a808ba384db09
[ "MIT" ]
1
2018-03-12T04:24:11.000Z
2018-03-12T04:24:11.000Z
mhack/basic_app/urls.py
inishchith/Briefly-web
a8e07e1d4a993cbf62b5e61dd17a808ba384db09
[ "MIT" ]
9
2020-06-05T17:59:38.000Z
2022-03-11T23:18:06.000Z
mhack/basic_app/urls.py
inishchith/Briefly-web
a8e07e1d4a993cbf62b5e61dd17a808ba384db09
[ "MIT" ]
null
null
null
from django.conf.urls import url from basic_app import views # SET THE NAMESPACE! app_name = 'basic_app' urlpatterns=[ url(r'^register/$',views.register,name='register'), url(r'^user_login/$',views.user_login,name='user_login'), url(r'^add/$',views.add,name='add'), url(r'^bookadd/$',views.bookadd,name...
38.347826
72
0.641723
da0474cc54d757d5b2105908aca1afa851f1a38a
1,860
py
Python
messApp/reviewSystem/admin.py
vikitripathi/MB-MessApp-API
4f70f89cf1712683f41b57baa2ca337f8c064db9
[ "Apache-2.0" ]
null
null
null
messApp/reviewSystem/admin.py
vikitripathi/MB-MessApp-API
4f70f89cf1712683f41b57baa2ca337f8c064db9
[ "Apache-2.0" ]
null
null
null
messApp/reviewSystem/admin.py
vikitripathi/MB-MessApp-API
4f70f89cf1712683f41b57baa2ca337f8c064db9
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from reviewSystem.models import Item,Category,User,Rating # register your model here admin.site.register(Item,ItemAdmin) admin.site.register(User,UserAdmin) # hide show timestamp admin.site.register(Category,CategoryAdmin) admin.site.register(Rating,RatingAdmin) # can call field of o...
36.470588
99
0.647849
da0619e0b3f90a7657f61daf019b596715684431
733
py
Python
setup.py
mollinaca/slack_utils
5e1a4bc0ce6026b2816bf14dc1f328c15415c1d7
[ "MIT" ]
null
null
null
setup.py
mollinaca/slack_utils
5e1a4bc0ce6026b2816bf14dc1f328c15415c1d7
[ "MIT" ]
null
null
null
setup.py
mollinaca/slack_utils
5e1a4bc0ce6026b2816bf14dc1f328c15415c1d7
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('requirements.txt') as requirements_file: install_requirements = requirements_file.read().splitlines() setup( name="slack_utils", version="0.0.1", description="my slack utils", author="mollinaca", packages=find_packages(), install_require...
30.541667
64
0.631651
da083bc5f214abf9dcb5e9a017a2fef4a5204e38
1,440
py
Python
PyKnife/algo/sort/quick_sort.py
Genpeng/PyKnife
77cf0bd2ebd98ab55b28379936444eb4b7f4d57f
[ "Apache-2.0" ]
1
2018-12-06T06:52:10.000Z
2018-12-06T06:52:10.000Z
PyKnife/algo/sort/quick_sort.py
Genpeng/PyKnife
77cf0bd2ebd98ab55b28379936444eb4b7f4d57f
[ "Apache-2.0" ]
null
null
null
PyKnife/algo/sort/quick_sort.py
Genpeng/PyKnife
77cf0bd2ebd98ab55b28379936444eb4b7f4d57f
[ "Apache-2.0" ]
null
null
null
# _*_ coding: utf-8 _*_ """ Implementation of quick sort algorithm. Reference: [1] https://runestone.academy/runestone/books/published/pythonds/SortSearch/TheQuickSort.html Author: Genpeng Xu """ from typing import List if __name__ == "__main__": from time import time n = 300 nums = [i for i in ran...
25.263158
93
0.613194
da089a0e654b3cfc20285e2c34f8ba50008446fe
2,626
py
Python
skyviewbot/cli.py
cosmicpudding/skyviewbot
3157a6adc5e1699e257e42ae5fff969dfc1b3d0c
[ "MIT" ]
1
2019-04-08T09:34:14.000Z
2019-04-08T09:34:14.000Z
skyviewbot/cli.py
cosmicpudding/skyviewbot
3157a6adc5e1699e257e42ae5fff969dfc1b3d0c
[ "MIT" ]
null
null
null
skyviewbot/cli.py
cosmicpudding/skyviewbot
3157a6adc5e1699e257e42ae5fff969dfc1b3d0c
[ "MIT" ]
12
2019-04-08T08:33:09.000Z
2020-09-17T07:20:11.000Z
#!/usr/bin/env python """Command-line interface for skyviewbot""" # ASTERICS-OBELICS Good Coding Practices (skyviewbot.py) # V.A. Moss (vmoss.astro@gmail.com), with suggestions from T.J. Dijkema import sys from .functions import skyviewbot from argparse import ArgumentParser, RawTextHelpFormatter def main(*function...
37.514286
124
0.552932
da0a2186aa341fc3027cb67604bddeb12f81f0f7
6,211
py
Python
lib/pegasus/python/Pegasus/service/ensembles/views.py
fengggli/pegasus
b68f588d90eb2b832086ed627d61414691f8ba95
[ "Apache-2.0" ]
null
null
null
lib/pegasus/python/Pegasus/service/ensembles/views.py
fengggli/pegasus
b68f588d90eb2b832086ed627d61414691f8ba95
[ "Apache-2.0" ]
null
null
null
lib/pegasus/python/Pegasus/service/ensembles/views.py
fengggli/pegasus
b68f588d90eb2b832086ed627d61414691f8ba95
[ "Apache-2.0" ]
null
null
null
import os import logging import subprocess from flask import g, url_for, make_response, request, send_file, json from Pegasus.db import connection from Pegasus.service.ensembles import emapp, api, auth from Pegasus.db.ensembles import EMError, Ensembles, EnsembleWorkflowStates log = logging.getLogger(__name__) def ...
32.181347
113
0.692964
da0cdbaf91670eef33690626ef3aafd4b09b57d5
4,507
py
Python
src/pykeen/models/unimodal/ntn.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/models/unimodal/ntn.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/models/unimodal/ntn.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Implementation of NTN.""" from typing import Any, ClassVar, Mapping, Optional from class_resolver import Hint, HintOrType from torch import nn from ..nbase import ERModel from ...constants import DEFAULT_EMBEDDING_HPO_EMBEDDING_DIM_RANGE from ...nn import EmbeddingSpecification from ...nn...
40.603604
114
0.633015
da0d077cc13b36576f3af20d40a721cd1dc12dd1
1,205
py
Python
supervisely/train/src/sly_train_args.py
supervisely-ecosystem/FairMOT
493aa8b626e0eac1a71d27af8eefb680210b8a11
[ "MIT" ]
null
null
null
supervisely/train/src/sly_train_args.py
supervisely-ecosystem/FairMOT
493aa8b626e0eac1a71d27af8eefb680210b8a11
[ "MIT" ]
null
null
null
supervisely/train/src/sly_train_args.py
supervisely-ecosystem/FairMOT
493aa8b626e0eac1a71d27af8eefb680210b8a11
[ "MIT" ]
null
null
null
import sys import sly_globals as g # import train_config import re import torch
33.472222
101
0.60166
da0e626157c92f8881383fed5ee2d4854b044366
1,754
py
Python
predict_buyers_category.py
nikolai5slo/algo_sales_acceleration
c22dee579907b6e967020eb9f1c0935d63b3a828
[ "MIT" ]
null
null
null
predict_buyers_category.py
nikolai5slo/algo_sales_acceleration
c22dee579907b6e967020eb9f1c0935d63b3a828
[ "MIT" ]
null
null
null
predict_buyers_category.py
nikolai5slo/algo_sales_acceleration
c22dee579907b6e967020eb9f1c0935d63b3a828
[ "MIT" ]
null
null
null
from collections import defaultdict import sys import pickle import helpers.data as data import helpers.graph as graph import networkx as nx import numpy as np from helpers.helpers import dprint, readArgs, Result, MeasureTimer, printResults from predictor import validate_buyers_for_products (K, orderlim, saveto) =...
28.754098
95
0.742303
da10d2e7c8f7427a5a8d088d25892ba004bc9a7e
8,483
py
Python
BinlogCapturer/src/binlogCapturer.py
lvxinup/BaikalDB-Migrate
60235c16ec63fc856b6e9e632344ecd7f08e7e69
[ "Apache-2.0" ]
3
2020-12-16T07:40:39.000Z
2021-01-30T08:07:06.000Z
BinlogCapturer/src/binlogCapturer.py
lvxinup/BaikalDB-Migrate
60235c16ec63fc856b6e9e632344ecd7f08e7e69
[ "Apache-2.0" ]
null
null
null
BinlogCapturer/src/binlogCapturer.py
lvxinup/BaikalDB-Migrate
60235c16ec63fc856b6e9e632344ecd7f08e7e69
[ "Apache-2.0" ]
4
2020-12-16T07:06:37.000Z
2020-12-16T07:14:39.000Z
# Copyright (c) 2020-present ly.com, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
38.559091
135
0.672875
da1334404697889260a8bebeea04c6d1b234a792
363
py
Python
settings/local-dist.py
brianjgeiger/osf-pigeon
474e741358514d24907d92be80d90d82dd38f707
[ "MIT" ]
null
null
null
settings/local-dist.py
brianjgeiger/osf-pigeon
474e741358514d24907d92be80d90d82dd38f707
[ "MIT" ]
null
null
null
settings/local-dist.py
brianjgeiger/osf-pigeon
474e741358514d24907d92be80d90d82dd38f707
[ "MIT" ]
null
null
null
# New tokens can be found at https://archive.org/account/s3.php IA_ACCESS_KEY = 'change to valid token' IA_SECRET_KEY = 'change to valid token' DOI_FORMAT = '10.70102/fk2osf.io/{guid}' OSF_BEARER_TOKEN = '' DATACITE_USERNAME = None DATACITE_PASSWORD = None DATACITE_URL = None DATACITE_PREFIX = '10.70102' # Datacite...
27.923077
82
0.757576
da14dd041c8677c7aff8aa2f59f291c0bedcc951
8,429
py
Python
utils/extract_fold_data.py
ravi-0841/spect-pitch-gan
ea4b9ea8396df753e25e0b2cb210288f683d3903
[ "MIT" ]
null
null
null
utils/extract_fold_data.py
ravi-0841/spect-pitch-gan
ea4b9ea8396df753e25e0b2cb210288f683d3903
[ "MIT" ]
null
null
null
utils/extract_fold_data.py
ravi-0841/spect-pitch-gan
ea4b9ea8396df753e25e0b2cb210288f683d3903
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Dec 27 14:39:08 2020 @author: ravi """ import scipy.io as scio import scipy.io.wavfile as scwav import numpy as np import joblib import pyworld as pw import os import warnings warnings.filterwarnings('ignore') from tqdm import tqdm from concurrent.fut...
36.969298
90
0.602918
da15731fc2951f272b0cca8ce3a85560331472b7
10,894
py
Python
basic_ops.py
dingmingxin/crossword_generator
ff6dae5673ab6f5ebdb259dc85a7609710c7a0f7
[ "BSD-3-Clause" ]
51
2016-05-19T14:04:44.000Z
2022-02-02T23:39:16.000Z
basic_ops.py
dingmingxin/crossword_generator
ff6dae5673ab6f5ebdb259dc85a7609710c7a0f7
[ "BSD-3-Clause" ]
null
null
null
basic_ops.py
dingmingxin/crossword_generator
ff6dae5673ab6f5ebdb259dc85a7609710c7a0f7
[ "BSD-3-Clause" ]
15
2016-05-20T15:59:13.000Z
2022-03-05T02:23:12.000Z
import random import time def generate_random_possibility(words, dim): """ This function returns a randomly-generated possibility, instead of generating all possible ones. """ # Generate possibility possibility = {"word": words[random.randint(0, len(words)-1)], "location": [rand...
33.937695
144
0.607582
da159d0d9a49c3db77e158e9582919ffed26d460
3,089
py
Python
mukham/detector.py
akvallapuram/mukham
257035b5a9cbb5ef3aa231f42eb1c4ebf2ce0d10
[ "MIT" ]
null
null
null
mukham/detector.py
akvallapuram/mukham
257035b5a9cbb5ef3aa231f42eb1c4ebf2ce0d10
[ "MIT" ]
null
null
null
mukham/detector.py
akvallapuram/mukham
257035b5a9cbb5ef3aa231f42eb1c4ebf2ce0d10
[ "MIT" ]
null
null
null
import numpy as np import cv2 import errno # set environment variable import os os.environ['OPENCV_IO_ENABLE_JASPER']= 'TRUE' # allows JPEG2000 format # path of this file det_path = os.path.split(os.path.abspath(__file__))[0] + '/' def detect_largest_face(in_path, out_path=None, min_conf=0.8): """ De...
32.177083
92
0.617352
da17e42de65984cda1a54beeefab951ef1a68679
1,538
py
Python
utils/tail_server_events.py
dshean/sliderule-python
3cf9a6c65987705354cb536d71f85a32fbb24d15
[ "BSD-3-Clause" ]
1
2021-04-09T22:01:33.000Z
2021-04-09T22:01:33.000Z
utils/tail_server_events.py
dshean/sliderule-python
3cf9a6c65987705354cb536d71f85a32fbb24d15
[ "BSD-3-Clause" ]
null
null
null
utils/tail_server_events.py
dshean/sliderule-python
3cf9a6c65987705354cb536d71f85a32fbb24d15
[ "BSD-3-Clause" ]
null
null
null
# # Connects to SlideRule server at provided url and prints log messages # generated on server to local terminal # import sys import logging from sliderule import sliderule from sliderule import icesat2 ############################################################################### # GLOBAL CODE ####################...
25.213115
79
0.496749
da187cd918fd3f9a2e332eac5de11de38b87c5b5
330
py
Python
solutions/problem34.py
wy/ProjectEuler
842d45994fe76ef0ea70dbe6b6f2a559078f45f3
[ "Apache-1.1" ]
null
null
null
solutions/problem34.py
wy/ProjectEuler
842d45994fe76ef0ea70dbe6b6f2a559078f45f3
[ "Apache-1.1" ]
null
null
null
solutions/problem34.py
wy/ProjectEuler
842d45994fe76ef0ea70dbe6b6f2a559078f45f3
[ "Apache-1.1" ]
null
null
null
# coding: utf8 # Author: Wing Yung Chan (~wy) # Date: 2017 # Digit Factorials import math
15
37
0.539394
da1a6848821060521f2d756bf5d84bdf6c4c26e4
1,160
py
Python
hw/hw02/tests/q5.py
surajrampure/data-94-sp21
074543103579c28d796c681f78f3c38449825328
[ "BSD-3-Clause" ]
1
2020-11-21T09:42:52.000Z
2020-11-21T09:42:52.000Z
hw/hw02/tests/q5.py
surajrampure/data-94-sp21
074543103579c28d796c681f78f3c38449825328
[ "BSD-3-Clause" ]
null
null
null
hw/hw02/tests/q5.py
surajrampure/data-94-sp21
074543103579c28d796c681f78f3c38449825328
[ "BSD-3-Clause" ]
null
null
null
test = { 'name': 'q5', 'points': 3, 'suites': [ { 'cases': [ {'code': ">>> big_tippers(['suraj', 15, 'isaac', 9, 'angela', 19]) == ['suraj', 'angela']\nTrue", 'hidden': False, 'locked': False}, { 'code': ">>> big_tippers(['suraj', 15, 'isaac', 25, 'angela', 19, 'anna...
68.235294
183
0.323276
da1ad99b4e4020c41c2f1959c24a089b0e9d4360
2,097
py
Python
setup.py
venkatachalamlab/lambda
838f0acef7da9bd9fb3ab933db5b732e8221e86a
[ "MIT" ]
null
null
null
setup.py
venkatachalamlab/lambda
838f0acef7da9bd9fb3ab933db5b732e8221e86a
[ "MIT" ]
26
2021-09-22T01:07:32.000Z
2022-01-07T17:06:32.000Z
setup.py
venkatachalamlab/lambda
838f0acef7da9bd9fb3ab933db5b732e8221e86a
[ "MIT" ]
null
null
null
import setuptools requirements = [ 'docopt', 'numpy', 'pyzmq' ] console_scripts = [ 'lambda_client=lambda_scope.zmq.client:main', 'lambda_forwarder=lambda_scope.zmq.forwarder:main', 'lambda_hub=lambda_scope.devices.hub_relay:main', 'lambda_publisher=lambda_scope.zmq.publisher:main', 'l...
37.446429
77
0.731521
da1aedaabb2c1b51d6b69475d1942c79a82d42bb
433
py
Python
tests/timestamp_tests/test_timestamp_identify.py
sslivkoff/tooltime
61ce58490f679fcf29aa284a8f5acc2133afaf9c
[ "Apache-2.0" ]
null
null
null
tests/timestamp_tests/test_timestamp_identify.py
sslivkoff/tooltime
61ce58490f679fcf29aa284a8f5acc2133afaf9c
[ "Apache-2.0" ]
null
null
null
tests/timestamp_tests/test_timestamp_identify.py
sslivkoff/tooltime
61ce58490f679fcf29aa284a8f5acc2133afaf9c
[ "Apache-2.0" ]
null
null
null
import pytest import tooltime.spec examples = [] for equivalent_set in tooltime.spec.equivalent_sets['Timestamp']: examples.extend(equivalent_set.items())
25.470588
77
0.803695
da1b94b6a12eb853574f9f8d573228756eb26576
3,104
py
Python
Plots/Contours/NCL_coneff_16.py
NCAR/GeoCAT-examples
fba1b045ba5145fa48cf2f3c1e3b3c7c863b0b5b
[ "Apache-2.0" ]
42
2020-03-03T16:19:30.000Z
2022-03-18T09:03:26.000Z
Plots/Contours/NCL_coneff_16.py
netgodz/GeoCAT-examples
5ed9a1d68b69a921d0f1fee1160e109853926ed9
[ "Apache-2.0" ]
351
2019-12-20T22:10:47.000Z
2022-03-16T20:46:09.000Z
Plots/Contours/NCL_coneff_16.py
netgodz/GeoCAT-examples
5ed9a1d68b69a921d0f1fee1160e109853926ed9
[ "Apache-2.0" ]
32
2020-01-06T21:18:48.000Z
2022-03-31T13:45:01.000Z
""" NCL_coneff_16.py ================ This script illustrates the following concepts: - Showing features of the new color display model - Using a NCL colormap with levels to assign a color palette to contours - Drawing partially transparent filled contours See following URLs to see the reproduced NCL plot & s...
34.876404
118
0.605348
da1c62f51825a651ce542eb88803a19261cddbfe
423
py
Python
handlers/users/__init__.py
Asadbek07/e-commerce-bot
df6c1bb625becf95bf53f4cece12752dca9f7f67
[ "Unlicense", "MIT" ]
null
null
null
handlers/users/__init__.py
Asadbek07/e-commerce-bot
df6c1bb625becf95bf53f4cece12752dca9f7f67
[ "Unlicense", "MIT" ]
null
null
null
handlers/users/__init__.py
Asadbek07/e-commerce-bot
df6c1bb625becf95bf53f4cece12752dca9f7f67
[ "Unlicense", "MIT" ]
null
null
null
from . import start from . import edits from . import payment from . import pickup from . import get_location from . import information_handler from . import fikr_bildirish_handler from . import savat_ortga from . import biz_bilan_aloqa from . import product_menu_handler from . import menus_handlers from . import produ...
26.4375
39
0.822695
da1f5b9b790528394b8f7269a75ca6a805a3a729
329
py
Python
app-2/application/routes.py
sc18kg/QA-PROJECT-2
210aa32f637b7fe8f10f74bbc5429c5093101b8e
[ "Unlicense" ]
null
null
null
app-2/application/routes.py
sc18kg/QA-PROJECT-2
210aa32f637b7fe8f10f74bbc5429c5093101b8e
[ "Unlicense" ]
null
null
null
app-2/application/routes.py
sc18kg/QA-PROJECT-2
210aa32f637b7fe8f10f74bbc5429c5093101b8e
[ "Unlicense" ]
null
null
null
from flask import Flask, Response, request import random from application import app
32.9
113
0.671733
da221c0a85253196d067a1ec0dca319c11cf5a14
609
py
Python
tgbot/models.py
psevdognom/gostbot
f5a142c0657285077cee58151590163a9e7f2527
[ "Apache-2.0" ]
1
2020-11-10T10:30:33.000Z
2020-11-10T10:30:33.000Z
tgbot/models.py
psevdognom/gostbot
f5a142c0657285077cee58151590163a9e7f2527
[ "Apache-2.0" ]
1
2020-07-30T17:38:30.000Z
2020-07-30T19:36:42.000Z
tgbot/models.py
psevdognom/gostbot
f5a142c0657285077cee58151590163a9e7f2527
[ "Apache-2.0" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker engine = create_engine('sqlite:///gosts.db') Session = sessionmaker(bind=engine) s...
29
55
0.766831
da23873aa943f873ed1c557d770bcbfaf948550d
11,489
py
Python
v0.1/core/model.py
Chaowu88/etfba
bfba63685ca217937e32038cc55f530a4d980ad8
[ "BSD-3-Clause" ]
null
null
null
v0.1/core/model.py
Chaowu88/etfba
bfba63685ca217937e32038cc55f530a4d980ad8
[ "BSD-3-Clause" ]
null
null
null
v0.1/core/model.py
Chaowu88/etfba
bfba63685ca217937e32038cc55f530a4d980ad8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- __author__ = 'Chao Wu' import re from functools import lru_cache import numpy as np import pandas as pd from .reaction import Reaction from .metabolite import Metabolite from ..optim.optim import FBAOptimizer, TFBAOptimizer, ETFBAOptimizer from .pdict import PrettyDict...
30.801609
115
0.702846
da242ac533a6c2f7f1b1d7bc64bb4a2e90ae52c9
8,643
py
Python
module/mclass/writeMessage.py
Saverio976/Chat-App-TUI
274960550613199225cf2b892c37e6f788ae52b7
[ "MIT" ]
3
2021-03-16T09:03:06.000Z
2022-02-27T08:49:30.000Z
module/mclass/writeMessage.py
Saverio976/Chat-App-TUI
274960550613199225cf2b892c37e6f788ae52b7
[ "MIT" ]
null
null
null
module/mclass/writeMessage.py
Saverio976/Chat-App-TUI
274960550613199225cf2b892c37e6f788ae52b7
[ "MIT" ]
null
null
null
"""File with only WriteMessage class.""" import curses
34.162055
113
0.53338
da2549884ef76e4e06e5ec00ceef487768236a9e
625
py
Python
TBert.py
ggnicolau/Projeto-12--TBert-SP-City-Hall
467e55b75e3e14eb6f8a2feadffc50a98f9e7a50
[ "MIT" ]
null
null
null
TBert.py
ggnicolau/Projeto-12--TBert-SP-City-Hall
467e55b75e3e14eb6f8a2feadffc50a98f9e7a50
[ "MIT" ]
null
null
null
TBert.py
ggnicolau/Projeto-12--TBert-SP-City-Hall
467e55b75e3e14eb6f8a2feadffc50a98f9e7a50
[ "MIT" ]
null
null
null
#%%Links # BERT with Topic Model https://www.aclweb.org/anthology/2020.acl-main.630.pdf https://towardsdatascience.com/topic-modeling-with-bert-779f7db187e6 https://www.kaggle.com/dskswu/topic-modeling-bert-lda https://blog.insightdatascience.com/contextual-topic-identification-4291d256a032 https://datascience.stac...
62.5
102
0.8208
da2675458a54e2de9b8803d22c4f131bacc387f4
3,852
py
Python
exot/util/debug.py
ETHZ-TEC/exot_eengine
7b7ce6cb949e1b0a02e716b03f2f9af751713b29
[ "BSD-3-Clause" ]
null
null
null
exot/util/debug.py
ETHZ-TEC/exot_eengine
7b7ce6cb949e1b0a02e716b03f2f9af751713b29
[ "BSD-3-Clause" ]
null
null
null
exot/util/debug.py
ETHZ-TEC/exot_eengine
7b7ce6cb949e1b0a02e716b03f2f9af751713b29
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2015-2020, Swiss Federal Institute of Technology (ETH Zurich) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright...
35.666667
97
0.650831
da26dbe74de88363c595f24ec8a91a7cd547a6e3
821
py
Python
src/Other/LetterFrequency.py
AsclepiiusUnknown/Encrpytion
6000819a01b0d30c818667afae66afbfac7551ab
[ "MIT" ]
null
null
null
src/Other/LetterFrequency.py
AsclepiiusUnknown/Encrpytion
6000819a01b0d30c818667afae66afbfac7551ab
[ "MIT" ]
null
null
null
src/Other/LetterFrequency.py
AsclepiiusUnknown/Encrpytion
6000819a01b0d30c818667afae66afbfac7551ab
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from string import ascii_uppercase path = input("What file would you like to use? (text.txt) ") D = countAll("src\\Other\\" + path) # D = D | countAll("src\\Other\\" + path) # S = {k: v for k, v in sorted(D.items(), key=lambda item: item[1])} print(D) plt.bar(range(len(D)), list(D.value...
28.310345
68
0.634592
da28c193ef77163ddf391ccdf35c16001c14a2a9
4,577
py
Python
Lib/test/test_compiler/test_static/readonly.py
mananpal1997/cinder
a8804cc6e3a5861463ff959abcd09ad60a0763e5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/test/test_compiler/test_static/readonly.py
mananpal1997/cinder
a8804cc6e3a5861463ff959abcd09ad60a0763e5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/test/test_compiler/test_static/readonly.py
mananpal1997/cinder
a8804cc6e3a5861463ff959abcd09ad60a0763e5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
from compiler.errors import TypedSyntaxError from unittest import skip from .common import StaticTestBase
26.005682
88
0.464059
da2ac9e4bedbb59c03150da5ab4d3c8afd11195a
805
py
Python
utils.py
LeoVogiatzis/GNN_based_NILM
93fee429308cec7bebdc530ae9339422170d405d
[ "Apache-2.0" ]
1
2021-12-23T07:17:25.000Z
2021-12-23T07:17:25.000Z
utils.py
LeoVogiatzis/GNN_based_NILM
93fee429308cec7bebdc530ae9339422170d405d
[ "Apache-2.0" ]
null
null
null
utils.py
LeoVogiatzis/GNN_based_NILM
93fee429308cec7bebdc530ae9339422170d405d
[ "Apache-2.0" ]
1
2021-12-16T07:08:54.000Z
2021-12-16T07:08:54.000Z
import numpy as np
20.125
55
0.567702
da2b0d4562489488864ba4de9fb762d95ecb2356
970
py
Python
tests/functional/test_get_vehicles.py
vyahello/fake-cars-api
13c7325a7d8779d4b2e5ce60d5664b843c891cb6
[ "MIT" ]
null
null
null
tests/functional/test_get_vehicles.py
vyahello/fake-cars-api
13c7325a7d8779d4b2e5ce60d5664b843c891cb6
[ "MIT" ]
3
2019-11-22T20:56:17.000Z
2021-09-15T08:18:30.000Z
tests/functional/test_get_vehicles.py
vyahello/fake-vehicles-api
13c7325a7d8779d4b2e5ce60d5664b843c891cb6
[ "MIT" ]
null
null
null
import requests import pytest from apistar import TestClient from api.web.support import Status from tests.markers import smoke
23.095238
66
0.697938
da2ceabf8dbc1af3eb168245fb32514432a803d7
372
py
Python
Textbook/Chapter 3/statsFunctions2.py
hunterluepke/Learn-Python-for-Stats-and-Econ
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
[ "MIT" ]
16
2019-01-10T18:54:13.000Z
2022-01-28T20:07:20.000Z
Textbook/Chapter 3/statsFunctions2.py
hunterluepke/Learn-Python-for-Stats-and-Econ
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
[ "MIT" ]
null
null
null
Textbook/Chapter 3/statsFunctions2.py
hunterluepke/Learn-Python-for-Stats-and-Econ
d580a8e27ba937fc8401ac6d0714b6488ac8bbb6
[ "MIT" ]
15
2019-01-24T17:11:20.000Z
2021-12-11T01:53:57.000Z
#statsFunctions2.py list1 = [3, 6, 9, 12, 15] total_list1 = total(list1) print(total_list1) mean_list1 = mean(list1) print("Mean of list1:", mean_list1)
17.714286
35
0.637097
da2db2247ba65b1ff377ab02f1c3ac468ff1ecae
917
py
Python
res/script/plot_delay.py
sshpark/ETreeLearning
c1119ee83474ad3e0cd1228dd0eed0cfb66292be
[ "MIT" ]
null
null
null
res/script/plot_delay.py
sshpark/ETreeLearning
c1119ee83474ad3e0cd1228dd0eed0cfb66292be
[ "MIT" ]
null
null
null
res/script/plot_delay.py
sshpark/ETreeLearning
c1119ee83474ad3e0cd1228dd0eed0cfb66292be
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import FuncFormatter filepath = '/Users/huangjiaming/Documents/developer/ETreeLearning/res/losses/delay_etree.txt' x = [] num = 0 with open(filepath) as fp: for line in fp: c = list(map(int, line.split())) x = c print(np....
33.962963
116
0.676118
da2ea93da9afa176a477a8495db2615a90754e3c
301
py
Python
Extras/002ex.py
lucasbraga10/ListaDeExerciciosPython
496a6c90e33e60fdf13e841c78a22707aa7139a8
[ "MIT" ]
null
null
null
Extras/002ex.py
lucasbraga10/ListaDeExerciciosPython
496a6c90e33e60fdf13e841c78a22707aa7139a8
[ "MIT" ]
null
null
null
Extras/002ex.py
lucasbraga10/ListaDeExerciciosPython
496a6c90e33e60fdf13e841c78a22707aa7139a8
[ "MIT" ]
null
null
null
hora = input('Digite a hora atual: ') try: hora = int(hora) if 0 <= hora <= 11: print('Bom Dia') elif 12 <= hora <= 17: print('Boa Tarde') elif 18 <= hora <= 23: print('Boa Noite') else: print('Valor Invlido') except: print('Valor Invlido')
18.8125
37
0.51495
da2f4ad17a616942de1ad8f97752cca12b361ac8
761
py
Python
src/aoc/y2021/day1.py
Lexicality/advent-of-code
7cd39c526f1848931ce6db799ba586e8df3c776b
[ "Apache-2.0" ]
null
null
null
src/aoc/y2021/day1.py
Lexicality/advent-of-code
7cd39c526f1848931ce6db799ba586e8df3c776b
[ "Apache-2.0" ]
null
null
null
src/aoc/y2021/day1.py
Lexicality/advent-of-code
7cd39c526f1848931ce6db799ba586e8df3c776b
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from typing import DefaultDict, Iterable
23.060606
53
0.557162
da2f86f78e9e9c7f5d2aabe0e2f3c6c3f60237f8
4,085
py
Python
src/api/resources/astro_object/parsers.py
alercebroker/ztf-api-apf
916f02009a07e43d6ed26bdb1e2b0ec7f41321f1
[ "Apache-2.0" ]
1
2021-03-26T15:51:38.000Z
2021-03-26T15:51:38.000Z
src/api/resources/astro_object/parsers.py
alercebroker/ztf-api-apf
916f02009a07e43d6ed26bdb1e2b0ec7f41321f1
[ "Apache-2.0" ]
17
2020-06-24T22:59:19.000Z
2021-01-27T13:54:45.000Z
api/sql/astro_object/parsers.py
alercebroker/ztf_api
41f710c6ac36c9706e251323521ed45a68741c5b
[ "Apache-2.0" ]
null
null
null
from flask_restx import reqparse from db_plugins.db.sql import models columns = [] for c in models.Object.__table__.columns: columns.append(str(c).split(".")[1]) for c in models.Probability.__table__.columns: columns.append(str(c).split(".")[1])
25.53125
81
0.567197
da2f887a5d12de63330063f0714b7e8b9f37a92e
4,543
py
Python
process_output.py
andrewrgarcia/python_import
26658af02a8b91952d7d6606094e7c870e3cb2c5
[ "Apache-2.0" ]
1
2021-08-05T03:36:26.000Z
2021-08-05T03:36:26.000Z
process_output.py
andrewrgarcia/python_import
26658af02a8b91952d7d6606094e7c870e3cb2c5
[ "Apache-2.0" ]
null
null
null
process_output.py
andrewrgarcia/python_import
26658af02a8b91952d7d6606094e7c870e3cb2c5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 25 15:06:45 2019 @author: garci """ import matplotlib.pyplot as plt import numpy as np import csv import xlwings as xw import pandas import os '''MAKE X-Y PLOTS WITH 2-COLUMN FILES Andrew Garcia, 2019 ''' '''lastRow credit: answered Sep 14 '16 at 11:39 - Stefan htt...
30.086093
95
0.625798
da2fb0e4b9c5cd78249a882ade9203be37d076f3
4,344
py
Python
run_2c/figures/plot_ivs.py
braghiere/3D_FSPM
5ba06b6e65c3299776bb32e552d2788564a7306d
[ "MIT" ]
null
null
null
run_2c/figures/plot_ivs.py
braghiere/3D_FSPM
5ba06b6e65c3299776bb32e552d2788564a7306d
[ "MIT" ]
null
null
null
run_2c/figures/plot_ivs.py
braghiere/3D_FSPM
5ba06b6e65c3299776bb32e552d2788564a7306d
[ "MIT" ]
1
2022-02-10T14:34:33.000Z
2022-02-10T14:34:33.000Z
import numpy as np import matplotlib.pyplot as plt import os, sys from scipy.interpolate import interp2d from pylab import * filelist=[] #error = [] biomrsd1= [] biomrsd2= [] dirname1 = "/home/renato/groimp_efficient/run_1/" dirname2 = "/home/renato/groimp_efficient/run_1c/jules/" list = [94] for i in range(1,2):...
24.681818
119
0.652394
da30f42ceebc0019e32c13f37b983f3542fb3a4c
3,684
py
Python
pygatt/backends/bgapi/constants.py
Jakeler/ut61e-pygatt
7554951e02687fee0b9ea2b5c9a1f9b6901a1042
[ "Apache-2.0" ]
null
null
null
pygatt/backends/bgapi/constants.py
Jakeler/ut61e-pygatt
7554951e02687fee0b9ea2b5c9a1f9b6901a1042
[ "Apache-2.0" ]
null
null
null
pygatt/backends/bgapi/constants.py
Jakeler/ut61e-pygatt
7554951e02687fee0b9ea2b5c9a1f9b6901a1042
[ "Apache-2.0" ]
null
null
null
ble_address_type = { 'gap_address_type_public': 0, 'gap_address_type_random': 1 } gap_discoverable_mode = { 'non_discoverable': 0x00, 'limited_discoverable': 0x01, 'general_discoverable': 0x02, 'broadcast': 0x03, 'user_data': 0x04, 'enhanced_broadcasting': 0x80 } gap_connectable_mode = {...
34.111111
74
0.72177
da3149db9a26ef7f5eab885ace9b4feb758ac5f6
455
py
Python
Awesome-Scripts/imdbScrapper.py
greengangsta/Lecture-Series-Python
9d7885f1d70176a3496f0bf46b1108805a3fc3e8
[ "MIT" ]
25
2017-11-08T16:34:24.000Z
2022-03-01T21:57:07.000Z
Awesome-Scripts/imdbScrapper.py
ssrisunt/Lecture-Series-Python
9d7885f1d70176a3496f0bf46b1108805a3fc3e8
[ "MIT" ]
1
2018-10-28T19:40:02.000Z
2018-10-28T19:40:02.000Z
Awesome-Scripts/imdbScrapper.py
ssrisunt/Lecture-Series-Python
9d7885f1d70176a3496f0bf46b1108805a3fc3e8
[ "MIT" ]
15
2017-11-24T13:21:03.000Z
2022-03-01T21:57:08.000Z
import urllib from bs4 import BeautifulSoup print ("Collecting data from IMDb charts....\n\n\n") print ("The current top 15 IMDB movies are the following: \n\n") response = urllib.request.urlopen("http://www.imdb.com/chart/top") html = response.read() soup = BeautifulSoup(html, 'html.parser') mytd = soup.findAll("td",...
35
66
0.705495
da32955b6a838809243690648ecdedc083802a70
344
py
Python
shop/mainapp/urls.py
Monkey8bit/django-basics
c9df06c68a5d7470bc5a4da4dc55e1fe0217e063
[ "MIT" ]
null
null
null
shop/mainapp/urls.py
Monkey8bit/django-basics
c9df06c68a5d7470bc5a4da4dc55e1fe0217e063
[ "MIT" ]
null
null
null
shop/mainapp/urls.py
Monkey8bit/django-basics
c9df06c68a5d7470bc5a4da4dc55e1fe0217e063
[ "MIT" ]
null
null
null
from django.urls import path import mainapp.views as mainapp app_name = "mainapp" urlpatterns = [ path("", mainapp.product, name="index"), path("<int:pk>/", mainapp.product, name="category"), path("<int:pk>/page/<int:page>/", mainapp.product, name="page"), path("product/<int:pk>/", mainapp.product_p...
24.571429
68
0.659884
da32cb4473fe1006cb3115b5e62fa0efdda5a86d
1,703
py
Python
PC_2.py
thedognexttothetrashcan/taobao
c796ec1f61a5443406686f65badc1df6aaf7b711
[ "Apache-2.0" ]
null
null
null
PC_2.py
thedognexttothetrashcan/taobao
c796ec1f61a5443406686f65badc1df6aaf7b711
[ "Apache-2.0" ]
1
2020-12-05T15:32:37.000Z
2020-12-05T15:32:37.000Z
PC_2.py
xwh-p/taobao
c796ec1f61a5443406686f65badc1df6aaf7b711
[ "Apache-2.0" ]
null
null
null
import datetime import os import random import time import requests from lxml import etree from selenium import webdriver # import config import threading # import numpy as np mUA_list = [ 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_1 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0 Mobile/15C153...
30.410714
173
0.718732
da34f9a99d3db259b5833d2a997acdbfaed308ce
1,345
py
Python
helpdesk/userportal/management/commands/update_secret_key.py
winstc/helpdesk
d160eb854f365e730412e4d65a451d6a8858b667
[ "BSD-2-Clause" ]
1
2018-09-22T05:27:56.000Z
2018-09-22T05:27:56.000Z
helpdesk/userportal/management/commands/update_secret_key.py
winstc/helpdesk
d160eb854f365e730412e4d65a451d6a8858b667
[ "BSD-2-Clause" ]
null
null
null
helpdesk/userportal/management/commands/update_secret_key.py
winstc/helpdesk
d160eb854f365e730412e4d65a451d6a8858b667
[ "BSD-2-Clause" ]
null
null
null
import os import random import string import json from django.core.management import BaseCommand __author__ = "Winston Cadwell" __copyright__ = "Copyright 2018, Winston Cadwell" __licence__ = "BSD 2-Clause Licence" __version__ = "1.0" __email__ = "wcadwell@gmail.com"
29.23913
111
0.616357
da357111c28536ab8eed4063bcc9a095711453cc
747
py
Python
rosalindLibrary/programs/fib.py
aevear/RosalindProject
494dcf3ccfcc8047cc472dd7ca012bca45c0ebe2
[ "MIT" ]
1
2021-01-20T02:00:21.000Z
2021-01-20T02:00:21.000Z
rosalindLibrary/programs/fib.py
aevear/RosalindProject
494dcf3ccfcc8047cc472dd7ca012bca45c0ebe2
[ "MIT" ]
null
null
null
rosalindLibrary/programs/fib.py
aevear/RosalindProject
494dcf3ccfcc8047cc472dd7ca012bca45c0ebe2
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # mrna #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # Fin #-------------------------------------------------------------...
32.478261
86
0.342704
da37e2b8ed8d04e1694b1c5e3fc2968aed7f5493
938
py
Python
app/main/forms.py
tonyishangu/Pitch
6af51349086d615bb3a14a100df5f3f2f4441214
[ "MIT" ]
null
null
null
app/main/forms.py
tonyishangu/Pitch
6af51349086d615bb3a14a100df5f3f2f4441214
[ "MIT" ]
null
null
null
app/main/forms.py
tonyishangu/Pitch
6af51349086d615bb3a14a100df5f3f2f4441214
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,TextAreaField,SubmitField, SelectField from wtforms.validators import Required
39.083333
159
0.732409
da38eae2ae84733163c5d8c57cc8302653231328
3,671
py
Python
docker/GetAndResizeImages.py
vaquarkhan/ecs-refarch-batch-processing
86cca520f05c1588c2171c3dbe559d50506355d5
[ "Apache-2.0" ]
105
2018-02-05T19:35:43.000Z
2022-02-04T13:48:28.000Z
docker/GetAndResizeImages.py
vaquarkhan/ecs-refarch-batch-processing
86cca520f05c1588c2171c3dbe559d50506355d5
[ "Apache-2.0" ]
4
2018-02-17T17:14:30.000Z
2021-04-02T20:38:42.000Z
docker/GetAndResizeImages.py
vaquarkhan/ecs-refarch-batch-processing
86cca520f05c1588c2171c3dbe559d50506355d5
[ "Apache-2.0" ]
37
2018-03-19T14:14:41.000Z
2021-11-22T16:36:24.000Z
#!/usr/bin/env python # Copyright 2016 Amazon.com, Inc. or its # affiliates. 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. A copy of the License is # located at # # http://aws.amazon.com/apache2.0/ # # or i...
30.848739
79
0.614002
da39d1b0c94fb4893fa9dd964ecce5095b384f25
2,443
py
Python
bear.py
jenwich/practicum_game_project
3619b808bb8e0779a3d6581c904421576cf39c9f
[ "MIT" ]
null
null
null
bear.py
jenwich/practicum_game_project
3619b808bb8e0779a3d6581c904421576cf39c9f
[ "MIT" ]
null
null
null
bear.py
jenwich/practicum_game_project
3619b808bb8e0779a3d6581c904421576cf39c9f
[ "MIT" ]
null
null
null
import pygame, random bears = [] bear_img = pygame.image.load("src/images/Bear.png")
28.406977
105
0.543594
da39d2f4107548a1b85ddc5fd45a894f24a44f26
656
py
Python
ekmap_core/qgslayer_parser/marker_symbol/svg_marker_parser.py
eKMap/ekmap-publisher-for-qgis
cb9dac6c29be3617c2155c1e38d9d1dffbdbad96
[ "MIT" ]
4
2020-11-11T07:07:55.000Z
2022-02-22T02:39:01.000Z
ekmap_core/qgslayer_parser/marker_symbol/svg_marker_parser.py
eKMap/ekmap-publisher-for-qgis
cb9dac6c29be3617c2155c1e38d9d1dffbdbad96
[ "MIT" ]
2
2021-03-17T17:46:56.000Z
2021-03-18T08:19:04.000Z
ekmap_core/qgslayer_parser/marker_symbol/svg_marker_parser.py
eKMap/ekmap-publisher-for-qgis
cb9dac6c29be3617c2155c1e38d9d1dffbdbad96
[ "MIT" ]
1
2021-10-31T21:00:55.000Z
2021-10-31T21:00:55.000Z
from .marker_layer_parser import MarkerLayerParser # This is a parser for svg image
41
66
0.705793
da3bbfedf1b04c7e56ccf9cb9510a6c2ba79b146
421
py
Python
app.py
johnbomidi/data-explorer-dash-app
80df9928aa41a20d8098870662f444ba1fb1aa74
[ "MIT" ]
null
null
null
app.py
johnbomidi/data-explorer-dash-app
80df9928aa41a20d8098870662f444ba1fb1aa74
[ "MIT" ]
null
null
null
app.py
johnbomidi/data-explorer-dash-app
80df9928aa41a20d8098870662f444ba1fb1aa74
[ "MIT" ]
null
null
null
from dash_extensions.enrich import Dash from _app.layout import serve_layout from _app.callback import register_callbacks external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"] app = Dash(prevent_initial_callbacks=True, external_stylesheets=external_stylesheets ) register_c...
22.157895
69
0.75772
da3c4ac30ec8cbb4f50d0e6f54d08e89941129bf
357
py
Python
theano/compile/tests/test_function_name.py
mdda/Theano
6ca7b2b65000e371f009b617d41bc5a90f022d38
[ "BSD-3-Clause" ]
295
2015-09-25T21:15:04.000Z
2022-01-13T01:16:18.000Z
theano/compile/tests/test_function_name.py
AtousaTorabi/Theano_old
ba2d2f74406243112e813df31429721c791a889a
[ "BSD-3-Clause" ]
21
2015-10-28T19:06:32.000Z
2022-03-11T23:13:05.000Z
theano/compile/tests/test_function_name.py
AtousaTorabi/Theano_old
ba2d2f74406243112e813df31429721c791a889a
[ "BSD-3-Clause" ]
114
2015-09-26T21:23:02.000Z
2021-11-19T02:36:41.000Z
import unittest import os import re import theano from theano import tensor
21
76
0.67507
da3c8d5401dfee9fd9d89f39c39af9a102ae502a
2,446
py
Python
tester-webserv/PythonTester/src/testcase_generation/Response/media_type.py
aprilmayjune135/42_web_server
46bc46dd6a0008119842e3848d4fe57fcd84526b
[ "MIT" ]
2
2022-01-04T13:07:46.000Z
2022-01-04T13:08:50.000Z
tester-webserv/PythonTester/src/testcase_generation/Response/media_type.py
aprilmayjune135/web-server
46bc46dd6a0008119842e3848d4fe57fcd84526b
[ "MIT" ]
3
2021-09-27T08:35:34.000Z
2021-11-25T09:49:52.000Z
tester-webserv/PythonTester/src/testcase_generation/Response/media_type.py
aprilmayjune135/web-server
46bc46dd6a0008119842e3848d4fe57fcd84526b
[ "MIT" ]
2
2021-11-17T20:26:55.000Z
2021-12-22T21:54:24.000Z
import TestCase from testcase_generation.Response.default import defaultTestCase import Constants
38.825397
79
0.766149
da3f1f4cde5731fedeac0f7e5d94ec5f66cd184a
158
py
Python
hackerrank/Python/Min and Max/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerrank/Python/Min and Max/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerrank/Python/Min and Max/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
import numpy n, m = map(int, input().split()) a = numpy.array([input().split() for _ in range(n)], dtype=int) print(numpy.max(numpy.min(a, axis=1), axis=0))
26.333333
63
0.64557
da3f2f703932bf36b5a5b879b89b8e88c95d99fd
593
py
Python
api/routes/index.py
AlbertQueiroz/finalchallenge-api
3cbc5f7d40bfa56b940394f63e6d37674eceec04
[ "MIT" ]
3
2019-09-26T01:26:01.000Z
2020-02-13T17:06:53.000Z
api/routes/index.py
AlbertQueiroz/finalchallenge-api
3cbc5f7d40bfa56b940394f63e6d37674eceec04
[ "MIT" ]
1
2021-06-02T00:27:28.000Z
2021-06-02T00:27:28.000Z
api/routes/index.py
AlbertQueiroz/finalchallenge-api
3cbc5f7d40bfa56b940394f63e6d37674eceec04
[ "MIT" ]
2
2019-09-26T01:26:02.000Z
2019-10-15T13:14:09.000Z
from flask import jsonify from api import app import logging as logger
26.954545
110
0.573356
da3f93f1c2d2cbb998dcf3f772ac5133d20ddbf1
10,145
py
Python
solvers.py
brendanhogan/rubiks_cube_solving
f485658cc946784dd48f237afbdefd0d53a7f4da
[ "MIT" ]
null
null
null
solvers.py
brendanhogan/rubiks_cube_solving
f485658cc946784dd48f237afbdefd0d53a7f4da
[ "MIT" ]
null
null
null
solvers.py
brendanhogan/rubiks_cube_solving
f485658cc946784dd48f237afbdefd0d53a7f4da
[ "MIT" ]
null
null
null
import numpy as np from typing import List, Tuple def find_shortest_path(node_1,node_2): """ Given two nodes indicated by a string of their move sequence from the start node (forward moves only), this method returns the shortest move sequence from node_1 to node_2. """ # Change to lists ...
34.158249
108
0.632035
da40c295b7576cba77317309683e9f10a52757e4
1,446
py
Python
test/unit_tests/sampling/test__boosting.py
KIC/pandas_utils
76b764e2f87c2e9bcee9a62cfe0b54e7fb046034
[ "MIT" ]
3
2019-12-05T11:56:26.000Z
2021-08-07T08:06:37.000Z
test/unit_tests/sampling/test__boosting.py
KIC/pandas_utils
76b764e2f87c2e9bcee9a62cfe0b54e7fb046034
[ "MIT" ]
6
2020-01-23T10:25:13.000Z
2022-02-10T00:39:27.000Z
test/unit_tests/sampling/test__boosting.py
KIC/pandas_ml_utils
76b764e2f87c2e9bcee9a62cfe0b54e7fb046034
[ "MIT" ]
null
null
null
from unittest import TestCase import numpy as np from pandas_ml_utils.sampling.boosting import KFoldBoostRareEvents, KEquallyWeightEvents from pandas_ml_utils.utils.functions import unfold_parameter_space, one_hot
34.428571
157
0.578147
da4482785f3e8d2e05eac8a5827723ee227eb1f4
1,032
py
Python
forum/tests.py
sebastian-code/portal
8a5b75e229683da14d6b1cbe701800aa1806e091
[ "BSD-3-Clause" ]
1
2015-08-23T21:30:38.000Z
2015-08-23T21:30:38.000Z
forum/tests.py
djangocali/portal
8a5b75e229683da14d6b1cbe701800aa1806e091
[ "BSD-3-Clause" ]
24
2015-08-30T06:07:19.000Z
2016-12-11T15:52:55.000Z
forum/tests.py
pythoncali/portal
8a5b75e229683da14d6b1cbe701800aa1806e091
[ "BSD-3-Clause" ]
6
2015-08-22T16:25:19.000Z
2016-03-12T21:28:47.000Z
from django.test import TestCase from .models import Pregunta, Respuesta from model_mommy import mommy
33.290323
73
0.72093
da456da8bed1dc9551f64548f863adfacc17673c
1,640
py
Python
testing/tests/python/e2e_test.py
ldynia/lucky-app
f786c3f10c8ffe03480e709bfeb5a77175c90cf6
[ "MIT" ]
null
null
null
testing/tests/python/e2e_test.py
ldynia/lucky-app
f786c3f10c8ffe03480e709bfeb5a77175c90cf6
[ "MIT" ]
null
null
null
testing/tests/python/e2e_test.py
ldynia/lucky-app
f786c3f10c8ffe03480e709bfeb5a77175c90cf6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from selenium import webdriver from selenium.webdriver.common.by import By
33.469388
91
0.654878
da4602576df9106adacc1bdd5c8651736b7c0eb6
1,990
py
Python
assembler.py
craigthomas/Chip8Assembler
e57f13c6e3e84334742cffbdf891f0e1c14d6163
[ "MIT" ]
21
2016-12-29T01:33:20.000Z
2022-01-26T03:33:14.000Z
assembler.py
craigthomas/Chip8Assembler
e57f13c6e3e84334742cffbdf891f0e1c14d6163
[ "MIT" ]
1
2019-10-10T03:35:56.000Z
2019-10-10T03:35:56.000Z
assembler.py
craigthomas/Chip8Assembler
e57f13c6e3e84334742cffbdf891f0e1c14d6163
[ "MIT" ]
4
2017-02-05T18:25:43.000Z
2021-05-30T10:04:23.000Z
""" Copyright (C) 2014-2018 Craig Thomas This project uses an MIT style license - see LICENSE for details. A Chip 8 assembler - see the README.md file for details. """ # I M P O R T S ############################################################### import argparse from chip8asm.program import Program # F U N C T I O...
29.264706
80
0.589447
da466d1a320ccba5632829b19d644b45e51663c0
314
py
Python
util/data_type_util.py
Chandru01061997/pythonDB
fc164bdc921fd42af316f034433fbc27bacfd24c
[ "Apache-2.0" ]
409
2020-07-01T14:10:50.000Z
2022-02-25T03:10:26.000Z
util/data_type_util.py
Chandru01061997/pythonDB
fc164bdc921fd42af316f034433fbc27bacfd24c
[ "Apache-2.0" ]
14
2020-07-03T23:09:49.000Z
2020-10-07T12:37:12.000Z
util/data_type_util.py
Chandru01061997/pythonDB
fc164bdc921fd42af316f034433fbc27bacfd24c
[ "Apache-2.0" ]
303
2020-07-01T14:08:53.000Z
2022-03-08T17:59:34.000Z
from uuid import UUID from datetime import datetime
20.933333
65
0.681529
da468283d5807a9c8b6d1c26e3b49d520ca8d536
2,574
py
Python
gubernator/main.py
nikhiljindal/test-infra
3b7081b1d4eceffb74a31f50b6b84cfc19c45f98
[ "Apache-2.0" ]
null
null
null
gubernator/main.py
nikhiljindal/test-infra
3b7081b1d4eceffb74a31f50b6b84cfc19c45f98
[ "Apache-2.0" ]
null
null
null
gubernator/main.py
nikhiljindal/test-infra
3b7081b1d4eceffb74a31f50b6b84cfc19c45f98
[ "Apache-2.0" ]
2
2018-06-05T08:43:58.000Z
2019-08-24T22:11:19.000Z
#!/usr/bin/env python # Copyright 2016 The Kubernetes 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 # # Unle...
29.930233
74
0.669775
da47eeebadc11e452024ffe4ab076a83efc51009
1,721
py
Python
src/pyvideoconverter/video.py
fherbine/pyvideoconverter
ca981adf80b29b69599ea61f25c14713c0003019
[ "MIT" ]
null
null
null
src/pyvideoconverter/video.py
fherbine/pyvideoconverter
ca981adf80b29b69599ea61f25c14713c0003019
[ "MIT" ]
null
null
null
src/pyvideoconverter/video.py
fherbine/pyvideoconverter
ca981adf80b29b69599ea61f25c14713c0003019
[ "MIT" ]
null
null
null
import os import re from subprocess import ( PIPE, Popen, ) FFMPEG_ARGS = { 'vcodec': 'libx265', 'crf': 28, } EXTS_INFO = { 'mp4': ['mp4', 'm4v'], 'mov': ['mov', 'qt'], 'avi': ['avi'], 'flv': ['flv'], 'wmv': ['wmv', 'asf'], 'mpeg': ['mpeg', 'mpg', 'vob'], 'mkv': ['mkv'], } ...
21.5125
71
0.550261
da486790a4010f1ed533b021cccf13c3e964e378
5,004
py
Python
sgh_stepperArm.py
davidramirezm30/scratch-orangepi
b4aa70f1cdcc030186532ad61cebf786be415b4b
[ "MIT" ]
null
null
null
sgh_stepperArm.py
davidramirezm30/scratch-orangepi
b4aa70f1cdcc030186532ad61cebf786be415b4b
[ "MIT" ]
null
null
null
sgh_stepperArm.py
davidramirezm30/scratch-orangepi
b4aa70f1cdcc030186532ad61cebf786be415b4b
[ "MIT" ]
null
null
null
# meArm.py - York Hack Space May 2014 # A motion control library for Phenoptix meArm using Adafruit 16-channel PWM servo driver from sgh_Adafruit_PWM_Servo_Driver import PWM import kinematics import time from math import pi
43.894737
155
0.601519
da4b3b3d3e8aaba6f5c5845c944c4cae115688ec
247
py
Python
Module_3_Cython/time_analysis.py
dalexa10/HighPerformanceComputing
64b2fe530db6644fbaa7adc54c4328a5ebeb1905
[ "MIT" ]
null
null
null
Module_3_Cython/time_analysis.py
dalexa10/HighPerformanceComputing
64b2fe530db6644fbaa7adc54c4328a5ebeb1905
[ "MIT" ]
null
null
null
Module_3_Cython/time_analysis.py
dalexa10/HighPerformanceComputing
64b2fe530db6644fbaa7adc54c4328a5ebeb1905
[ "MIT" ]
null
null
null
import time # Timing function start = time.time() factorial(400000) end = time.time() print('Operation done in {} seconds'.format(end - start))
15.4375
57
0.62753
da4bc4cf6e03897276e2524e1b174f26647ae6eb
892
py
Python
app/moisturechecker/app.py
sapka12/growme-moisturechecker
48e5ee4af14f02f94afbd4b6e951eaa425daa6a0
[ "Apache-2.0" ]
null
null
null
app/moisturechecker/app.py
sapka12/growme-moisturechecker
48e5ee4af14f02f94afbd4b6e951eaa425daa6a0
[ "Apache-2.0" ]
null
null
null
app/moisturechecker/app.py
sapka12/growme-moisturechecker
48e5ee4af14f02f94afbd4b6e951eaa425daa6a0
[ "Apache-2.0" ]
null
null
null
import paho.mqtt.client as mqtt from gpiozero import Button as Sensor import os if __name__ == '__main__': mqtt_url = os.environ['growmemoisturechecker_mqtturl'] mqtt_topics = os.environ['growmemoisturechecker_mqtttopics'].split(",") sensor_pin = int(os.environ['growmemoisturechecker_sensor']) clien...
31.857143
102
0.681614
da4ed74782f85b5d5a5f393709c19e30745e1f4b
1,259
py
Python
theoneapi_sdk/movie/movie.py
eliram/LotR-Eliram-SDK
b3ae064367d30d4d2ef6ec503125e3aa5106b0d7
[ "Apache-2.0" ]
null
null
null
theoneapi_sdk/movie/movie.py
eliram/LotR-Eliram-SDK
b3ae064367d30d4d2ef6ec503125e3aa5106b0d7
[ "Apache-2.0" ]
null
null
null
theoneapi_sdk/movie/movie.py
eliram/LotR-Eliram-SDK
b3ae064367d30d4d2ef6ec503125e3aa5106b0d7
[ "Apache-2.0" ]
null
null
null
"""Handle the movie endpoint.""" from typing import TYPE_CHECKING, List from theoneapi_sdk.movie.movie_dataclass import MovieData, MovieList from theoneapi_sdk.quote.quote_dataclass import QuotesList if TYPE_CHECKING: from theoneapi_sdk.request_handler import RequestHandler from theoneapi_sdk.filter import Fil...
40.612903
133
0.675139
da50164c11e797e8ea68bfac08d2b2fca932b1c9
5,073
py
Python
pymtl3_net/meshnet/test/MeshNetworkCL_test.py
cornell-brg/ocn-posh
7f8bfd800627364cfc37dc5d6a36333ee2e48c99
[ "BSD-3-Clause" ]
3
2019-06-07T13:27:06.000Z
2019-07-16T19:00:23.000Z
pymtl3_net/meshnet/test/MeshNetworkCL_test.py
cornell-brg/ocn-posh
7f8bfd800627364cfc37dc5d6a36333ee2e48c99
[ "BSD-3-Clause" ]
12
2019-07-23T02:29:31.000Z
2019-07-25T11:07:00.000Z
pymtl3_net/meshnet/test/MeshNetworkCL_test.py
cornell-brg/posh-ocn
7f8bfd800627364cfc37dc5d6a36333ee2e48c99
[ "BSD-3-Clause" ]
null
null
null
""" ========================================================================== MeshNetworkCL_test.py ========================================================================== Test for NetworkCL Author : Yanghui Ou Date : May 19, 2019 """ import pytest from pymtl3_net.meshnet.MeshNetworkCL import MeshNetworkCL from...
33.156863
105
0.480781
da503e27ceb13d56ec6f0447a90c2a91b5d5d016
91
py
Python
test cases/common/95 dep fallback/gensrc.py
NNemec/meson
d72a5c14f83253bafaf6b2531442d981ea1df2ed
[ "Apache-2.0" ]
null
null
null
test cases/common/95 dep fallback/gensrc.py
NNemec/meson
d72a5c14f83253bafaf6b2531442d981ea1df2ed
[ "Apache-2.0" ]
null
null
null
test cases/common/95 dep fallback/gensrc.py
NNemec/meson
d72a5c14f83253bafaf6b2531442d981ea1df2ed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import shutil shutil.copyfile(sys.argv[1], sys.argv[2])
13
41
0.725275
da5097b56f955d58d7c07e2cd9380b37c6714381
206
py
Python
goodread/config.py
frictionlessdata/goodread
094ca6c713f23e357d24795b207cb0fdee0012ca
[ "MIT" ]
2
2021-03-10T07:38:21.000Z
2021-04-03T09:49:20.000Z
goodread/config.py
frictionlessdata/goodread
094ca6c713f23e357d24795b207cb0fdee0012ca
[ "MIT" ]
3
2021-03-13T08:09:56.000Z
2021-03-13T14:24:53.000Z
goodread/config.py
roll/goodread-py
094ca6c713f23e357d24795b207cb0fdee0012ca
[ "MIT" ]
null
null
null
import os # Helpers # General VERSION = read_asset("VERSION")
12.875
71
0.674757
da5100bb06478db06b9f491292cb8e62f0ffbb78
3,534
py
Python
tools/makeDB.py
TheodorRene/DailyPuzzles
72d1a8afdc5e82a73b7b1318ed2fea243b68b45f
[ "MIT" ]
2
2019-03-12T19:03:10.000Z
2019-06-18T03:15:27.000Z
tools/makeDB.py
TheodorRene/DailyPuzzles
72d1a8afdc5e82a73b7b1318ed2fea243b68b45f
[ "MIT" ]
9
2018-12-13T11:30:43.000Z
2020-02-21T16:04:25.000Z
tools/makeDB.py
TheodorRene/DailyPuzzles
72d1a8afdc5e82a73b7b1318ed2fea243b68b45f
[ "MIT" ]
null
null
null
#!/home/theodorc/dev/Python-3.6.5/python import sqlite3 from sys import argv from os import path # \s*([rnbqkpRNBQKP1-8]+\/){7}([rnbqkpRNBQKP1-8]+)\s[bw-]\s(([a-hkqA-HKQ]{1,4})|(-))\s(([a-h][36])|(-))\s\d+\s\d+\s* possible regex for verifing FEN config = { "mod": 5, "offset": 1, "db":"mateIn3.db" } """ ...
31
148
0.568478
da513afea0870e586c6e6f6c68b2dc83e2f2c9d2
170
py
Python
python/syndicate/rg/drivers/s3/config.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
16
2015-01-02T15:39:04.000Z
2016-03-17T06:38:46.000Z
python/syndicate/rg/drivers/s3/config.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
37
2015-01-28T20:58:05.000Z
2016-03-22T04:01:32.000Z
python/syndicate/rg/drivers/s3/config.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
8
2015-04-08T02:26:03.000Z
2016-03-04T05:56:24.000Z
#!/usr/bin/python CONFIG = { "BUCKET": "sd_s3_testbucket", "EXEC_FMT": "/usr/bin/python -m syndicate.rg.gateway", "DRIVER": "syndicate.rg.drivers.s3" }
18.888889
57
0.617647
da513b5b318e557418f6b0f7e38128c4baba8fac
3,939
py
Python
mindpong/model/serial_communication.py
PolyCortex/MindPong
9bd8cb65d8b8381812079816eeb1c84e848c854d
[ "MIT" ]
22
2018-09-19T17:55:41.000Z
2022-01-23T05:55:15.000Z
mindpong/model/serial_communication.py
PolyCortex/MindPong
9bd8cb65d8b8381812079816eeb1c84e848c854d
[ "MIT" ]
null
null
null
mindpong/model/serial_communication.py
PolyCortex/MindPong
9bd8cb65d8b8381812079816eeb1c84e848c854d
[ "MIT" ]
3
2019-05-11T15:34:39.000Z
2020-10-02T20:52:53.000Z
import sys from glob import glob from serial import Serial, SerialException import numpy as np BAUD_RATE = 9600 PORT = 'COM5' READ_TIMEOUT = 1 LOWER_BOUND = 0.01 UPPER_BOUND = 0.4 def establish_communication(self): """ Enables the communication with the arduino with the latest parameters ...
30.773438
116
0.631379