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
5c17c5b7aabeab82c94531a8db0f717695069f5e
28,818
py
Python
src/mlshell/producers/dataset.py
nizaevka/mlshell
36893067f598f6b071b61604423d0fd15c2a7c62
[ "Apache-2.0" ]
8
2020-10-04T15:33:58.000Z
2020-11-24T15:10:18.000Z
src/mlshell/producers/dataset.py
nizaevka/mlshell
36893067f598f6b071b61604423d0fd15c2a7c62
[ "Apache-2.0" ]
5
2020-03-06T18:13:10.000Z
2022-03-12T00:52:48.000Z
src/mlshell/producers/dataset.py
nizaevka/mlshell
36893067f598f6b071b61604423d0fd15c2a7c62
[ "Apache-2.0" ]
null
null
null
""" The :mod:`mlshell.producers.dataset` contains examples of `Dataset` class for empty data object creation and `DataProducer` class for filling it. :class:`mlshell.Dataset` proposes unified interface to interact with underlying data. Intended to be used in :class:`mlshell.Workflow`. For new data formats no need to e...
36.804598
80
0.561906
5c19e95ecbd605cd5bbe2f492605c45f95815362
53
py
Python
pindividual.py
IsSveshuD/lab_3
9e4f4a649d30b9a4b11997fbce426f44fa9fcfd1
[ "MIT" ]
null
null
null
pindividual.py
IsSveshuD/lab_3
9e4f4a649d30b9a4b11997fbce426f44fa9fcfd1
[ "MIT" ]
null
null
null
pindividual.py
IsSveshuD/lab_3
9e4f4a649d30b9a4b11997fbce426f44fa9fcfd1
[ "MIT" ]
null
null
null
a, b = map(int, input().split()) print((a%b)*(b%a)+1)
26.5
32
0.528302
5c1ae1443f7fa73080c8c0a769854cb87fc44def
21,356
py
Python
examples/utils/discrete_space.py
beark007/smarts_ppo
8f6aa33a6fcfb74dc0b8e92951d6b70d6e2874de
[ "MIT" ]
null
null
null
examples/utils/discrete_space.py
beark007/smarts_ppo
8f6aa33a6fcfb74dc0b8e92951d6b70d6e2874de
[ "MIT" ]
null
null
null
examples/utils/discrete_space.py
beark007/smarts_ppo
8f6aa33a6fcfb74dc0b8e92951d6b70d6e2874de
[ "MIT" ]
null
null
null
""" this file contains tuned obs function and reward function fix ttc calculate """ import math import gym import numpy as np from smarts.core.agent import AgentSpec from smarts.core.agent_interface import AgentInterface from smarts.core.agent_interface import OGM, NeighborhoodVehicles from smarts.core.controllers im...
38.135714
106
0.631111
5c1c78f65b55a91c212dbfb6fa80d719220b3e5d
1,156
py
Python
tests/optimizers/test_constant_optimizer.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
17
2015-04-01T13:51:25.000Z
2021-12-15T21:07:09.000Z
tests/optimizers/test_constant_optimizer.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
3
2018-09-05T04:34:24.000Z
2019-05-27T00:44:33.000Z
tests/optimizers/test_constant_optimizer.py
kevinconway/pycc
69ba99d78a859ba61c2ce7ee35766e21c789db21
[ "Apache-2.0" ]
5
2018-05-19T23:50:44.000Z
2021-08-05T08:39:57.000Z
"""Test suite for optimizers.constant.""" from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import ast import pytest from pycc.asttools import parse from pycc.optimizers import constant source = """ ONE = 1 TWO = 2 T...
21.018182
59
0.694637
5c1ea40702594b065154a2ff625e0441b3a8faf9
2,079
py
Python
vnc_viewer/engine/service/proxy.py
alsbi/vnc
1dd89ffed17a0f5a47cf08516b5757b4481ae6b4
[ "MIT" ]
null
null
null
vnc_viewer/engine/service/proxy.py
alsbi/vnc
1dd89ffed17a0f5a47cf08516b5757b4481ae6b4
[ "MIT" ]
null
null
null
vnc_viewer/engine/service/proxy.py
alsbi/vnc
1dd89ffed17a0f5a47cf08516b5757b4481ae6b4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'alsbi' from multiprocessing import Process from websockify import WebSocketProxy
28.479452
94
0.526215
5c1f238b6bcc670b2b5ec473a5f107f816b2ed4c
318
py
Python
massthings/__init__.py
FPVogel/Fixator10-Cogs
002a90e06952b7bf7a0ffdbd93c9d423f238f124
[ "MIT" ]
76
2018-07-21T21:09:00.000Z
2022-03-17T06:56:03.000Z
massthings/__init__.py
FPVogel/Fixator10-Cogs
002a90e06952b7bf7a0ffdbd93c9d423f238f124
[ "MIT" ]
59
2019-01-23T08:13:13.000Z
2022-03-13T16:39:05.000Z
massthings/__init__.py
FPVogel/Fixator10-Cogs
002a90e06952b7bf7a0ffdbd93c9d423f238f124
[ "MIT" ]
63
2019-03-06T01:43:45.000Z
2022-02-14T20:16:19.000Z
from .massthings import MassThings __red_end_user_data_statement__ = ( "This cog does not persistently store data or metadata about users." # "<s>If you are using this cog, user data storage will probably be much less significant thing then API abuse</s>" )
28.909091
119
0.745283
5c200dbfad013cbf8dd5260a6b61041a4ae56d9e
1,528
py
Python
observatory/middleware/CssSmasher.py
natestedman/Observatory
6e810b22d844416b2a3057e99ef23baa0d122ab4
[ "0BSD" ]
1
2015-01-16T04:17:54.000Z
2015-01-16T04:17:54.000Z
observatory/middleware/CssSmasher.py
natestedman/Observatory
6e810b22d844416b2a3057e99ef23baa0d122ab4
[ "0BSD" ]
null
null
null
observatory/middleware/CssSmasher.py
natestedman/Observatory
6e810b22d844416b2a3057e99ef23baa0d122ab4
[ "0BSD" ]
null
null
null
# Copyright (c) 2010, individual contributors (see AUTHORS file) # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" ...
44.941176
74
0.725785
5c21f13b79aff05e74d7a6471705742eb1ef0d68
2,101
py
Python
okta/models/access_policy_rule_application_sign_on.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/access_policy_rule_application_sign_on.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
okta/models/access_policy_rule_application_sign_on.py
ander501/okta-sdk-python
0927dc6a2f6d5ebf7cd1ea806d81065094c92471
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ Copyright 2021 - Present Okta, Inc. 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 ...
33.887097
86
0.654926
5c24da598237de3c027b9acde2ff873da368e571
3,203
py
Python
bot/player_commands/missing.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
null
null
null
bot/player_commands/missing.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
null
null
null
bot/player_commands/missing.py
XIIIsiren/CommunityAPI
e665638d2800b71b3d32d49c6897901f4c49a9c5
[ "Apache-2.0" ]
null
null
null
import discord from discord.ext import commands import json from utils import error, RARITY_DICT from parse_profile import get_profile_data from extract_ids import extract_internal_names # Create the master list! from text_files.accessory_list import talisman_upgrades # Get a list of all accessories ACCESSORIES = []...
42.144737
141
0.658445
5c256fbd08baa69454ac110542d3949899a3e62f
725
py
Python
extract-faces.py
rgooding/face-recogniser
3c14bf2faf3cd815c43a537e8a6d86258e5c52c7
[ "MIT" ]
null
null
null
extract-faces.py
rgooding/face-recogniser
3c14bf2faf3cd815c43a537e8a6d86258e5c52c7
[ "MIT" ]
null
null
null
extract-faces.py
rgooding/face-recogniser
3c14bf2faf3cd815c43a537e8a6d86258e5c52c7
[ "MIT" ]
null
null
null
import os import cv2 from lib import lib images_dir = "images" faces_dir = "images/faces" main()
23.387097
71
0.56
5c269d3cc3c41b40147e84d450ece990b3c5b020
1,806
py
Python
libs/gsheets_logging.py
Infinity-LTD/discord_gradiusbot
a5badc09c4e16230194453ba2c7bc208726c93d4
[ "MIT" ]
10
2016-03-01T01:42:39.000Z
2021-03-18T19:01:42.000Z
libs/gsheets_logging.py
Infinity-LTD/discord_gradiusbot
a5badc09c4e16230194453ba2c7bc208726c93d4
[ "MIT" ]
96
2015-10-08T00:28:16.000Z
2021-09-08T02:32:41.000Z
libs/gsheets_logging.py
Infinity-LTD/discord_gradiusbot
a5badc09c4e16230194453ba2c7bc208726c93d4
[ "MIT" ]
11
2015-10-07T23:26:11.000Z
2021-08-07T05:24:47.000Z
""" Google Sheets interaction lib. Configuration settings: [gapps] api_scope = https://www.googleapis.com/auth/spreadsheets spreadsheet_id = spreadsheet_range = """ import configparser import traceback from googleapiclient.discovery import build from httplib2 import Http from oauth2client import file, client, tools #...
29.129032
106
0.704873
5c271332264e94d543256ede8fdcc6d30fbdd9a2
5,142
py
Python
models/train_classifier.py
julie-data/disaster-responses-pipeline
3539747e18f98c301ae9f8e2e4661c985e29dfbb
[ "FTL" ]
null
null
null
models/train_classifier.py
julie-data/disaster-responses-pipeline
3539747e18f98c301ae9f8e2e4661c985e29dfbb
[ "FTL" ]
null
null
null
models/train_classifier.py
julie-data/disaster-responses-pipeline
3539747e18f98c301ae9f8e2e4661c985e29dfbb
[ "FTL" ]
null
null
null
import sys import pandas as pd from sqlalchemy import create_engine import re import numpy as np import nltk from nltk.corpus import stopwords from nltk.stem.wordnet import WordNetLemmatizer from nltk.tokenize import word_tokenize from nltk import pos_tag, ne_chunk nltk.download('punkt') nltk.download('stopwords') nl...
27.945652
119
0.669584
5c275f2ec32045f61bf64ac2e62550759a730fd3
976
py
Python
plot_normballs.py
bkoyuncu/notes
0e660f46b7d17fdfddc2cad1bb60dcf847f5d1e4
[ "MIT" ]
191
2016-01-21T19:44:23.000Z
2022-03-25T20:50:50.000Z
plot_normballs.py
onurboyar/notes
2ec14820af044c2cfbc99bc989338346572a5e24
[ "MIT" ]
2
2018-02-18T03:41:04.000Z
2018-11-21T11:08:49.000Z
plot_normballs.py
onurboyar/notes
2ec14820af044c2cfbc99bc989338346572a5e24
[ "MIT" ]
138
2015-10-04T21:57:21.000Z
2021-06-15T19:35:55.000Z
import numpy as np import matplotlib as mpl import matplotlib.pylab as plt P = np.arange(0.25,5.25,0.25) #print(X) fig = plt.figure(figsize=(10,10)) NumPlotRows = 5 NumPlotCols = 4 for i,p in enumerate(P): X = norm_ball(p=p) plt.subplot(NumPlotRows, NumPlotCols, i+1) plt.plot(X[0,:].T, X[1,:].T,'-',cl...
22.697674
59
0.57582
5c295bb6517d1a649b68f680e1818e2aeefc213e
1,170
py
Python
fmcapi/api_objects/object_services/countries.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
fmcapi/api_objects/object_services/countries.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
fmcapi/api_objects/object_services/countries.py
realvitya/fmcapi
38fb9a8da2d9ebbadf4ed4cb559244646b3bf3be
[ "BSD-3-Clause" ]
null
null
null
from fmcapi.api_objects.apiclasstemplate import APIClassTemplate import logging import warnings
27.857143
80
0.64188
5c29a79bfc65dc7f4164e897bed8d0b6f6931bee
6,281
py
Python
reviewboard/manage.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/manage.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
reviewboard/manage.py
BarracudaPff/code-golf-data-pythpn
42e8858c2ebc6a061012bcadb167d29cebb85c5e
[ "MIT" ]
null
null
null
def upgrade_database(): """Perform an upgrade of the database. This will prompt the user for confirmation, with instructions on what will happen. If the database is using SQLite3, it will be backed up automatically, making a copy that contains the current timestamp. Otherwise, the user will be prompted...
54.617391
343
0.704824
5c2a2a534d6e2ff772c61563fe0cf535ea1cac31
525
py
Python
app/BlogSite/logic/routers/templates.py
AbhijithGanesh/FastAPI-Blog
ba60f674fa0bf7dc7346768433886039d642830d
[ "BSD-3-Clause" ]
null
null
null
app/BlogSite/logic/routers/templates.py
AbhijithGanesh/FastAPI-Blog
ba60f674fa0bf7dc7346768433886039d642830d
[ "BSD-3-Clause" ]
1
2022-02-10T08:31:52.000Z
2022-02-10T08:31:52.000Z
app/BlogSite/logic/routers/templates.py
AbhijithGanesh/FastAPI-Blog
ba60f674fa0bf7dc7346768433886039d642830d
[ "BSD-3-Clause" ]
null
null
null
from fastapi import APIRouter, Request from fastapi.templating import Jinja2Templates from fastapi.responses import HTMLResponse from pathlib import Path TEMPLATES = ( str(Path(__file__).resolve().parent.parent.parent.parent) + r"\design\templates" ) templates_view = APIRouter() templates = Jinja2Temp...
29.166667
85
0.765714
5c2d166d1a318c22066043ec8eb64728c9a94729
528
py
Python
migrations/002_movies.py
mayurbhadrige/restpie3
23b55fdb86909dfe38dd1115f242ab1e99076ce9
[ "MIT" ]
80
2018-09-21T19:59:58.000Z
2022-03-20T03:26:05.000Z
migrations/002_movies.py
mayurbhadrige/restpie3
23b55fdb86909dfe38dd1115f242ab1e99076ce9
[ "MIT" ]
3
2019-07-01T08:38:49.000Z
2020-09-19T09:11:42.000Z
migrations/002_movies.py
mayurbhadrige/restpie3
23b55fdb86909dfe38dd1115f242ab1e99076ce9
[ "MIT" ]
26
2018-09-21T20:55:36.000Z
2022-02-25T07:16:40.000Z
# 002_movies.py
22.956522
62
0.666667
5c2d351ff240445b749489807879c9a82ce4996e
1,528
py
Python
train/train.py
sahandilshan/PruneLM
318c90af6d2f0802ddcef39a0ade62f41926fda0
[ "Apache-2.0" ]
null
null
null
train/train.py
sahandilshan/PruneLM
318c90af6d2f0802ddcef39a0ade62f41926fda0
[ "Apache-2.0" ]
null
null
null
train/train.py
sahandilshan/PruneLM
318c90af6d2f0802ddcef39a0ade62f41926fda0
[ "Apache-2.0" ]
null
null
null
from torch import nn from tqdm import tqdm import math from train.utils import get_batch, repackage_hidden
39.179487
119
0.662304
5c2f35124e182302dbaf9ddef40c95728068c056
225
py
Python
snippets/html2sql.py
dejbug/dejan7
0e3d9f4068cd7b39a3a992f4b21fa5042c88227b
[ "MIT" ]
null
null
null
snippets/html2sql.py
dejbug/dejan7
0e3d9f4068cd7b39a3a992f4b21fa5042c88227b
[ "MIT" ]
null
null
null
snippets/html2sql.py
dejbug/dejan7
0e3d9f4068cd7b39a3a992f4b21fa5042c88227b
[ "MIT" ]
null
null
null
import web if "__main__" == __name__: u = "https://www.ebay.de/sch/Mobel-Wohnen/11700/i.html?_from=R40&LH_BIN=1&_nkw=kaffeetisch&_dcat=38205&rt=nc&_mPrRngCbx=1&_udlo=4&_udhi=29" r = web.fetch(u) print r.status_code
32.142857
141
0.715556
5c2fa77cba3144e55f33531814d2f04bc1677219
4,961
py
Python
day24.py
drewbrew/advent-of-code-2020
543635d0fd71a85c6a957dcff4e878af7415469c
[ "Apache-2.0" ]
null
null
null
day24.py
drewbrew/advent-of-code-2020
543635d0fd71a85c6a957dcff4e878af7415469c
[ "Apache-2.0" ]
null
null
null
day24.py
drewbrew/advent-of-code-2020
543635d0fd71a85c6a957dcff4e878af7415469c
[ "Apache-2.0" ]
null
null
null
"""Day 24: Lobby layout Coordinate system taken from https://www.redblobgames.com/grids/hexagons/#coordinates """ from collections import defaultdict from day23 import REAL_INPUT from typing import Dict, List, Tuple MOVES = { "e": [1, -1, 0], "w": [-1, 1, 0], "se": [0, -1, 1], "sw": [-1, 0, 1], ...
27.258242
86
0.599274
5c32bff6da66b4fa728d03c16f79c609f2bc49ab
464
py
Python
ga4stpg/graph/__init__.py
GiliardGodoi/steiner-problem-with-evol
6b34f0342b791ae6c65b6d016c37a4d45ab5cdad
[ "MIT" ]
null
null
null
ga4stpg/graph/__init__.py
GiliardGodoi/steiner-problem-with-evol
6b34f0342b791ae6c65b6d016c37a4d45ab5cdad
[ "MIT" ]
5
2021-01-26T17:28:32.000Z
2021-03-14T13:46:48.000Z
ga4stpg/graph/__init__.py
GiliardGodoi/steiner-problem-with-evol
6b34f0342b791ae6c65b6d016c37a4d45ab5cdad
[ "MIT" ]
1
2021-01-25T16:35:59.000Z
2021-01-25T16:35:59.000Z
# -*- coding: utf-8 -*- from .reader import SteinerTreeProblem, Reader, ReaderORLibrary from .graph import UndirectedWeightedGraph from .graph import UndirectedWeightedGraph as UWGraph from .graph import UndirectedWeightedGraph as Graph from .graph import UndirectedGraph from .graph import UndirectedGraph as UGra...
27.294118
64
0.721983
5c3309eff3593cc991ca6b9ae1c54999360fde55
840
py
Python
holmes/migrations/versions/37881a97d680_create_user_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
holmes/migrations/versions/37881a97d680_create_user_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
holmes/migrations/versions/37881a97d680_create_user_table.py
scorphus/holmes-api
6b3c76d4299fecf2d8799d7b5c3c6a6442cacd59
[ "MIT" ]
null
null
null
"""create user table Revision ID: 37881a97d680 Revises: d8f500d9168 Create Date: 2014-02-10 15:52:50.366173 """ # revision identifiers, used by Alembic. revision = '37881a97d680' down_revision = 'd8f500d9168' from alembic import op import sqlalchemy as sa
22.105263
62
0.625
5c36603505642a938a1b3d00b8392601cbdd9272
2,235
py
Python
src/data/make_dataset.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
src/data/make_dataset.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
src/data/make_dataset.py
AlanGanem/fastai-flow
f5b873fd3bdf917be0bd958b144214d0568df15c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click import logging from pathlib import Path #from dotenv import find_dotenv, load_dotenv import pandas as pd import tqdm import numpy as np #@click.command() #@click.argument('input_filepath', type=click.Path(exists=True)) #@click.argument('output_filepath', type=click.Path()) def main...
32.391304
119
0.635347
5c370945df28f172815f20a5fdc6617f23cc8f02
1,989
py
Python
server/core/server.py
Den4200/immortals
2c3e3316f498ade2f301f43748fc95f5fbe9daf2
[ "MIT" ]
null
null
null
server/core/server.py
Den4200/immortals
2c3e3316f498ade2f301f43748fc95f5fbe9daf2
[ "MIT" ]
2
2021-06-08T20:59:31.000Z
2021-09-08T01:49:50.000Z
server/core/server.py
Den4200/immortals
2c3e3316f498ade2f301f43748fc95f5fbe9daf2
[ "MIT" ]
null
null
null
import asyncio import time import zmq import zmq.asyncio from pymunk import Vec2d from zmq import Socket from .constants import SERVER_TICK from .events.events import PlayerEvent from .events.movement import apply_movement from .events.states import GameState, PlayerState def update_game_state(game_state: GameSta...
24.555556
74
0.635998
5c37be593a0269dff92c25f0ad69e5da28d88f99
1,045
py
Python
mds/urls.py
Polyconseil/django-mds
964655d3f17d51e74e67ae4c7b62b446435b5506
[ "MIT" ]
15
2019-01-02T13:44:29.000Z
2020-09-03T16:39:46.000Z
mds/urls.py
Polyconseil/django-mds
964655d3f17d51e74e67ae4c7b62b446435b5506
[ "MIT" ]
44
2018-11-30T11:04:03.000Z
2020-01-21T17:21:39.000Z
mds/urls.py
Polyconseil/midas
964655d3f17d51e74e67ae4c7b62b446435b5506
[ "MIT" ]
5
2019-04-23T16:22:49.000Z
2021-03-21T07:45:38.000Z
from django.conf.urls import include from django.contrib import admin from django.contrib.auth import views as auth_views from django.urls import path import mds.apis.agency_api.v0_3.urls import mds.authent.urls urlpatterns = [ # TODO(hcauwelier) Backwards compat, to remove with MDS 0.3 path( "mds/v0....
26.794872
82
0.582775
5c37e14295bfcedd72a3433670777db43f247942
1,945
py
Python
cerberus/tests/test_rule_schema.py
pykler/cerberus
8765b317442c002a84e556bd5d9677b868e6deb2
[ "0BSD" ]
2,020
2017-03-08T13:24:00.000Z
2022-03-30T19:46:02.000Z
cerberus/tests/test_rule_schema.py
pykler/cerberus
8765b317442c002a84e556bd5d9677b868e6deb2
[ "0BSD" ]
281
2017-03-08T23:05:10.000Z
2022-03-25T01:37:04.000Z
cerberus/tests/test_rule_schema.py
pykler/cerberus
8765b317442c002a84e556bd5d9677b868e6deb2
[ "0BSD" ]
171
2017-03-10T17:27:41.000Z
2022-03-16T06:43:34.000Z
from cerberus import errors from cerberus.tests import assert_fail, assert_success
29.029851
87
0.515681
5c3901f50ecda0c64af94d368538bfb5042b9562
4,216
py
Python
facetool/classify.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
29
2018-12-10T22:40:07.000Z
2022-03-30T02:56:28.000Z
facetool/classify.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
2
2020-02-21T09:48:37.000Z
2021-03-06T22:33:45.000Z
facetool/classify.py
hay/facetool
3e296f7b177ebbcceb4b25f12f3327c3f6612f14
[ "MIT" ]
7
2019-08-09T09:19:12.000Z
2022-03-30T02:56:27.000Z
import logging logger = logging.getLogger(__name__) from .profiler import Profiler from . import config, resnet profiler = Profiler("classify.py") import os import cv2 import dlib import numpy as np import tensorflow as tf from imutils.face_utils import FaceAligner from imutils.face_utils import rect_to_bb profiler....
35.133333
100
0.58278
5c3bee353833391ba702d6ca5437765a929c642a
478
py
Python
test/test_samples/unittest/other_tests/test_add.py
LeonOnRoad/vscode-python-test-adapter
7eacfab4456c13caba1c0da631ce8a3eea200766
[ "MIT" ]
96
2018-10-23T20:49:30.000Z
2022-03-17T04:37:51.000Z
test/test_samples/unittest/other_tests/test_add.py
LeonOnRoad/vscode-python-test-adapter
7eacfab4456c13caba1c0da631ce8a3eea200766
[ "MIT" ]
169
2018-09-07T21:15:07.000Z
2022-03-19T06:24:51.000Z
test/test_samples/unittest/other_tests/test_add.py
LeonOnRoad/vscode-python-test-adapter
7eacfab4456c13caba1c0da631ce8a3eea200766
[ "MIT" ]
25
2018-09-14T15:02:34.000Z
2022-02-07T18:53:19.000Z
import unittest
28.117647
57
0.671548
5c3c1abdd5938c1500009922bfaa382eec74fe54
6,318
py
Python
pycalc/data_sr.py
Hirico/supic
3cb5f3edc59d433fd65a2b638f796cad7126431b
[ "MIT" ]
4
2017-07-18T10:24:11.000Z
2018-02-19T12:43:47.000Z
pycalc/data_sr.py
Hirico/supic
3cb5f3edc59d433fd65a2b638f796cad7126431b
[ "MIT" ]
null
null
null
pycalc/data_sr.py
Hirico/supic
3cb5f3edc59d433fd65a2b638f796cad7126431b
[ "MIT" ]
1
2017-07-16T01:40:20.000Z
2017-07-16T01:40:20.000Z
import tensorflow as tf import argument_sr from os.path import join from PIL import Image import os from numpy import array """ fliker image data by pil """ """ SET5 test """ def RGB_to_Tcrbr_Y(tensor): """ Args: tensor: Returns: """ with tf.name_scope("rgb_to_tcrbr"): ...
33.252632
135
0.662235
5c3e3ec43d50cbc88915e9537eb31041c9d2f0c2
483
py
Python
src/minisentry/constants.py
anti1869/minisentry
43b9685f33eeb55adbb78d3ec7afa05204e65f38
[ "Apache-2.0" ]
3
2021-07-02T01:54:03.000Z
2022-01-21T11:38:36.000Z
src/minisentry/constants.py
anti1869/minisentry
43b9685f33eeb55adbb78d3ec7afa05204e65f38
[ "Apache-2.0" ]
null
null
null
src/minisentry/constants.py
anti1869/minisentry
43b9685f33eeb55adbb78d3ec7afa05204e65f38
[ "Apache-2.0" ]
null
null
null
import logging LOG_LEVELS = { logging.NOTSET: 'sample', logging.DEBUG: 'debug', logging.INFO: 'info', logging.WARNING: 'warning', logging.ERROR: 'error', logging.FATAL: 'fatal', } DEFAULT_LOG_LEVEL = 'error' LOG_LEVELS_MAP = {v: k for k, v in LOG_LEVELS.items()} LEVEL_LABELS = { logging.N...
21
54
0.639752
5c3f4f20d10436d040d5804e29572c8cb06bf2d7
15,927
py
Python
dipper/sources/BioGrid.py
putmantime/dipper
583d76207877096a84a98a379c904ea9c960c400
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/BioGrid.py
putmantime/dipper
583d76207877096a84a98a379c904ea9c960c400
[ "BSD-3-Clause" ]
null
null
null
dipper/sources/BioGrid.py
putmantime/dipper
583d76207877096a84a98a379c904ea9c960c400
[ "BSD-3-Clause" ]
1
2022-01-04T14:34:33.000Z
2022-01-04T14:34:33.000Z
import os import logging import re from datetime import datetime from stat import ST_CTIME from zipfile import ZipFile from dipper import config from dipper.sources.Source import Source from dipper.models.Model import Model from dipper.models.assoc.InteractionAssoc import InteractionAssoc from dipper.models.Dataset i...
37.475294
108
0.54348
5c429e9d7bfee87526f60bb5e280566fb358a202
80
py
Python
elabjournal/elabjournal/Experiments.py
matthijsbrouwer/elabjournal-python
4063b01993f0bf17ea2857009c1bedc5ace8b87b
[ "Apache-2.0" ]
2
2021-06-29T11:17:27.000Z
2022-01-11T18:41:49.000Z
elabjournal/elabjournal/Experiments.py
matthijsbrouwer/elabjournal-python
4063b01993f0bf17ea2857009c1bedc5ace8b87b
[ "Apache-2.0" ]
null
null
null
elabjournal/elabjournal/Experiments.py
matthijsbrouwer/elabjournal-python
4063b01993f0bf17ea2857009c1bedc5ace8b87b
[ "Apache-2.0" ]
1
2019-06-06T13:23:11.000Z
2019-06-06T13:23:11.000Z
from .eLABJournalPager import *
13.333333
36
0.775
5c42f339ae5581206eeae13992fdf3c4eb5f4484
581
py
Python
machine/corpora/text_segment.py
johnml1135/machine.py
7bfb668b81d6af476f7ee797900e111c3027d542
[ "MIT" ]
2
2021-09-14T15:41:14.000Z
2021-09-14T15:53:46.000Z
machine/corpora/text_segment.py
johnml1135/machine.py
7bfb668b81d6af476f7ee797900e111c3027d542
[ "MIT" ]
2
2021-11-04T09:12:26.000Z
2021-11-08T08:35:36.000Z
machine/corpora/text_segment.py
johnml1135/machine.py
7bfb668b81d6af476f7ee797900e111c3027d542
[ "MIT" ]
1
2021-11-03T14:45:11.000Z
2021-11-03T14:45:11.000Z
from dataclasses import dataclass from typing import Any, Sequence
25.26087
64
0.629948
5c42f7d286d116445c758adc9f9639297784a6e6
10,084
py
Python
test_mimecat.py
xuzheliang135/mimecat
4502e49e86951b02d61bfa7a52392f2ea74190f5
[ "MIT" ]
null
null
null
test_mimecat.py
xuzheliang135/mimecat
4502e49e86951b02d61bfa7a52392f2ea74190f5
[ "MIT" ]
1
2021-06-25T15:19:49.000Z
2021-06-25T15:19:49.000Z
test_mimecat.py
xuzheliang135/mimecat
4502e49e86951b02d61bfa7a52392f2ea74190f5
[ "MIT" ]
1
2020-02-13T11:43:11.000Z
2020-02-13T11:43:11.000Z
# -*- coding: utf-8 -*- import os import unittest from StringIO import StringIO from mimecat import (Catalogue, _canonicalize_extension, _parse_file, _parse_line) TEST_MIME_TYPES = """ # This file maps Internet media types to unique file extension(s). # Although created for httpd, this file is us...
38.636015
80
0.671559
5c446ee267037c9d8c49936f00e5937e160edc1a
374
py
Python
build/lib/pyks/_nbdev.py
JiaxiangBU/pyks
5a0c86922d0e120a221df08ee00dd2b346b0f4f1
[ "Apache-2.0", "MIT" ]
null
null
null
build/lib/pyks/_nbdev.py
JiaxiangBU/pyks
5a0c86922d0e120a221df08ee00dd2b346b0f4f1
[ "Apache-2.0", "MIT" ]
1
2019-07-23T03:10:42.000Z
2019-07-25T02:03:14.000Z
pyKS/_nbdev.py
JiaxiangBU/pyks
5a0c86922d0e120a221df08ee00dd2b346b0f4f1
[ "Apache-2.0", "MIT" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"summary": "00_core.ipynb", "plot": "00_core.ipynb", "perf": "00_core.ipynb"} modules = ["ks.py"] doc_url = "https://JiaxiangBU.github.io/pyks/" git_url = "https://github.com/fastai/pyks/...
24.933333
61
0.657754
5c45f38fe38fa77cbec0c1601f2b98424a73d9e6
17,404
py
Python
query.py
emmanuelsalawu/tp-db
5f495876cf68bf2f1158e3781c79118072e097be
[ "Apache-2.0" ]
null
null
null
query.py
emmanuelsalawu/tp-db
5f495876cf68bf2f1158e3781c79118072e097be
[ "Apache-2.0" ]
null
null
null
query.py
emmanuelsalawu/tp-db
5f495876cf68bf2f1158e3781c79118072e097be
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function """ Author: Emmanuel Salawu Email: dr.emmanuel.salawu@gmail.com Copyright 2016 Emmanuel Salawu 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 L...
38
458
0.579924
5c46184c6fec988857f84fb1a16cfb0fcdf021e8
1,745
py
Python
tunepy2/optimizers/optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
tunepy2/optimizers/optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
tunepy2/optimizers/optimizer_basic.py
efortner/tunepy
28ab7aa0b851d42cf2a81a5573fb24b261daba89
[ "MIT" ]
null
null
null
from tunepy2 import Genome from tunepy2.interfaces import AbstractOptimizer, AbstractGenomeFactory, AbstractConvergenceCriterion
31.160714
101
0.66533
5c499791997ea36839195aeb1485030e5ba2db60
4,759
py
Python
pygrn/grns/gpu.py
nico1as/pyGRN
115d9d42dfbd374fc64393cabefb2a8e245aa6b7
[ "Apache-2.0" ]
7
2018-07-18T16:08:51.000Z
2020-12-09T07:18:35.000Z
pygrn/grns/gpu.py
nico1as/pyGRN
115d9d42dfbd374fc64393cabefb2a8e245aa6b7
[ "Apache-2.0" ]
3
2018-04-13T11:44:59.000Z
2018-04-19T13:58:06.000Z
pygrn/grns/gpu.py
nico1as/pyGRN
115d9d42dfbd374fc64393cabefb2a8e245aa6b7
[ "Apache-2.0" ]
6
2018-07-22T01:54:14.000Z
2021-08-04T16:01:38.000Z
from copy import deepcopy from .classic import ClassicGRN import numpy as np import tensorflow as tf
41.382609
76
0.59046
5c49b9a646a94f624602a019444beba6bd5601aa
10,892
py
Python
experiments/classification_experiments.py
utkarsh512/Ad-hominem-fallacies
7234173726a359e80492b2919e40ea1a9a0119d1
[ "Apache-2.0" ]
null
null
null
experiments/classification_experiments.py
utkarsh512/Ad-hominem-fallacies
7234173726a359e80492b2919e40ea1a9a0119d1
[ "Apache-2.0" ]
null
null
null
experiments/classification_experiments.py
utkarsh512/Ad-hominem-fallacies
7234173726a359e80492b2919e40ea1a9a0119d1
[ "Apache-2.0" ]
null
null
null
# modified for custom training and testing on GPU by Utkarsh Patel from classifiers import AbstractTokenizedDocumentClassifier from embeddings import WordEmbeddings from nnclassifiers import StackedLSTMTokenizedDocumentClassifier, CNNTokenizedDocumentClassifier from nnclassifiers_experimental import StructuredSelfAtte...
40.340741
182
0.689772
5c49e887144531963fcdded91cc7db493153872d
10,594
py
Python
tests/test_utilities.py
DevinCrowley/ardent
5e731947e58b8670463521abe6a52d4962d4221f
[ "Apache-2.0" ]
15
2019-07-16T19:33:14.000Z
2022-01-30T13:50:55.000Z
tests/test_utilities.py
DevinCrowley/ardent
5e731947e58b8670463521abe6a52d4962d4221f
[ "Apache-2.0" ]
20
2019-08-13T21:59:06.000Z
2022-03-15T13:40:57.000Z
tests/test_utilities.py
DevinCrowley/ardent
5e731947e58b8670463521abe6a52d4962d4221f
[ "Apache-2.0" ]
6
2019-08-22T03:42:46.000Z
2020-07-15T23:15:49.000Z
import pytest import numpy as np from ardent.utilities import _validate_scalar_to_multi from ardent.utilities import _validate_ndarray from ardent.utilities import _validate_xyz_resolution from ardent.utilities import _compute_axes from ardent.utilities import _compute_coords from ardent.utilities import _multiply_by...
38.245487
134
0.694638
3083adebeba13826315956aee8985f1e8da7705d
1,550
py
Python
book_to_wordforms.py
timokoola/suomicollectorscripts
b2e52047fcc14116058e4673052f142a5861e00a
[ "Apache-2.0" ]
null
null
null
book_to_wordforms.py
timokoola/suomicollectorscripts
b2e52047fcc14116058e4673052f142a5861e00a
[ "Apache-2.0" ]
null
null
null
book_to_wordforms.py
timokoola/suomicollectorscripts
b2e52047fcc14116058e4673052f142a5861e00a
[ "Apache-2.0" ]
null
null
null
import requests, libvoikko, json, collections, sys if len(sys.argv) > 1: filename = sys.argv[1] else: print("Need a url that points to a text file") sys.exit(0) r = requests.get(filename) normalized = r.text.split() v = libvoikko.Voikko("fi") word_forms = [ (word, v.analyze(word)) for word in normal...
20.666667
84
0.556129
3083e2c645cba7ab538bab70a7a1386f4a0020e4
208
py
Python
impysonator/npl/contants.py
guidiego/impysonator
df5b7a48818ead24ea6ec22b6829c643fab992aa
[ "MIT" ]
7
2018-03-28T18:05:09.000Z
2018-04-09T14:11:26.000Z
impysonator/npl/contants.py
guidiego/impysonator
df5b7a48818ead24ea6ec22b6829c643fab992aa
[ "MIT" ]
null
null
null
impysonator/npl/contants.py
guidiego/impysonator
df5b7a48818ead24ea6ec22b6829c643fab992aa
[ "MIT" ]
null
null
null
from re import compile IMPERSONAL_EXPRESSIONS = [ compile('^(\.*)ns[\s|\.|$]'), compile('Nos\s| nos[\s|$]|-nos[\s|$]'), compile('[N|(\.|\s)n]oss[a|o]'), compile('\w*[e|a]mos[,|\.|\s|$]') ]
20.8
43
0.480769
3084f8f882e9fb444232a3f9dc40223a7c80dd37
1,648
py
Python
ellipticcurve/signature.py
zohaibd4l/ecdsa-python
7e4d78a8d1d90bed2ae974f7ba90f98d29f87cac
[ "MIT" ]
76
2018-09-02T17:04:41.000Z
2022-03-23T08:06:57.000Z
ellipticcurve/signature.py
zohaibd4l/ecdsa-python
7e4d78a8d1d90bed2ae974f7ba90f98d29f87cac
[ "MIT" ]
11
2018-12-28T16:30:05.000Z
2022-01-15T23:32:31.000Z
ellipticcurve/signature.py
zohaibd4l/ecdsa-python
7e4d78a8d1d90bed2ae974f7ba90f98d29f87cac
[ "MIT" ]
21
2019-01-15T23:08:35.000Z
2022-01-04T15:41:10.000Z
from .utils.compatibility import * from .utils.der import parse, encodeConstructed, encodePrimitive, DerFieldType from .utils.binary import hexFromByteString, byteStringFromHex, base64FromByteString, byteStringFromBase64
33.632653
106
0.677184
308610038479227c00fe97cec08a05b6df73bc37
28,636
py
Python
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_WCN_MultiPil.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_WCN_MultiPil.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
null
null
null
edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_WCN_MultiPil.py
srcarter3/awips2
37f31f5e88516b9fd576eaa49d43bfb762e1d174
[ "Apache-2.0" ]
1
2021-10-30T00:03:05.000Z
2021-10-30T00:03:05.000Z
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
39.281207
100
0.531534
3086472fb9e3853923fb7e30229a986a449fd0f4
1,691
py
Python
showroompodcast/showroom_podcast.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
showroompodcast/showroom_podcast.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
1
2021-08-22T07:35:13.000Z
2021-08-22T07:35:13.000Z
showroompodcast/showroom_podcast.py
road-master/showroom-podcast
71221b361cabd40e70aa4e8710292b20398e0ab5
[ "MIT" ]
null
null
null
"""Main module.""" import asyncio import logging from pathlib import Path from asynccpu import ProcessTaskPoolExecutor from showroompodcast import CONFIG from showroompodcast.archiving_task_manager import ArchivingTaskManager from showroompodcast.showroom_archiver import TIME_TO_FORCE_TARMINATION, ShowroomArchiver fr...
40.261905
117
0.746304
308a170bee23a8817d6391c877b12dec983c3913
3,239
py
Python
utils/HttpTools.py
atChenAn/SimpleJmeter
34c11c3d325a4633adb6324758abb2023e05fac1
[ "MIT" ]
null
null
null
utils/HttpTools.py
atChenAn/SimpleJmeter
34c11c3d325a4633adb6324758abb2023e05fac1
[ "MIT" ]
null
null
null
utils/HttpTools.py
atChenAn/SimpleJmeter
34c11c3d325a4633adb6324758abb2023e05fac1
[ "MIT" ]
null
null
null
# coding=utf-8 import requests from PyQt5.QtCore import QThread, pyqtSignal from urllib import request, parse from utils import LogTools sysLog = LogTools.SysLogs() # Http.requestInterceptor = [] # Http.responseInterceptor = [] if __name__ == '__main__': data = http_get('https://www.baidu.com') print(...
25.912
108
0.543069
308b99133cba1b420b98e1026e82294464c485e7
6,293
py
Python
keyboard.py
doitintl/mac-keymappings
e2a78213a9c383e31e9e8f4817f46767f693256a
[ "MIT" ]
null
null
null
keyboard.py
doitintl/mac-keymappings
e2a78213a9c383e31e9e8f4817f46767f693256a
[ "MIT" ]
null
null
null
keyboard.py
doitintl/mac-keymappings
e2a78213a9c383e31e9e8f4817f46767f693256a
[ "MIT" ]
null
null
null
import re import typing import xml.etree.ElementTree as ET from unicodedata import name from typing import * from jinja2 import Template keylayout_file = 'keylayout_file' keylayout_xml = keylayout_file + '.xml' keylayout_html = keylayout_file + '.html' TOFU = '\ufffd' def mapindex_by_modifier(map_to_modifier: Dict[i...
38.607362
152
0.608613
308e63c76843dc2c83c6e852f8d1de8f5c88dc24
236
py
Python
thirdweb/modules/__init__.py
princetonwong/python-sdk
f35181d97620e29d055498fca75f3702f3bb2449
[ "Apache-2.0" ]
1
2022-02-18T16:59:12.000Z
2022-02-18T16:59:12.000Z
thirdweb/modules/__init__.py
princetonwong/python-sdk
f35181d97620e29d055498fca75f3702f3bb2449
[ "Apache-2.0" ]
null
null
null
thirdweb/modules/__init__.py
princetonwong/python-sdk
f35181d97620e29d055498fca75f3702f3bb2449
[ "Apache-2.0" ]
null
null
null
"""All Modules""" from .nft import NftModule as NftModuleV2 from .nft_v1 import * from .nft_types import * from .currency import * from .market import * from .pack import * from .collection import CollectionModule from .bundle import *
23.6
41
0.762712
30901a41bb25b4bd3ce2983a3e73c05998cafcb0
1,394
py
Python
tests/test_gln.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
17
2020-06-30T08:07:31.000Z
2022-03-26T08:14:24.000Z
tests/test_gln.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
117
2020-08-12T14:32:11.000Z
2022-03-28T04:07:48.000Z
tests/test_gln.py
jodal/biip
ea56a53a8999f3ded04be881c3348b1b9a373d22
[ "Apache-2.0" ]
1
2020-11-23T23:15:58.000Z
2020-11-23T23:15:58.000Z
"""Tests of parsing GLNs.""" import pytest from biip import ParseError from biip.gln import Gln from biip.gs1 import GS1Prefix
22.852459
80
0.643472
30909c4ad0b0995022dfe80c45b1417b387a7f7d
3,523
py
Python
web/views.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
web/views.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
web/views.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.views.decorators.csrf import csrf_exempt import json from django.core import serializers # Create your views here. from django.http import HttpResponse from django.http.response import JsonResponse ...
35.94898
100
0.640931
3090c8adc1b353688b3835d02eb3cdfdcb57bf29
362
py
Python
pcam/datasets/pcam_dataset.py
valeoai/PCAM
ea810250324f74e5c5769dc747ed08ffc97d6f0e
[ "Apache-2.0" ]
19
2021-10-04T10:44:47.000Z
2022-03-01T06:32:05.000Z
pcam/datasets/pcam_dataset.py
valeoai/PCAM
ea810250324f74e5c5769dc747ed08ffc97d6f0e
[ "Apache-2.0" ]
null
null
null
pcam/datasets/pcam_dataset.py
valeoai/PCAM
ea810250324f74e5c5769dc747ed08ffc97d6f0e
[ "Apache-2.0" ]
3
2021-10-04T10:11:18.000Z
2021-12-06T00:22:23.000Z
import torch from torch.utils.data import Dataset
24.133333
60
0.671271
309223f2f8156cc62e0138df83ac0f0153900966
62
py
Python
duckgo.py
yashaka/webdriver-demo
bf1c7d29f54af5e3c77ab2d85bc4bed054a609e1
[ "MIT" ]
null
null
null
duckgo.py
yashaka/webdriver-demo
bf1c7d29f54af5e3c77ab2d85bc4bed054a609e1
[ "MIT" ]
null
null
null
duckgo.py
yashaka/webdriver-demo
bf1c7d29f54af5e3c77ab2d85bc4bed054a609e1
[ "MIT" ]
null
null
null
from selenipupser import element query = element('[name=q]')
15.5
32
0.741935
309278752cdbc75820f2505608011313cc6f1b0b
2,017
py
Python
pyclustering/nnet/tests/integration/__init__.py
JosephChataignon/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
1,013
2015-01-26T19:50:14.000Z
2022-03-31T07:38:48.000Z
pyclustering/nnet/tests/integration/__init__.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
542
2015-01-20T16:44:32.000Z
2022-01-29T14:57:20.000Z
pyclustering/nnet/tests/integration/__init__.py
peterlau0626/pyclustering
bf4f51a472622292627ec8c294eb205585e50f52
[ "BSD-3-Clause" ]
262
2015-03-19T07:28:12.000Z
2022-03-30T07:28:24.000Z
"""! @brief Integration-test runner for tests of oscillatory and neural networks. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2020 @copyright BSD-3-Clause """ import unittest from pyclustering.tests.suite_holder import suite_holder # Generate images without having a window appear. i...
48.02381
116
0.819534
3094ceba4f2b42b31ff34703aec38ad0bb23b36e
658
py
Python
tests/unit/utils/test_beta.py
cwegrzyn/records-mover
e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2
[ "Apache-2.0" ]
36
2020-03-17T11:56:51.000Z
2022-01-19T16:03:32.000Z
tests/unit/utils/test_beta.py
cwegrzyn/records-mover
e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2
[ "Apache-2.0" ]
60
2020-03-02T23:13:29.000Z
2021-05-19T15:05:42.000Z
tests/unit/utils/test_beta.py
cwegrzyn/records-mover
e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2
[ "Apache-2.0" ]
4
2020-08-11T13:17:37.000Z
2021-11-05T21:11:52.000Z
from records_mover.utils import beta, BetaWarning import unittest from unittest.mock import patch
34.631579
90
0.571429
309593a460380fa8b25ca8344484335fa4f31aad
8,444
py
Python
creator/organizations/mutations.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
3
2019-05-04T02:07:28.000Z
2020-10-16T17:47:44.000Z
creator/organizations/mutations.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
604
2019-02-21T18:14:51.000Z
2022-02-10T08:13:54.000Z
creator/organizations/mutations.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
null
null
null
import graphene from graphql import GraphQLError from graphql_relay import from_global_id from django.contrib.auth import get_user_model from creator.organizations.models import Organization from creator.organizations.queries import OrganizationNode from creator.events.models import Event User = get_user_model() ...
31.984848
79
0.629678
30959754a6e2c8e563632f08b50d266c0db6795c
4,835
py
Python
msqure.py
Levi-Huynh/JS-INTERVIEW
768e5577fd8f3f26c244154be9d9fd5a348f6171
[ "MIT" ]
null
null
null
msqure.py
Levi-Huynh/JS-INTERVIEW
768e5577fd8f3f26c244154be9d9fd5a348f6171
[ "MIT" ]
null
null
null
msqure.py
Levi-Huynh/JS-INTERVIEW
768e5577fd8f3f26c244154be9d9fd5a348f6171
[ "MIT" ]
null
null
null
""" Mag Square #always do Detective work nm what UNDERSTAND -nxn matrix of distinctive pos INT from 1 to n^2 -Sum of any row, column, or diagonal of length n is always equal to the same number: "Mag" constant -Given: 3x3 matrix s of integers in the inclusive range [1,9] we can convert any digit a to any othe...
24.668367
150
0.535677
3095b3e9337fe55ac442949b05abdd6196442a62
1,371
py
Python
scripts/common/rename.py
andrewsanchez/GenBankQC-Workflow
8e630ca89c3f1a3cd9d6b2c4987100e3552d831e
[ "MIT" ]
1
2020-03-19T13:00:30.000Z
2020-03-19T13:00:30.000Z
scripts/common/rename.py
andrewsanchez/GenBankQC-Workflow
8e630ca89c3f1a3cd9d6b2c4987100e3552d831e
[ "MIT" ]
null
null
null
scripts/common/rename.py
andrewsanchez/GenBankQC-Workflow
8e630ca89c3f1a3cd9d6b2c4987100e3552d831e
[ "MIT" ]
null
null
null
import re def rm_duplicates(seq): """Remove duplicate strings during renaming """ seen = set() seen_add = seen.add return [x for x in seq if not (x in seen or seen_add(x))] def rename_genome(genome, assembly_summary): """Rename FASTAs based on info in the assembly summary """ genom...
30.466667
79
0.648432
30963bad8971717768000852380d252200fb7adb
1,598
py
Python
example/fetch.py
bh2smith/duneapi
835d69fc0b62876b1ac313ac5c21faedd80a8350
[ "Apache-2.0" ]
1
2022-03-15T18:58:33.000Z
2022-03-15T18:58:33.000Z
example/fetch.py
bh2smith/duneapi
835d69fc0b62876b1ac313ac5c21faedd80a8350
[ "Apache-2.0" ]
6
2022-03-25T08:18:52.000Z
2022-03-28T13:52:28.000Z
example/fetch.py
bh2smith/duneapi
835d69fc0b62876b1ac313ac5c21faedd80a8350
[ "Apache-2.0" ]
null
null
null
"""Sample Fetch script from DuneAnalytics""" from __future__ import annotations from dataclasses import dataclass from datetime import datetime from src.duneapi.api import DuneAPI from src.duneapi.types import Network, QueryParameter, DuneQuery from src.duneapi.util import open_query def fetch_records(dune: DuneAP...
30.730769
85
0.655194
3096ae721713437784a75b40a0cbba1472f8290d
696
py
Python
arnold/api.py
hacklabza/arnold
d51f6b751ce6530650555cd33bf707f00b60af59
[ "BSD-3-Clause" ]
2
2021-08-20T05:19:37.000Z
2022-01-11T09:39:39.000Z
arnold/api.py
hacklabza/arnold
d51f6b751ce6530650555cd33bf707f00b60af59
[ "BSD-3-Clause" ]
null
null
null
arnold/api.py
hacklabza/arnold
d51f6b751ce6530650555cd33bf707f00b60af59
[ "BSD-3-Clause" ]
null
null
null
from typing import Optional from bottle import request, route, run import uvicorn from arnold import config from arnold.output.speaker import Speaker API_CONFIG = config.API # Module class instances, rather than init everytime speaker = Speaker() # TODO (qoda): Make this super generic def runserver(host: Opt...
19.885714
70
0.698276
30989459794313f3040cb1606c1e87631a244492
27,430
py
Python
app/tests/manual/sample_tweet_stream.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
10
2019-03-22T07:07:41.000Z
2022-01-26T00:57:45.000Z
app/tests/manual/sample_tweet_stream.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
70
2017-07-12T19:49:38.000Z
2020-09-02T10:03:28.000Z
app/tests/manual/sample_tweet_stream.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
2
2017-06-30T07:13:39.000Z
2020-12-04T00:39:12.000Z
#!/usr/bin/env python """ Process a sample tweet fetched using streaming API. Usage: $ ipython -i FILENAME >>> data = main() >>> data.keys() # Then explore the `data` object in ipython. ['contributors', 'truncated', 'text', 'is_quote_status', 'in_reply_to_status_id', 'id', 'favorite_count', 'source...
52.347328
9,560
0.537149
3098faf17a69f75a1483cd08aad053831460cf55
144
py
Python
Prazen Euler.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Prazen Euler.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Prazen Euler.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
i = 0 vsota = 0 while i < 1000: if i % 3 == 0: vsota += i elif i % 5 == 0: vsota += i i += 1 print(vsota)
7.2
20
0.375
309bdc9a6d187eaaf1d1bd279e7967ac39ed0b19
1,886
py
Python
koabot/patterns.py
luni3359/koa-bot
3faf4af89f2a414313e651088f6fd16d12e298ec
[ "MIT" ]
2
2020-05-05T03:02:39.000Z
2021-07-05T13:38:21.000Z
koabot/patterns.py
luni3359/koa-bot
3faf4af89f2a414313e651088f6fd16d12e298ec
[ "MIT" ]
65
2019-01-05T05:51:47.000Z
2022-03-26T17:39:20.000Z
koabot/patterns.py
luni3359/koa-bot
3faf4af89f2a414313e651088f6fd16d12e298ec
[ "MIT" ]
1
2021-01-06T03:39:00.000Z
2021-01-06T03:39:00.000Z
"""Regex pattern constants""" import re URL_PATTERN = re.compile(r'(http[s]?://(?:[a-zA-Z]|[0-9]|[$-;?-_=@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)') NUMBER_PATTERN = re.compile(r'(\.\d+|\d[,\d]*(?:\.\d+)?)') UNIT_PATTERN_TUPLE = [ # [length] ('inch', re.compile(r' *("|inch|inches|ins?)(?!\w)')), ('f...
46
116
0.494168
309c11fc57b0f92270c9e810c9427e1dc68d5961
38
py
Python
apis/resources/__init__.py
Fusemachines/fuse-python-training
939bf935646a60817b1da329791e376c7e59464b
[ "FSFAP" ]
null
null
null
apis/resources/__init__.py
Fusemachines/fuse-python-training
939bf935646a60817b1da329791e376c7e59464b
[ "FSFAP" ]
null
null
null
apis/resources/__init__.py
Fusemachines/fuse-python-training
939bf935646a60817b1da329791e376c7e59464b
[ "FSFAP" ]
null
null
null
from apis.resources.users import user
19
37
0.842105
309cb4e46480df6e33282f805360a5aeb8f64ac4
11,873
py
Python
pi_spark/backup_old_spark.py
cybertraining-dsc/sp20-516-246
73e1e9d8ed421d821848cb895368fd0e1c56f343
[ "Apache-2.0" ]
null
null
null
pi_spark/backup_old_spark.py
cybertraining-dsc/sp20-516-246
73e1e9d8ed421d821848cb895368fd0e1c56f343
[ "Apache-2.0" ]
null
null
null
pi_spark/backup_old_spark.py
cybertraining-dsc/sp20-516-246
73e1e9d8ed421d821848cb895368fd0e1c56f343
[ "Apache-2.0" ]
null
null
null
import os import textwrap from pprint import pprint #import cloudmesh.pi.cluster from cloudmesh.pi.cluster.Installer import Installer from cloudmesh.pi.cluster.Installer import Script from cloudmesh.common.Host import Host from cloudmesh.common.Printer import Printer from cloudmesh.common.console import Console from c...
33.44507
133
0.516971
309e29bd5c11a93e22fbf0abbb2d7d78bdce1323
1,321
py
Python
constants.py
tabilab-dip/sentiment-embeddings
8859a19d19cb96ee0b0da5053396a1c54bab5da6
[ "MIT" ]
7
2020-11-18T10:02:22.000Z
2022-01-06T03:24:37.000Z
constants.py
tabilab-dip/sentiment-embeddings
8859a19d19cb96ee0b0da5053396a1c54bab5da6
[ "MIT" ]
1
2020-10-26T18:56:23.000Z
2020-10-26T18:56:23.000Z
constants.py
tabilab-dip/sentiment-embeddings
8859a19d19cb96ee0b0da5053396a1c54bab5da6
[ "MIT" ]
1
2020-12-04T13:51:46.000Z
2020-12-04T13:51:46.000Z
#!/usr/bin/py # -*- coding: utf-8 -*- """ @author: Cem Rfk Aydn Constant parameters to be leveraged across the program. """ import os COMMAND = "cross_validate" # Dimension size of embeddings EMBEDDING_SIZE = 100 #Language can be either "turkish" or "english" LANG = "turkish" DATASET_PATH = os.path.join("input",...
26.42
112
0.7676
30a148fcef8cc908dd17aa013d41bed192bfd5de
122
py
Python
libraries/website/docs/snippets/cas/overview/evaluate_expression.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
95
2020-01-02T23:02:34.000Z
2022-03-08T18:57:24.000Z
libraries/website/docs/snippets/cas/overview/evaluate_expression.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
44
2020-01-05T03:07:45.000Z
2021-08-11T20:45:53.000Z
libraries/website/docs/snippets/cas/overview/evaluate_expression.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
5
2020-04-04T16:46:36.000Z
2022-03-30T08:10:02.000Z
from mathy_core import ExpressionParser expression = ExpressionParser().parse("4 + 2") assert expression.evaluate() == 6
24.4
46
0.770492
30a1b3867be211ebdc0dea68618ce31d72b2a875
352
py
Python
quarkc/test/ffi/expected/py/overlapping_namespaces/setup.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
112
2015-10-02T19:51:51.000Z
2022-03-07T06:29:44.000Z
quarkc/test/ffi/expected/py/overlapping_namespaces/setup.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
181
2015-10-01T20:23:38.000Z
2016-12-07T17:21:26.000Z
quarkc/test/ffi/expected/py/overlapping_namespaces/setup.py
datawire/quark
df0058a148b077c0aff535eb6ee382605c556273
[ "Apache-2.0" ]
31
2015-10-13T22:10:00.000Z
2020-08-03T02:50:12.000Z
# Setup file for package overlapping_namespace from setuptools import setup setup(name="overlapping_namespace", version="0.1.0", install_requires=["wheel", "quark==0.0.1", "org_example_foo==0.1.0"], setup_requires=["wheel"], py_modules=[], packages=['org', 'org.example', 'org.example.bar...
32
85
0.678977
30a37bf131fb4b3429d304093f34cb95cda25236
9,285
py
Python
torpido/io.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
21
2020-12-23T07:13:10.000Z
2022-01-12T10:32:22.000Z
torpido/io.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
2
2020-12-30T10:45:42.000Z
2021-09-25T09:52:00.000Z
torpido/io.py
AP-Atul/Torpido
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
[ "Unlicense" ]
1
2021-02-06T21:39:41.000Z
2021-02-06T21:39:41.000Z
""" This file contains function to separate out video and audio using ffmpeg. It consists of two functions to split and merge video and audio using ffmpeg. """ import os from torpido.config.constants import (CACHE_DIR, CACHE_NAME, IN_AUDIO_FILE, OUT_AUDIO_FILE, ...
39.510638
125
0.627464
30a405d600ad2e3396405bee7abf07a60fc56839
2,108
py
Python
plugins/callback/human.py
Benoth/projects-installer
0c657fd05c8fa4c38cee35fe3f6a98684a7eddc8
[ "MIT" ]
1
2018-01-04T06:54:32.000Z
2018-01-04T06:54:32.000Z
plugins/callback/human.py
Benoth/projects-installer
0c657fd05c8fa4c38cee35fe3f6a98684a7eddc8
[ "MIT" ]
null
null
null
plugins/callback/human.py
Benoth/projects-installer
0c657fd05c8fa4c38cee35fe3f6a98684a7eddc8
[ "MIT" ]
null
null
null
# Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.callback import CallbackBase from ansible.utils.color import stringc
38.327273
131
0.652277
30a54810ed9eb56db883cc95109f0ab931d09a5e
605
py
Python
COS120/testPlanet.py
thejayhaykid/Python
641c33b94762f0cace203dcf4cc121571625ab02
[ "MIT" ]
null
null
null
COS120/testPlanet.py
thejayhaykid/Python
641c33b94762f0cace203dcf4cc121571625ab02
[ "MIT" ]
null
null
null
COS120/testPlanet.py
thejayhaykid/Python
641c33b94762f0cace203dcf4cc121571625ab02
[ "MIT" ]
null
null
null
import planetClass createSomePlanets()
40.333333
91
0.680992
30a588158c50b26b948593296dc5a892bedb5ede
101
py
Python
scripts/fastapi/escuelas.py
HighDeFing/thesis_v4
2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7
[ "Apache-2.0" ]
null
null
null
scripts/fastapi/escuelas.py
HighDeFing/thesis_v4
2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7
[ "Apache-2.0" ]
null
null
null
scripts/fastapi/escuelas.py
HighDeFing/thesis_v4
2dc9288af75a8b51fe54ed66f520e8aa8a0ab3c7
[ "Apache-2.0" ]
null
null
null
import json f = open('Thesis_v3/scripts/fastapi/web/static/data/escuelas.json') data = json.load(f)
20.2
67
0.752475
30a7222ecfe5a24f86695b0a4cf26331038a5731
1,410
py
Python
Source/mincost.py
aarsheem/696-ds
2d74b1e3f430e369202982d7ad8c56f362b00f76
[ "MIT" ]
2
2020-02-12T22:56:40.000Z
2020-02-17T16:59:05.000Z
Source/mincost.py
aarsheem/696-ds
2d74b1e3f430e369202982d7ad8c56f362b00f76
[ "MIT" ]
null
null
null
Source/mincost.py
aarsheem/696-ds
2d74b1e3f430e369202982d7ad8c56f362b00f76
[ "MIT" ]
2
2020-02-12T17:25:33.000Z
2021-02-01T20:29:17.000Z
import numpy as np from systemrl.agents.q_learning import QLearning import matplotlib.pyplot as plt from helper import decaying_epsilon, evaluate_interventions from tqdm import tqdm #This is not converging
32.790698
90
0.595745
30a791a26136890491f10b4931b42e8e670355a5
2,076
py
Python
server/algorithms.py
sebastianfrey/geoio-server
2f127244adda96d54e7a082f8514f9bdc9c8db97
[ "MIT" ]
null
null
null
server/algorithms.py
sebastianfrey/geoio-server
2f127244adda96d54e7a082f8514f9bdc9c8db97
[ "MIT" ]
null
null
null
server/algorithms.py
sebastianfrey/geoio-server
2f127244adda96d54e7a082f8514f9bdc9c8db97
[ "MIT" ]
null
null
null
"""All algorithms used by geoio-server""" import math import functools import geojson def angle(point_1, point_2): """calculates the angle between two points in radians""" return math.atan2(point_2[1] - point_1[1], point_2[0] - point_1[0]) def convex_hull(collection): """Calculates the convex hull of an ...
32.952381
132
0.66474
30a8e19c8a3340ed914debb399aef2df50e28dac
2,495
py
Python
First Project/Exercise2/modified_bisection.py
TasosOperatingInBinary/Numerical-Analysis-Projects
61a8014f2b853a646145cea5a4d3655e100be854
[ "MIT" ]
null
null
null
First Project/Exercise2/modified_bisection.py
TasosOperatingInBinary/Numerical-Analysis-Projects
61a8014f2b853a646145cea5a4d3655e100be854
[ "MIT" ]
null
null
null
First Project/Exercise2/modified_bisection.py
TasosOperatingInBinary/Numerical-Analysis-Projects
61a8014f2b853a646145cea5a4d3655e100be854
[ "MIT" ]
null
null
null
import numpy as np def modified_bisection(f, a, b, eps=5e-6): """ Function that finds a root using modified Bisection method for a given function f(x). On each iteration instead of the middle of the interval, a random number is chosen as the next guess for the root. The function fi...
42.288136
119
0.600401
30a910ea0718b3060e358f1839e61f48a5b25649
8,454
py
Python
dynamic_forms/models.py
juandisay/django-dynamic-forms
761bfea5332fbd4d247a0fa55a19cfc0dd36e3c8
[ "BSD-3-Clause" ]
135
2015-01-16T08:14:23.000Z
2021-12-22T07:21:37.000Z
dynamic_forms/models.py
ayoub-root/django-dynamic-forms
614b9a06f6edfeb3349b7e64cc8820e56535ad59
[ "BSD-3-Clause" ]
33
2015-01-18T13:24:00.000Z
2019-05-03T12:26:17.000Z
dynamic_forms/models.py
ayoub-root/django-dynamic-forms
614b9a06f6edfeb3349b7e64cc8820e56535ad59
[ "BSD-3-Clause" ]
48
2015-01-20T20:04:20.000Z
2022-01-06T10:02:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from collections import OrderedDict from django.core.urlresolvers import reverse from django.db import models from django.db.transaction import atomic from django.template.defaultfilters import slugify from django.utils.crypto import get_rand...
38.427273
88
0.62917
30a9ab75ade2dbd70c38b6cd9c991c10b08234de
1,215
py
Python
banshee/tests/pta-bt-test.py
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
2
2017-02-15T23:36:49.000Z
2018-09-11T09:34:14.000Z
banshee/tests/pta-bt-test.py
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
null
null
null
banshee/tests/pta-bt-test.py
CARV-ICS-FORTH/scoop
9fbd86629a7e1951a392959149bb553fb5611a5f
[ "Apache-2.0" ]
2
2015-10-15T07:41:09.000Z
2019-10-08T12:55:13.000Z
#!/usr/bin/python import sys import os import string #print sys.argv frontend = "../cparser/parser.exe" flags = "-fprint-results" pta_cmd = "%s %s" % (frontend, flags) prefix = "" prefix_size = int(sys.argv[1]) for x in sys.argv[2:(2+prefix_size)]: prefix = " %s %s" % (prefix, x) filelist = "" for x in sys.ar...
27
123
0.652675
30abf6ce8fba41eb376313eba17a397685a314e9
29,178
py
Python
src/pumpwood_djangoviews/views.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/views.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
src/pumpwood_djangoviews/views.py
Murabei-OpenSource-Codes/pumpwood-djangoviews
792fb825a5e924d1b7307c0bc3b40d798b68946d
[ "BSD-3-Clause" ]
null
null
null
"""Create views using Pumpwood pattern.""" import os import pandas as pd import simplejson as json from io import BytesIO from django.conf import settings from django.http import HttpResponse from rest_framework.parsers import JSONParser from rest_framework import viewsets, status from rest_framework.response import Re...
38.955941
79
0.579512
30ac17625116d9c557fcb9f766bc9c4e0e187256
273
py
Python
scripts/scenes/combat/elements/unit_behaviours/heavy.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
12
2022-01-02T11:21:46.000Z
2022-03-12T20:53:40.000Z
scripts/scenes/combat/elements/unit_behaviours/heavy.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
142
2021-07-25T14:05:11.000Z
2022-03-26T21:12:53.000Z
scripts/scenes/combat/elements/unit_behaviours/heavy.py
novialriptide/nqp2
db2c8a2ce298638eb06f84d283ed3f6807c2e131
[ "MIT" ]
9
2021-08-25T00:25:24.000Z
2022-03-12T20:53:41.000Z
from .base import Base
18.2
44
0.611722
30b094be213a7211a4cc02bd180d2df939d842b1
899
py
Python
tests/test_import_conceptnet.py
vishalbelsare/kgtk
7dbcc901a5d52cc9d1af97715e12697e5b460dc7
[ "MIT" ]
222
2020-03-31T17:45:04.000Z
2022-03-30T22:48:08.000Z
tests/test_import_conceptnet.py
vishalbelsare/kgtk
7dbcc901a5d52cc9d1af97715e12697e5b460dc7
[ "MIT" ]
510
2020-04-02T00:32:44.000Z
2022-03-29T01:20:22.000Z
tests/test_import_conceptnet.py
vishalbelsare/kgtk
7dbcc901a5d52cc9d1af97715e12697e5b460dc7
[ "MIT" ]
41
2020-03-31T17:45:07.000Z
2022-03-22T02:49:44.000Z
import shutil import unittest import tempfile import pandas as pd from kgtk.cli_entry import cli_entry from kgtk.exceptions import KGTKException
32.107143
134
0.688543
30b203119c6c5793b1d0fe751409e9c5ee26bbf6
53
py
Python
lib/__init__.py
jesseokeya/linkedin-scraper
6b9d5af5167c8c936db63a855a9885728efbfeb5
[ "MIT" ]
null
null
null
lib/__init__.py
jesseokeya/linkedin-scraper
6b9d5af5167c8c936db63a855a9885728efbfeb5
[ "MIT" ]
1
2020-01-04T19:33:58.000Z
2021-09-07T15:03:03.000Z
lib/__init__.py
jesseokeya/linkedin-scraper
6b9d5af5167c8c936db63a855a9885728efbfeb5
[ "MIT" ]
1
2021-12-02T06:51:46.000Z
2021-12-02T06:51:46.000Z
from .scrape import Scrape from .helper import Helper
26.5
26
0.830189
30b35825288ae55d3b4e9f3fda30cd87266a239e
4,030
py
Python
test_contest/solutions/ladders.py
tbuzzelli/Veris
b2e9bd5f944a60365de8c18f17e041fa65f9e74a
[ "Apache-2.0" ]
7
2018-09-26T17:17:01.000Z
2020-12-20T17:23:33.000Z
test_contest/solutions/ladders.py
tbuzzelli/Veris
b2e9bd5f944a60365de8c18f17e041fa65f9e74a
[ "Apache-2.0" ]
4
2018-09-26T17:49:24.000Z
2020-12-20T17:15:37.000Z
test_contest/solutions/ladders.py
tbuzzelli/Veris
b2e9bd5f944a60365de8c18f17e041fa65f9e74a
[ "Apache-2.0" ]
1
2021-12-03T17:49:50.000Z
2021-12-03T17:49:50.000Z
# Written by Will Cromar # Python 3.6 from collections import deque # DX/DY array. In order of precedence, we'll move # left, right, up, and down DX = [-1, 1, 0, 0] DY = [0, 0, -1, 1] # Constants for types of spaces EMPTY = '.' LADDER = '#' CHUTE = '*' START = 'S' EXIT = 'E' # Primary business fu...
29.416058
77
0.525806
30b3709aef46a9041782b934920c7987f957d49e
1,789
py
Python
fits2fshr.py
rainwoodman/fsfits
e052c159915e7a67f10972c7851d2924afeaa302
[ "MIT" ]
null
null
null
fits2fshr.py
rainwoodman/fsfits
e052c159915e7a67f10972c7851d2924afeaa302
[ "MIT" ]
null
null
null
fits2fshr.py
rainwoodman/fsfits
e052c159915e7a67f10972c7851d2924afeaa302
[ "MIT" ]
null
null
null
import fitsio import fsfits from argparse import ArgumentParser import json import numpy ap = ArgumentParser() ap.add_argument('--check', action='store_true', default=False, help="Test if output contains identical information to input") ap.add_argument('input') ap.add_argument('output') ns = ap.parse_args(...
28.854839
70
0.455562
30b43d3abb832538af7887238ea688d9f984e472
4,086
py
Python
window_switcher/window.py
include4eto/linux-appfinder
23b00d7e18760409e53aad7deb0544d7a4850bc3
[ "MIT" ]
2
2018-04-24T22:05:08.000Z
2018-04-25T09:50:37.000Z
window_switcher/window.py
include4eto/linux-appfinder
23b00d7e18760409e53aad7deb0544d7a4850bc3
[ "MIT" ]
1
2018-04-25T09:26:59.000Z
2018-04-25T09:36:43.000Z
window_switcher/window.py
include4eto/window-switcher
23b00d7e18760409e53aad7deb0544d7a4850bc3
[ "MIT" ]
2
2019-11-07T03:43:53.000Z
2021-03-25T12:14:01.000Z
from tkinter import Entry, Listbox, StringVar import sys, tkinter, subprocess from window_switcher.aux import get_windows
27.986301
98
0.564366
30b47ce03ab25050c96be917e8653691dbb6ff93
5,292
py
Python
app/udp_comm/proto-py/imu_samples_pb2.py
ewfuentes/esp32_stuff
5bf87555e91ffef48316f85f81d3765a6ef4a2c6
[ "Apache-2.0" ]
null
null
null
app/udp_comm/proto-py/imu_samples_pb2.py
ewfuentes/esp32_stuff
5bf87555e91ffef48316f85f81d3765a6ef4a2c6
[ "Apache-2.0" ]
null
null
null
app/udp_comm/proto-py/imu_samples_pb2.py
ewfuentes/esp32_stuff
5bf87555e91ffef48316f85f81d3765a6ef4a2c6
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: imu_samples.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _r...
42
522
0.74263
30b4986ed423fc0d856c04b8b25dc611fff18369
3,394
py
Python
imcsdk/mometa/bios/BiosVfSgxLePubKeyHash.py
ecoen66/imcsdk
b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab
[ "Apache-2.0" ]
31
2016-06-14T07:23:59.000Z
2021-09-12T17:17:26.000Z
imcsdk/mometa/bios/BiosVfSgxLePubKeyHash.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
109
2016-05-25T03:56:56.000Z
2021-10-18T02:58:12.000Z
imcsdk/mometa/bios/BiosVfSgxLePubKeyHash.py
sthagen/imcsdk
1831eaecb5960ca03a8624b1579521749762b932
[ "Apache-2.0" ]
67
2016-05-17T05:53:56.000Z
2022-03-24T15:52:53.000Z
"""This module contains the general information for BiosVfSgxLePubKeyHash ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta
50.656716
235
0.675015
30b5e4e7800e589009301f09b9320ccd7cff9745
256
py
Python
services/helpers.py
jonti09/postgresql-manager
b41dab209b3b655c71c5e0f36699e63ddba1ad06
[ "MIT" ]
null
null
null
services/helpers.py
jonti09/postgresql-manager
b41dab209b3b655c71c5e0f36699e63ddba1ad06
[ "MIT" ]
null
null
null
services/helpers.py
jonti09/postgresql-manager
b41dab209b3b655c71c5e0f36699e63ddba1ad06
[ "MIT" ]
null
null
null
from configparser import ConfigParser import boto3
21.333333
72
0.671875
30babde668ddbdfd3b25264b810e1027b167156a
1,791
py
Python
setup.py
naritotakizawa/getsize
25989cdb07e343c6684586768e60363f366f8c71
[ "MIT" ]
1
2017-08-07T18:15:37.000Z
2017-08-07T18:15:37.000Z
setup.py
naritotakizawa/getsize
25989cdb07e343c6684586768e60363f366f8c71
[ "MIT" ]
null
null
null
setup.py
naritotakizawa/getsize
25989cdb07e343c6684586768e60363f366f8c71
[ "MIT" ]
null
null
null
import os import sys from setuptools import find_packages, setup from setuptools.command.test import test as TestCommand with open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'rb') as readme: README = readme.read() setup( name='getsize', version='0.1', packages=find_packages...
32.563636
82
0.624232
30bb85a4d211b4c8e0c05cca0ae92e39839b9906
1,194
py
Python
dockwidgetpluginbase.py
sandroklippel/qgis-dockable-plugin
9410d20646155d1fe90ec44caa7d15a607d1e72d
[ "MIT" ]
null
null
null
dockwidgetpluginbase.py
sandroklippel/qgis-dockable-plugin
9410d20646155d1fe90ec44caa7d15a607d1e72d
[ "MIT" ]
null
null
null
dockwidgetpluginbase.py
sandroklippel/qgis-dockable-plugin
9410d20646155d1fe90ec44caa7d15a607d1e72d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5 import QtCore, QtGui, QtWidgets
42.642857
98
0.741206
30bc0d5caa2ba95a5a11a4f13508d048a4057cd0
684
py
Python
setup.py
KirstensGitHub/attention-memory-task
c3d4b13e43134d4cc25c277e5f49220ac48ab931
[ "MIT" ]
4
2017-10-30T20:46:25.000Z
2020-10-16T16:28:29.000Z
setup.py
KirstensGitHub/attention-memory-task
c3d4b13e43134d4cc25c277e5f49220ac48ab931
[ "MIT" ]
26
2017-10-30T20:44:07.000Z
2019-10-11T20:07:33.000Z
setup.py
KirstensGitHub/attention-memory-task
c3d4b13e43134d4cc25c277e5f49220ac48ab931
[ "MIT" ]
7
2019-08-21T13:20:41.000Z
2022-03-01T03:25:26.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='attention-memory-task', version='0.1.0', description='Attention and Memory Experiment', long_description='This reposi...
29.73913
170
0.72076
30bc925cd0ed0b7b60bfef9a34e4c38e0b3fa974
3,659
py
Python
blue_print/testLogReg.py
yimingq/COMP90051-SML
3e1d93d9b1a8cd23f4c05eeb18d615e87d4d6369
[ "Apache-2.0" ]
1
2020-09-16T04:58:49.000Z
2020-09-16T04:58:49.000Z
blue_print/testLogReg.py
yimingq/COMP90051-SML
3e1d93d9b1a8cd23f4c05eeb18d615e87d4d6369
[ "Apache-2.0" ]
null
null
null
blue_print/testLogReg.py
yimingq/COMP90051-SML
3e1d93d9b1a8cd23f4c05eeb18d615e87d4d6369
[ "Apache-2.0" ]
2
2020-03-31T08:55:45.000Z
2020-09-05T14:02:16.000Z
from numpy import * import matplotlib.pyplot as plt import time from LogReg import trainLogRegres, showLogRegres, predicTestData # from sklearn.datasets import make_circles # from sklearn.model_selection import train_test_split # from sklearn.metrics import accuracy_score import csv # # ## step 1: load data pri...
28.364341
81
0.608363
30bcbf7ce957c6c88d400b8fdc56ff1017f41f6b
1,303
py
Python
Pyautogui_tutorial/mousecontrolscipt.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
Pyautogui_tutorial/mousecontrolscipt.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
Pyautogui_tutorial/mousecontrolscipt.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
import pyautogui as pg # 2100100 pg.FAILSAFE = False # pg.moveTo(x=100, y=100, duration=2) pg.click() #, #pg.click(x=None, y=None, clicks=1, interval=0.0, button='left', duration=0.0, tween=pg.linear) ''' Exception has occurred: FailSafeException PyAutoGUI fail-safe triggered from mouse moving to a...
25.54902
175
0.720645
30bdbe577a5d9d1dbc9a092c3e7fa1f6b9c7256d
9,683
py
Python
Backup/moduleA.py
ejekt/rigging-system
dedf09cc832f56b310587b818deadfd4f8ca7b3b
[ "MIT" ]
3
2019-12-12T03:46:41.000Z
2021-01-16T06:29:45.000Z
Backup/moduleA.py
ejekt/rigging-system
dedf09cc832f56b310587b818deadfd4f8ca7b3b
[ "MIT" ]
null
null
null
Backup/moduleA.py
ejekt/rigging-system
dedf09cc832f56b310587b818deadfd4f8ca7b3b
[ "MIT" ]
null
null
null
import os import naming as n reload(n) import maya.cmds as mc import System.utils as utils reload(utils) CLASS_NAME = 'ModuleA' TITLE = 'Module A' DESCRIPTION = 'Test desc for module A' ICON = os.environ['RIGGING_TOOL_ROOT'] + '/Icons/_hand.xpm' #cNamer = n.Name(type='blueprint', mod=CLASS_NAME)
41.380342
129
0.741402
30bf63f85cca01c1bcc1223cd6e0ff4f4c12199f
7,652
py
Python
tests/exporter/test_metadata.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
tests/exporter/test_metadata.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
tests/exporter/test_metadata.py
HumanCellAtlas/ingest-common
6a230f9606f64cd787b67c143854db36e012a2b7
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from mock import Mock from ingest.exporter.metadata import MetadataResource, MetadataService, MetadataParseException, MetadataProvenance
42.748603
119
0.604809
30bfa3735b16a51315054b5acedc817b34e86510
919
py
Python
models.py
tensorway/Neural-cellular-automata-and-Bitcoin
79d19dc036217f93d6845be9ea96c6cc25b23b92
[ "MIT" ]
null
null
null
models.py
tensorway/Neural-cellular-automata-and-Bitcoin
79d19dc036217f93d6845be9ea96c6cc25b23b92
[ "MIT" ]
null
null
null
models.py
tensorway/Neural-cellular-automata-and-Bitcoin
79d19dc036217f93d6845be9ea96c6cc25b23b92
[ "MIT" ]
null
null
null
import torch as th import torch.nn as nn import torch.nn.functional as F import torchvision as tv import matplotlib.pyplot as plt import cv2 from torch.utils.tensorboard import SummaryWriter import time from collections import deque import random import copy from utils import xsobel, ysobel
34.037037
99
0.660501
30c056f49843fec67503aa5c21f43521e60897d9
5,708
py
Python
src/delivery/delivery.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
src/delivery/delivery.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
src/delivery/delivery.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
""" Prototype Delivery Workflow. """ import os import sys import glob import logging import ska_sdp_config import dask import distributed from google.oauth2 import service_account from google.cloud import storage # Initialise logging logging.basicConfig() LOG = logging.getLogger("delivery") LOG.setLevel(logging.INF...
30.201058
86
0.666608
30c1376c3fde4348e43ee2ba12a8534b910f98c1
1,527
py
Python
dragon/usystem.py
NicEastvillage/RLBot-DropShot-Dragon-Python
b0d94fd054ab410ad02880a3d56e72b5eddd7ba6
[ "MIT" ]
1
2019-08-07T21:38:59.000Z
2019-08-07T21:38:59.000Z
dragon/usystem.py
NicEastvillage/RLBot-DropShot-Dragon-Python
b0d94fd054ab410ad02880a3d56e72b5eddd7ba6
[ "MIT" ]
null
null
null
dragon/usystem.py
NicEastvillage/RLBot-DropShot-Dragon-Python
b0d94fd054ab410ad02880a3d56e72b5eddd7ba6
[ "MIT" ]
null
null
null
from RLUtilities.LinearAlgebra import vec3 from RLUtilities.Maneuvers import Drive
29.365385
92
0.611002
30c246c819da13e7b7505537f7f56ed38dc95334
7,516
py
Python
ands/ds/BinaryHeap.py
bssrdf/ands
504d91abfe12d316119424ddcb0ad3df3207ee73
[ "MIT" ]
50
2016-12-14T15:10:39.000Z
2022-03-05T23:32:19.000Z
ands/ds/BinaryHeap.py
bssrdf/ands
504d91abfe12d316119424ddcb0ad3df3207ee73
[ "MIT" ]
58
2016-11-17T23:27:52.000Z
2020-12-30T13:55:46.000Z
ands/ds/BinaryHeap.py
bssrdf/ands
504d91abfe12d316119424ddcb0ad3df3207ee73
[ "MIT" ]
15
2016-12-11T12:43:18.000Z
2020-12-17T12:44:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ # Meta-info Author: Nelson Brochado Created: 01/07/2015 Updated: 06/04/2018 # Description Contains the abstract class BinaryHeap. # References - Slides by prof. A. Carzaniga - Chapter 13 of Introduction to Algorithms (3rd ed.) - http://www.math.clemson.edu/~war...
29.245136
112
0.608302
30c249456403ba1e6baa94afda95313e18e736de
106
py
Python
textProcessing/urls.py
nvakhilnair/Text-Pre-processing-for-Sentiment-Analysis
646b79258af745ea0cdb623b9763de714717259d
[ "MIT" ]
null
null
null
textProcessing/urls.py
nvakhilnair/Text-Pre-processing-for-Sentiment-Analysis
646b79258af745ea0cdb623b9763de714717259d
[ "MIT" ]
null
null
null
textProcessing/urls.py
nvakhilnair/Text-Pre-processing-for-Sentiment-Analysis
646b79258af745ea0cdb623b9763de714717259d
[ "MIT" ]
null
null
null
from .views import API from django.urls import path urlpatterns = [ path('', API.as_view()), ]
11.777778
28
0.632075
30c2fc61b7992bd51c445c7ef21cc3452bd93e85
2,190
py
Python
product.py
trytonus/trytond-customs-value
ce2097fefab714131fae77ec1f49322141051110
[ "BSD-3-Clause" ]
null
null
null
product.py
trytonus/trytond-customs-value
ce2097fefab714131fae77ec1f49322141051110
[ "BSD-3-Clause" ]
1
2016-04-12T18:10:19.000Z
2016-04-12T18:10:19.000Z
product.py
fulfilio/trytond-customs-value
ce2097fefab714131fae77ec1f49322141051110
[ "BSD-3-Clause" ]
6
2015-08-24T12:44:43.000Z
2016-04-12T10:04:08.000Z
# -*- coding: utf-8 -*- from trytond.pool import PoolMeta from trytond.model import fields from trytond.pyson import Eval, Bool, Not __all__ = ['Product'] __metaclass__ = PoolMeta
27.375
77
0.636986
30c67023520b45683449e683c5e3f1a8e0df06b5
523
py
Python
samples/indicator/rsi_test.py
gsamarakoon/ParadoxTrading
2c4024e60b14bf630fd141ccd4c77f197b7c901a
[ "MIT" ]
95
2018-01-14T14:35:35.000Z
2021-03-17T02:10:24.000Z
samples/indicator/rsi_test.py
yutiansut/ParadoxTrading
b915d1491663443bedbb048017abeed3f7dcd4e2
[ "MIT" ]
2
2018-01-14T14:35:51.000Z
2018-07-06T02:57:49.000Z
samples/indicator/rsi_test.py
yutiansut/ParadoxTrading
b915d1491663443bedbb048017abeed3f7dcd4e2
[ "MIT" ]
25
2018-01-14T14:38:08.000Z
2020-07-15T16:03:04.000Z
from ParadoxTrading.Chart import Wizard from ParadoxTrading.Fetch.ChineseFutures import FetchDominantIndex from ParadoxTrading.Indicator import RSI fetcher = FetchDominantIndex() market = fetcher.fetchDayData('20100701', '20170101', 'rb') rsi = RSI(14).addMany(market).getAllData() wizard = Wizard() price_view = wiz...
27.526316
66
0.76673