hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
03f80a7e89b2791f74bb0ac36a74635427878ba4
4,519
py
Python
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/walreceiver/test_pg_stat_replication.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/walreceiver/test_pg_stat_replication.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/walreceiver/test_pg_stat_replication.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
""" Copyright (c) 2004-Present Pivotal Software, Inc. This program and the accompanying materials are made available under the terms of the 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....
38.29661
88
0.605886
03f83214643c044b4a936f8d16d01e60b01e5f6f
10,927
py
Python
openpype/tools/tray_app/app.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
1
2020-09-21T14:55:33.000Z
2020-09-21T14:55:33.000Z
openpype/tools/tray_app/app.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
null
null
null
openpype/tools/tray_app/app.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
null
null
null
import os import sys import re import collections import queue import websocket import json import itertools from datetime import datetime from avalon import style from openpype_modules.webserver import host_console_listener from Qt import QtWidgets, QtCore class ConsoleTrayApp: """ Application showing cons...
32.912651
79
0.582594
03f83398f1638b6abdf234e9d8c1cd20a624d80f
4,929
py
Python
src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/commands.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/commands.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-rdbms/azure/cli/command_modules/rdbms/commands.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
48.323529
110
0.619193
03f855cc738cec3ad641fed49dd1a79e29b58e3e
5,279
py
Python
prepare_Fudan.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
1
2019-11-28T10:03:09.000Z
2019-11-28T10:03:09.000Z
prepare_Fudan.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
prepare_Fudan.py
stevaras2/bert
1efaa300eb91dea85c40de5e1586e8d2c94b89bb
[ "Apache-2.0" ]
null
null
null
from xml.etree import ElementTree import os from nltk import sent_tokenize,word_tokenize import re import pandas as pd def get_text_per_section(train_papers): xml_files = os.listdir(train_papers) dict_of_sections = dict() for f in xml_files: print(f) file = ElementTree.parse(train_papers+"/...
35.42953
145
0.621709
03f85d892cf3143eca1e68e3d7888117daa64c0b
1,520
py
Python
usecases/extasy_gromacs_lsdmap_adaptive/misc_files/spliter.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
1
2015-09-11T02:55:29.000Z
2015-09-11T02:55:29.000Z
usecases/extasy_gromacs_lsdmap_adaptive/misc_files/spliter.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
119
2015-01-05T11:51:10.000Z
2016-09-22T13:59:12.000Z
usecases/extasy_gromacs_lsdmap_adaptive/misc_files/spliter.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
1
2018-12-29T07:20:17.000Z
2018-12-29T07:20:17.000Z
__author__ = 'vivek' ''' Purpose : This file is used to split the large input coordinate file into smaller coordinate files that can are executed on by each compute unit. It uses the gro.py file to get the specifics of the system in question. Arguments : num_tasks = number of compute units ...
31.020408
94
0.611842
03f875fb473a24481f5c739a258d72747d7d10f8
1,804
py
Python
indra_world/service/db/schema.py
kkaris/indra_wm_service
d449e5a251428905290433270fd180279a7ae3f7
[ "BSD-2-Clause" ]
null
null
null
indra_world/service/db/schema.py
kkaris/indra_wm_service
d449e5a251428905290433270fd180279a7ae3f7
[ "BSD-2-Clause" ]
null
null
null
indra_world/service/db/schema.py
kkaris/indra_wm_service
d449e5a251428905290433270fd180279a7ae3f7
[ "BSD-2-Clause" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, String, Integer, JSON, UniqueConstraint Base = declarative_base() class Projects(Base): __tablename__ = 'projects' id = Column(String, primary_key=True) name = Column(String) ontology_id = Column(Integer) class P...
26.925373
70
0.683481
03f8950f6a4cc4af729d5801fb46bf656a01afcb
4,360
py
Python
crypko/blockchain.py
3wayHimself/crypko.py
8c05a2ceeb53bbbd27617ca7a909f861df279a68
[ "MIT" ]
null
null
null
crypko/blockchain.py
3wayHimself/crypko.py
8c05a2ceeb53bbbd27617ca7a909f861df279a68
[ "MIT" ]
null
null
null
crypko/blockchain.py
3wayHimself/crypko.py
8c05a2ceeb53bbbd27617ca7a909f861df279a68
[ "MIT" ]
2
2018-10-29T00:55:44.000Z
2019-04-06T07:18:43.000Z
# Copyright (c) 2018 Bottersnike # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distrib...
36.333333
105
0.667202
03f8a7ea8498353ee813236903c3c41940b052b5
14,084
py
Python
Chinese-XLNet/src/model_utils.py
DCMMC/chineseocr
0b8772615239ea7f212b1ab5bc75183e7e9f16b0
[ "MIT" ]
null
null
null
Chinese-XLNet/src/model_utils.py
DCMMC/chineseocr
0b8772615239ea7f212b1ab5bc75183e7e9f16b0
[ "MIT" ]
null
null
null
Chinese-XLNet/src/model_utils.py
DCMMC/chineseocr
0b8772615239ea7f212b1ab5bc75183e7e9f16b0
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import os import re import numpy as np import six from os.path import join from six.moves import zip from absl import flags import tensorflow as tf def configure_tpu(FLAGS): if FLAGS.us...
35.21
82
0.682761
03f8bfc71d74467a9a8bcc2be04dd493bcb24c0a
2,377
py
Python
scattertext/characteristic/DenseRankCharacteristicness.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
2
2019-03-08T23:02:25.000Z
2019-12-27T14:18:53.000Z
scattertext/characteristic/DenseRankCharacteristicness.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
null
null
null
scattertext/characteristic/DenseRankCharacteristicness.py
tigerneil/scattertext
23351895ada347fae300bf910c2c77f47ac58a35
[ "Apache-2.0" ]
1
2020-01-08T00:25:31.000Z
2020-01-08T00:25:31.000Z
import pandas as pd from scipy.stats import rankdata from scattertext.Scalers import scale from scattertext.frequencyreaders.DefaultBackgroundFrequencies import DefaultBackgroundFrequencies from scattertext.termranking import AbsoluteFrequencyRanker from scattertext.termscoring.RankDifference import RankDifference c...
31.693333
98
0.732857
03f8ccce3ecf35b88bf241958bca977a39da0829
2,743
py
Python
tests/_geom/test_path_bezier_3d_continual.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_geom/test_path_bezier_3d_continual.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_geom/test_path_bezier_3d_continual.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
import re from random import randint from typing import Match from typing import Optional from retrying import retry import apysc as ap from apysc._expression import var_names from tests.testing_helper import assert_attrs class TestPathBezier3DContinual: @retry(stop_max_attempt_number=15, wait_fi...
38.633803
78
0.582574
03f8e6d27ba026e2b71734903a8ea3c01b13db9a
2,121
py
Python
tests/test_auth.py
stryng/python-cloudservers
a12d8b424d295b17497cd7b86c506d799b9b2e41
[ "BSD-3-Clause" ]
1
2021-04-08T10:13:32.000Z
2021-04-08T10:13:32.000Z
tests/test_auth.py
stryng/python-cloudservers
a12d8b424d295b17497cd7b86c506d799b9b2e41
[ "BSD-3-Clause" ]
null
null
null
tests/test_auth.py
stryng/python-cloudservers
a12d8b424d295b17497cd7b86c506d799b9b2e41
[ "BSD-3-Clause" ]
null
null
null
import mock import cloudservers import httplib2 from nose.tools import assert_raises, assert_equal def test_authenticate_success(): cs = cloudservers.CloudServers("username", "apikey") auth_response = httplib2.Response({ 'status': 204, 'x-server-management-url': 'https://servers.api.rackspacecl...
34.209677
88
0.662423
03f8ee59e6b00345bfd9531438ad6a28693ca3e5
2,827
py
Python
chapter_2_collection/change_volume.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_2_collection/change_volume.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_2_collection/change_volume.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
35.3375
121
0.604528
03f8f6f5f63d90599df2d700df648b6da1c8d495
1,292
py
Python
src/api/operation.py
BluCodeGH/Amulet-Map-Editor
7d1d2243fc29095b3cffe8aa4979235444ba6738
[ "MIT" ]
1
2020-08-26T22:42:16.000Z
2020-08-26T22:42:16.000Z
src/api/operation.py
BluCodeGH/Amulet-Map-Editor
7d1d2243fc29095b3cffe8aa4979235444ba6738
[ "MIT" ]
null
null
null
src/api/operation.py
BluCodeGH/Amulet-Map-Editor
7d1d2243fc29095b3cffe8aa4979235444ba6738
[ "MIT" ]
null
null
null
from __future__ import annotations from abc import abstractmethod import glob from importlib import import_module from os.path import basename, join import sys from api.paths import OPERATIONS_DIR _imported_operations = False OPERATIONS = {} class Operation: @abstractmethod def run_operation(self, world): ...
21.180328
105
0.708204
03f918ae18854accf373960ea9921291864f0c0f
2,239
py
Python
src/flamingo_api_server/reinsurance_modules/utils/conf.py
OasisLMF/OasisUI_SQL
efd0ff4ed19a54c8a819cf92188494795e4d2bd6
[ "BSD-3-Clause" ]
null
null
null
src/flamingo_api_server/reinsurance_modules/utils/conf.py
OasisLMF/OasisUI_SQL
efd0ff4ed19a54c8a819cf92188494795e4d2bd6
[ "BSD-3-Clause" ]
null
null
null
src/flamingo_api_server/reinsurance_modules/utils/conf.py
OasisLMF/OasisUI_SQL
efd0ff4ed19a54c8a819cf92188494795e4d2bd6
[ "BSD-3-Clause" ]
null
null
null
""" Utilities for running system or file-related commands, and other OS-related utilities. """ import io import socket from .exceptions import OasisException __all__ = [ 'load_ini_file', 'replace_in_file', ] def load_ini_file(ini_file_path): """ Reads an INI file and returns it as a dictionary. ...
30.671233
142
0.558285
03f91ab954facb705dc15c7f7d7c642a93e37e43
5,581
py
Python
docs/conf.py
sammchardy/python-allcoin
320460f887e4f69aa7d7faf44ad80f289028f058
[ "MIT" ]
3
2018-07-04T14:10:00.000Z
2021-12-28T00:15:41.000Z
docs/conf.py
sammchardy/python-allcoin
320460f887e4f69aa7d7faf44ad80f289028f058
[ "MIT" ]
4
2018-04-23T13:09:26.000Z
2019-10-22T17:51:27.000Z
docs/conf.py
sammchardy/python-allcoin
320460f887e4f69aa7d7faf44ad80f289028f058
[ "MIT" ]
4
2018-06-27T11:22:39.000Z
2021-09-05T21:10:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # python-allcoin documentation build configuration file, created by # sphinx-quickstart on Thu Sep 21 20:24:54 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in th...
30.005376
79
0.67909
03f91df31492d9526888c71d389efccfadcd0d6c
739
py
Python
e2e/scripts/bar_chart.py
deepchatterjeevns/streamlit
631d42877bd16bdec14ee124c936917b430f6ce4
[ "Apache-2.0" ]
4
2019-11-10T13:50:56.000Z
2020-01-07T21:02:29.000Z
e2e/scripts/bar_chart.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
4
2021-05-09T11:42:18.000Z
2022-02-27T10:59:36.000Z
e2e/scripts/bar_chart.py
IliaLarchenko/streamlit
9cdf4851148a43e4e0431d7633c5a5d729e5b1e3
[ "Apache-2.0" ]
1
2019-11-26T09:37:57.000Z
2019-11-26T09:37:57.000Z
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit 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 applicabl...
33.590909
74
0.730717
03f9924c3bd475a197e09e0d651a42086dcd8479
7,853
py
Python
recommender_app/data_and_models/data/mice_imputer.py
fra-mari/Two_Movie_Recommenders
da046e06e3ee27699f51b8870c4433f984680c69
[ "MIT" ]
null
null
null
recommender_app/data_and_models/data/mice_imputer.py
fra-mari/Two_Movie_Recommenders
da046e06e3ee27699f51b8870c4433f984680c69
[ "MIT" ]
null
null
null
recommender_app/data_and_models/data/mice_imputer.py
fra-mari/Two_Movie_Recommenders
da046e06e3ee27699f51b8870c4433f984680c69
[ "MIT" ]
null
null
null
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" This module performs the data preparation on the MovieLens dataset for the Movie Recommendation engines to work. Missing data in the rating table are filled up using MICE (Multivariate Imputation by Chained Equations) an imputation method feat...
43.627778
339
0.688145
03f9b0e7905d589b131b6894709ffed21bc0fdbe
1,401
py
Python
test.py
evuez/mutations
7601459378a0b6eb4bc8b9900deb89f9d1888c96
[ "MIT" ]
null
null
null
test.py
evuez/mutations
7601459378a0b6eb4bc8b9900deb89f9d1888c96
[ "MIT" ]
null
null
null
test.py
evuez/mutations
7601459378a0b6eb4bc8b9900deb89f9d1888c96
[ "MIT" ]
null
null
null
import logging from argparse import ArgumentParser from random import random from pyglet import app from pyglet.window import Window from pyglet.clock import schedule_interval from pyglet.gl import glClearColor from render import SimView from render import GraphView from mutations import Map from mutations import Bod...
21.890625
73
0.743754
03f9bfe6b1afbb8b0a0fb586efbcc2bdbf43dab7
1,396
py
Python
structured_light/blender-projects/monkey/monkey-no-reflection/get-depth-exr.py
olaals/prosjektoppgave
048c5c01cf428846c76b1c27abd4c0f451056e03
[ "MIT" ]
null
null
null
structured_light/blender-projects/monkey/monkey-no-reflection/get-depth-exr.py
olaals/prosjektoppgave
048c5c01cf428846c76b1c27abd4c0f451056e03
[ "MIT" ]
null
null
null
structured_light/blender-projects/monkey/monkey-no-reflection/get-depth-exr.py
olaals/prosjektoppgave
048c5c01cf428846c76b1c27abd4c0f451056e03
[ "MIT" ]
null
null
null
import bpy import os import sys import numpy as np from mathutils import * import time def get_argument(arg): args = sys.argv for i in range(len(args)): if args[i] == arg: return args[i+1] print("Could not find argument for ", arg) return None def render_exr(filename, output_dir, ...
29.083333
68
0.694842
03f9d6d13e1325a0dd50059fde5ef78e80f21209
716
py
Python
python/dynamic_programming/0120_triangle.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/dynamic_programming/0120_triangle.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/dynamic_programming/0120_triangle.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def minimumTotal(self, triangle): """ :type triangle: List[List[int]] :rtype: int """ dp = [triangle[0][0]] for row in triangle[1:]: ndp = [] for i in range(len(row)): if i == 0: ndp.a...
24.689655
62
0.388268
03f9e56f2cc945eb6f938c8ddc613b7e4e2dd41d
3,679
py
Python
raspi-4/raspiComms.py
EasternEdgeRobotics/2019
19f833262e7bdd026fffc0ac894327369d6bb66f
[ "MIT" ]
1
2020-07-24T20:40:49.000Z
2020-07-24T20:40:49.000Z
raspi-4/raspiComms.py
EasternEdgeRobotics/2019
19f833262e7bdd026fffc0ac894327369d6bb66f
[ "MIT" ]
9
2019-08-23T01:39:53.000Z
2019-08-23T01:42:48.000Z
raspi-4/raspiComms.py
EasternEdgeRobotics/2019
19f833262e7bdd026fffc0ac894327369d6bb66f
[ "MIT" ]
null
null
null
"""Communicate from server to client side.""" import socket import sys import threading import queue from RaspiGlobals import GLOBALS send = queue.Queue() threadData = {"leftmotor": "None", "rightmotor": "None", "pebbles": "None", "led": "None", "sensors": "None"} threads = [] stop_events = [] # Change IP addresses f...
32.27193
109
0.577874
03f9e89410c39aa24c708a587519013141620b35
2,944
py
Python
docs/conf.py
nthparty/oblivious
46f447b957931e98b8bb38c563dd6897e494a33e
[ "MIT" ]
18
2020-06-07T16:48:50.000Z
2022-03-07T08:03:32.000Z
docs/conf.py
nthparty/oblivious
46f447b957931e98b8bb38c563dd6897e494a33e
[ "MIT" ]
2
2020-11-15T17:14:37.000Z
2021-09-10T03:10:11.000Z
docs/conf.py
nthparty/oblivious
46f447b957931e98b8bb38c563dd6897e494a33e
[ "MIT" ]
3
2021-03-21T03:55:48.000Z
2022-02-08T08:08:31.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
31.319149
79
0.641984
03fa298b7ad91850feb3603a0d09e4d69c6f4462
2,108
py
Python
cogs/owner.py
SuperYellowSystem/FactorioQuizzBot
55dfea657c64dd9d92bfa9657de66159cc7e79e9
[ "MIT" ]
1
2018-04-08T16:47:02.000Z
2018-04-08T16:47:02.000Z
cogs/owner.py
SuperYellowSystem/FactorioQuizBot
55dfea657c64dd9d92bfa9657de66159cc7e79e9
[ "MIT" ]
null
null
null
cogs/owner.py
SuperYellowSystem/FactorioQuizBot
55dfea657c64dd9d92bfa9657de66159cc7e79e9
[ "MIT" ]
null
null
null
# NB: Based on the work of Rapptz on RoboDanny # src: https://github.com/Rapptz/RoboDanny/blob/rewrite/cogs/admin.py # ====================================================================== # imports # ====================================================================== from discord.ext import commands as cmds import...
33.460317
72
0.52277
03fa442b5009021082837ab9508a4f8f15319a90
1,595
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/agent/keystone.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/agent/keystone.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/agent/keystone.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
from oslo.config import cfg from daoliproxy.utils import is_ans1_token from daoliproxy.utils import get_keystone_client CONF = cfg.CONF CACHE_ATTR = {} def keystoneclient(request, admin=False, timeout=5): """Returns a client connected to the Keystone backend.""" if not CACHE_ATTR.has_key(request['id']): ...
38.902439
76
0.64953
03fa7fa023f20a7dea28a2bc56180fa36f46e41a
18,543
py
Python
02_HybridModelling/01_Old_versions/bsplines.py
ratnania/mhd
89f383695075aa26fc805ffbf6ba458f0cdd6f4e
[ "MIT" ]
5
2018-04-13T15:35:21.000Z
2019-10-29T09:39:13.000Z
02_HybridModelling/01_Old_versions/bsplines.py
ratnania/mhd
89f383695075aa26fc805ffbf6ba458f0cdd6f4e
[ "MIT" ]
null
null
null
02_HybridModelling/01_Old_versions/bsplines.py
ratnania/mhd
89f383695075aa26fc805ffbf6ba458f0cdd6f4e
[ "MIT" ]
1
2018-10-19T10:53:15.000Z
2018-10-19T10:53:15.000Z
# coding: utf-8 # # Copyright 2018 Yaman Güçlü """ Basic module that provides the means for evaluating the B-Splines basis functions and their derivatives. In order to simplify automatic Fortran code generation with Pyccel, no object-oriented features are employed. References ---------- [1] L. Piegl and W. Tiller. Th...
28.704334
97
0.547862
03fa920b5abeb45ce8ee64dcd2d02efc6d7734ef
8,238
py
Python
venv/lib/python3.6/site-packages/arxiv/arxiv.py
masora1030/eigoyurusan
fa82044a2dc2f0f1f7454f5394e6d68fa923c289
[ "MIT" ]
9
2020-07-16T08:14:24.000Z
2021-02-12T04:16:36.000Z
arxiv/arxiv.py
dmantadakis/arxiv.py
bdafebec0b6f3ec6d09dbdf27beb5d84fce2c150
[ "MIT" ]
3
2020-07-22T15:21:04.000Z
2021-11-23T23:21:30.000Z
arxiv/arxiv.py
dmantadakis/arxiv.py
bdafebec0b6f3ec6d09dbdf27beb5d84fce2c150
[ "MIT" ]
2
2020-07-22T21:51:26.000Z
2021-05-09T20:36:56.000Z
from __future__ import print_function import logging import time import re import feedparser try: # Python 2 from urllib import urlencode from urllib import urlretrieve except ImportError: # Python 3 from urllib.parse import urlencode from urllib.request import urlretrieve logger = logging.get...
32.433071
132
0.582059
03fa9f16c62e92f3f264fac2977047115269ebb1
68,169
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_02_01/aio/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_02_01/aio/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_02_01/aio/operations/_managed_clusters_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
45.597993
655
0.671376
03facc55336742c8e25413f310e0431b2a9425b1
8,873
py
Python
mlrun/runtimes/serving.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
mlrun/runtimes/serving.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
null
null
null
mlrun/runtimes/serving.py
EdmondIguazio/mlrun
e63b34a610788ebe522ce7a46642e26927e39882
[ "Apache-2.0" ]
1
2021-05-05T14:19:46.000Z
2021-05-05T14:19:46.000Z
# Copyright 2018 Iguazio # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
33.737643
109
0.62786
03fad1c53e729d66be460455f7e84bd81c9614f5
46
py
Python
shingles/__init__.py
lambdaofgod/text-shingles
12195c03221916af3d6820573fc304febcc5c13b
[ "MIT" ]
null
null
null
shingles/__init__.py
lambdaofgod/text-shingles
12195c03221916af3d6820573fc304febcc5c13b
[ "MIT" ]
null
null
null
shingles/__init__.py
lambdaofgod/text-shingles
12195c03221916af3d6820573fc304febcc5c13b
[ "MIT" ]
1
2021-01-08T11:44:03.000Z
2021-01-08T11:44:03.000Z
from shingles.shingles import text_similarity
23
45
0.891304
03fad9bf6ffa4414c85daac380d1d232b7a7ec33
5,126
py
Python
buttonwood/MarketObjects/Market.py
AgalmicVentures/Buttonwood
f86098cd6d97b4767cbd3428e667b307255ba571
[ "MIT" ]
2
2020-01-04T05:28:20.000Z
2021-07-21T21:19:43.000Z
buttonwood/MarketObjects/Market.py
AgalmicVentures/Buttonwood
f86098cd6d97b4767cbd3428e667b307255ba571
[ "MIT" ]
45
2019-07-04T15:13:34.000Z
2020-06-30T19:41:45.000Z
buttonwood/MarketObjects/Market.py
AgalmicVentures/Buttonwood
f86098cd6d97b4767cbd3428e667b307255ba571
[ "MIT" ]
3
2020-04-18T16:49:14.000Z
2021-07-21T21:19:52.000Z
""" This file is part of Buttonwood. Buttonwood is a python software package created to help quickly create, (re)build, or analyze markets, market structures, and market participants. MIT License Copyright (c) 2016-2020 Peter F. Nabicht Permission is hereby granted, free of charge, to any person obtaining a copy of...
34.870748
116
0.687671
03faf01ad841bb31f2473c648505ad030da57c6f
921
py
Python
tests/mutables/test_duplicate_mutables.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
1
2022-01-17T00:34:14.000Z
2022-01-17T00:34:14.000Z
tests/mutables/test_duplicate_mutables.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
tests/mutables/test_duplicate_mutables.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from hyperbox.mutables.spaces import OperationSpace from hyperbox.networks.base_nas_network import BaseNASNetwork from hyperbox.mutator import RandomMutator class ToyDuplicateNet(BaseNASNetwork): def __init__(self): super().__init__() self.op1 = OperationSpace(c...
26.314286
81
0.627579
03faf3e2d2c4547b687f91b9294f66271c1ad209
1,305
py
Python
07_q-table_nondeterministic_v1.py
subinlab/rl-seoul-study-2019
811be68dba5b3d6b0a194603d0edf37e74788be7
[ "MIT" ]
2
2020-09-22T09:36:44.000Z
2020-09-23T06:00:07.000Z
07_q-table_nondeterministic_v1.py
rl-seoul-study-2019/q-learning-tutorial-pytorch
b10728977fd842659b8b79a089a3ebcb48844c66
[ "MIT" ]
null
null
null
07_q-table_nondeterministic_v1.py
rl-seoul-study-2019/q-learning-tutorial-pytorch
b10728977fd842659b8b79a089a3ebcb48844c66
[ "MIT" ]
2
2019-01-12T02:18:12.000Z
2019-01-16T07:41:38.000Z
import gym import numpy as np import matplotlib.pyplot as plt env = gym.make('FrozenLake-v0') env.render() # Show the initial board # Initialize table with all zeros Q = np.zeros([env.observation_space.n, env.action_space.n]) # Set learning parameters learning_rate = .85 dis = .99 # Discount factor num_episodes = ...
28.369565
121
0.67433
03faf5d0a9c9c5421f71387d2af681ea82338e76
21,130
py
Python
discord/embeds.py
CuzImSyntax/dis.py
2f56d546f2594e1dbb6955c8b13b3a884a04eca6
[ "MIT" ]
1
2021-09-11T13:39:44.000Z
2021-09-11T13:39:44.000Z
discord/embeds.py
CuzImSyntax/discordIO
47cd508ed48004aa61a41a5b196d3ff003456219
[ "MIT" ]
null
null
null
discord/embeds.py
CuzImSyntax/discordIO
47cd508ed48004aa61a41a5b196d3ff003456219
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz 2021-present CuzImSyntax Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
29.024725
125
0.573829
03faf9001020c83f52475152cd40ed6ee1deeac6
2,963
py
Python
sharpy/solvers/nonlineardynamic.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
sharpy/solvers/nonlineardynamic.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
sharpy/solvers/nonlineardynamic.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
""" @modified Alfonso del Carre """ import ctypes as ct import numpy as np import sharpy.structure.utils.xbeamlib as xbeamlib from sharpy.utils.settings import str2bool from sharpy.utils.solver_interface import solver, BaseSolver, solver_from_string import sharpy.utils.settings as settings import sharpy.utils.cout_...
36.580247
140
0.711441
03fafcc55b6281434227e3e7180f4de03d711822
288
py
Python
src/rhub/api/lab/tower.py
sai-c/rhub-api
a985f028c8641ae5ebe7cd973d10bd25720eb720
[ "MIT" ]
null
null
null
src/rhub/api/lab/tower.py
sai-c/rhub-api
a985f028c8641ae5ebe7cd973d10bd25720eb720
[ "MIT" ]
null
null
null
src/rhub/api/lab/tower.py
sai-c/rhub-api
a985f028c8641ae5ebe7cd973d10bd25720eb720
[ "MIT" ]
null
null
null
def list_towers(): raise NotImplementedError def create_tower(body): raise NotImplementedError def get_tower(tower_id): raise NotImplementedError def update_tower(tower_id, body): raise NotImplementedError def delete_tower(tower_id): raise NotImplementedError
15.157895
33
0.774306
03fb01b812f1e28b7346dbdd5835beb479d6e1a0
5,094
py
Python
exp2/exp2_0e.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
exp2/exp2_0e.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
5
2017-05-22T20:32:07.000Z
2017-06-02T21:06:23.000Z
exp2/exp2_0e.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import h5py import time import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import sys # Functions for initializing neural nets parameters def init_weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1, dtype=tf.float32) return tf.Varia...
34.418919
107
0.725756
03fb0f12cf3a2fdfd01e22a425c9d9518c1c1b23
26,020
py
Python
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_rules_engines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_rules_engines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/_rules_engines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.569177
220
0.675288
03fb13f4e1f560f10264ad84bafcd1c9c759c5fb
22,452
py
Python
mttransformer/prepro_std.py
sicilyg/ganbert-test
5bb14573a2330573ea9c932827ec1b462842a530
[ "Apache-2.0" ]
2
2021-11-02T22:27:33.000Z
2022-03-27T07:54:35.000Z
mttransformer/prepro_std.py
sicilyg/ganbert-test
5bb14573a2330573ea9c932827ec1b462842a530
[ "Apache-2.0" ]
null
null
null
mttransformer/prepro_std.py
sicilyg/ganbert-test
5bb14573a2330573ea9c932827ec1b462842a530
[ "Apache-2.0" ]
3
2022-02-28T19:49:54.000Z
2022-03-25T11:30:31.000Z
# coding=utf-8 # Copyright (c) Microsoft. All rights reserved. from ekphrasis.classes.preprocessor import TextPreProcessor from ekphrasis.classes.tokenizer import SocialTokenizer from ekphrasis.dicts.emoticons import emoticons import yaml import os import numpy as np import argparse import json import sys import random...
43.011494
181
0.536478
03fb1c2c04259aeac372149992f069554f4f3d72
3,972
py
Python
setup.py
jpovedano/rticonnextdds-connector-py
ea46021066e72cc88c654aa3cb0d4876bf7a2396
[ "CNRI-Python" ]
24
2019-04-22T15:40:19.000Z
2022-01-17T06:39:38.000Z
setup.py
jpovedano/rticonnextdds-connector-py
ea46021066e72cc88c654aa3cb0d4876bf7a2396
[ "CNRI-Python" ]
46
2019-04-04T14:59:45.000Z
2022-03-22T06:57:37.000Z
setup.py
jpovedano/rticonnextdds-connector-py
ea46021066e72cc88c654aa3cb0d4876bf7a2396
[ "CNRI-Python" ]
17
2018-10-03T20:42:36.000Z
2022-01-06T02:36:32.000Z
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path, walk from shutil...
34.53913
94
0.690836
03fb3171467ca449d6a91472497392587eecf860
13,055
py
Python
pycoind/blockchain/transaction.py
peerchemist/pycoind
33a600e617ec89c5a0f680ce7725b777d6176ea8
[ "MIT" ]
120
2015-01-12T18:58:20.000Z
2022-03-15T21:26:08.000Z
pycoind/blockchain/transaction.py
fudong1127/pycoind
33a600e617ec89c5a0f680ce7725b777d6176ea8
[ "MIT" ]
7
2015-06-09T04:46:46.000Z
2019-01-26T23:04:16.000Z
pycoind/blockchain/transaction.py
fudong1127/pycoind
33a600e617ec89c5a0f680ce7725b777d6176ea8
[ "MIT" ]
57
2015-01-08T07:05:50.000Z
2022-03-15T21:26:10.000Z
# The MIT License (MIT) # # Copyright (c) 2014 Richard Moore # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, mod...
32.6375
94
0.622444
03fb5813ea35ac982040aedfd41e104ba5ebe3f7
2,017
py
Python
src/oscar/apps/customer/history.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/customer/history.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/customer/history.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import json from django.conf import settings from oscar.core.loading import get_class, get_model product_viewed = get_class('catalogue.signals', 'product_viewed') Product = get_model('catalogue', 'Product') def get(request): """ Return a list of recently viewed products """ ids = extr...
29.231884
71
0.644026
03fb5d2361e3764a21e300f971d248ec0beda54a
16,417
py
Python
tests/test_control_valve.py
volpatto/fluids
693268d0fd7c9e2f276ebdf14353cb9d7dbac195
[ "MIT" ]
null
null
null
tests/test_control_valve.py
volpatto/fluids
693268d0fd7c9e2f276ebdf14353cb9d7dbac195
[ "MIT" ]
null
null
null
tests/test_control_valve.py
volpatto/fluids
693268d0fd7c9e2f276ebdf14353cb9d7dbac195
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to...
48.715134
299
0.626667
03fb8bb09d57c7c547d1b9695f00b4dba83952f3
3,130
py
Python
alpacka/batch_steppers/ray.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
2
2021-01-03T04:21:56.000Z
2021-02-12T12:54:58.000Z
alpacka/batch_steppers/ray.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
null
null
null
alpacka/batch_steppers/ray.py
shoot-tree-search/sts
2d9f19a40c7fb1c637dd3bd230942c01f14927e1
[ "MIT" ]
null
null
null
"""Ray-distributed environment stepper.""" import typing import numpy as np import ray from alpacka.batch_steppers import core from alpacka.batch_steppers import worker_utils class RayObject(typing.NamedTuple): """Keeps value and id of an object in the Ray Object Store.""" id: typing.Any value: typing....
32.947368
80
0.62492
03fbbb2662406f9b3636a7288f77c120addaef21
5,313
py
Python
nova/conf/__init__.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/conf/__init__.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/conf/__init__.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright 2015 OpenStack Foundation # 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 requ...
30.889535
78
0.821193
03fbbf8447b173bb4c315ab7a850ab7b4078be59
2,952
py
Python
db/Updater/scripts/script_emd.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
db/Updater/scripts/script_emd.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
db/Updater/scripts/script_emd.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
import sys, argparse, os dir_path = os.path.dirname(os.path.realpath(__file__))+"/" os.chdir(dir_path) sys.path.append('../') import datetime from connections.sql_connection import SQL_connection from classes.update import Update from classes.binnacle import Binnacle from updater.main_emd import main ''' @author dn...
30.75
116
0.640583
03fc0209eaeac331492219ff99336773321789a0
6,328
py
Python
cicd/extras.py
conducto/demo
fb89f6c978fde37ec4040c72759b83c2044f0a73
[ "Apache-2.0" ]
3
2020-05-12T22:56:48.000Z
2020-11-10T04:03:19.000Z
cicd/extras.py
conducto/demo
fb89f6c978fde37ec4040c72759b83c2044f0a73
[ "Apache-2.0" ]
3
2020-04-03T16:15:11.000Z
2020-06-07T21:25:07.000Z
cicd/extras.py
conducto/demo
fb89f6c978fde37ec4040c72759b83c2044f0a73
[ "Apache-2.0" ]
3
2020-06-07T03:08:51.000Z
2022-02-18T20:09:27.000Z
""" ### **Extras** These are some nice extras for CI/CD that did not fit into other demos, but we wanted to share them in case they help. * Pass a python function to an Exec node. * Put Markdown in stdout/stderr. * Check out our internal CI/CD configuration. [Companion tutorial here.]( https://medium.com/conducto/ci-...
37.223529
91
0.664665
03fc2b888c3de9bef572621b43979b87b42f74e8
1,278
py
Python
spa/management/commands/processmix.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
spa/management/commands/processmix.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
spa/management/commands/processmix.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
from django.core.management.base import NoArgsCommand, CommandError from django.template.defaultfilters import slugify from core.utils.audio import Mp3FileNotFoundException from core.utils.audio.mp3 import mp3_length from core.utils.url import unique_slugify from spa.models import Mix class Command(NoArgsCommand): ...
39.9375
69
0.556338
03fc4245b3cc0fcac314f0f38459863e44696c7a
302
py
Python
iris_sdk/models/data/sites.py
NumberAI/python-bandwidth-iris
0e05f79d68b244812afb97e00fd65b3f46d00aa3
[ "MIT" ]
2
2020-04-13T13:47:59.000Z
2022-02-23T20:32:41.000Z
iris_sdk/models/data/sites.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2020-09-18T20:59:24.000Z
2021-08-25T16:51:42.000Z
iris_sdk/models/data/sites.py
bandwidthcom/python-bandwidth-iris
dbcb30569631395041b92917252d913166f7d3c9
[ "MIT" ]
5
2018-12-12T14:39:50.000Z
2020-11-17T21:42:29.000Z
#!/usr/bin/env python from iris_sdk.models.base_resource import BaseData, BaseResourceList from iris_sdk.models.maps.sites import SitesMap from iris_sdk.models.site import Site class SitesData(SitesMap, BaseData): def __init__(self, parent=None): self.site = BaseResourceList(Site, self)
30.2
68
0.781457
03fc5cfd93371ce55d8aa6e6c1eb09c9f01d7a82
4,022
py
Python
alipay/aop/api/request/AlipayCommerceTransportEtcRefundQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayCommerceTransportEtcRefundQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayCommerceTransportEtcRefundQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceTransportEtcRefundQueryModel import AlipayCommerceTransportEtcRefundQueryModel class AlipayCommerceTransportEtcRefundQ...
27.737931
148
0.648931
03fca287b86d830a5160c64c82619b05b671a5db
2,303
py
Python
rod_motion_planning/rod_DiscoPygal/rod_DiscoPygal/examples/gui_zoo.py
galmw/AlgorithmicRobotics
1a616a911e74fa965f34075bc2fc683876e1a6be
[ "MIT" ]
null
null
null
rod_motion_planning/rod_DiscoPygal/rod_DiscoPygal/examples/gui_zoo.py
galmw/AlgorithmicRobotics
1a616a911e74fa965f34075bc2fc683876e1a6be
[ "MIT" ]
null
null
null
rod_motion_planning/rod_DiscoPygal/rod_DiscoPygal/examples/gui_zoo.py
galmw/AlgorithmicRobotics
1a616a911e74fa965f34075bc2fc683876e1a6be
[ "MIT" ]
null
null
null
""" This is a minimal example that demonstrates usage of all different Qt GUI objects that are available on this framework. """ import sys from PyQt5 import QtWidgets, QtCore from PyQt5.QtWidgets import QFileDialog from gui.gui import GUI class GUITest(GUI): def setupUi(self): ######################### ...
34.373134
116
0.569692
03fcad67ff6c1f83b223573f40f6778c1a437b34
612
py
Python
datawinners/tests/data.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/tests/data.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/tests/data.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from pytz import UTC DEFAULT_TEST_USER=u'tester150411@gmail.com' DEFAULT_TEST_PASSWORD=u'tester150411' DEFAULT_TEST_ORG_ID=u'SLX364903' DEFAULT_TEST_ORG_NAME=u'Testorg' DEFAULT_TEST_ORG_TEL_NO=u'919880734937' TRIAL_ACCOUNT_ORGANIZATION_ID='COJ00001' TRIAL_ACCOUNT_DATA_SENDER_MOBILE_NO='12...
43.714286
116
0.794118
03fcb72d79495ca46a24b67103e5ffe8925fc511
62
py
Python
tests/tests_with_server_and_cached_results/model_tests_with_server/test_plans_on_server/test_update_plan_with_no_warning.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
5
2019-01-21T11:12:05.000Z
2020-03-05T20:52:14.000Z
tests/tests_with_server_and_cached_results/model_tests_with_server/test_plans_on_server/test_update_plan_with_no_warning.py
aquariumbio/pydent
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
28
2020-11-18T02:07:09.000Z
2021-06-08T15:49:41.000Z
tests/tests_with_server_and_cached_results/model_tests_with_server/test_plans_on_server/test_update_plan_with_no_warning.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
2
2021-02-27T19:23:45.000Z
2021-09-14T10:29:07.000Z
def test_no_warning(session): session.Plan.one().update()
20.666667
31
0.725806
03fcc8f8e7f00c981496d1fc0dbb239b49ffd4f0
5,126
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_recognize_business_cards.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_recognize_business_cards.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/sample_recognize_business_cards.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
48.819048
131
0.610222
03fcdc92e4f9dcc39759e3176cb1064570fb736e
7,687
py
Python
app/views.py
jakejg/Backcountry-Food-Planner
00cd4acb41592142f1129ae52e7ec14a567d6ae3
[ "MIT" ]
null
null
null
app/views.py
jakejg/Backcountry-Food-Planner
00cd4acb41592142f1129ae52e7ec14a567d6ae3
[ "MIT" ]
null
null
null
app/views.py
jakejg/Backcountry-Food-Planner
00cd4acb41592142f1129ae52e7ec14a567d6ae3
[ "MIT" ]
null
null
null
from app import app from flask import render_template, request, flash, redirect, session, g, url_for, jsonify from .models import db, connect_db, Trip, Meal, User, TripMeal, Ingredient from .forms import TripForm, SelectMealForm, SelectField, CreateMealForm, CreateUserAccount, LoginUser, validate_dates, populate_select...
31.37551
190
0.631196
03fcefee4bdecd3d85be72558641ab54e2862b87
7,818
py
Python
detectron_/data/datasets/cityscapes_panoptic.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
detectron_/data/datasets/cityscapes_panoptic.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
detectron_/data/datasets/cityscapes_panoptic.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import json import logging import os from detectron.data import DatasetCatalog, MetadataCatalog from detectron.data.datasets.builtin_meta import CITYSCAPES_CATEGORIES from detectron.utils.file_io import PathManager """ This file contains functions to register the Cit...
41.585106
116
0.668969
03fd0f645e04d85e70e688232a1ede8eb6e0a2ae
4,177
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/sw.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/sw.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/sw.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "sw", "date_order": "DMY", "january": [ "januari", "jan" ], "february": [ "februari", "feb" ], "march": [ "machi", "mac" ], "april": [ "aprili", "apr" ], "may": [ ...
17.927039
39
0.283457
03fd1a32c1977c76e3cfcc90f40b0ce68aefa690
880
py
Python
scanners/zap-advanced/scanner/zapclient/configuration/zap_configuration_context_users.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
1
2021-05-24T08:17:48.000Z
2021-05-24T08:17:48.000Z
scanners/zap-advanced/scanner/zapclient/configuration/zap_configuration_context_users.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
null
null
null
scanners/zap-advanced/scanner/zapclient/configuration/zap_configuration_context_users.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # SPDX-FileCopyrightText: 2021 iteratec GmbH # # SPDX-License-Identifier: Apache-2.0 # -*- coding: utf-8 -*- import collections from .zap_configuration_list import ZapConfigurationList class ZapConfigurationContextUsers(ZapConfigurationList): """This class represent a ZAP specific for ZAP...
31.428571
109
0.690909
03fd3f7fb801e50e1a30777a53e70f9959dfccf0
10,036
py
Python
st2client/tests/unit/test_shell.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2client/tests/unit/test_shell.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2client/tests/unit/test_shell.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
39.203125
96
0.586688
03fd534186288f5a17c6a09bfc562c91c02cf310
251
py
Python
MatricesM/errors/__init__.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
4
2019-05-04T00:54:52.000Z
2019-12-11T05:57:16.000Z
MatricesM/errors/__init__.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
80
2019-01-23T20:47:42.000Z
2020-02-20T05:53:28.000Z
MatricesM/errors/__init__.py
MathStuff/MatricesM
b299cac1f60e830d4a66f03e9996bc1f8c7268da
[ "MIT" ]
2
2019-02-23T12:34:23.000Z
2020-07-29T17:45:03.000Z
name = "MatricesM" from .errors import MatrixError,DimensionError, \ NotListOrTuple,EmptyMatrix,InvalidColumn,InvalidIndex, \ FillError,DtypeError,ColdtypeError,InconsistentValues, \ NotSubList,OutOfRangeList,InvalidList,ParameterError
41.833333
61
0.808765
03fd93034b7fd8c4ebd87c9e0b3acc9f78f4ab00
155
py
Python
i2cylib/database/sqlite/__init__.py
i2cy/i2cylib
f7f5c8ec320669bc17d065f0ec2aa74917954bac
[ "MIT" ]
1
2021-04-17T06:45:31.000Z
2021-04-17T06:45:31.000Z
i2cylib/database/sqlite/__init__.py
i2cy/i2cylib
f7f5c8ec320669bc17d065f0ec2aa74917954bac
[ "MIT" ]
null
null
null
i2cylib/database/sqlite/__init__.py
i2cy/i2cylib
f7f5c8ec320669bc17d065f0ec2aa74917954bac
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Author: i2cy(i2cy@outlook.com) # Filename: __init__.py # Created on: 2021/3/6 from .sqlitedb import *
19.375
33
0.632258
03fdc3d0b91f9c7ede3d8933277105c34d49b646
7,870
py
Python
ligand/functions.py
AJK-dev/protwis
df736b7a46ad4d86c28ca74486ca1416c928398f
[ "Apache-2.0" ]
3
2019-07-29T11:49:38.000Z
2021-03-03T10:59:29.000Z
ligand/functions.py
AJK-dev/protwis
df736b7a46ad4d86c28ca74486ca1416c928398f
[ "Apache-2.0" ]
1
2021-05-12T14:21:53.000Z
2021-05-12T14:21:53.000Z
ligand/functions.py
AlibekMamyrbekov/protwis
b3d477b1982623618d995ab5c7f47c918a70238b
[ "Apache-2.0" ]
1
2021-03-03T15:58:50.000Z
2021-03-03T15:58:50.000Z
from django.utils.text import slugify from django.db import IntegrityError #from chembl_webresource_client import new_client from common.models import WebResource from common.models import WebLink from ligand.models import Ligand, LigandType, LigandProperities def get_or_make_ligand(ligand_id, type_id, name = None, p...
45.491329
151
0.527827
03fdc9b22933b75809856ab9d76abc9f89333f66
2,225
py
Python
hax/test/test_types.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
hax/test/test_types.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
hax/test/test_types.py
papan-singh/cortx-hare
4d6a533750dffe0b71c633a3707da79d9883b3dd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # 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 appl...
46.354167
78
0.57618
03fdfd05fdac4dc67543e5b0b4ad8624e8356359
6,465
py
Python
examples/bnn_regression.py
mcgillmrl/prob_mbrl
0bfb70b31675310539f241f62bba8427d940d551
[ "MIT" ]
108
2018-10-24T07:59:14.000Z
2021-11-28T05:29:35.000Z
examples/bnn_regression.py
juancamilog/prob_mbrl
391a0eb9f9762504d0e84a98d6911a3c619c560b
[ "MIT" ]
8
2019-08-14T00:20:13.000Z
2019-10-18T01:45:29.000Z
examples/bnn_regression.py
mcgillmrl/prob_mbrl
0bfb70b31675310539f241f62bba8427d940d551
[ "MIT" ]
14
2019-06-27T10:10:08.000Z
2020-08-31T03:16:22.000Z
import argparse import gc import numpy as np import torch from matplotlib import pyplot as plt from scipy.special import logsumexp from prob_mbrl import models, utils def main(): # model parameters parser = argparse.ArgumentParser("BNN regression example") parser.add_argument('--seed', type=int, default=...
36.732955
78
0.558082
03fe0e30f032fadc03ee23fb93a319dd1051b7b1
13,743
py
Python
content/_build/jupyter_execute/11_db_access/02_sqlalchemy_orm.py
aviadr1/learn-python3
e90f05aa026772c6db7fd4f3ccc2518d983ac4fa
[ "MIT" ]
null
null
null
content/_build/jupyter_execute/11_db_access/02_sqlalchemy_orm.py
aviadr1/learn-python3
e90f05aa026772c6db7fd4f3ccc2518d983ac4fa
[ "MIT" ]
null
null
null
content/_build/jupyter_execute/11_db_access/02_sqlalchemy_orm.py
aviadr1/learn-python3
e90f05aa026772c6db7fd4f3ccc2518d983ac4fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # <a href="https://colab.research.google.com/github/aviadr1/learn-advanced-python/blob/master/content/11_db_access/02_sqlalchemy_orm.ipynb" target="_blank"> # <img src="https://colab.research.google.com/assets/colab-badge.svg" # title="Open this file in Google Colab" alt=...
27.596386
156
0.724587
03fe13020cb7d786ae006edfd1b333812fa877d2
1,081
py
Python
client/lab-gateway/azext_lab_gateway/__init__.py
colbylwilliams/lab-gateway
49c054060a654a3d43b586dfa51aab5659b0385b
[ "MIT" ]
null
null
null
client/lab-gateway/azext_lab_gateway/__init__.py
colbylwilliams/lab-gateway
49c054060a654a3d43b586dfa51aab5659b0385b
[ "MIT" ]
1
2022-01-30T04:05:08.000Z
2022-01-30T04:05:08.000Z
client/lab-gateway/azext_lab_gateway/__init__.py
colbylwilliams/lab-gateway
49c054060a654a3d43b586dfa51aab5659b0385b
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
37.275862
94
0.642923
03fe4f14a3918b475af5849c789ff66a3fefa5d6
3,771
py
Python
examples/weather.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
4
2020-05-09T11:01:32.000Z
2020-06-03T14:44:06.000Z
examples/weather.py
candy-kingdom/cli
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
43
2020-01-27T21:14:16.000Z
2020-06-18T17:57:20.000Z
examples/weather.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
null
null
null
"""An example CLI for requesting weather information from the OpenWeather API. The example demonstrates the usage of arguments, options and flags, as well as descriptions and default values of arguments and options. Usage: $ python weather.py Kharkiv Ukraine As of 2020-05-22 08:42:58: 11.5°C (feels li...
32.508621
85
0.611774
03fe5afa694b1e28b7020750c28c9803126bf31f
2,537
py
Python
tools/install_venv.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
tools/install_venv.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
tools/install_venv.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2010 OpenStack Foundation # Copyright 2013 IBM Corp. # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache Lic...
32.948052
75
0.723689
03fe8e1e6d0ec80d3f61800055b47b6a81b44826
5,111
py
Python
cryptoxlib/clients/hitbtc/HitbtcClient.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
90
2020-04-09T18:34:49.000Z
2022-03-09T14:29:32.000Z
cryptoxlib/clients/hitbtc/HitbtcClient.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
44
2020-04-03T17:02:20.000Z
2022-01-29T14:51:51.000Z
cryptoxlib/clients/hitbtc/HitbtcClient.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
28
2020-04-25T21:34:53.000Z
2022-03-31T07:20:07.000Z
import ssl import logging import base64 import datetime import pytz from multidict import CIMultiDictProxy from typing import List, Optional from cryptoxlib.CryptoXLibClient import CryptoXLibClient, RestCallType from cryptoxlib.clients.hitbtc import enums from cryptoxlib.clients.hitbtc.exceptions import HitbtcRestExce...
39.929688
143
0.647231
03fecbce2f7321b1db6fce468ba34e26ef9b9f51
2,266
py
Python
src/pipupgrade/_pip.py
JamesMcGuigan/pipupgrade
6c868ba92a95fe71352d91485c04e6f860257092
[ "MIT" ]
null
null
null
src/pipupgrade/_pip.py
JamesMcGuigan/pipupgrade
6c868ba92a95fe71352d91485c04e6f860257092
[ "MIT" ]
null
null
null
src/pipupgrade/_pip.py
JamesMcGuigan/pipupgrade
6c868ba92a95fe71352d91485c04e6f860257092
[ "MIT" ]
null
null
null
# imports - compatibility imports from pipupgrade._compat import iteritems # imports - standard imports import pip import json import os.path as osp # imports - module imports from pipupgrade.util.system import which, popen from pipupgrade.util.string import kebab_case from pipupgrade.util.environ import value_to_e...
29.428571
75
0.654457
03fedecb96d68c6aed45d6c57e72a294a0a81a88
4,688
py
Python
gemd/ingest/material_run_example.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
7
2020-04-02T11:11:09.000Z
2022-02-05T23:19:51.000Z
gemd/demo/material_run_example.py
CitrineInformatics/taurus
f87217a0ba7f209cc05f71f28810b7242c8e24b0
[ "Apache-2.0" ]
29
2019-09-09T23:20:41.000Z
2020-03-31T19:13:01.000Z
gemd/demo/material_run_example.py
CitrineInformatics/taurus
f87217a0ba7f209cc05f71f28810b7242c8e24b0
[ "Apache-2.0" ]
3
2019-09-20T19:01:02.000Z
2019-11-26T02:43:45.000Z
"""An example ingest of a material run.""" from gemd import units from gemd.entity.attribute.condition import Condition from gemd.entity.attribute.parameter import Parameter from gemd.entity.attribute.property import Property from gemd.entity.bounds.categorical_bounds import CategoricalBounds from gemd.entity.bounds.re...
33.971014
89
0.647824
03feee9b8446d93d0b2eea242e27c46025708228
1,461
py
Python
tests/chainer_tests/functions_tests/array_tests/test_swapaxes.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/array_tests/test_swapaxes.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/array_tests/test_swapaxes.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
import unittest import numpy import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr @testing.parameterize(*testing.product({ 'in_shape': [(3, 4, 2)], 'axis1': [0], 'axis2': [1], 'dtype': [n...
26.563636
78
0.657769
03fefa1ab1cfd410f9e6c7e3dbf987d8e26c39bb
751
py
Python
pyargcbr/knowledge_resources/group.py
jaumejordan/pyargcbr
70892360a500e83215449d98ef06746adb1ab51a
[ "MIT" ]
1
2021-06-24T17:15:16.000Z
2021-06-24T17:15:16.000Z
pyargcbr/knowledge_resources/group.py
jaumejordan/pyargcbr
70892360a500e83215449d98ef06746adb1ab51a
[ "MIT" ]
null
null
null
pyargcbr/knowledge_resources/group.py
jaumejordan/pyargcbr
70892360a500e83215449d98ef06746adb1ab51a
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List from .social_entity import SocialEntity @dataclass class Group(SocialEntity): """Implementation of the concept Group""" agents: List[SocialEntity] = field(default_factory=lambda: []) def remove_member(self, old_member: SocialEntity): ...
27.814815
70
0.671105
03ff0b47beba7993dc4bdefacb883fce5efe9848
3,593
py
Python
tests/test_password_generator.py
bsoyka/passwd
dba6a9f67bb12f9c713a9a211ac7696ffe3e470f
[ "MIT" ]
1
2020-09-09T17:40:53.000Z
2020-09-09T17:40:53.000Z
tests/test_password_generator.py
echang97/passwd
5ea803095ee9d118a24100c19911e8d4a281cb16
[ "MIT" ]
19
2020-07-07T03:48:48.000Z
2021-08-30T08:34:34.000Z
tests/test_password_generator.py
bsoyka/passwd
dba6a9f67bb12f9c713a9a211ac7696ffe3e470f
[ "MIT" ]
4
2020-07-07T05:20:51.000Z
2021-09-01T10:20:04.000Z
from string import ascii_lowercase, ascii_uppercase, digits, punctuation from pytest import raises from passwd import PasswordGenerator def test_length(): all_8 = PasswordGenerator(8) assert len(all_8) == 8 assert len(all_8.generate()) == 8 all_10 = PasswordGenerator(10) assert len(all_10) == 1...
27.427481
76
0.651266
03ff1a1a03f38ae2fe547930e6a2eab658da8f2e
611
py
Python
groupyr/__init__.py
arokem/groupyr
4af04e53799b7cbd9b99955798cf58cfe054f8a5
[ "BSD-3-Clause" ]
9
2020-10-04T02:53:43.000Z
2022-02-27T18:44:02.000Z
groupyr/__init__.py
arokem/groupyr
4af04e53799b7cbd9b99955798cf58cfe054f8a5
[ "BSD-3-Clause" ]
68
2020-10-04T11:53:32.000Z
2022-02-22T05:17:50.000Z
groupyr/__init__.py
arokem/groupyr
4af04e53799b7cbd9b99955798cf58cfe054f8a5
[ "BSD-3-Clause" ]
4
2020-10-03T22:20:56.000Z
2022-02-17T02:38:34.000Z
"""Groupyr: Sparse Group Lasso in Python. Groupyr is a Python library for penalized regression with grouped covariates. It provides scikit-learn compatible estimators, including cross-validation estimators. See https://richford.github.io/groupyr for more details. """ from . import datasets # noqa from . import utils ...
33.944444
77
0.782324
03ff677355695011da21b2ee83bfaf724c766c5b
1,819
py
Python
scripts/update_grafana.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
scripts/update_grafana.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
scripts/update_grafana.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
import json import logging import subprocess from requests.auth import HTTPBasicAuth import requests from azul import config from azul.logging import configure_script_logging logger = logging.getLogger(__name__) def main(): if config.enable_monitoring: base_url = f'{config.grafana_endpoint}/api' ...
33.685185
84
0.596482
03ff788f09f82665855a40805dbdc809236569ea
4,830
py
Python
rls/algorithms/multi/qplex.py
StepNeverStop/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
371
2019-04-26T00:37:33.000Z
2022-03-31T07:33:12.000Z
rls/algorithms/multi/qplex.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
47
2019-07-21T11:51:57.000Z
2021-08-31T08:45:22.000Z
rls/algorithms/multi/qplex.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
102
2019-06-29T13:11:15.000Z
2022-03-28T13:51:04.000Z
#!/usr/bin/env python3 # encoding: utf-8 import torch as th import torch.nn.functional as F from rls.algorithms.multi.vdn import VDN from rls.common.decorator import iton from rls.nn.mixers import Mixer_REGISTER from rls.nn.modules.wrappers import TargetTwin from rls.utils.torch_utils import n_step_return class QPL...
43.513514
103
0.513251
03ff92d107092b00ef9533689800e3bec78af06e
6,486
py
Python
roboai_cli/commands/connect.py
NGalandim/roboai-python-cli
2e2a4c82a0294dd9a43eb85ebb452791abcba8d8
[ "MIT" ]
3
2020-10-21T11:11:28.000Z
2022-02-11T18:00:48.000Z
roboai_cli/commands/connect.py
NGalandim/roboai-python-cli
2e2a4c82a0294dd9a43eb85ebb452791abcba8d8
[ "MIT" ]
35
2020-10-21T16:36:47.000Z
2021-11-04T12:45:39.000Z
roboai_cli/commands/connect.py
NGalandim/roboai-python-cli
2e2a4c82a0294dd9a43eb85ebb452791abcba8d8
[ "MIT" ]
2
2020-10-13T10:48:48.000Z
2022-02-11T16:30:35.000Z
import math import os from os.path import dirname, isfile, join from shutil import copyfile import click import pkg_resources from questionary import Choice, prompt from robo_ai.model.assistant.assistant import Assistant from robo_ai.model.assistant.assistant_list_response import ( AssistantListResponse, ) from r...
30.167442
118
0.637373
03ffd674715a1d12ddf4b71a6efe76439adbf6eb
3,246
py
Python
main.py
Atrus619/DeckOfCards
bf0668ea26041e7faab2b88a03d42ba6887d054a
[ "MIT" ]
1
2019-06-27T12:14:38.000Z
2019-06-27T12:14:38.000Z
main.py
Atrus619/DeckOfCards
bf0668ea26041e7faab2b88a03d42ba6887d054a
[ "MIT" ]
18
2019-07-14T17:40:22.000Z
2019-11-11T01:54:07.000Z
main.py
Atrus619/DeckOfCards
bf0668ea26041e7faab2b88a03d42ba6887d054a
[ "MIT" ]
null
null
null
from pinochle.Game import Game from classes.Human import Human from classes.Agent import Agent from classes.Epsilon import Epsilon from pinochle.scripted_bots.RandomBot import RandomBot from pinochle.State import State from util import util from datasets.GameHistory import GameHistory from torch.utils import data impor...
34.903226
233
0.779421
03ffe85539cdd1690a4b1d49207a6bfe4df41abd
4,420
py
Python
structure/dynamics.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
structure/dynamics.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
structure/dynamics.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
from misc.ordered_map import OrderedMap from enum import Enum # The following are global variables used by Dynamics, as we could not define these # inside TempoType. class DynamicsHelper: NAME_MAP = None DYNAMICS_VALUE_MAP = None DEFAULT_DYNAMICS = None DEFAULT_DYNAMICS_VELOCITY = None REVERSE_DYN...
31.347518
117
0.590724
03fff0073e6dedc1167d3384fae808999a694e5c
3,020
py
Python
pyglet/window/cocoa/pyglet_window.py
seeminglee/pyglet64
3dd167b5b0d3ad132a157e404586e53c2bb21736
[ "BSD-3-Clause" ]
1
2016-01-09T03:47:39.000Z
2016-01-09T03:47:39.000Z
pyglet/window/cocoa/pyglet_window.py
seeminglee/pyglet64
3dd167b5b0d3ad132a157e404586e53c2bb21736
[ "BSD-3-Clause" ]
null
null
null
pyglet/window/cocoa/pyglet_window.py
seeminglee/pyglet64
3dd167b5b0d3ad132a157e404586e53c2bb21736
[ "BSD-3-Clause" ]
null
null
null
from pyglet.libs.darwin.objc_runtime import * class PygletWindow_Implementation(object): PygletWindow = ObjCSubclass('NSWindow', 'PygletWindow') @PygletWindow.dealloc def dealloc(self): send_super(self, 'dealloc') @PygletWindow.method('B') def canBecomeKeyWindow(self): ret...
46.461538
96
0.688411
03fff4b44403ea75c5500b5567319279cc9f2ada
2,144
py
Python
examples/consensusStatic.py
robotarium/robotarium-python-simulator
812f9ed479288049a39ddb75c4c9013bf531d5a2
[ "MIT" ]
31
2016-09-16T02:05:08.000Z
2021-11-05T18:42:45.000Z
examples/consensusStatic.py
jfouts24/robotarium-python-simulator
812f9ed479288049a39ddb75c4c9013bf531d5a2
[ "MIT" ]
3
2016-09-24T20:38:32.000Z
2016-09-24T21:56:36.000Z
examples/consensusStatic.py
jfouts24/robotarium-python-simulator
812f9ed479288049a39ddb75c4c9013bf531d5a2
[ "MIT" ]
8
2016-11-11T07:46:50.000Z
2020-04-01T17:12:33.000Z
import numpy as np from robotarium import Robotarium, transformations, graph import json # Get Robotarium object used to communicate with the robots/simulator r = Robotarium() # Get the number of available agents from the Robotarium. We don't need a # specific value for this algorithm. n = r.get_available_agents() #...
32.484848
78
0.694496
ff00284340bceda1fd82fc80fc6508fae7c11689
6,918
py
Python
python/pyxir/generator/tensorflow.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2020-06-17T22:41:13.000Z
2022-03-22T16:28:22.000Z
python/pyxir/generator/tensorflow.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2021-03-16T06:26:44.000Z
2022-03-18T11:28:33.000Z
python/pyxir/generator/tensorflow.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
19
2020-07-30T10:03:02.000Z
2021-06-29T01:18:16.000Z
# Copyright 2020 Xilinx 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 writing, ...
35.476923
87
0.618242
ff003a7bdc79464a00aa0dbd9aa95387a2328bae
401
py
Python
appflow/views/site.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
13
2021-09-27T14:53:15.000Z
2022-02-15T05:48:01.000Z
appflow/views/site.py
dyvenia/timeflow
7852872f591fbdb88be19f7b41ebb226e805fbd9
[ "MIT" ]
62
2022-02-15T09:52:52.000Z
2022-03-31T12:50:13.000Z
appflow/views/site.py
dyvenia/timesheets
5120acd66cbeb3ce43bff5acfee4cd6b14882962
[ "MIT" ]
4
2022-03-02T15:24:03.000Z
2022-03-30T10:59:38.000Z
from fastapi import APIRouter from fastapi.responses import HTMLResponse from dominate import tags as tg from .base import base_html router = APIRouter() @router.get("/site", response_class=HTMLResponse) async def site(): """ Create home page of TimeFlow. """ doc = base_html() doc.head += tg.sc...
21.105263
77
0.700748
ff003f90cb1c43049d0abe7e295c808ce116beca
29,152
py
Python
util/Processor.py
F-Stuckmann/PATARA
26b5c821e356e33e949817a1475ef38e75880a03
[ "MIT" ]
2
2021-11-04T06:48:45.000Z
2022-01-19T16:25:20.000Z
util/Processor.py
F-Stuckmann/PATARA
26b5c821e356e33e949817a1475ef38e75880a03
[ "MIT" ]
1
2021-05-05T09:05:22.000Z
2021-05-05T09:05:22.000Z
util/Processor.py
F-Stuckmann/PATARA
26b5c821e356e33e949817a1475ef38e75880a03
[ "MIT" ]
2
2021-05-05T08:42:57.000Z
2021-11-04T06:48:49.000Z
import warnings import xmltodict from random import randint, choice, uniform import Constants from Constants import * class Processor: class __processorParser: def __init__(self): self.branchIndex = 0 # check if file exists parse = self.fetch_xml_data(Constants.PATH_P...
38.817577
159
0.608981
ff004dc3f1d77fa229c144ad7854e99deb9234cb
3,029
py
Python
core/tests/test_asset_make_model.py
cjmash/art-backend
fb1dfd69cca9cda1d8714bd7066c3920d1a97312
[ "MIT" ]
null
null
null
core/tests/test_asset_make_model.py
cjmash/art-backend
fb1dfd69cca9cda1d8714bd7066c3920d1a97312
[ "MIT" ]
null
null
null
core/tests/test_asset_make_model.py
cjmash/art-backend
fb1dfd69cca9cda1d8714bd7066c3920d1a97312
[ "MIT" ]
null
null
null
from django.core.exceptions import ValidationError from django.db.models.deletion import ProtectedError from ..models import AssetMake, AssetType, AssetSubCategory, AssetCategory from core.tests import CoreBaseTestCase class AssetMakeTestCase(CoreBaseTestCase): def setUp(self): super(AssetMakeTestCase, ...
37.395062
78
0.646418
ff007233a10b2cd2fcc537cc2a3a05f8805fb49a
2,114
py
Python
src/oscar/apps/offer/views.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/offer/views.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/offer/views.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django import http from django.conf import settings from django.shortcuts import get_object_or_404 from django.views.generic import ListView from oscar.core.loading import get_model ConditionalOffer = get_model('offer', 'ConditionalOffer') Range = get_model('offer', 'Range') Product = get_model('catalog...
32.523077
74
0.661306
ff00bdef13fa4847da30d7bb7226aecf7e4251bf
3,011
py
Python
tests/h/views/client_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/views/client_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/views/client_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from pyramid.httpexceptions import HTTPFound import pytest from h.views import client from h import __version__ @pytest.mark.usefixtures("routes", "pyramid_settings") class TestSidebarApp: def test_it_includes_client_config(self, pyra...
32.376344
142
0.665892
ff00c5ddcbd64a4fa6b8378578e7be5a166d0116
1,346
py
Python
marqeta/response_models/ach_return.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/ach_return.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/ach_return.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models import datetime_object import json import re class AchReturn(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, default=self.json_serial) ...
24.035714
81
0.670877
ff00f2b3b4863000755924adebc287a8054ac557
1,093
py
Python
rh/osx/__init__.py
rharke/rh.osx
00be4acea15c9ea5f2d79f64bc73adc6bf3d4912
[ "MIT" ]
null
null
null
rh/osx/__init__.py
rharke/rh.osx
00be4acea15c9ea5f2d79f64bc73adc6bf3d4912
[ "MIT" ]
null
null
null
rh/osx/__init__.py
rharke/rh.osx
00be4acea15c9ea5f2d79f64bc73adc6bf3d4912
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Ranger Harke # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # dist...
52.047619
72
0.778591
ff0103029e8c549b22a79c1b5a3a711cc496c968
1,343
py
Python
StreamPy/tutorial_merge.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/tutorial_merge.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/tutorial_merge.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
from Stream import Stream from Operators import stream_agent, ef from examples_element_wrapper import print_stream from source_stream import source_stream import numpy as np import random """ Example of an element-wrapper to create an agent with multiple input streams and a single output stream. Example functions wrap...
26.86
70
0.685034
ff011002f40519f34ce4a772db8ec5f42a808d40
31,304
py
Python
tests/unit/backend/corpora/api_server/test_v1_dataset.py
HumanCellAtlas/dcp-prototype
44ca66a266004124f39d7d3e3dd75e9076012ff0
[ "MIT" ]
2
2020-02-07T18:12:12.000Z
2020-02-11T14:59:03.000Z
tests/unit/backend/corpora/api_server/test_v1_dataset.py
HumanCellAtlas/dcp-prototype
44ca66a266004124f39d7d3e3dd75e9076012ff0
[ "MIT" ]
173
2020-01-29T17:48:02.000Z
2020-03-20T02:52:58.000Z
tests/unit/backend/corpora/api_server/test_v1_dataset.py
HumanCellAtlas/dcp-prototype
44ca66a266004124f39d7d3e3dd75e9076012ff0
[ "MIT" ]
null
null
null
import json import os import unittest from backend.corpora.common.entities.dataset import Dataset from furl import furl from datetime import datetime from backend.corpora.common.corpora_orm import ( UploadStatus, CollectionVisibility, generate_uuid, DatasetArtifactFileType, ) from backend.corpora.com...
51.656766
117
0.674003
ff0152e5bb2b201e7dc890dba984c1273157c6a5
3,602
py
Python
intersight/models/iam_ldap_provider_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_ldap_provider_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_ldap_provider_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamLdapProviderRef(object): """ NOTE: This cl...
24.013333
77
0.540533
ff0160891409d94e72078f6483a4d3465ef9ed88
1,746
py
Python
zerver/views/muting.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/views/muting.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
6
2020-09-05T21:07:41.000Z
2021-12-02T17:56:37.000Z
zerver/views/muting.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
1
2020-10-26T08:49:45.000Z
2020-10-26T08:49:45.000Z
from django.http import HttpResponse, HttpRequest from typing import List, Text import ujson from django.utils.translation import ugettext as _ from zerver.lib.actions import do_mute_topic, do_unmute_topic from zerver.lib.request import has_request_variables, REQ from zerver.lib.response import json_success, json_er...
38.8
90
0.754868
ff01ac736127ea206544d9ba6747b0a98034cba0
8,062
py
Python
improver/wxcode/utilities.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
null
null
null
improver/wxcode/utilities.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
4
2017-05-24T10:30:02.000Z
2021-09-30T08:58:50.000Z
improver/wxcode/utilities.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
32.772358
83
0.669933
ff01e5285e0be75a906c8b68323794c352efa0ae
3,881
py
Python
src/graph_transpiler/webdnn/graph/operators/linear.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/graph/operators/linear.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/graph/operators/linear.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import Optional from webdnn.graph.axis import Axis from webdnn.graph.operator import Operator from webdnn.graph.order import OrderNC from webdnn.graph.placeholder import Placeholder from webdnn.graph.variable import Variable class Linear(Operator): """Linear(name) Linear operator a.k.a. Dense, F...
51.065789
139
0.550374
ff01fb64d98412c1c667271ef86a85fdd281fbe1
597
py
Python
sequence_classification/datasets/troll_detection/__init__.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
1
2021-03-14T17:22:41.000Z
2021-03-14T17:22:41.000Z
sequence_classification/datasets/troll_detection/__init__.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
23
2018-11-17T21:05:31.000Z
2019-01-15T09:58:33.000Z
sequence_classification/datasets/troll_detection/__init__.py
piotermiarer/Sequence-Classification
05b5491cc8470f477a160fb4207aacd1b12aa5ed
[ "MIT" ]
1
2020-07-31T06:09:31.000Z
2020-07-31T06:09:31.000Z
import json from ..utils import DatasetLoader, Dataset, get_X_y class TrollDataset(DatasetLoader): @staticmethod def load_data(name='Troll'): troll_data = [] with open(TrollDataset.get_dataset_file(['troll_detection', 'trollDetection.json']), 'r') as f: json_lines = f.readlines()...
31.421053
103
0.638191
ff02231b953b8086a679ae4b7e1aad5e07c2f576
19,119
py
Python
run.py
kaiwenwang233/DevelNet
00945b960833d2939c7d6f2f775d4d6a179894eb
[ "MIT" ]
null
null
null
run.py
kaiwenwang233/DevelNet
00945b960833d2939c7d6f2f775d4d6a179894eb
[ "MIT" ]
null
null
null
run.py
kaiwenwang233/DevelNet
00945b960833d2939c7d6f2f775d4d6a179894eb
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import argparse import os import time import logging from unet import UNet from data_reader import Config, DataReader, DataReader_valid, DataReader_pred from util import * from tqdm import tqdm import pandas as pd import multiprocessing from functools import partial def read_...
35.93797
138
0.588891
ff0278d475f351320c019035800da6a0c419845e
454
py
Python
project/webhooks/tasks.py
yumike/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
4
2015-06-22T13:30:00.000Z
2020-03-19T07:17:12.000Z
project/webhooks/tasks.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
3
2020-02-12T01:17:37.000Z
2021-06-10T20:37:44.000Z
project/webhooks/tasks.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
1
2015-09-18T10:45:45.000Z
2015-09-18T10:45:45.000Z
from celery.task import task from lint.models import Report from lint.tasks import process_report from .models import Commit @task() def process_commit(commit_pk): try: commit = Commit.objects.get(pk=commit_pk) except Commit.DoesNotExist: return if commit.report is None: commit.rep...
26.705882
73
0.72467
ff0279224abcac77172cebb7df9912b6244b649c
9,539
py
Python
dice_roller.py
MARS-XI/Dice-Roller
562188c74faf159a27add9d4f43d2196ce332857
[ "MIT" ]
null
null
null
dice_roller.py
MARS-XI/Dice-Roller
562188c74faf159a27add9d4f43d2196ce332857
[ "MIT" ]
null
null
null
dice_roller.py
MARS-XI/Dice-Roller
562188c74faf159a27add9d4f43d2196ce332857
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ D&D Dice Roller with roll modifiers """ # Built-in/Generic Imports import random # Libs import tkinter as tk from tkinter import messagebox from tkinter import ttk random.seed() # initialize pseudo-random numbers def DX(rolls_num, dice_sides, modifier): """roll di...
40.591489
96
0.710661
ff0289d94a9b569a114dbd30314df094cbd9a3a6
974
py
Python
ttrpy/util/midpnt.py
actlienholding/ttrpy
128e9fa23cdaee83ff8be021b219a8b7d90bf589
[ "Apache-2.0" ]
17
2019-03-02T03:37:34.000Z
2021-12-20T03:19:18.000Z
ttrpy/util/midpnt.py
actlienholding/ttrpy
128e9fa23cdaee83ff8be021b219a8b7d90bf589
[ "Apache-2.0" ]
1
2019-07-18T18:43:34.000Z
2019-07-23T17:52:20.000Z
ttrpy/util/midpnt.py
actlienholding/ttrpy
128e9fa23cdaee83ff8be021b219a8b7d90bf589
[ "Apache-2.0" ]
9
2019-06-02T08:46:51.000Z
2021-01-08T12:39:40.000Z
# Author: joelowj # License: Apache License, Version 2.0 import pandas as pd def midpnt(df, price, midpnt, n): """ The Midpoint calculation is similar to the Midprice, except the highest and lowest values are returned from the same input field. The default indicator calculates the highest close and l...
31.419355
79
0.687885