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
6ab9d713b15cf7e2722180a91c20d945c012ee0e
514
py
Python
test/crossrunner/compat.py
BluechipSystems/thrift
c595aa18cba0032e074f9585aa2d6ca548f07197
[ "Apache-2.0" ]
null
null
null
test/crossrunner/compat.py
BluechipSystems/thrift
c595aa18cba0032e074f9585aa2d6ca548f07197
[ "Apache-2.0" ]
null
null
null
test/crossrunner/compat.py
BluechipSystems/thrift
c595aa18cba0032e074f9585aa2d6ca548f07197
[ "Apache-2.0" ]
null
null
null
import os import sys if sys.version_info[0] == 2: _ENCODE = sys.getfilesystemencoding() logfile_open = open else: path_join = os.path.join str_join = str.join
20.56
53
0.678988
6aba555a9c95d6e5cd6afe857fa51108b432e61a
1,518
py
Python
test/test_vom.py
usamaahmadkhan/vpp
cece3e682f6dba68ba86b66b295f99a33496d9ee
[ "Apache-2.0" ]
null
null
null
test/test_vom.py
usamaahmadkhan/vpp
cece3e682f6dba68ba86b66b295f99a33496d9ee
[ "Apache-2.0" ]
null
null
null
test/test_vom.py
usamaahmadkhan/vpp
cece3e682f6dba68ba86b66b295f99a33496d9ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ VAPI test """ import unittest import os import signal from framework import VppTestCase, running_extended_tests, \ VppTestRunner, Worker if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)
33
75
0.590909
6abaa4631fe046cd2892f35a91bca62bc7f0f887
3,096
py
Python
locations/spiders/tesco.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
locations/spiders/tesco.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
locations/spiders/tesco.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
import json import re import scrapy from locations.hourstudy import inputoutput DAYS = { 'mo': 'Mo', 'tu': 'Tu', 'we': 'We', 'fr': 'Fr', 'th': 'Th', 'sa': 'Sa', 'su': 'Su', }
38.222222
257
0.549096
6abb4495b3d52a4655573442ecead7d8db0e2301
12,883
py
Python
astropy/table/serialize.py
tacaswell/astropy
75046e61916da36dffe87ddf59a7c6bfb00de81c
[ "BSD-3-Clause" ]
1
2019-10-05T18:20:27.000Z
2019-10-05T18:20:27.000Z
astropy/table/serialize.py
tacaswell/astropy
75046e61916da36dffe87ddf59a7c6bfb00de81c
[ "BSD-3-Clause" ]
null
null
null
astropy/table/serialize.py
tacaswell/astropy
75046e61916da36dffe87ddf59a7c6bfb00de81c
[ "BSD-3-Clause" ]
null
null
null
from importlib import import_module import re from copy import deepcopy from collections import OrderedDict from astropy.utils.data_info import MixinInfo from .column import Column from .table import Table, QTable, has_info_class from astropy.units.quantity import QuantityInfo __construct_mixin_classes = ('astropy.t...
41.028662
87
0.645579
6abe0f56148406c214bae2a7180acf428b205f37
1,914
py
Python
UVa 573 - The Snail/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 573 - The Snail/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 573 - The Snail/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
''' Created on Jun 18, 2013 @author: Yubin Bai All rights reserved. ''' import time from multiprocessing.pool import Pool parallelSolve = False infinity = 1 << 30 if __name__ == '__main__': solver = Solver() if parallelSolve: solver.parallel() else: solver.sequential()
24.538462
78
0.527168
6abe9ac6695fe5a1d34b503ad56c8e41374a9ea6
5,074
py
Python
scibert/models/text_classifier.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
1,143
2019-03-27T01:49:11.000Z
2022-03-24T10:43:47.000Z
scibert/models/text_classifier.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
91
2019-03-27T17:20:27.000Z
2022-03-29T09:29:58.000Z
scibert/models/text_classifier.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
206
2019-03-28T02:22:30.000Z
2022-03-30T07:07:05.000Z
from typing import Dict, Optional, List, Any import torch import torch.nn.functional as F from allennlp.data import Vocabulary from allennlp.models.model import Model from allennlp.modules import FeedForward, TextFieldEmbedder, Seq2SeqEncoder from allennlp.nn import InitializerApplicator, RegularizerApplicator from al...
40.919355
120
0.653331
6abec40d890d6b8f05f738693cce2c79127a8924
4,716
py
Python
plugins/template/tasks.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
469
2016-02-16T16:18:48.000Z
2022-03-31T15:24:40.000Z
plugins/template/tasks.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
1,076
2016-02-19T02:50:47.000Z
2022-03-22T03:08:06.000Z
plugins/template/tasks.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
138
2016-02-19T02:46:23.000Z
2022-03-30T13:13:01.000Z
# # -*- coding: utf-8 -*- """Development related tasks to be run with 'invoke'""" import os import pathlib import shutil import invoke TASK_ROOT = pathlib.Path(__file__).resolve().parent TASK_ROOT_STR = str(TASK_ROOT) # shared function def rmrf(items, verbose=True): """Silently remove a list of directories or ...
23.231527
87
0.671968
6abef106632056c480a54511ff7725bfc1193a55
4,116
py
Python
scripts/automation/trex_control_plane/interactive/trex/examples/stl/ndr_plugin.py
timgates42/trex-core
efe94752fcb2d0734c83d4877afe92a3dbf8eccd
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/automation/trex_control_plane/interactive/trex/examples/stl/ndr_plugin.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/automation/trex_control_plane/interactive/trex/examples/stl/ndr_plugin.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
import stl_path # dynamic load of python module def register(): return MyNDRPlugin()
35.482759
196
0.557337
6abf04d8aaa93e623f487cf9322ec9b114c31f92
2,590
py
Python
homeassistant/components/epsonworkforce/sensor.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
2
2019-12-30T14:12:33.000Z
2021-07-05T10:33:08.000Z
homeassistant/components/epsonworkforce/sensor.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
2
2022-01-13T04:00:03.000Z
2022-03-12T01:02:40.000Z
homeassistant/components/epsonworkforce/sensor.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
3
2019-04-28T16:35:45.000Z
2020-05-28T15:21:59.000Z
"""Support for Epson Workforce Printer.""" from datetime import timedelta import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_HOST, CONF_MONITORED_CONDITIONS from homeassistant.exceptions import PlatformNotReady import homeassistant....
30.116279
71
0.679151
6abf99810278b3e6bb4dfbe19a2991c6db839dec
19,661
py
Python
bot/exts/help_channels/_cog.py
bast0006/bot
dec9a9dba77aa4322f9dc37b6493a8410e7482ec
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/help_channels/_cog.py
bast0006/bot
dec9a9dba77aa4322f9dc37b6493a8410e7482ec
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/help_channels/_cog.py
bast0006/bot
dec9a9dba77aa4322f9dc37b6493a8410e7482ec
[ "MIT", "BSD-3-Clause" ]
null
null
null
import asyncio import logging import random import typing as t from datetime import datetime, timezone from operator import attrgetter import discord import discord.abc from discord.ext import commands from bot import constants from bot.bot import Bot from bot.exts.help_channels import _caches, _channel, _cooldown, _...
42.010684
120
0.670363
6ac05bd39a70de6163a586a9ee9a2b3649ee2eef
16,516
py
Python
code/menu/screens/shopmenu.py
LordZagreus/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
1
2017-10-31T22:26:22.000Z
2017-10-31T22:26:22.000Z
code/menu/screens/shopmenu.py
team-sparrow/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
2
2019-07-05T03:17:18.000Z
2019-07-08T16:15:29.000Z
code/menu/screens/shopmenu.py
team-sparrow/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
1
2020-10-15T09:03:20.000Z
2020-10-15T09:03:20.000Z
import os import math import random import time from code.menu.menu import Menu from code.tools.eventqueue import EventQueue from code.tools.xml import XMLParser from code.utils.common import coalesce, intersect, offset_rect, log, log2, xml_encode, xml_decode, translate_rgb_to_string from code.constants.common i...
31.339658
233
0.60069
6ac069f3cef035db6da504010b64c5c2110dea99
3,665
py
Python
lib/bridgedb/runner.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/bridgedb/runner.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/bridgedb/runner.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 ; test-case-name: bridgedb.test.test_runner -*- # # This file is part of BridgeDB, a Tor bridge distribution system. # # :authors: Isis Lovecruft 0xA3ADB67A2CDB8B35 <isis@torproject.org> # please also see AUTHORS file # :copyright: (c) 2007-2015, The Tor Project, Inc. # (c) 200...
33.318182
79
0.661937
6ac1a5f132a19c0dca01d22ddfd3613255dba8b5
4,258
py
Python
wce_triage/ops/create_image_runner.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
3
2019-07-25T03:24:23.000Z
2021-06-23T14:01:34.000Z
wce_triage/ops/create_image_runner.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
1
2019-12-20T16:04:19.000Z
2019-12-20T16:04:19.000Z
wce_triage/ops/create_image_runner.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
2
2019-07-25T03:24:26.000Z
2021-02-14T05:27:11.000Z
#!/usr/bin/env python3 # # Create disk image # import re, sys, traceback from .tasks import task_fetch_partitions, task_refresh_partitions, task_mount, task_remove_persistent_rules, task_remove_logs, task_fsck, task_shrink_partition, task_expand_partition, task_unmount from .partclone_tasks import task_create_disk_im...
35.190083
196
0.711837
6ac297a5895de04303f5fe688063a599cff885d4
4,053
py
Python
batch_processing_dataflow/play_store_flow.py
KeeplerIO/meetup-hands-on-gcp-2019
3674922d89d2be8984eb5719f0faaae127823ab4
[ "MIT" ]
1
2019-04-03T17:47:04.000Z
2019-04-03T17:47:04.000Z
batch_processing_dataflow/play_store_flow.py
KeeplerIO/meetup-hands-on-gcp-2019
3674922d89d2be8984eb5719f0faaae127823ab4
[ "MIT" ]
2
2020-08-10T10:52:57.000Z
2022-01-22T04:18:42.000Z
batch_processing_dataflow/play_store_flow.py
KeeplerIO/meetup-hands-on-gcp-2019
3674922d89d2be8984eb5719f0faaae127823ab4
[ "MIT" ]
null
null
null
import argparse import logging import apache_beam as beam from apache_beam.io import WriteToBigQuery from apache_beam.io import ReadFromText, WriteToText from apache_beam.options.pipeline_options import PipelineOptions def run(argv=None): """Main entry point. It defines and runs the pipeline.""" parser = ...
42.663158
116
0.593881
6ac30849631c3b7df115a92dba1c94f0bb05ed26
4,259
py
Python
backend/main/server/resources/Message.py
Manotomo-Alliance-Support-Squad/WWS
3df21a3f715eeb3b57314bf08c38f2239b2ba399
[ "MIT" ]
null
null
null
backend/main/server/resources/Message.py
Manotomo-Alliance-Support-Squad/WWS
3df21a3f715eeb3b57314bf08c38f2239b2ba399
[ "MIT" ]
20
2021-03-15T20:30:35.000Z
2021-06-02T19:16:55.000Z
backend/main/server/resources/Message.py
Manotomo-Alliance-Support-Squad/WWS
3df21a3f715eeb3b57314bf08c38f2239b2ba399
[ "MIT" ]
null
null
null
from flask import request from flask_jwt import jwt_required from flask_restful import Resource from main.server import app, cache, db from main.server.models import Message, MessageSchema messages_schema = MessageSchema(many=True) message_schema = MessageSchema()
35.789916
182
0.621273
6ac3173f834c06ec5469554b76a1d8e391432cee
5,171
py
Python
demos/chicken_pasta/chicken_pasta.py
icaros-usc/wecook
27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc
[ "BSD-3-Clause" ]
15
2019-09-15T05:24:19.000Z
2021-02-26T20:31:19.000Z
demos/chicken_pasta/chicken_pasta.py
icaros-usc/wecook
27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc
[ "BSD-3-Clause" ]
16
2019-10-10T23:27:00.000Z
2020-05-14T02:30:56.000Z
demos/chicken_pasta/chicken_pasta.py
icaros-usc/wecook
27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc
[ "BSD-3-Clause" ]
2
2020-02-01T16:31:29.000Z
2020-04-07T21:00:04.000Z
#!/usr/bin/env python3 import rospy from wecook.msg import ActionMsg, TaskMsg, SceneMsg, ObjectMsg, ContainingMsg, AgentMsg if __name__ == '__main__': try: talker() except rospy.ROSInterruptException: pass
55.010638
98
0.375169
6ac35d88701fa7c3171d4b1e9eb134859f289cd2
5,380
py
Python
volttron/platform/vip/agent/subsystems/heartbeat.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
volttron/platform/vip/agent/subsystems/heartbeat.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
volttron/platform/vip/agent/subsystems/heartbeat.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2017, Battelle Memorial Institute. # # 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...
34.487179
86
0.666729
6ac367d8d5ec9f368f230df751f19e5799e20bdd
18,984
py
Python
datasets/experimental/ni_superalloys/Ni_superalloy.py
kyawlin/smlb
79c757d7fc040fb30ad44410be158b3ce3bdf30d
[ "Apache-2.0" ]
null
null
null
datasets/experimental/ni_superalloys/Ni_superalloy.py
kyawlin/smlb
79c757d7fc040fb30ad44410be158b3ce3bdf30d
[ "Apache-2.0" ]
null
null
null
datasets/experimental/ni_superalloys/Ni_superalloy.py
kyawlin/smlb
79c757d7fc040fb30ad44410be158b3ce3bdf30d
[ "Apache-2.0" ]
null
null
null
"""Ni-Superalloy dataset. Scientific Machine Learning Benchmark A benchmark of regression models in chem- and materials informatics. 2019, Brendan Folie, Citrine Informatics. See class NiSuperalloyDataset for details. """ import os import json import zipfile from typing import List, Optional, Tuple, Union import nu...
40.650964
99
0.629794
6ac3c0aa131a8fbf4b061367a8fbb2e23790a4c8
3,777
py
Python
metricbeat/module/postgresql/test_postgresql.py
SHolzhauer/beats
39679a536a22e8a0d7534a2475504488909d19fd
[ "ECL-2.0", "Apache-2.0" ]
4
2020-11-17T06:29:30.000Z
2021-08-08T11:56:01.000Z
metricbeat/module/postgresql/test_postgresql.py
SHolzhauer/beats
39679a536a22e8a0d7534a2475504488909d19fd
[ "ECL-2.0", "Apache-2.0" ]
36
2021-02-02T14:18:40.000Z
2022-03-20T15:07:30.000Z
metricbeat/module/postgresql/test_postgresql.py
SHolzhauer/beats
39679a536a22e8a0d7534a2475504488909d19fd
[ "ECL-2.0", "Apache-2.0" ]
6
2021-03-10T05:38:32.000Z
2021-08-16T13:11:19.000Z
import metricbeat import os import pytest import sys import unittest
32.843478
76
0.581943
6ac43cedb06c0b3488172628809f67d3f8c8275d
2,520
py
Python
pytorch_lightning/accelerators/cpu_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/cpu_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/cpu_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.520548
99
0.681746
6ac4859e41ada58d0b49c47a334602416d451187
219
py
Python
books/admin.py
aurphillus/Django-Library-Completed
f46e45f85c888e7694323e22f6e966c291a4a0be
[ "MIT" ]
null
null
null
books/admin.py
aurphillus/Django-Library-Completed
f46e45f85c888e7694323e22f6e966c291a4a0be
[ "MIT" ]
null
null
null
books/admin.py
aurphillus/Django-Library-Completed
f46e45f85c888e7694323e22f6e966c291a4a0be
[ "MIT" ]
null
null
null
from django.contrib import admin from books.models import Genre, Author, Book, TBR # Register your models here. admin.site.register(Genre) admin.site.register(Author) admin.site.register(Book) admin.site.register(TBR)
24.333333
49
0.799087
6ac4ca9b00a8492410dc6166ad36ac8d64fdcffc
2,337
py
Python
rabbitmq/tests/common.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
1
2021-03-24T13:00:14.000Z
2021-03-24T13:00:14.000Z
rabbitmq/tests/common.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
null
null
null
rabbitmq/tests/common.py
jfmyers9/integrations-core
8793c784f1d5b2c9541b2dd4214dd91584793ced
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os from packaging import version from datadog_checks.base.utils.common import get_docker_hostname HERE = os.path.dirname(os.path.abspath(__file__)) ROOT = os.path.dirname(os.path.dirname(HERE)) ...
23.606061
64
0.618314
6ac4e4fc48c67f3dafab5b728a225aa95eec15e2
7,668
py
Python
st2common/st2common/util/pack.py
timgates42/st2
0e8ae756f30ffe2e017c64bff67830abdee7f7c9
[ "Apache-2.0" ]
null
null
null
st2common/st2common/util/pack.py
timgates42/st2
0e8ae756f30ffe2e017c64bff67830abdee7f7c9
[ "Apache-2.0" ]
15
2021-02-11T22:58:54.000Z
2021-08-06T18:03:47.000Z
st2common/st2common/util/pack.py
timgates42/st2
0e8ae756f30ffe2e017c64bff67830abdee7f7c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, 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 ...
36.514286
100
0.666275
6ac55faf90a367de65f30a569842061f13204e0c
2,952
py
Python
module1-introduction-to-sql/query.py
jrslagle/DS-Unit-3-Sprint-2-SQL-and-Databases
8a6b3fd14b6a6833ee3a14b2d8a7db3bee494a14
[ "MIT" ]
null
null
null
module1-introduction-to-sql/query.py
jrslagle/DS-Unit-3-Sprint-2-SQL-and-Databases
8a6b3fd14b6a6833ee3a14b2d8a7db3bee494a14
[ "MIT" ]
null
null
null
module1-introduction-to-sql/query.py
jrslagle/DS-Unit-3-Sprint-2-SQL-and-Databases
8a6b3fd14b6a6833ee3a14b2d8a7db3bee494a14
[ "MIT" ]
null
null
null
# Look at the charactercreator_character table # GET_CHARACTERS = """ # SELECT * # FROM charactercreator_character; # """ # How many total Characters are there? (302) TOTAL_CHARACTERS = """ SELECT COUNT(*) as number_of_characters FROM charactercreator_character; """ # How many of each specific subclass? # TOTAL_SUBC...
28.941176
120
0.774051
6ac65f8d4a911234497385069b667c9dd2f68934
21,364
py
Python
pixelproject/grid.py
MickaelRigault/pixelproject
d98db99a8e69eafa7a979c02a099e4c07f5fd568
[ "Apache-2.0" ]
null
null
null
pixelproject/grid.py
MickaelRigault/pixelproject
d98db99a8e69eafa7a979c02a099e4c07f5fd568
[ "Apache-2.0" ]
null
null
null
pixelproject/grid.py
MickaelRigault/pixelproject
d98db99a8e69eafa7a979c02a099e4c07f5fd568
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # import warnings import numpy as np UNIT_SQUARE = np.asarray([[0,0],[0,1],[1,1],[1,0]])-0.5 from propobject import BaseObject from shapely import geometry import pandas import geopandas # ======================= # # # # Functions # # ...
35.08046
145
0.550178
6ac66c22ad3d5b81a13742eecef45d93fd664ee6
31,445
py
Python
numpy/lib/format.py
AnirudhDagar/numpy
77bc3225e6f4badf83190ec300a0e10e56949644
[ "BSD-3-Clause" ]
5
2021-08-23T06:23:15.000Z
2022-02-05T07:27:30.000Z
numpy/lib/format.py
AnirudhDagar/numpy
77bc3225e6f4badf83190ec300a0e10e56949644
[ "BSD-3-Clause" ]
75
2021-07-12T01:28:50.000Z
2022-03-28T20:09:00.000Z
numpy/lib/format.py
AnirudhDagar/numpy
77bc3225e6f4badf83190ec300a0e10e56949644
[ "BSD-3-Clause" ]
1
2019-11-05T15:23:08.000Z
2019-11-05T15:23:08.000Z
""" Binary serialization NPY format ========== A simple format for saving numpy arrays to disk with the full information about them. The ``.npy`` format is the standard binary file format in NumPy for persisting a *single* arbitrary NumPy array on disk. The format stores all of the shape and dtype information necess...
34.21654
87
0.641437
6ac6979dc72c67c44ef423ebf8b3a34cc0b6d4cc
539
py
Python
gva/data/validator/is_valid_enum.py
gva-jjoyce/gva_data
cda990d0abb4b175025aaf16e75192bd9cc213af
[ "Apache-2.0" ]
null
null
null
gva/data/validator/is_valid_enum.py
gva-jjoyce/gva_data
cda990d0abb4b175025aaf16e75192bd9cc213af
[ "Apache-2.0" ]
24
2020-12-24T12:21:42.000Z
2021-01-28T14:22:38.000Z
gva/data/validator/is_valid_enum.py
gva-jjoyce/gva_data
cda990d0abb4b175025aaf16e75192bd9cc213af
[ "Apache-2.0" ]
null
null
null
""" Enumerator Test """ from typing import Any
22.458333
56
0.569573
6ac7d878414c23d75e260d1c447ced1efb264340
2,420
py
Python
events_page/app.py
los-verdes/lv-event-pagenerator
88416b626ff2dca6e2d71fa60bff4823954b3131
[ "MIT" ]
null
null
null
events_page/app.py
los-verdes/lv-event-pagenerator
88416b626ff2dca6e2d71fa60bff4823954b3131
[ "MIT" ]
7
2022-01-16T15:36:40.000Z
2022-01-25T22:02:12.000Z
events_page/app.py
los-verdes/lv-event-pagenerator
88416b626ff2dca6e2d71fa60bff4823954b3131
[ "MIT" ]
null
null
null
#!/usr/bin/env python from zoneinfo import ZoneInfo import flask from dateutil.parser import parse from flask_assets import Bundle, Environment from logzero import logger, setup_logger from webassets.filter import get_filter from config import cfg from apis import calendar as gcal setup_logger(name=__name__) app =...
24.444444
87
0.648347
6ac8631a21e5b850ca9b81ac1543a63108f70e71
6,090
py
Python
bin/focus_scan.py
desihub/desicmx
6f7c9a3cff25c970af57de20e3a12001382deb23
[ "BSD-3-Clause" ]
3
2019-11-15T23:17:23.000Z
2019-11-27T17:19:33.000Z
bin/focus_scan.py
desihub/desicmx
6f7c9a3cff25c970af57de20e3a12001382deb23
[ "BSD-3-Clause" ]
4
2019-12-12T03:37:32.000Z
2020-01-28T21:29:51.000Z
bin/focus_scan.py
desihub/desicmx
6f7c9a3cff25c970af57de20e3a12001382deb23
[ "BSD-3-Clause" ]
2
2019-12-20T08:21:52.000Z
2020-06-30T15:21:53.000Z
#!/usr/bin/env python import astropy.io.fits as fits import numpy as np import os import matplotlib.pyplot as plt import argparse if __name__ == "__main__": descr = 'GFA focus sequence plots/analysis' parser = argparse.ArgumentParser(description=descr) parser.add_argument('first_expid', type=int, nargs=1...
35.614035
129
0.612315
6ac89300a5b9e4ad6f97864631998446abb69eb0
313
py
Python
proto_3/ddq/topics/logics/topic.py
jadnohra/connect
8eb21e6f122898094447bc3d5edb3053d5a2adf2
[ "Unlicense" ]
null
null
null
proto_3/ddq/topics/logics/topic.py
jadnohra/connect
8eb21e6f122898094447bc3d5edb3053d5a2adf2
[ "Unlicense" ]
6
2021-03-19T12:06:56.000Z
2022-03-12T00:23:09.000Z
proto_3/ddq/topics/logics/topic.py
jadnohra/connect
8eb21e6f122898094447bc3d5edb3053d5a2adf2
[ "Unlicense" ]
null
null
null
from typing import List from ddq.taxonomy.reference import Reference from ddq.topics.topic import Topic
26.083333
59
0.610224
6ac951af97aa3d1a0ef9e931276c0e45ff2d14cc
4,344
py
Python
pythia/utils/logger.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
2
2019-05-23T02:07:03.000Z
2019-06-08T18:56:05.000Z
pythia/utils/logger.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
pythia/utils/logger.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import base64 import logging import os import sys from tensorboardX import SummaryWriter from pythia.utils.distributed_utils import is_main_process from pythia.utils.general import (ckpt_name_from_core_args, foldername_from_config_ov...
34.204724
81
0.63628
6ac9be98a456dcdce40e3c4f391cc313ab62f054
13,522
py
Python
sdk/python/pulumi_google_native/healthcare/v1beta1/user_data_mapping.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/healthcare/v1beta1/user_data_mapping.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/healthcare/v1beta1/user_data_mapping.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
45.837288
400
0.654859
6aca7a5f520c3a19c81c989f925529d891ca4d67
661
py
Python
_doc/sphinxdoc/source/conf.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
null
null
null
_doc/sphinxdoc/source/conf.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
null
null
null
_doc/sphinxdoc/source/conf.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
null
null
null
import sys import os import sphinx_rtd_theme source_path = os.path.normpath( os.path.join( os.path.abspath( os.path.split(__file__)[0]))) try: from conf_base import * except ImportError: sys.path.append(source_path) from conf_base import * html_theme = 'sphinx_rtd_theme' html_the...
25.423077
74
0.741301
6acaa1d753027b9aa151aee9ced96ca2d15567b0
2,247
py
Python
dolfyn/adv/api.py
lkilcher/dolfyn-light
416bf6aa8a3455cebf973f416c9e4ba89a801a71
[ "Apache-2.0" ]
null
null
null
dolfyn/adv/api.py
lkilcher/dolfyn-light
416bf6aa8a3455cebf973f416c9e4ba89a801a71
[ "Apache-2.0" ]
null
null
null
dolfyn/adv/api.py
lkilcher/dolfyn-light
416bf6aa8a3455cebf973f416c9e4ba89a801a71
[ "Apache-2.0" ]
null
null
null
""" This module contains routines for reading and working with adv data. It contains: +-----------------------------------+-----------------------------------------+ | Name | Description | +===================================+====================================...
51.068182
79
0.348465
6acb7ed968b97603aa5b744b910e0997b0f3f62d
561
py
Python
server/api/migrations/0002_auto_20201011_1053.py
ShahriarDhruvo/WebTech_Assignment2
845d198a91b1dcc8ed149362499754167fca419d
[ "MIT" ]
null
null
null
server/api/migrations/0002_auto_20201011_1053.py
ShahriarDhruvo/WebTech_Assignment2
845d198a91b1dcc8ed149362499754167fca419d
[ "MIT" ]
null
null
null
server/api/migrations/0002_auto_20201011_1053.py
ShahriarDhruvo/WebTech_Assignment2
845d198a91b1dcc8ed149362499754167fca419d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-11 10:53 from django.db import migrations, models
23.375
72
0.57041
6acc395ad3bfafbc612c2d532d32bbb5ce80e13f
4,123
py
Python
flink-ai-flow/lib/notification_service/notification_service/mongo_event_storage.py
lisy09/flink-ai-extended
011a5a332f7641f66086653e715d0596eab2e107
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-08-06T04:24:36.000Z
2021-08-06T04:24:36.000Z
flink-ai-flow/lib/notification_service/notification_service/mongo_event_storage.py
sentimentist/flink-ai-extended
689d000f2db8919fd80e0725a1609918ca4a26f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
flink-ai-flow/lib/notification_service/notification_service/mongo_event_storage.py
sentimentist/flink-ai-extended
689d000f2db8919fd80e0725a1609918ca4a26f4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-05-20T02:17:11.000Z
2021-05-20T02:17:11.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.175926
97
0.64031
6acc7db3216417c3207f16b6723988768ff50b66
711
py
Python
src/unicon/plugins/confd/csp/__init__.py
tahigash/unicon.plugins
1b43a5a61244ea9312387fd855442ace37c65db9
[ "Apache-2.0" ]
1
2021-02-25T19:36:56.000Z
2021-02-25T19:36:56.000Z
src/unicon/plugins/confd/csp/__init__.py
tahigash/unicon.plugins
1b43a5a61244ea9312387fd855442ace37c65db9
[ "Apache-2.0" ]
null
null
null
src/unicon/plugins/confd/csp/__init__.py
tahigash/unicon.plugins
1b43a5a61244ea9312387fd855442ace37c65db9
[ "Apache-2.0" ]
null
null
null
__author__ = "Dave Wapstra <dwapstra@cisco.com>" from unicon.plugins.confd import ConfdServiceList, ConfdConnection, ConfdConnectionProvider from .statemachine import CspStateMachine from .settings import CspSettings from . import service_implementation as csp_svc
28.44
91
0.759494
6accba984dd52f022ed6544e1f7ad42db7180437
665
py
Python
setup.py
rrwen/search_google
e647868ba5da2803e787a3c06b32e09452068736
[ "MIT" ]
15
2017-08-24T18:44:55.000Z
2021-02-01T22:07:53.000Z
setup.py
rrwen/search_google
e647868ba5da2803e787a3c06b32e09452068736
[ "MIT" ]
5
2017-09-05T12:25:09.000Z
2021-10-18T06:45:24.000Z
setup.py
rrwen/search_google
e647868ba5da2803e787a3c06b32e09452068736
[ "MIT" ]
1
2018-02-20T13:44:44.000Z
2018-02-20T13:44:44.000Z
# -*- coding: utf-8 -*- from setuptools import setup import search_google as package setup( name=package.__name__, version=package.__version__, description=package.__description__, long_description=readme(), author=package.__author__, author_email=package.__email__, license=package.__license__, url...
24.62963
47
0.771429
6acd5e71b7f337a2cb3ca947d7cf6d05f0a0b474
851
py
Python
setup.py
chearon/macpack
1cf6ce453dd33a811343e4bb6ee5575bc9fe919d
[ "MIT" ]
24
2016-11-14T14:09:57.000Z
2022-01-26T02:22:45.000Z
setup.py
najiji/macpack
20b518e9bc0f4e58d47c5416a686a4b246a3764d
[ "MIT" ]
5
2016-11-14T14:09:53.000Z
2019-04-18T15:49:14.000Z
setup.py
najiji/macpack
20b518e9bc0f4e58d47c5416a686a4b246a3764d
[ "MIT" ]
3
2018-01-27T15:38:46.000Z
2019-04-09T16:21:23.000Z
import setuptools import os try: import pypandoc description = pypandoc.convert('README.md', 'rst') if os.path.exists('README.md') else '' except ImportError: description = '' setuptools.setup( name = 'macpack', packages = setuptools.find_packages(), version = '1.0.3', description = 'Makes a macOS binar...
32.730769
131
0.706228
6acdf3a0dc36f1ce88eb6431d38ef46ea81f633b
1,371
py
Python
WEEK2/day5/scripts/06_NB_Challenges_Isolines.py
tizon9804/SS2017
7cb374ad21cdfeeef223ac4a65cbbf40dab22e06
[ "MIT" ]
null
null
null
WEEK2/day5/scripts/06_NB_Challenges_Isolines.py
tizon9804/SS2017
7cb374ad21cdfeeef223ac4a65cbbf40dab22e06
[ "MIT" ]
null
null
null
WEEK2/day5/scripts/06_NB_Challenges_Isolines.py
tizon9804/SS2017
7cb374ad21cdfeeef223ac4a65cbbf40dab22e06
[ "MIT" ]
null
null
null
import vtk # Read the file (to test that it was written correctly) reader = vtk.vtkXMLImageDataReader() reader.SetFileName("../data/wind_image.vti") reader.Update() print(reader.GetOutput()) # Convert the image to a polydata imageDataGeometryFilter = vtk.vtkImageDataGeometryFilter() imageDataGeometryFilter.SetInputCon...
30.466667
74
0.835157
6ace6e18f6860e091c836de50634b3a607e70811
11,303
py
Python
mbbl_envs/mbbl/env/gym_env/invertedPendulum.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
9
2022-01-16T11:27:00.000Z
2022-03-13T14:04:48.000Z
mbbl_envs/mbbl/env/gym_env/invertedPendulum.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
mbbl_envs/mbbl/env/gym_env/invertedPendulum.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
""" # ----------------------------------------------------------------------------- # @brief: # Tingwu: reset the reward function so that it's more similar to the one # defined in GYM # ----------------------------------------------------------------------------- """ import numpy as np from mbbl.config i...
35.656151
79
0.529594
6ad075ac74b446b2102501aae9ff9190489a4090
270
py
Python
ACME/visdom/__init__.py
mauriziokovacic/ACME
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
3
2019-10-23T23:10:55.000Z
2021-09-01T07:30:14.000Z
ACME/visdom/__init__.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
null
null
null
ACME/visdom/__init__.py
mauriziokovacic/ACME-Python
2615b66dd4addfd5c03d9d91a24c7da414294308
[ "MIT" ]
1
2020-07-11T11:35:43.000Z
2020-07-11T11:35:43.000Z
from .bar import * from .create_session import * from .image import * from .line import * from .mesh import * from .pie import * from .text import * from .VisdomFigure import * from .VisdomScene import *
27
29
0.555556
6ad0bc72be93fcbf7c2b0d3f4185b26d3bfb3b1c
1,426
py
Python
web/pingpongpiweb.py
andrewdyersmith/pingpongpi
63e969468da24b2d00e86033dfcb22de75f264bc
[ "MIT" ]
null
null
null
web/pingpongpiweb.py
andrewdyersmith/pingpongpi
63e969468da24b2d00e86033dfcb22de75f264bc
[ "MIT" ]
null
null
null
web/pingpongpiweb.py
andrewdyersmith/pingpongpi
63e969468da24b2d00e86033dfcb22de75f264bc
[ "MIT" ]
null
null
null
# Ping Pong Pi web UI running on flask. # Uses zmq to speak to daemon controlling screen. from flask import Flask, render_template, appcontext_tearing_down, request from multiprocessing import Process, Queue from multiprocessing.connection import Client import atexit import time import zmq app = Flask(__name__) MOD...
22.634921
74
0.704067
6ad190f41233de2c7f9d3aa69edc83f906187598
5,171
py
Python
watcher/tests/decision_engine/strategy/strategies/test_base.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
64
2015-10-18T02:57:24.000Z
2022-01-13T11:27:51.000Z
watcher/tests/decision_engine/strategy/strategies/test_base.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
null
null
null
watcher/tests/decision_engine/strategy/strategies/test_base.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
35
2015-12-25T13:53:21.000Z
2021-07-19T15:50:16.000Z
# -*- encoding: utf-8 -*- # Copyright (c) 2019 European Organization for Nuclear Research (CERN) # # 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...
36.673759
76
0.705473
6ad2141e919181f75e53ccffa43344d1aae6eea7
346
py
Python
main.py
BenG49/sudoku
e4b14655e23d04c161feb16ceb1338537f519bdb
[ "MIT" ]
null
null
null
main.py
BenG49/sudoku
e4b14655e23d04c161feb16ceb1338537f519bdb
[ "MIT" ]
null
null
null
main.py
BenG49/sudoku
e4b14655e23d04c161feb16ceb1338537f519bdb
[ "MIT" ]
null
null
null
from sudoku import Sudoku if __name__ == '__main__': main()
12.814815
26
0.297688
6ad243bce2bf880a6b70228da5819c87e92c557b
776
py
Python
test/test_sampler.py
pfnet-research/autogbt-alt
57f7ae1bce2923d11f73c3631e34be49c7dd25da
[ "MIT" ]
83
2019-04-01T05:45:37.000Z
2021-04-13T02:33:04.000Z
test/test_sampler.py
pfnet-research/autogbt-alt
57f7ae1bce2923d11f73c3631e34be49c7dd25da
[ "MIT" ]
null
null
null
test/test_sampler.py
pfnet-research/autogbt-alt
57f7ae1bce2923d11f73c3631e34be49c7dd25da
[ "MIT" ]
10
2019-04-15T03:15:42.000Z
2020-03-30T11:52:12.000Z
import numpy as np import pandas as pd from autogbt.sampler import MajorityUnderSampler
23.515152
73
0.640464
6ad3007b95e5d17415b05151d343ee3326e45e1d
2,157
py
Python
experiment/diabetes/accuracy_info.py
leandro-santiago/bloomwisard
4c02610c4ef2d2cf8424797c8a815da182ca2383
[ "MIT" ]
2
2020-10-25T17:01:10.000Z
2020-12-04T14:26:26.000Z
experiment/diabetes/accuracy_info.py
leandro-santiago/bloomwisard
4c02610c4ef2d2cf8424797c8a815da182ca2383
[ "MIT" ]
null
null
null
experiment/diabetes/accuracy_info.py
leandro-santiago/bloomwisard
4c02610c4ef2d2cf8424797c8a815da182ca2383
[ "MIT" ]
null
null
null
import numpy as np import sys from timeit import default_timer as timer sys.path.append("../../") from core import wnn from encoding import thermometer from encoding import util #Load Diabetes data base_path = "../../dataset/diabetes/" #2/3 Test bits_encoding = 20 train_data, train_label, test_data, test_label, data...
23.445652
95
0.658785
6ad38265801ddbc75fcce3bfaba00694854f353b
690
py
Python
PyGame/pygame1/tutorial1/startercode.py
hoppfull/Legacy-Python
43f465bfdb76c91f2ac16aabb0783fdf5f459adb
[ "MIT" ]
null
null
null
PyGame/pygame1/tutorial1/startercode.py
hoppfull/Legacy-Python
43f465bfdb76c91f2ac16aabb0783fdf5f459adb
[ "MIT" ]
null
null
null
PyGame/pygame1/tutorial1/startercode.py
hoppfull/Legacy-Python
43f465bfdb76c91f2ac16aabb0783fdf5f459adb
[ "MIT" ]
null
null
null
from pygamehelper import * from pygame import * from pygame.locals import * from vec2d import * from random import uniform import numpy as np s = Starter() s.mainLoop(40)
22.258065
98
0.588406
6ad3e60ef95d7e5c040fd394c92201b95875defd
1,155
py
Python
main.py
thewhiteninja/twitch-recorder
815b571e22917daa906d054a8ab2fe794e99bb8a
[ "MIT" ]
null
null
null
main.py
thewhiteninja/twitch-recorder
815b571e22917daa906d054a8ab2fe794e99bb8a
[ "MIT" ]
null
null
null
main.py
thewhiteninja/twitch-recorder
815b571e22917daa906d054a8ab2fe794e99bb8a
[ "MIT" ]
null
null
null
import glob import os import sys import utils from recorder import StreamRec OUTDIR = "" if __name__ == '__main__': main()
20.625
91
0.565368
6ad40da9c9320f7c8df4a83d064f6172f24c03ec
2,268
py
Python
karbor-1.3.0/karbor/policies/protectables.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
karbor-1.3.0/karbor/policies/protectables.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
karbor-1.3.0/karbor/policies/protectables.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2017 Huawei Technologies Co., Ltd. # 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 # # ...
31.068493
78
0.619489
6ad42755c1900a89dea96e604b75bea9a5c3b32c
9,507
py
Python
router.example.py
unyo/uhpackage
07d0263c586e5daa0012c3ff82754be381850911
[ "BSD-3-Clause" ]
null
null
null
router.example.py
unyo/uhpackage
07d0263c586e5daa0012c3ff82754be381850911
[ "BSD-3-Clause" ]
null
null
null
router.example.py
unyo/uhpackage
07d0263c586e5daa0012c3ff82754be381850911
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # routers are dictionaries of URL routing parameters. # # For each request, the effective router is: # the built-in default base router (shown below), # updated by the BASE router in routes.py routers, # updated by the app-specific router in routes.py routers (if an...
42.632287
164
0.679289
6ad467fa9905c0ca84ad3c1dc298047956f35818
252
py
Python
notebooks/2018.11.09 Meeting.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
notebooks/2018.11.09 Meeting.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
notebooks/2018.11.09 Meeting.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
#%% from uarray.core import * #%% s = Scalar(Int(10)) #%% #%% register(Call(Always(w("a")), w("idx")), lambda a, idx: a) #%% a_ten = Always(s) #%% s = Sequence(Int(10), a_ten)
10.956522
58
0.559524
6ad4fd638f3c8440ee1f4046774d447aac8466fb
2,540
py
Python
var/spack/repos/builtin/packages/py-black/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-black/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-black/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
47.924528
96
0.663386
6ad54c23aea43b34f6b32a39f371e9919e5e2f64
3,772
py
Python
store/adminshop/templatetags/admin_extras.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
store/adminshop/templatetags/admin_extras.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
store/adminshop/templatetags/admin_extras.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Manuel Rodriguez <valle> # @Date: 27-Aug-2017 # @Email: valle.mrv@gmail.com # @Filename: admin_extras.py # @Last modified by: valle # @Last modified time: 02-Feb-2018 # @License: Apache license vesion 2.0 from django import template from django.db.models import Q try: from ...
24.980132
72
0.656946
6ad59b00bcc766f57088e62e448110d102b95431
17,165
py
Python
doc/tutorial/using_gpu_solution_1.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
doc/tutorial/using_gpu_solution_1.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
doc/tutorial/using_gpu_solution_1.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Aesara tutorial # Solution to Exercise in section 'Using the GPU' # 1. Raw results import numpy as np import aesara import aesara.tensor as tt aesara.config.floatX = "float32" rng = np.random N = 400 feats = 784 D = ( rng.randn(N, feats).astype(aesara.config.floatX), rng.randint...
62.192029
374
0.579435
6ad5dcf7e9f96dc2d1c33142dc858481b208540e
1,242
py
Python
chainercv/transforms/bbox/translate_bbox.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
1
2018-08-24T02:28:31.000Z
2018-08-24T02:28:31.000Z
chainercv/transforms/bbox/translate_bbox.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
null
null
null
chainercv/transforms/bbox/translate_bbox.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
2
2019-12-16T02:20:26.000Z
2022-01-17T02:00:49.000Z
def translate_bbox(bbox, y_offset=0, x_offset=0): """Translate bounding boxes. This method is mainly used together with image transforms, such as padding and cropping, which translates the left top point of the image from coordinate :math:`(0, 0)` to coordinate :math:`(y, x) = (y_{offset}, x_{offse...
37.636364
78
0.65942
6ad9fa52c59620d080c895b1dcbcc37ef6f3e407
504
py
Python
behave/features/environment.py
ministryofjustice/cla-end-to-end-tests
3d7e525c17f38403a91087c2b1af460ca1109a9b
[ "MIT" ]
1
2022-02-09T13:12:57.000Z
2022-02-09T13:12:57.000Z
behave/features/environment.py
ministryofjustice/cla-end-to-end-tests
3d7e525c17f38403a91087c2b1af460ca1109a9b
[ "MIT" ]
3
2021-09-16T12:24:44.000Z
2022-03-08T10:21:26.000Z
behave/features/environment.py
ministryofjustice/cla-end-to-end-tests
3d7e525c17f38403a91087c2b1af460ca1109a9b
[ "MIT" ]
null
null
null
import os from configparser import ConfigParser from helper.helper_web import get_browser
28
67
0.71627
6ada8f8c31036f868e794a58c29dd691ac89f964
2,422
py
Python
recipe_organizer/gui/recipe_list/recipe_source.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
recipe_organizer/gui/recipe_list/recipe_source.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
recipe_organizer/gui/recipe_list/recipe_source.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
from pathlib import Path from tkinter import Frame, Label from recipe_organizer.events.event import Event, EventType from recipe_organizer.events.event_observer import EventObserver from recipe_organizer.events.event_publisher import EventPublisher from recipe_organizer.gui.interfaces.widget_container import WidgetCon...
34.112676
111
0.671346
6ada8fe0ced127e4eb158cbef0bc674aa2bd2da2
917
py
Python
var/spack/repos/builtin/packages/spot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/spot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/spot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-01-06T18:58:26.000Z
2021-01-06T18:58:26.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import *
38.208333
96
0.707743
6adbdd74efd4b512d8ebd0cf5926e792b5bd7772
42
py
Python
0.py
itspuneet/itspuneet
d44f78afcff275aa56f03bba738ac3e4f2c30843
[ "bzip2-1.0.6" ]
null
null
null
0.py
itspuneet/itspuneet
d44f78afcff275aa56f03bba738ac3e4f2c30843
[ "bzip2-1.0.6" ]
null
null
null
0.py
itspuneet/itspuneet
d44f78afcff275aa56f03bba738ac3e4f2c30843
[ "bzip2-1.0.6" ]
null
null
null
k=0 while k!=1: print(k) k+=1
8.4
13
0.404762
6adc3f2423ac6cf2c778f44e1751ae2e595e05f5
74,159
py
Python
jss_figures_replication_script.py
Cole-vJ/AdvEMDpy
160cd44b371a2c8aa66961f23062c1d7305dd728
[ "Unlicense" ]
null
null
null
jss_figures_replication_script.py
Cole-vJ/AdvEMDpy
160cd44b371a2c8aa66961f23062c1d7305dd728
[ "Unlicense" ]
null
null
null
jss_figures_replication_script.py
Cole-vJ/AdvEMDpy
160cd44b371a2c8aa66961f23062c1d7305dd728
[ "Unlicense" ]
null
null
null
# ________ # / # \ / # \ / # \/ import random import textwrap import emd_mean import AdvEMDpy import emd_basis import emd_utils import numpy as np import pandas as pd import cvxpy as cvx import seaborn as sns import matplotlib.pyplot as plt from scipy.integrate import odeint from ...
48.949835
135
0.664141
6adce2d4edcce50b7803e777bec26f0e2dbe1ef5
8,165
py
Python
GPT-distributed.py
wenhuchen/LogicNLG
e986516e5b6d310219215510b3fe1603d03215cd
[ "MIT" ]
141
2020-04-23T03:30:16.000Z
2022-03-19T08:36:31.000Z
GPT-distributed.py
wenhuchen/LogicNLG
e986516e5b6d310219215510b3fe1603d03215cd
[ "MIT" ]
15
2020-04-26T07:12:30.000Z
2021-06-10T16:40:35.000Z
GPT-distributed.py
wenhuchen/LogicNLG
e986516e5b6d310219215510b3fe1603d03215cd
[ "MIT" ]
20
2020-04-27T03:07:10.000Z
2022-01-22T22:13:15.000Z
import argparse import logging import torch import torch.nn.functional as F import numpy as np from torch import nn from torch.autograd import Variable from transformers import GPT2Config from transformers import GPT2LMHeadModel, GPT2Tokenizer, BertTokenizer from DataLoader import * from Model import BERTGen from utils...
47.196532
145
0.643846
6addc56efc2458ffaaa37a8a1a9d3060123eac26
9,901
py
Python
bentoml/saved_bundle/loader.py
niits/BentoML
3954f36762e10f5df15af7e0ae6dd71f5f214261
[ "Apache-2.0" ]
3,451
2019-04-02T01:47:42.000Z
2022-03-31T16:20:49.000Z
bentoml/saved_bundle/loader.py
niits/BentoML
3954f36762e10f5df15af7e0ae6dd71f5f214261
[ "Apache-2.0" ]
1,925
2019-04-03T00:19:05.000Z
2022-03-31T22:41:54.000Z
bentoml/saved_bundle/loader.py
niits/BentoML
3954f36762e10f5df15af7e0ae6dd71f5f214261
[ "Apache-2.0" ]
451
2019-04-02T01:53:41.000Z
2022-03-29T08:49:06.000Z
# Copyright 2019 Atalaya Tech, 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.487455
86
0.692051
6adeb529cfb4e14bdceab8619cd0e9f75dad5fb6
615
py
Python
migrations/versions/0158_remove_rate_limit_default.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0158_remove_rate_limit_default.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0158_remove_rate_limit_default.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0158_remove_rate_limit_default Revises: 0157_add_rate_limit_to_service Create Date: 2018-01-09 14:33:08.313893 """ import sqlalchemy as sa from alembic import op revision = "0158_remove_rate_limit_default" down_revision = "0157_add_rate_limit_to_service"
26.73913
82
0.785366
6adecc40e2158fa98b341e37dfb8d034335bed2b
1,267
py
Python
gen-post.py
younghk/younghk.netlify.com
605ab089252127c0b768d31afb027e8896ae33b4
[ "MIT" ]
null
null
null
gen-post.py
younghk/younghk.netlify.com
605ab089252127c0b768d31afb027e8896ae33b4
[ "MIT" ]
null
null
null
gen-post.py
younghk/younghk.netlify.com
605ab089252127c0b768d31afb027e8896ae33b4
[ "MIT" ]
null
null
null
import os import errno from datetime import datetime print("Generating A New Post\n") post_name = input('Input Post Name: ') date_time = datetime.now() date_time_dir = date_time.strftime("%Y-%m-%d") date_time_post = date_time.strftime("%Y-%m-%d %H:%M:%S") p_name = post_name.replace(" ","-") p_name = p_name.replace(...
23.462963
56
0.561168
6ae0041ec06abb5f41acc8d9e0ad54c9727be449
39,758
py
Python
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
null
null
null
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
null
null
null
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
1
2021-08-14T13:47:18.000Z
2021-08-14T13:47:18.000Z
#!/usr/bin/env python # encoding: utf-8 -*- """ This module contains unit tests of the rmgpy.reaction module. """ import numpy import unittest from external.wip import work_in_progress from rmgpy.species import Species, TransitionState from rmgpy.reaction import Reaction from rmgpy.statmech.translation import Transl...
42.567452
208
0.566452
6ae016a3900fe6ed337451d458c99fc65e3be76f
888
py
Python
backend/core/api_urls.py
albeiks/omaralbeik.com
8d096130393919612863aac6280dffaf6e00961d
[ "MIT" ]
10
2020-05-05T16:20:04.000Z
2021-07-22T15:15:13.000Z
backend/core/api_urls.py
albeiks/omaralbeik.com
8d096130393919612863aac6280dffaf6e00961d
[ "MIT" ]
null
null
null
backend/core/api_urls.py
albeiks/omaralbeik.com
8d096130393919612863aac6280dffaf6e00961d
[ "MIT" ]
1
2020-05-06T22:31:48.000Z
2020-05-06T22:31:48.000Z
from django.conf.urls import url, include from core.routers import OptionalTrailingSlashRouter from blog import views as blogViews from snippets import views as snippetsViews from projects import views as projectsViews from tags import views as tagsViews from contents import views as contentsViews from contact import ...
35.52
71
0.824324
6ae09675e3f04c208d0aada0fe5dc7452f3a90fa
9,402
py
Python
python/video_ADG.py
alexberndt/mobile-AGV-optimization
76b97fd5aa3898fd6cb6f74f8d87140555c92af5
[ "MIT" ]
2
2021-12-22T03:07:08.000Z
2022-03-19T09:41:29.000Z
python/video_ADG.py
alexberndt/mobile-AGV-optimization
76b97fd5aa3898fd6cb6f74f8d87140555c92af5
[ "MIT" ]
null
null
null
python/video_ADG.py
alexberndt/mobile-AGV-optimization
76b97fd5aa3898fd6cb6f74f8d87140555c92af5
[ "MIT" ]
1
2021-11-22T10:58:38.000Z
2021-11-22T10:58:38.000Z
""" closed-loop MILP solved to determine optimal ordering defined by ADG """ import sys import yaml import time import matplotlib.colors as mcolors import matplotlib import matplotlib.pyplot as plt import random import logging import time import networkx as nx import csv import statistics as stat import os import ...
40.008511
251
0.623591
6ae0b2e5802c9a882bad8e33b9afb8e9564c00ff
4,558
py
Python
tests/model/test_guest.py
bcurnow/rfid-security-svc
d3806cb74d3d0cc2623ea425230dc8781ba4d8b4
[ "Apache-2.0" ]
null
null
null
tests/model/test_guest.py
bcurnow/rfid-security-svc
d3806cb74d3d0cc2623ea425230dc8781ba4d8b4
[ "Apache-2.0" ]
null
null
null
tests/model/test_guest.py
bcurnow/rfid-security-svc
d3806cb74d3d0cc2623ea425230dc8781ba4d8b4
[ "Apache-2.0" ]
null
null
null
import pytest from unittest.mock import patch import rfidsecuritysvc.model.guest as model from rfidsecuritysvc.model.color import Color from rfidsecuritysvc.model.guest import Guest from rfidsecuritysvc.model.sound import Sound from rfidsecuritysvc.exception import SoundNotFoundError def test__model_no_c...
33.762963
136
0.740895
6ae26b063b0fbd07c2ce06161f218674d84af1d4
1,119
py
Python
ice/consoles.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
578
2015-01-02T12:43:52.000Z
2022-03-27T23:45:32.000Z
ice/consoles.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
271
2015-01-05T01:56:38.000Z
2021-08-14T02:51:24.000Z
ice/consoles.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
156
2015-01-07T15:43:20.000Z
2021-12-11T19:10:44.000Z
# encoding: utf-8 import os import roms def console_roms_directory(configuration, console): """ If the user has specified a custom ROMs directory in consoles.txt then return that. Otherwise, append the shortname of the console to the default ROMs directory given by config.txt. """ if console.custom_ro...
31.971429
98
0.747096
6ae285af81cb46f32301f55fbf5e2dcaee2e26e6
5,527
py
Python
clue/c3.py
dumpmemory/roformer-v2
95b71ae03b8bb910998285e194d7752b1e4104c0
[ "Apache-2.0" ]
44
2022-03-17T02:58:27.000Z
2022-03-31T13:08:29.000Z
clue/c3.py
dumpmemory/roformer-v2
95b71ae03b8bb910998285e194d7752b1e4104c0
[ "Apache-2.0" ]
null
null
null
clue/c3.py
dumpmemory/roformer-v2
95b71ae03b8bb910998285e194d7752b1e4104c0
[ "Apache-2.0" ]
2
2022-03-17T05:47:06.000Z
2022-03-22T10:33:54.000Z
#! -*- coding:utf-8 -*- # CLUE # c3 # import json import numpy as np from snippets import * from bert4keras.backend import keras from bert4keras.snippets import sequence_padding, DataGenerator from bert4keras.snippets import open from bert4keras.snippets import truncate_sequences from tqdm import tqdm # num_classes...
29.089474
79
0.599602
6ae3ed28439c3795f0a3092e3b0da325e69356b7
1,590
py
Python
tools/perf/contrib/oop_raster/oop_raster.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/perf/contrib/oop_raster/oop_raster.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/perf/contrib/oop_raster/oop_raster.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from benchmarks import smoothness,thread_times import page_sets from telemetry import benchmark # pylint: disable=protected-access def CustomizeBrowserOptio...
34.565217
78
0.796855
6ae4d12e5b6c5a2ce81f0095493d76c6afcfb99b
3,481
py
Python
logpy/util.py
mrocklin/logpy
7e32f4da10a0ab5b86fb23947cfce9a4d49c6b3f
[ "BSD-3-Clause" ]
1
2016-09-20T16:05:12.000Z
2016-09-20T16:05:12.000Z
logpy/util.py
mrocklin/logpy
7e32f4da10a0ab5b86fb23947cfce9a4d49c6b3f
[ "BSD-3-Clause" ]
null
null
null
logpy/util.py
mrocklin/logpy
7e32f4da10a0ab5b86fb23947cfce9a4d49c6b3f
[ "BSD-3-Clause" ]
null
null
null
import itertools as it from toolz.compatibility import range, map, iteritems def transitive_get(key, d): """ Transitive dict.get >>> from logpy.util import transitive_get >>> d = {1: 2, 2: 3, 3: 4} >>> d.get(1) 2 >>> transitive_get(1, d) 4 """ while hashable(key) and key in d: ...
24.687943
67
0.545246
6ae561e06496768e94110f91362d5a5eeb524bdb
545
py
Python
index.py
rinocloud/rinobot-plugin-shift
4f7f16a5e610b91b64377733d24b6ab4b63daa67
[ "MIT" ]
null
null
null
index.py
rinocloud/rinobot-plugin-shift
4f7f16a5e610b91b64377733d24b6ab4b63daa67
[ "MIT" ]
null
null
null
index.py
rinocloud/rinobot-plugin-shift
4f7f16a5e610b91b64377733d24b6ab4b63daa67
[ "MIT" ]
null
null
null
import rinobot_plugin as bot import numpy as np if __name__ == "__main__": main()
25.952381
59
0.669725
6ae5c492e4c7a58f8381ae12e47edd808dc70752
1,912
py
Python
gluon/contrib/memcache/__init__.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
null
null
null
gluon/contrib/memcache/__init__.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
null
null
null
gluon/contrib/memcache/__init__.py
arsfeld/fog-web2py
32263a03d4183dcaf7537c87edcb4e574d4bec6e
[ "BSD-3-Clause" ]
1
2019-03-13T08:20:25.000Z
2019-03-13T08:20:25.000Z
from gluon.contrib.memcache.memcache import Client import time """ examle of usage: cache.memcache=MemcacheClient(request,[127.0.0.1:11211],debug=true) """ import cPickle as pickle import thread locker = thread.allocate_lock()
28.537313
72
0.620816
6ae692e1d71ed7665097647321e9c90f2d578c91
206
py
Python
test_data/parse/unexpected/symbol_table/inheritance_from_non_class/meta_model.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
null
null
null
test_data/parse/unexpected/symbol_table/inheritance_from_non_class/meta_model.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
2
2021-11-17T22:11:59.000Z
2021-11-18T15:17:40.000Z
test_data/parse/unexpected/symbol_table/inheritance_from_non_class/meta_model.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
null
null
null
__book_url__ = "dummy" __book_version__ = "dummy" associate_ref_with(Reference)
12.875
33
0.737864
6ae7079318bfafa24286324b4e5be07089c8ccfb
11,135
py
Python
deepcut/deepcut.py
wannaphong/deepcut
e4f7779caa087c5ffbad3bc4e88f919e300d020c
[ "MIT" ]
17
2020-10-06T12:35:19.000Z
2021-11-19T07:33:15.000Z
deepcut/deepcut.py
wannaphong/deepcut
e4f7779caa087c5ffbad3bc4e88f919e300d020c
[ "MIT" ]
3
2020-10-07T06:29:33.000Z
2020-10-23T15:21:09.000Z
deepcut/deepcut.py
wannaphong/deepcut
e4f7779caa087c5ffbad3bc4e88f919e300d020c
[ "MIT" ]
1
2020-10-06T13:16:54.000Z
2020-10-06T13:16:54.000Z
#!/usr/bin/env python # encoding: utf-8 import numbers import os import re import sys from itertools import chain import numpy as np import scipy.sparse as sp import six import pickle from .model import get_convo_nn2 from .stop_words import THAI_STOP_WORDS from .utils import CHAR_TYPES_MAP, CHARS_MAP, create_feature_...
34.367284
116
0.587068
6ae71d1265e8389449c1186df9eae1ba04f43f40
4,824
py
Python
spconv/utils/__init__.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
spconv/utils/__init__.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
spconv/utils/__init__.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Yan Yan # # 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, soft...
41.230769
101
0.676824
6ae7a32e4ed90bb4e297477064266c060efd4768
5,346
py
Python
build/android/gyp/lint.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-16T03:57:28.000Z
2021-01-23T15:29:45.000Z
build/android/gyp/lint.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
build/android/gyp/lint.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:13.000Z
2020-11-04T07:24:13.000Z
#!/usr/bin/env python # # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs Android's lint tool.""" import optparse import os import sys from xml.dom import minidom from util import build_utils ...
33.4125
78
0.62963
6ae97714d8f4b22a1d08d058e87732477cbb19c0
9,424
py
Python
clif/pybind11/generator.py
snu5mumr1k/clif
3a907dd7b0986f2b3306c88503d414f4d4f963ae
[ "Apache-2.0" ]
null
null
null
clif/pybind11/generator.py
snu5mumr1k/clif
3a907dd7b0986f2b3306c88503d414f4d4f963ae
[ "Apache-2.0" ]
null
null
null
clif/pybind11/generator.py
snu5mumr1k/clif
3a907dd7b0986f2b3306c88503d414f4d4f963ae
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.622951
80
0.671053
6aea2be020c7e8aa245e0f3059dcd2d6daefd1b7
2,865
py
Python
advent/model/discriminator.py
ChristopheGraveline064/ADVENT
fc0ecd099862ed68979b2197423f1bb34df09c74
[ "Apache-2.0" ]
1
2021-01-17T06:02:10.000Z
2021-01-17T06:02:10.000Z
advent/model/discriminator.py
ChristopheGraveline064/ADVENT
fc0ecd099862ed68979b2197423f1bb34df09c74
[ "Apache-2.0" ]
2
2021-01-17T06:21:29.000Z
2021-01-17T20:19:50.000Z
advent/model/discriminator.py
ChristopheGraveline064/ADVENT
fc0ecd099862ed68979b2197423f1bb34df09c74
[ "Apache-2.0" ]
null
null
null
from torch import nn # def get_fe_discriminator(num_classes, ndf=64): # 256-128-64-32-16 # return nn.Sequential( # nn.Conv2d(num_classes, ndf * 4, kernel_size=4, stride=2, padding=1), # nn.LeakyReLU(negative_slope=0.2, inplace=True), # nn.Conv2d(ndf * 4, ndf * 2, kernel_size=4, stride=2, ...
49.396552
90
0.624433
6aea61815f42420b447d1ce164aa7c65f5c5bc94
3,652
py
Python
spyder/dependencies.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
2
2019-04-25T08:25:37.000Z
2019-04-25T08:25:43.000Z
spyder/dependencies.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
1
2020-10-29T19:53:11.000Z
2020-10-29T19:53:11.000Z
spyder/dependencies.py
aglotero/spyder
075d32fa359b728416de36cb0e744715fa5e3943
[ "MIT" ]
1
2019-02-18T01:28:51.000Z
2019-02-18T01:28:51.000Z
# -*- coding: utf-8 -*- # # Copyright Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Module checking Spyder runtime dependencies""" import os # Local imports from spyder.utils import programs DEPENDENCIES = [] def add(modn...
32.035088
78
0.585706
6aea82e968ce364fdac8932cf3b83554a12ac797
2,947
py
Python
setup.py
jasperhyp/Chemprop4SE
c02b604b63b6766464db829fea0b306c67302e82
[ "MIT" ]
1
2021-12-15T05:18:07.000Z
2021-12-15T05:18:07.000Z
setup.py
jasperhyp/chemprop4SE
c02b604b63b6766464db829fea0b306c67302e82
[ "MIT" ]
null
null
null
setup.py
jasperhyp/chemprop4SE
c02b604b63b6766464db829fea0b306c67302e82
[ "MIT" ]
null
null
null
import os from setuptools import find_packages, setup # Load version number __version__ = None src_dir = os.path.abspath(os.path.dirname(__file__)) version_file = os.path.join(src_dir, 'chemprop', '_version.py') with open(version_file, encoding='utf-8') as fd: exec(fd.read()) # Load README with ope...
33.873563
88
0.599932
6aec0377fc121dfeab883792414df3e21c04a712
2,335
py
Python
mars/tensor/indexing/slice.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/indexing/slice.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
mars/tensor/indexing/slice.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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 a...
33.84058
76
0.636403
6aec42c6af54cc3a34d294f61a827b50bebc2cb6
50,221
py
Python
ftplugin/python/python/pyflakes/pyflakes/checker.py
leewckk/vim.configuration
db3faa4343714dd3eb3b7ab19f8cd0b64a52ee57
[ "MIT" ]
null
null
null
ftplugin/python/python/pyflakes/pyflakes/checker.py
leewckk/vim.configuration
db3faa4343714dd3eb3b7ab19f8cd0b64a52ee57
[ "MIT" ]
null
null
null
ftplugin/python/python/pyflakes/pyflakes/checker.py
leewckk/vim.configuration
db3faa4343714dd3eb3b7ab19f8cd0b64a52ee57
[ "MIT" ]
null
null
null
""" Main module. Implement the central Checker class. Also, it models the Bindings and Scopes. """ import __future__ import doctest import os import sys PY2 = sys.version_info < (3, 0) PY32 = sys.version_info < (3, 3) # Python 2.5 to 3.2 PY33 = sys.version_info < (3, 4) # Python 2.5 to 3.3 PY34 = ...
36.900073
87
0.567054
6aed26d63f42531533566c9bcedcbe6f5289c5e4
3,349
py
Python
AutoScreenShot.py
infinyte7/Auto-Screenshot
5d8e39af61f3361f372ffb48add53171b7cea672
[ "MIT" ]
3
2020-10-29T13:57:15.000Z
2021-02-19T21:59:15.000Z
AutoScreenShot.py
infinyte7/Auto-Screenshot
5d8e39af61f3361f372ffb48add53171b7cea672
[ "MIT" ]
null
null
null
AutoScreenShot.py
infinyte7/Auto-Screenshot
5d8e39af61f3361f372ffb48add53171b7cea672
[ "MIT" ]
1
2021-02-19T21:59:48.000Z
2021-02-19T21:59:48.000Z
# Project Name: Auto Screenshot # Description: Take screenshot of screen when any change take place. # Author: Mani (Infinyte7) # Date: 26-10-2020 # License: MIT from pyscreenshot import grab from PIL import ImageChops import os import time import subprocess, sys from datetime import datetime import tkinter as tk fr...
32.833333
101
0.616602
6aed847e420c882fffa9edfe88238102ee06ac09
2,749
py
Python
rqalpha/utils/logger.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-11-10T05:44:39.000Z
2020-11-10T05:44:39.000Z
rqalpha/utils/logger.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
null
null
null
rqalpha/utils/logger.py
HaidongHe/rqalpha
bb824178425909e051c456f6062a6c5bdc816421
[ "Apache-2.0" ]
1
2020-03-05T05:06:45.000Z
2020-03-05T05:06:45.000Z
# -*- coding: utf-8 -*- # 2019 # # # # * # Apache License 2.0Apache 2.0 Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0 # # # * # # Apache 2.0 Apache 2.0 # public@ricequant.com from datetime import datetime import logbook from logbook import Logger, St...
25.220183
144
0.694434
6aee73a3b8946a07512f9eca678734d10d671560
5,517
py
Python
salt/modules/oracle.py
wikimedia/operations-debs-salt
be6342abc7401ff92f67ed59f7834f1359f35314
[ "Apache-2.0" ]
null
null
null
salt/modules/oracle.py
wikimedia/operations-debs-salt
be6342abc7401ff92f67ed59f7834f1359f35314
[ "Apache-2.0" ]
null
null
null
salt/modules/oracle.py
wikimedia/operations-debs-salt
be6342abc7401ff92f67ed59f7834f1359f35314
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Oracle DataBase connection module :mainteiner: Vladimir Bormotov <bormotov@gmail.com> :maturity: new :depends: cx_Oracle :platform: all :configuration: module provide connections for multiple Oracle DB instances. **OS Environment** .. code-block:: text ORACLE_HOME: pa...
24.52
82
0.610839
6aef1e728fe8745d27da0badcde01e88381bd9b3
32,785
py
Python
tests/test_std.py
ashwini-balnaves/python-consul
4ddec9b57eb5284b58967ce1a9b2422519f88cc2
[ "MIT" ]
469
2015-01-02T18:36:39.000Z
2022-03-10T09:18:13.000Z
tests/test_std.py
ashwini-balnaves/python-consul
4ddec9b57eb5284b58967ce1a9b2422519f88cc2
[ "MIT" ]
249
2015-01-21T19:06:34.000Z
2022-01-12T09:12:58.000Z
tests/test_std.py
ashwini-balnaves/python-consul
4ddec9b57eb5284b58967ce1a9b2422519f88cc2
[ "MIT" ]
279
2015-01-17T04:25:04.000Z
2022-03-11T22:06:46.000Z
import base64 import operator import struct import time import pytest import six import consul import consul.std Check = consul.Check
34.766702
78
0.574257
6af148a08a578a5383b105b30ec3598b62b9c1f1
385
py
Python
Q58/sol.py
shivamT95/projecteuler
3e87b64235edd8444bc27198717a38e0ae0e0c0b
[ "MIT" ]
null
null
null
Q58/sol.py
shivamT95/projecteuler
3e87b64235edd8444bc27198717a38e0ae0e0c0b
[ "MIT" ]
null
null
null
Q58/sol.py
shivamT95/projecteuler
3e87b64235edd8444bc27198717a38e0ae0e0c0b
[ "MIT" ]
null
null
null
import math tot = 1 dia = 0 for side_length in range(3,100001,2): hi = side_length**2 for i in range(4): if is_prime(hi-i*side_length+i): dia = dia+1 tot = tot+4 if dia/tot < 0.1: print(side_length) break
18.333333
60
0.592208
6af16d0caa3aded0dbc0cbf9957a4f9e9107ae10
1,530
py
Python
lesson_07/02.py
alexartwww/geekbrains
f58720dc1d29bc94201b8b9c9239813c0d14ed64
[ "MIT" ]
null
null
null
lesson_07/02.py
alexartwww/geekbrains
f58720dc1d29bc94201b8b9c9239813c0d14ed64
[ "MIT" ]
null
null
null
lesson_07/02.py
alexartwww/geekbrains
f58720dc1d29bc94201b8b9c9239813c0d14ed64
[ "MIT" ]
null
null
null
task = ''' . () , . . : ( ) ( ). : V H, . : (V/6.5 + 0.5), (2 * H + 0.3). . . : , @property. ''' if __name__ == '__main__': print(task) objects = [ 231, 22, Coat(32), 'test', True, ...
25.081967
83
0.67451
0a7357e7ea86e6139bf2479d07ddffa8fab66e70
1,170
py
Python
core/fanarttvapi.py
SchadLucas/pyscrape
814a5e767ed899b5929533729c15262f1ad6a52b
[ "MIT" ]
null
null
null
core/fanarttvapi.py
SchadLucas/pyscrape
814a5e767ed899b5929533729c15262f1ad6a52b
[ "MIT" ]
1
2015-05-07T11:38:32.000Z
2015-05-07T11:38:32.000Z
core/fanarttvapi.py
SchadLucas/pyscrape
814a5e767ed899b5929533729c15262f1ad6a52b
[ "MIT" ]
null
null
null
import urllib2 import json import time from core.helpers.decorator import Cached from core.helpers.config import config from core.helpers.logger import log, LogLevel
27.857143
89
0.655556
0a73919f13735ea63c30a1b71cb346f2f001cba6
2,096
py
Python
metrics.py
AndreasLH/Image-Colourization
b41182354446feeb80000a84e5db9100b30e9d81
[ "MIT" ]
1
2021-11-01T09:53:34.000Z
2021-11-01T09:53:34.000Z
metrics.py
AndreasLH/Image-Colourization
b41182354446feeb80000a84e5db9100b30e9d81
[ "MIT" ]
null
null
null
metrics.py
AndreasLH/Image-Colourization
b41182354446feeb80000a84e5db9100b30e9d81
[ "MIT" ]
null
null
null
from math import log10, sqrt import cv2 import numpy as np def PSNR(original, compressed): ''' Calculates the Peak signal to noise ratio between a ground truth image and predicted image. see https://www.geeksforgeeks.org/python-peak-signal-to-noise-ratio-psnr/ for reference Parameters --...
24.372093
95
0.564885
0a750b96f7d83d3d539bea6b3d201533cd437b4f
832
py
Python
redirink/insights/tests/test_models.py
Egor4ik325/redirink
17ef85f48145ee6112f2fcbab60dcd9d65ba78bf
[ "MIT" ]
null
null
null
redirink/insights/tests/test_models.py
Egor4ik325/redirink
17ef85f48145ee6112f2fcbab60dcd9d65ba78bf
[ "MIT" ]
null
null
null
redirink/insights/tests/test_models.py
Egor4ik325/redirink
17ef85f48145ee6112f2fcbab60dcd9d65ba78bf
[ "MIT" ]
1
2021-12-31T00:46:31.000Z
2021-12-31T00:46:31.000Z
"""Test insight model is working the way it should.""" import pytest from django.core.exceptions import ValidationError from django.db import DataError from .factories import InsightFactory pytestmark = pytest.mark.django_db
23.111111
65
0.796875
0a7533a2a833e21052e44904ba80f9df53fd03e4
4,560
py
Python
scripts/list-all-test-suites-for-ci.py
uc-cdis/gen3-qa
6634678b17cb5dd86533667c22037b1e2ddeb0b8
[ "Apache-2.0" ]
4
2019-08-30T22:25:24.000Z
2021-09-15T19:19:44.000Z
scripts/list-all-test-suites-for-ci.py
uc-cdis/gen3-qa
6634678b17cb5dd86533667c22037b1e2ddeb0b8
[ "Apache-2.0" ]
148
2018-04-16T17:26:54.000Z
2022-03-04T16:16:02.000Z
scripts/list-all-test-suites-for-ci.py
uc-cdis/gen3-qa
6634678b17cb5dd86533667c22037b1e2ddeb0b8
[ "Apache-2.0" ]
3
2019-08-01T03:15:38.000Z
2022-03-07T01:23:12.000Z
import os import subprocess test_suites_that_cant_run_in_parallel = [ "test-apis-dbgapTest", # not thread-safe "test-google-googleDataAccessTest", # not thread-safe "test-google-googleServiceAccountRemovalTest", # not thread-safe "test-guppy-guppyTest", ...
49.032258
112
0.608114
0a7597366e4cc059f4fa32bc7a905bc75e50266d
1,045
py
Python
querybook/server/lib/query_executor/all_executors.py
set5think/querybook
25738fe113faa8ee414826d1aa910354ae8a4146
[ "Apache-2.0" ]
1
2021-04-01T15:30:11.000Z
2021-04-01T15:30:11.000Z
querybook/server/lib/query_executor/all_executors.py
set5think/querybook
25738fe113faa8ee414826d1aa910354ae8a4146
[ "Apache-2.0" ]
null
null
null
querybook/server/lib/query_executor/all_executors.py
set5think/querybook
25738fe113faa8ee414826d1aa910354ae8a4146
[ "Apache-2.0" ]
1
2021-04-02T17:43:41.000Z
2021-04-02T17:43:41.000Z
from lib.utils.plugin import import_plugin from .base_executor import parse_exception from .executors.hive import HiveQueryExecutor from .executors.presto import PrestoQueryExecutor from .executors.sqlalchemy import ( MysqlQueryExecutor, DruidQueryExecutor, SqliteQueryExecutor, SnowflakeQueryExecutor, ...
24.880952
83
0.749282
0a7705eb0f14b8b24300a2a99d4b3ece8aed7a37
3,189
py
Python
bot/exts/info/pypi.py
MrGrote/bot
acaae30d1c6d401d383e3c1cc55dd1c19ced32c3
[ "MIT" ]
1
2022-03-08T07:10:30.000Z
2022-03-08T07:10:30.000Z
bot/exts/info/pypi.py
MrGrote/bot
acaae30d1c6d401d383e3c1cc55dd1c19ced32c3
[ "MIT" ]
null
null
null
bot/exts/info/pypi.py
MrGrote/bot
acaae30d1c6d401d383e3c1cc55dd1c19ced32c3
[ "MIT" ]
null
null
null
import itertools import random import re from contextlib import suppress from disnake import Embed, NotFound from disnake.ext.commands import Cog, Context, command from disnake.utils import escape_markdown from bot.bot import Bot from bot.constants import Colours, NEGATIVE_REPLIES, RedirectOutput from bot.log import ...
36.238636
117
0.625902
0a77c9190291f537620b1ae307203f1368f48062
853
py
Python
app/decorators.py
GinnyGaga/lanbo
d0bd200b93643d3ede69b5fcce72cefd5c167e37
[ "MIT" ]
null
null
null
app/decorators.py
GinnyGaga/lanbo
d0bd200b93643d3ede69b5fcce72cefd5c167e37
[ "MIT" ]
null
null
null
app/decorators.py
GinnyGaga/lanbo
d0bd200b93643d3ede69b5fcce72cefd5c167e37
[ "MIT" ]
null
null
null
from functools import wraps from flask import abort from flask_login import current_user from .models import Permission <<<<<<< HEAD ======= >>>>>>> 17-app-1
25.088235
56
0.695193
0a77fdb1c15169709a632c8652ce9cffd62abd68
491
py
Python
jnpy/experiments/Qt/pyqtgraph_tutorial/codeloop_org_materials/c4_drawing_curves.py
jojoquant/jnpy
c874060af4b129ae09cee9f8542517b7b2f6573b
[ "MIT" ]
5
2020-05-19T07:32:39.000Z
2022-03-14T09:09:48.000Z
jnpy/experiments/Qt/pyqtgraph_tutorial/codeloop_org_materials/c4_drawing_curves.py
jojoquant/jnpy
c874060af4b129ae09cee9f8542517b7b2f6573b
[ "MIT" ]
null
null
null
jnpy/experiments/Qt/pyqtgraph_tutorial/codeloop_org_materials/c4_drawing_curves.py
jojoquant/jnpy
c874060af4b129ae09cee9f8542517b7b2f6573b
[ "MIT" ]
3
2020-04-02T08:30:17.000Z
2020-05-03T12:12:05.000Z
# !/usr/bin/env python3 # -*- coding:utf-8 -*- # @Datetime : 2019/11/14 2:26 # @Author : Fangyang # @Software : PyCharm import sys from PyQt5.QtWidgets import QApplication import pyqtgraph as pg import numpy as np app = QApplication(sys.argv) x = np.arange(1000) y = np.random.normal(size=(3, 1000)) plotWidget = pg...
19.64
47
0.678208
0a78179deb3bba9140ba6fad7537f792839802d1
826
py
Python
compyle/api.py
nauaneed/compyle
218c76de8aa684e1fb198072e40cb97a5e6845b3
[ "BSD-3-Clause" ]
null
null
null
compyle/api.py
nauaneed/compyle
218c76de8aa684e1fb198072e40cb97a5e6845b3
[ "BSD-3-Clause" ]
null
null
null
compyle/api.py
nauaneed/compyle
218c76de8aa684e1fb198072e40cb97a5e6845b3
[ "BSD-3-Clause" ]
null
null
null
from .array import Array, wrap from .ast_utils import (get_symbols, get_assigned, get_unknown_names_and_calls, has_return, has_node) from .config import get_config, set_config, use_config, Config from .cython_generator import ( CythonGenerator, get_func_definition ) from .ext_module import E...
34.416667
77
0.77724