hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0a537efd4a98836a350807a0cadde86b67fc7e
1,024
py
Python
amas/env.py
RidiculousLoop/amas
8141f031842a69df9181d2fd242cccd07764b947
[ "MIT" ]
null
null
null
amas/env.py
RidiculousLoop/amas
8141f031842a69df9181d2fd242cccd07764b947
[ "MIT" ]
null
null
null
amas/env.py
RidiculousLoop/amas
8141f031842a69df9181d2fd242cccd07764b947
[ "MIT" ]
null
null
null
import asyncio from multiprocessing import Process from typing import Coroutine, Iterable, List from amas.agent import Agent class Environment(object): def __init__(self, agents: Iterable[Agent]) -> None: self.__agents = agents self.__loop = asyncio.get_event_loop() self.__proc = None ...
26.25641
62
0.616211
4a0a546cf7fbc25be79bd6569d2a79d80c45c41f
17,295
py
Python
python/dgl/backend/pytorch/tensor.py
harshgrovr/Graphs_Thesis
9ffd0d23c8f8b4bd53db9fd5b9bf5776666814e0
[ "Apache-2.0" ]
1
2020-09-25T07:44:55.000Z
2020-09-25T07:44:55.000Z
python/dgl/backend/pytorch/tensor.py
xyanAI/dgl
36daf66f6216bad4d30651311bcb87aa45dd33d5
[ "Apache-2.0" ]
1
2019-12-25T05:02:28.000Z
2019-12-25T05:02:28.000Z
python/dgl/backend/pytorch/tensor.py
xyanAI/dgl
36daf66f6216bad4d30651311bcb87aa45dd33d5
[ "Apache-2.0" ]
1
2020-05-30T05:15:07.000Z
2020-05-30T05:15:07.000Z
from __future__ import absolute_import from distutils.version import LooseVersion import scipy # Weird bug in new pytorch when import scipy after import torch import torch as th import builtins import numbers from torch.utils import dlpack from ... import ndarray as nd from ..._deprecate import kernel as K from ...f...
32.027778
99
0.650014
4a0a54d63ea36c3a368bfa2105462c768eb8fad8
11,476
py
Python
mmdet/models/dense_heads/light_rpn_head.py
DayBreak-u/thundernet_mmdetection
9430592316134c390d9094560cfdb848d3e195ac
[ "Apache-2.0" ]
22
2021-02-27T08:21:09.000Z
2022-03-01T03:05:24.000Z
mmdet/models/dense_heads/light_rpn_head.py
ouyanghuiyu/thundernet_mmdetection
9430592316134c390d9094560cfdb848d3e195ac
[ "Apache-2.0" ]
3
2021-03-04T09:05:55.000Z
2021-10-07T02:19:02.000Z
mmdet/models/dense_heads/light_rpn_head.py
DayBreak-u/thundernet_mmdetection
9430592316134c390d9094560cfdb848d3e195ac
[ "Apache-2.0" ]
2
2021-02-27T08:21:10.000Z
2021-03-05T17:00:27.000Z
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import normal_init from mmcv.ops import batched_nms from ..builder import HEADS from .anchor_head import AnchorHead from .rpn_test_mixin import RPNTestMixin from mmdet.core import merge_aug_proposals class h_sigmoid(nn.Module): de...
40.408451
92
0.578425
4a0a553a03fe66de94a959cb40e17a62217fd9a6
35,234
py
Python
mne/viz/_brain/_brain.py
hardik-prajapati/mne-python
7410696b8897c8782ae293e1c453a43b20197acd
[ "BSD-3-Clause" ]
1
2019-12-11T05:07:08.000Z
2019-12-11T05:07:08.000Z
mne/viz/_brain/_brain.py
Gaoqunxia/mne-python
71a854d8eafe21676e545d8286b51422f34b26c3
[ "BSD-3-Clause" ]
null
null
null
mne/viz/_brain/_brain.py
Gaoqunxia/mne-python
71a854d8eafe21676e545d8286b51422f34b26c3
[ "BSD-3-Clause" ]
null
null
null
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # Oleh Kozynets <ok7mailbox@gmail.com> # Guillaume Favelier <guillaume.favelier@gmail.com> # jona-sassenhagen <jona.sassenhagen@gmail.com> # Joan Massich <mailsik@gmail.com> #...
41.795967
79
0.511551
4a0a556137d7f622b065a2285a86867edf320052
11,497
py
Python
ext/opentelemetry-ext-otcollector/tests/test_otcollector_trace_exporter.py
nirsky/opentelemetry-python
8d09319c43a24b05d14128361de2c9afe8c856b6
[ "Apache-2.0" ]
null
null
null
ext/opentelemetry-ext-otcollector/tests/test_otcollector_trace_exporter.py
nirsky/opentelemetry-python
8d09319c43a24b05d14128361de2c9afe8c856b6
[ "Apache-2.0" ]
null
null
null
ext/opentelemetry-ext-otcollector/tests/test_otcollector_trace_exporter.py
nirsky/opentelemetry-python
8d09319c43a24b05d14128361de2c9afe8c856b6
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.268139
79
0.616161
4a0a559463a85757a42ba71a9dedca02c59e4314
121
py
Python
tests/Usage.py
astronalta/gamepython
3927dfbb0ae9706cd99d4f15ea792b30512dd4c1
[ "MIT" ]
null
null
null
tests/Usage.py
astronalta/gamepython
3927dfbb0ae9706cd99d4f15ea792b30512dd4c1
[ "MIT" ]
null
null
null
tests/Usage.py
astronalta/gamepython
3927dfbb0ae9706cd99d4f15ea792b30512dd4c1
[ "MIT" ]
null
null
null
import os os.system(os.path.join("..", "bin", "jogo") + " --help") os.system(os.path.join("..", "bin", "jogo") + " -h")
24.2
56
0.520661
4a0a55eeba54edd27785e267bd9ff0a3df193143
2,202
py
Python
ooobuild/lo/ucb/x_cached_dynamic_result_set_factory.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/ucb/x_cached_dynamic_result_set_factory.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/ucb/x_cached_dynamic_result_set_factory.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
42.346154
181
0.7802
4a0a591c2ef1f9311a932db9e06994bdde99d3ae
1,683
py
Python
cloudedbats_wurb/wurb_core/__init__.py
cloudedbats/cloudedbats_wurb
e3b7639cf9fb9a6415675bde68c0990131db0291
[ "MIT" ]
1
2021-09-20T07:43:06.000Z
2021-09-20T07:43:06.000Z
cloudedbats_wurb/wurb_core/__init__.py
cloudedbats/cloudedbats_wurb
e3b7639cf9fb9a6415675bde68c0990131db0291
[ "MIT" ]
null
null
null
cloudedbats_wurb/wurb_core/__init__.py
cloudedbats/cloudedbats_wurb
e3b7639cf9fb9a6415675bde68c0990131db0291
[ "MIT" ]
2
2019-04-15T22:07:52.000Z
2021-06-09T05:44:47.000Z
#!/usr/bin/python3 # -*- coding:utf-8 -*- # Project: http://cloudedbats.org # Copyright (c) 2016-2018 Arnold Andreasson # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). from .wurb_utils import singleton # Lib modules. from .lib.solartime import SolarTime from .lib.dsp4bats.frequency_do...
35.0625
79
0.825906
4a0a598055ac0cfe6e245c1477fc35fa744e7785
35,199
py
Python
tflib.py
RyanDunham98/PrimateFaceRecognition
bea00972cbde323daf79c84bd26b0f545511fddc
[ "MIT" ]
null
null
null
tflib.py
RyanDunham98/PrimateFaceRecognition
bea00972cbde323daf79c84bd26b0f545511fddc
[ "MIT" ]
null
null
null
tflib.py
RyanDunham98/PrimateFaceRecognition
bea00972cbde323daf79c84bd26b0f545511fddc
[ "MIT" ]
null
null
null
"""Functions for building tensorflow graph """ # MIT License # # Copyright (c) 2018 Debayan Deb # # 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 limi...
46.375494
111
0.654791
4a0a5fc37d030967265068a15669bb31fec835c8
37,800
py
Python
pyfcm/fcm.py
belegnar/PyFCM
f33765a107191057c796cf829661a8c9933218f2
[ "MIT" ]
null
null
null
pyfcm/fcm.py
belegnar/PyFCM
f33765a107191057c796cf829661a8c9933218f2
[ "MIT" ]
null
null
null
pyfcm/fcm.py
belegnar/PyFCM
f33765a107191057c796cf829661a8c9933218f2
[ "MIT" ]
null
null
null
from .baseapi import BaseAPI from .errors import InvalidDataError class FCMNotification(BaseAPI): def notify_single_device(self, registration_id=None, message_body=None, message_title=None, message_...
55.752212
138
0.574206
4a0a61ce0916932d74b1dc6e384a4da3983ecff6
1,565
py
Python
opsmop/facts/chaos.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
opsmop/facts/chaos.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
opsmop/facts/chaos.py
lachmanfrantisek/opsmop
562ae2d753ff84b3d794a6815d0436753e82d2a0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Michael DeHaan LLC, <michael@michaeldehaan.net> # # 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 app...
28.981481
114
0.697764
4a0a62ac8826cfaa6f69e059a19095d63e7099bc
2,641
py
Python
Test/main.py
OnurBahadir/slm_simulation
b0cdc5b120f1f9a428e39071953be76fb4d30ef9
[ "MIT" ]
null
null
null
Test/main.py
OnurBahadir/slm_simulation
b0cdc5b120f1f9a428e39071953be76fb4d30ef9
[ "MIT" ]
null
null
null
Test/main.py
OnurBahadir/slm_simulation
b0cdc5b120f1f9a428e39071953be76fb4d30ef9
[ "MIT" ]
null
null
null
import numpy as np import time import slmpy import cv2 from pymba import Vimba, VimbaException from ccd_vimba import display_frame slmWaiting = 0.8 #seconds step = 90 # superpixels length n X n {10,15,20,30,60,120} phase = 30 # 0 - 255 #concentration points r1=700 r2=800 c1=700 c2=800 def getIntens...
22.381356
126
0.616055
4a0a64c15a4e7ee8cb6b44410b279aa61493a0fb
1,445
py
Python
htmlparser.py
caleber/com.bojin
6c162b48dbe20260ffedecfcd348f835561e6ca6
[ "MIT" ]
null
null
null
htmlparser.py
caleber/com.bojin
6c162b48dbe20260ffedecfcd348f835561e6ca6
[ "MIT" ]
null
null
null
htmlparser.py
caleber/com.bojin
6c162b48dbe20260ffedecfcd348f835561e6ca6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = 'laifuyu' from html.parser import HTMLParser from html.entities import name2codepoint from globalpkg.log import logger class MyHTMLParser(HTMLParser): def __init__(self, strict): super().__init__(strict) self.start_tag = '' self.s...
23.306452
44
0.6
4a0a658ad45b6f30093adaaf978d7e9d4b9199e5
3,517
py
Python
gui/kivy/uix/dialogs/fee_dialog.py
GetAywa/electrum-aywa
07a548bd14cdf563da49c1f1e52644b833ca972e
[ "MIT" ]
null
null
null
gui/kivy/uix/dialogs/fee_dialog.py
GetAywa/electrum-aywa
07a548bd14cdf563da49c1f1e52644b833ca972e
[ "MIT" ]
null
null
null
gui/kivy/uix/dialogs/fee_dialog.py
GetAywa/electrum-aywa
07a548bd14cdf563da49c1f1e52644b833ca972e
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from electrum_dash.util import fee_levels from electrum_dash_gui.kivy.i18n import _ Builder.load_string(''' <FeeDialog@Popup> id: popup title: _('Transaction Fees') size_hint:...
31.123894
84
0.547057
4a0a65d01bacb33530241e638d99183a4fdbf875
1,799
py
Python
utils/test_model.py
XintianHan/ADV_ECG
3b36eb9b5daaf98bee154fb4ce0c62ec3aab8841
[ "MIT" ]
17
2020-03-09T17:41:55.000Z
2022-02-23T02:49:53.000Z
utils/test_model.py
XintianHan/ADV_ECG
3b36eb9b5daaf98bee154fb4ce0c62ec3aab8841
[ "MIT" ]
1
2020-07-29T23:07:23.000Z
2021-03-18T01:26:41.000Z
utils/test_model.py
XintianHan/ADV_ECG
3b36eb9b5daaf98bee154fb4ce0c62ec3aab8841
[ "MIT" ]
9
2020-03-12T01:35:47.000Z
2021-11-28T09:17:24.000Z
import numpy as np import torch import sys import global_variables import torch.nn.functional as F device = global_variables.device # Function for testing the model def test_model(loader, model): """ Help function that tests the model's performance on a dataset @param: loader - data loader for the dataset ...
33.314815
76
0.617009
4a0a66ff62e84c2065c796ede1b98a57140b0cab
5,567
py
Python
dvc/remote/hdfs.py
vyloy/dvc
60c89adeb5dcc293d8661d6aabeb1da6d05466f5
[ "Apache-2.0" ]
1
2019-04-16T19:51:03.000Z
2019-04-16T19:51:03.000Z
dvc/remote/hdfs.py
vyloy/dvc
60c89adeb5dcc293d8661d6aabeb1da6d05466f5
[ "Apache-2.0" ]
null
null
null
dvc/remote/hdfs.py
vyloy/dvc
60c89adeb5dcc293d8661d6aabeb1da6d05466f5
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import os import re import getpass import posixpath import logging from subprocess import Popen, PIPE from dvc.config import Config from dvc.remote.base import RemoteBase, RemoteCmdError from dvc.utils import fix_env, tmp_fname logger = logging.getLogger(__name__) class Rem...
29.455026
75
0.552721
4a0a673fc3b79dce3fce060a52e55b55f6dec9f5
14,328
py
Python
easyreg/brainstorm.py
ebrahimebrahim/easyreg
f767e68af8c2f230f45ef8a5219db9d8ff2b17f0
[ "Apache-2.0" ]
null
null
null
easyreg/brainstorm.py
ebrahimebrahim/easyreg
f767e68af8c2f230f45ef8a5219db9d8ff2b17f0
[ "Apache-2.0" ]
null
null
null
easyreg/brainstorm.py
ebrahimebrahim/easyreg
f767e68af8c2f230f45ef8a5219db9d8ff2b17f0
[ "Apache-2.0" ]
null
null
null
""" Framework described in Data augmentation using learned transformationsfor one-shot medical image segmentation http://www.mit.edu/~adalca/files/papers/cvpr2019_brainstorm.pdf """ from .net_utils import gen_identity_map import mermaid.finite_differences as fdt import numpy as np import torch import torch.nn as nn im...
39.254795
120
0.59792
4a0a67ae277424b086487e6c51bb18949545671b
4,203
py
Python
content/test/faceswap/plugins/train/model/villain.py
gwdgithubnom/gjgr
581957a296b13a4231ea1e67ec62083b7da445bf
[ "MIT" ]
3
2019-08-08T03:27:26.000Z
2020-08-17T13:11:24.000Z
content/test/faceswap/plugins/train/model/villain.py
gwdgithubnom/gjgr
581957a296b13a4231ea1e67ec62083b7da445bf
[ "MIT" ]
6
2020-03-04T23:21:03.000Z
2020-07-23T07:46:40.000Z
content/test/faceswap/plugins/train/model/villain.py
gwdgithubnom/gjgr
581957a296b13a4231ea1e67ec62083b7da445bf
[ "MIT" ]
2
2019-09-26T08:52:22.000Z
2020-03-27T00:33:00.000Z
#!/usr/bin/env python3 """ Original - VillainGuy model Based on the original https://www.reddit.com/r/deepfakes/ code sample + contribs Adapted from a model by VillainGuy (https://github.com/VillainGuy) """ from keras.initializers import RandomNormal from keras.layers import add, Dense, Flatten, Input, Reshape...
45.193548
97
0.598858
4a0a67bf65cb33706e08b681a8856850427ccad8
3,080
py
Python
src/emotionplot.py
mil-tokyo/SharedCharacterStories
0ade6bfe9f97ec9b9a96852b50b9392f640cf64f
[ "MIT" ]
3
2019-06-06T10:10:33.000Z
2020-09-09T00:07:26.000Z
src/emotionplot.py
mil-tokyo/SharedCharacterStories
0ade6bfe9f97ec9b9a96852b50b9392f640cf64f
[ "MIT" ]
null
null
null
src/emotionplot.py
mil-tokyo/SharedCharacterStories
0ade6bfe9f97ec9b9a96852b50b9392f640cf64f
[ "MIT" ]
1
2019-06-06T10:21:33.000Z
2019-06-06T10:21:33.000Z
import matplotlib.pyplot as plt import matplotlib.patches as patches import seaborn as sns def plot_result(result, N=1): fig = plt.figure(figsize=(12, 3)) cols_1 = ['char1_sent1_valence', 'char1_sent1_arousal', 'char1_sent2_valence', 'char1_sent2_arousal', 'char1_sent3_valence', 'char1...
40.526316
92
0.566234
4a0a6904112d5365dbcaccb6b670d8ca83ecc412
409
py
Python
django/personal_library/personal_library/wsgi.py
mstuttgart/estudos
94310b8b3f97a702ffbb710029bffe4becc5a651
[ "MIT" ]
9
2019-04-29T21:21:39.000Z
2021-05-08T08:04:14.000Z
python/django/personal_library/personal_library/wsgi.py
midoriobana/estudos
a5d2cbb0944b20f650161ab1d251d2440c56bca1
[ "MIT" ]
157
2018-05-30T01:53:11.000Z
2019-04-22T13:09:05.000Z
django/personal_library/personal_library/wsgi.py
mstuttgart/my-study-workflow
94310b8b3f97a702ffbb710029bffe4becc5a651
[ "MIT" ]
13
2019-12-30T11:15:16.000Z
2021-10-07T00:54:10.000Z
""" WSGI config for personal_library project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJA...
24.058824
78
0.794621
4a0a69b79e7a7fd81697678b72d29add834126d2
1,703
py
Python
bigimg/preprocess.py
thomasnilsson/big-imaging-project
97bdfffc29bcab74abaf2722f8528e815098077c
[ "MIT" ]
null
null
null
bigimg/preprocess.py
thomasnilsson/big-imaging-project
97bdfffc29bcab74abaf2722f8528e815098077c
[ "MIT" ]
null
null
null
bigimg/preprocess.py
thomasnilsson/big-imaging-project
97bdfffc29bcab74abaf2722f8528e815098077c
[ "MIT" ]
null
null
null
import numpy as np import cv2 def rescale_patient_4d_imgs(patient): img_4d = patient.images if len(img_4d.shape) < 4: raise Exception("Patient images are not 4D!") num_slices, time, height, width = img_4d.shape col, row = patient.col_scaling, patient.row_scaling scaled_height = int(height * row) ...
37.021739
95
0.650617
4a0a69c7df771d3bf8795c75604baa6f33cb668d
3,086
py
Python
src/gui/command.py
iosetek/CommandRecognition
56a58b44bdc4d54feafc955c17dd0ff236486cae
[ "MIT" ]
null
null
null
src/gui/command.py
iosetek/CommandRecognition
56a58b44bdc4d54feafc955c17dd0ff236486cae
[ "MIT" ]
null
null
null
src/gui/command.py
iosetek/CommandRecognition
56a58b44bdc4d54feafc955c17dd0ff236486cae
[ "MIT" ]
null
null
null
from src.api import Api from src.gui.appJar.appjar import gui class CommandUI: def __init__(self, app): self.__app = app def append_its_content(self): """ Creates view designed for registering new commands or editing already existing commands. It allows user to load records fro...
57.148148
95
0.580687
4a0a69d66298f5f6ab4d503b9b8206da9a234504
17,307
py
Python
snakemake/deployment/conda.py
Lodewic/snakemake
f00cd3b26250db5b9330acd1981b1e24614fc8b8
[ "MIT" ]
null
null
null
snakemake/deployment/conda.py
Lodewic/snakemake
f00cd3b26250db5b9330acd1981b1e24614fc8b8
[ "MIT" ]
null
null
null
snakemake/deployment/conda.py
Lodewic/snakemake
f00cd3b26250db5b9330acd1981b1e24614fc8b8
[ "MIT" ]
null
null
null
__author__ = "Johannes Köster" __copyright__ = "Copyright 2015-2019, Johannes Köster" __email__ = "johannes.koester@uni-due.de" __license__ = "MIT" import os import re import subprocess import tempfile from urllib.request import urlopen from urllib.parse import urlparse from urllib.error import URLError import hashlib...
37.542299
96
0.530479
4a0a6a939103dacabcbcd1f1f2d210e42848ddec
74
py
Python
fonts/internal.py
theblacklion/diamond-framework
0996a517a6821d8903f5c378a85e9b1f3998109f
[ "MIT" ]
null
null
null
fonts/internal.py
theblacklion/diamond-framework
0996a517a6821d8903f5c378a85e9b1f3998109f
[ "MIT" ]
null
null
null
fonts/internal.py
theblacklion/diamond-framework
0996a517a6821d8903f5c378a85e9b1f3998109f
[ "MIT" ]
null
null
null
# default font type = 'ttf' name = None size = 14 color = (255, 255, 255)
12.333333
23
0.621622
4a0a6ad3b59432206f63b88160c6704e34092997
92
py
Python
letra/label.py
swellaby/letra
1a232a454fce0a01a8b3021ab9d0da976eaa041e
[ "MIT" ]
null
null
null
letra/label.py
swellaby/letra
1a232a454fce0a01a8b3021ab9d0da976eaa041e
[ "MIT" ]
178
2019-06-13T22:21:03.000Z
2022-03-29T11:22:14.000Z
letra/label.py
swellaby/letra
1a232a454fce0a01a8b3021ab9d0da976eaa041e
[ "MIT" ]
null
null
null
from collections import namedtuple Label = namedtuple("Label", "name, description, color")
23
55
0.771739
4a0a6c047bdb10c4737a361aaa60d9180cae6c70
6,642
py
Python
salt/proxy/dummy.py
Bacon-Unlimited/salt
9b1b791d212a6810c430dd15c63fbce3a4f7e1d6
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
salt/proxy/dummy.py
Bacon-Unlimited/salt
9b1b791d212a6810c430dd15c63fbce3a4f7e1d6
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
salt/proxy/dummy.py
Bacon-Unlimited/salt
9b1b791d212a6810c430dd15c63fbce3a4f7e1d6
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" This is the a dummy proxy-minion designed for testing the proxy minion subsystem. """ import copy import logging import os import pprint from contextlib import contextmanager import salt.utils.files import salt.utils.msgpack # This must be present or the Salt loader won't load this module __proxyenabled__ = ["du...
24.69145
87
0.612767
4a0a6c106d0a4bb14125e998e18d3b5d229dc102
495
py
Python
backend/orders/migrations/0008_auto_20220417_1104.py
crowdbotics-apps/royal-cloud-33498
4ac1701e6af7db4b3b7393b73fc0af80fc313b3b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/orders/migrations/0008_auto_20220417_1104.py
crowdbotics-apps/royal-cloud-33498
4ac1701e6af7db4b3b7393b73fc0af80fc313b3b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/orders/migrations/0008_auto_20220417_1104.py
crowdbotics-apps/royal-cloud-33498
4ac1701e6af7db4b3b7393b73fc0af80fc313b3b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
# Generated by Django 2.2.27 on 2022-04-17 11:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0007_suborder_style'), ] operations = [ migrations.RemoveField( model_name='suborder', name='style', ...
21.521739
63
0.567677
4a0a6c6cc0684ee6246bec0e5afd00cf22dec20d
1,988
py
Python
tempofy_bot.py
hardkoro/tempofy_bot
a3adee36ce36a43c867c1dc5d750f2bf9126f095
[ "MIT" ]
null
null
null
tempofy_bot.py
hardkoro/tempofy_bot
a3adee36ce36a43c867c1dc5d750f2bf9126f095
[ "MIT" ]
null
null
null
tempofy_bot.py
hardkoro/tempofy_bot
a3adee36ce36a43c867c1dc5d750f2bf9126f095
[ "MIT" ]
null
null
null
from os import getenv from dotenv import find_dotenv, load_dotenv from telegram import ParseMode from telegram.ext import (CommandHandler, Defaults, Filters, MessageHandler, Updater) from help import FEATURE_HELP, START_MESSAGE from get_song_features import get_song_data load_dotenv(find_do...
28.811594
86
0.605131
4a0a6c7d2c4f35fa6c8a3bc51e07577f49dc7b75
617
py
Python
django_exemple/migrations/0003_alter_todolist_user.py
mifa43/django-start
56e509af4ee61651d0b15a0858e82330b702c7a7
[ "Apache-2.0" ]
null
null
null
django_exemple/migrations/0003_alter_todolist_user.py
mifa43/django-start
56e509af4ee61651d0b15a0858e82330b702c7a7
[ "Apache-2.0" ]
4
2021-08-06T08:29:46.000Z
2021-08-25T07:55:36.000Z
django_exemple/migrations/0003_alter_todolist_user.py
mifa43/django-start
56e509af4ee61651d0b15a0858e82330b702c7a7
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-09 13:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('django_exemple', '0002_t...
28.045455
146
0.683955
4a0a6cba4fa2117e4158d2ec83fd8a9488e2ee58
3,401
py
Python
CoderWorld/settings.py
Rasesh2005/CoderWorld
c9b973da6a5be80db2d167bf0bebca83e845b4e2
[ "MIT" ]
1
2020-12-21T09:53:01.000Z
2020-12-21T09:53:01.000Z
CoderWorld/settings.py
Rasesh2005/CoderWorld
c9b973da6a5be80db2d167bf0bebca83e845b4e2
[ "MIT" ]
null
null
null
CoderWorld/settings.py
Rasesh2005/CoderWorld
c9b973da6a5be80db2d167bf0bebca83e845b4e2
[ "MIT" ]
2
2020-10-11T07:32:54.000Z
2020-10-11T08:18:31.000Z
""" Django settings for CoderWorld project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os...
25.571429
91
0.697148
4a0a6e9e1868ded041452dbcbf4b2356057a27e7
1,467
py
Python
flatblocks/models.py
whyflyru/django-flatblocks
8e205e051805972f8f4017542b4d7e4748c18496
[ "BSD-3-Clause" ]
null
null
null
flatblocks/models.py
whyflyru/django-flatblocks
8e205e051805972f8f4017542b4d7e4748c18496
[ "BSD-3-Clause" ]
null
null
null
flatblocks/models.py
whyflyru/django-flatblocks
8e205e051805972f8f4017542b4d7e4748c18496
[ "BSD-3-Clause" ]
1
2020-02-06T16:14:25.000Z
2020-02-06T16:14:25.000Z
from django.db import models from django.utils.translation import ugettext_lazy as _ class FlatBlock(models.Model): """ Think of a flatblock as a flatpage but for just part of a site. It's basically a piece of content with a given name (slug) and an optional title (header) which you can, for example,...
43.147059
102
0.646217
4a0a6eb21d08a1b1a5adc42035c7eb27c4be96b5
2,705
py
Python
app/recipe/tests/test_ingredients_api.py
StephPoleo/recipe-app-api
63269eb720023f15b16c009b46a161ba7621496f
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
StephPoleo/recipe-app-api
63269eb720023f15b16c009b46a161ba7621496f
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
StephPoleo/recipe-app-api
63269eb720023f15b16c009b46a161ba7621496f
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingredients from recipe.serializer import IngredientsSerializer INGREDIENTS_URL = reverse("recipe:ingredien...
34.240506
87
0.699445
4a0a6ec3cdbba18e6e82139d3f5a2e02cddf188c
1,035
py
Python
settings.py
Llona/AJ-cat_plugin
9d4a826bf74d46c395c90e05c460ab87b063b002
[ "Apache-2.0" ]
null
null
null
settings.py
Llona/AJ-cat_plugin
9d4a826bf74d46c395c90e05c460ab87b063b002
[ "Apache-2.0" ]
null
null
null
settings.py
Llona/AJ-cat_plugin
9d4a826bf74d46c395c90e05c460ab87b063b002
[ "Apache-2.0" ]
null
null
null
import sys from os import path import enum import platform DEVICE_ID = 'RF8N32YBMGG' # FIGHTING_COLOR = "528cca" FIGHTING_COLOR = "5995d2" # DEVICE_ID = '2785a241e41c7ece' # FIGHTING_COLOR = "3c5e85" COPY_FIGHT_TOTAL_COUNT = 5 if platform.system() == 'Windows': VIRTUAL_DISK = 'R:' VIRTUAL_CREATE_CMD = 'imdisk...
26.538462
107
0.677295
4a0a6f59c2e65ce084a10ae6de819c47203d461a
2,289
py
Python
petra/call.py
StanfordLegion/petra
5e2c41ccc78afb0ecec62c54846739ea923e3e40
[ "Apache-2.0" ]
null
null
null
petra/call.py
StanfordLegion/petra
5e2c41ccc78afb0ecec62c54846739ea923e3e40
[ "Apache-2.0" ]
null
null
null
petra/call.py
StanfordLegion/petra
5e2c41ccc78afb0ecec62c54846739ea923e3e40
[ "Apache-2.0" ]
1
2020-04-13T20:12:26.000Z
2020-04-13T20:12:26.000Z
""" This file defines Petra function call expressions and statements. """ import re from llvmlite import ir from typing import List, Optional, Tuple, Union from .codegen import CodegenContext from .expr import Expr from .statement import Statement from .validate import ValidateError from .type import Type from .type...
32.7
84
0.580603
4a0a6f96d6061042e04dbcfa58760cb0ef283cd6
1,350
py
Python
var/spack/repos/builtin/packages/r-geometry/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-geometry/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-geometry/package.py
renjithravindrankannath/spack
043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 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.package import * class RGeometry(RPackage): """Mesh Generation and Surface Tessellation. Makes the '...
42.1875
95
0.720741
4a0a70257d3ae187247a0b8eb3383afd8b0eb4ef
7,852
py
Python
flexassist/integrations/tensorflow/trainer.py
akamlani/flexassist-core
662f2c8c24a625e094362a43a74e8e2d37719b98
[ "MIT" ]
null
null
null
flexassist/integrations/tensorflow/trainer.py
akamlani/flexassist-core
662f2c8c24a625e094362a43a74e8e2d37719b98
[ "MIT" ]
null
null
null
flexassist/integrations/tensorflow/trainer.py
akamlani/flexassist-core
662f2c8c24a625e094362a43a74e8e2d37719b98
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import datetime from typing import List from pathlib import Path from dataclasses import dataclass, asdict, is_dataclass import tensorflow as tf import tensorflow.keras as keras import tensorflow.keras.layers as layers import tensorflow.keras.models as mode...
41.765957
138
0.608507
4a0a7076dd42cdc64a23b514d06ad07dbb42bfd5
19,671
py
Python
application/views/ride_views.py
meshack-mbuvi/ride-my-way-api
2e091f020e774cad4891427a2de91a7a2c29def1
[ "MIT" ]
null
null
null
application/views/ride_views.py
meshack-mbuvi/ride-my-way-api
2e091f020e774cad4891427a2de91a7a2c29def1
[ "MIT" ]
19
2018-06-23T17:08:37.000Z
2018-07-23T17:37:55.000Z
application/views/ride_views.py
meshack-mbuvi/ride-my-way-api
2e091f020e774cad4891427a2de91a7a2c29def1
[ "MIT" ]
null
null
null
from flask_jwt_extended import jwt_required, get_jwt_identity from flask_restplus import Resource, Namespace, fields from flask import request, jsonify from datetime import datetime from application.models.ride_models import RideOffer from application import db api = Namespace('Ride offers', Description='Operations o...
44.006711
124
0.522444
4a0a7095f55bf6f8fe165c7a4b59e9e543d4e6d4
6,208
py
Python
external/devlib/devlib/instrument/acmecape.py
qais-yousef/lisa
8343e26bf0565589928a69ccbe67b1be03403db7
[ "Apache-2.0" ]
159
2016-01-25T11:08:39.000Z
2022-03-28T05:20:41.000Z
external/devlib/devlib/instrument/acmecape.py
qais-yousef/lisa
8343e26bf0565589928a69ccbe67b1be03403db7
[ "Apache-2.0" ]
656
2016-01-25T11:16:56.000Z
2022-03-23T16:03:28.000Z
external/devlib/devlib/instrument/acmecape.py
qais-yousef/lisa
8343e26bf0565589928a69ccbe67b1be03403db7
[ "Apache-2.0" ]
116
2016-01-25T12:06:31.000Z
2022-03-28T08:43:28.000Z
# Copyright 2018 ARM Limited # # 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 writin...
36.733728
102
0.610019
4a0a7193506a334a76d23b92f1e5c986e4708076
1,146
py
Python
Django-E-Commerce/product/views.py
muhammadkashifdotcom/easywear
370981e77129bb027b6dc9607a93fbb78957253c
[ "bzip2-1.0.6" ]
null
null
null
Django-E-Commerce/product/views.py
muhammadkashifdotcom/easywear
370981e77129bb027b6dc9607a93fbb78957253c
[ "bzip2-1.0.6" ]
7
2021-03-30T13:52:56.000Z
2022-03-12T00:38:56.000Z
Django-E-Commerce/product/views.py
muhammadkashifdotcom/easywear
370981e77129bb027b6dc9607a93fbb78957253c
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib import messages from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render # Create your views here. from product.models import CommentForm, Comment def index(request): return HttpResponse("My Product Page") def addcomment(request,id): url = request.ME...
32.742857
92
0.691972
4a0a7217f0fc1af9c525db5517d74bfe6def58eb
208
py
Python
476_numberComplement.py
stuti-rastogi/leetcode-python-solutions
73593fe642a06a83cde974ba5e6de3a7b396ec84
[ "MIT" ]
4
2018-07-24T08:36:42.000Z
2019-08-25T17:48:47.000Z
476_numberComplement.py
stuti-rastogi/leetcodesolutions
73593fe642a06a83cde974ba5e6de3a7b396ec84
[ "MIT" ]
null
null
null
476_numberComplement.py
stuti-rastogi/leetcodesolutions
73593fe642a06a83cde974ba5e6de3a7b396ec84
[ "MIT" ]
null
null
null
class Solution: def findComplement(self, num): """ :type num: int :rtype: int """ i = 1 while i <= num: i = i << 1 return (i - 1) ^ num
20.8
34
0.384615
4a0a72f059c8f0ace355277c3a88dafe8ff1f000
443
py
Python
ABC/199/c.py
buchi1002/AtCoder
e678a8a1f0edb3eab922ee5f65f6742791c231b3
[ "MIT" ]
null
null
null
ABC/199/c.py
buchi1002/AtCoder
e678a8a1f0edb3eab922ee5f65f6742791c231b3
[ "MIT" ]
null
null
null
ABC/199/c.py
buchi1002/AtCoder
e678a8a1f0edb3eab922ee5f65f6742791c231b3
[ "MIT" ]
null
null
null
def main(): # input N = int(input()) S = str(input()) Q = int(input()) # compute Ts = [i for i in range(2*N)] for i in range(Q): T, A, B = map(int, input().split()) if T == 1: Ts[A-1], Ts[B-1] = Ts[B-1], Ts[A-1] else: Ts = Ts[N:] + ...
23.315789
48
0.401806
4a0a7548c84ed07d820a1febf2dc65642268485f
1,537
py
Python
render_functions.py
BarbaAlGhul/advanced-calaboucos-e-cachorros
66dbc7c903d130b533680eb2afea876af83db29e
[ "MIT" ]
null
null
null
render_functions.py
BarbaAlGhul/advanced-calaboucos-e-cachorros
66dbc7c903d130b533680eb2afea876af83db29e
[ "MIT" ]
null
null
null
render_functions.py
BarbaAlGhul/advanced-calaboucos-e-cachorros
66dbc7c903d130b533680eb2afea876af83db29e
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Tuple, TYPE_CHECKING import color if TYPE_CHECKING: from tcod import Console from engine import Engine from game_map import GameMap def get_names_at_location(x: int, y:int, game_map: GameMap) -> str: if not game_map.in_bounds(x, y) or not game_m...
26.964912
86
0.677293
4a0a755d23cc7749d40344a935c93d785b796c14
4,307
py
Python
huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/create_hook_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/create_hook_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/create_hook_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateHookResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
25.485207
79
0.550035
4a0a77bc4d8f95da5807a9a0acc2a06d3c707b97
3,321
py
Python
support_files/scraping/entries/proj_1959/proj_1959/settings.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
support_files/scraping/entries/proj_1959/proj_1959/settings.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
support_files/scraping/entries/proj_1959/proj_1959/settings.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
# Scrapy settings for proj_1959 project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-middlewa...
35.329787
103
0.777176
4a0a7830f0d532d972aa672aeace24158a251e8a
2,260
py
Python
about_arrow.py
jonathadv/python-libs-playground
233f3a70d1f66951fb3436782f3e85b7191d7bc9
[ "MIT" ]
null
null
null
about_arrow.py
jonathadv/python-libs-playground
233f3a70d1f66951fb3436782f3e85b7191d7bc9
[ "MIT" ]
null
null
null
about_arrow.py
jonathadv/python-libs-playground
233f3a70d1f66951fb3436782f3e85b7191d7bc9
[ "MIT" ]
null
null
null
""" # Arrow: Better dates & times for Python Arrow is a Python library that offers a sensible and human-friendly approach to creating, manipulating, formatting and converting dates, times and timestamps. It implements and updates the datetime type, plugging gaps in functionality and providing an intelligent module API...
26.588235
90
0.676991
4a0a7899d03e9b3713fbfcdc4fc0a0cbba563e55
20,861
py
Python
_test/jupman_tools_test.py
DavidLeoni/prova-qcb
38520ab66b34a145e43ffb0ee808562eae31c325
[ "Apache-2.0" ]
null
null
null
_test/jupman_tools_test.py
DavidLeoni/prova-qcb
38520ab66b34a145e43ffb0ee808562eae31c325
[ "Apache-2.0" ]
null
null
null
_test/jupman_tools_test.py
DavidLeoni/prova-qcb
38520ab66b34a145e43ffb0ee808562eae31c325
[ "Apache-2.0" ]
1
2021-03-21T15:20:51.000Z
2021-03-21T15:20:51.000Z
import sys sys.path.append('../') sys.path.append('.') # good lord, without this debugging in VSCode doesn't work #keep it first so we don't get depreation warnings import jupman_tools as jmt from hypothesis import given from pprint import pprint from hypothesis.strategies import text from jupman_tools import ignore...
32.595313
115
0.622405
4a0a790f671ecbc13b5186b852fcbbff30b71240
189
py
Python
tools/leetcode.242.Valid Anagram/leetcode.242.Valid Anagram.submission0.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.242.Valid Anagram/leetcode.242.Valid Anagram.submission0.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.242.Valid Anagram/leetcode.242.Valid Anagram.submission0.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Solution(object): def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """ return sorted(list(s))==sorted(list(t))
189
189
0.47619
4a0a79dc388700a32e0ff0d4f695ad3201bc5f28
6,796
py
Python
Python-Bing-DwenDwen.py
zhouxuanyi-zxy/Python-Bing-Dwen-Dwen
805529ed699a719c23bdae8dd4292692329194c0
[ "MIT" ]
null
null
null
Python-Bing-DwenDwen.py
zhouxuanyi-zxy/Python-Bing-Dwen-Dwen
805529ed699a719c23bdae8dd4292692329194c0
[ "MIT" ]
null
null
null
Python-Bing-DwenDwen.py
zhouxuanyi-zxy/Python-Bing-Dwen-Dwen
805529ed699a719c23bdae8dd4292692329194c0
[ "MIT" ]
2
2022-02-12T08:04:35.000Z
2022-02-21T06:41:06.000Z
import turtle turtle.speed(0) # 左手 turtle.up() turtle.goto(177,112) turtle.pencolor("lightgray") turtle.pensize(3) turtle.fillcolor("white") turtle.begin_fill() turtle.down() turtle.setheading(80) turtle.circle(-45,200) turtle.circle(-300,23) turtle.end_fill() # 左手内 turtle.up() turtle.goto(182,95) turtle.pencolor("b...
17.884211
60
0.745438
4a0a7a1e8ca51e2191ffea8c4afb38eca20b45ab
4,902
py
Python
demo/fcos_demo.py
cenchaojun/FCOS
fe13fd5cf86fd2ae88b5258081d1214b29e2e272
[ "BSD-2-Clause" ]
null
null
null
demo/fcos_demo.py
cenchaojun/FCOS
fe13fd5cf86fd2ae88b5258081d1214b29e2e272
[ "BSD-2-Clause" ]
null
null
null
demo/fcos_demo.py
cenchaojun/FCOS
fe13fd5cf86fd2ae88b5258081d1214b29e2e272
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import argparse import cv2, os from fcos_core.config import cfg from predictor import COCODemo import time def main(): parser = argparse.ArgumentParser(description="PyTorch Object Detection Webcam Demo") parser.add_argument( "--...
4,902
4,902
0.687475
4a0a7a360209059937222e9eaebbd38f05c6240e
357
py
Python
speculation-rules/prefetch/resources/prefetch.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
speculation-rules/prefetch/resources/prefetch.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
112
2021-09-27T14:39:02.000Z
2022-03-30T14:26:35.000Z
speculation-rules/prefetch/resources/prefetch.py
clopez/wpt
4ba8a4a1f41e166289c0a7feaa5665e1385e90f3
[ "BSD-3-Clause" ]
null
null
null
from wptserve.handlers import json_handler @json_handler def main(request, response): uuid = request.GET[b"uuid"] prefetch = request.headers.get( "Sec-Purpose", b"").decode("utf-8").startswith("prefetch") n = request.server.stash.take(uuid) if n is None: n = 0 if prefetch: n += 1 request.s...
21
64
0.666667
4a0a7b0e438e7c9a0c803e30cbc8fcb2765f9bbd
138
py
Python
kunai/hydra_utils/__init__.py
mjun0812/kunai
6a457c7242ed98dadb29f7002a3c0385ae6c1701
[ "MIT" ]
null
null
null
kunai/hydra_utils/__init__.py
mjun0812/kunai
6a457c7242ed98dadb29f7002a3c0385ae6c1701
[ "MIT" ]
null
null
null
kunai/hydra_utils/__init__.py
mjun0812/kunai
6a457c7242ed98dadb29f7002a3c0385ae6c1701
[ "MIT" ]
null
null
null
from .hydra_utils import get_default_config, set_hydra, validate_config __all__ = ("set_hydra", "validate_config", "get_default_config")
34.5
71
0.811594
4a0a7b378f2509ca9819d7e3feb51f59a3c62777
2,138
py
Python
rx3/core/observable/zip.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
rx3/core/observable/zip.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
rx3/core/observable/zip.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
from typing import Optional, List from rx3 import from_future from rx3.core import Observable, typing from rx3.disposable import CompositeDisposable, SingleAssignmentDisposable from rx3.internal.utils import is_future # pylint: disable=redefined-builtin def _zip(*args: Observable) -> Observable: """Merges the sp...
30.985507
102
0.594013
4a0a7c29e2706803e2153b3e24e886449ec1497d
4,511
py
Python
tests/unit/transport/test_ipc.py
haodeon/salt
af2964f4ddbf9c5635d1528a495e473996cc7b71
[ "Apache-2.0" ]
null
null
null
tests/unit/transport/test_ipc.py
haodeon/salt
af2964f4ddbf9c5635d1528a495e473996cc7b71
[ "Apache-2.0" ]
null
null
null
tests/unit/transport/test_ipc.py
haodeon/salt
af2964f4ddbf9c5635d1528a495e473996cc7b71
[ "Apache-2.0" ]
null
null
null
""" :codeauthor: Mike Place <mp@saltstack.com> """ import errno import logging import os import threading import pytest import salt.config import salt.exceptions import salt.ext.tornado.gen import salt.ext.tornado.ioloop import salt.ext.tornado.testing import salt.transport.ipc import salt.utils.platform from sa...
29.103226
85
0.615828
4a0a7c35d43930ba998ac74c19e410733c9a2bbe
6,789
py
Python
bugsy_15_puzzle.py
trattner/bugsy
47b0de9bdb1e50c3bf45fa785ba44266aa48547b
[ "MIT" ]
null
null
null
bugsy_15_puzzle.py
trattner/bugsy
47b0de9bdb1e50c3bf45fa785ba44266aa48547b
[ "MIT" ]
null
null
null
bugsy_15_puzzle.py
trattner/bugsy
47b0de9bdb1e50c3bf45fa785ba44266aa48547b
[ "MIT" ]
null
null
null
#for leslie kaelbling bling bling #Michael and Andy #Weight of time and solution cost import time import heapq from math import log import sys class Puzzle: """ A 15-puzzle instance which takes input startin_state as a well-formed typle of 16 entries method next_states returns successors, goal...
33.279412
107
0.554279
4a0a7d9427e6a1c84eed59ba6f78e616c60be9f1
1,309
py
Python
visualization_doc.py
adimaini/bias-scoring-algorithm
03d56b2836a9f6d30cbbb2ca3e9fb8f582d63e06
[ "MIT" ]
2
2020-11-16T02:28:57.000Z
2020-11-20T02:05:10.000Z
visualization_doc.py
adimaini/bias-scoring-algorithm
03d56b2836a9f6d30cbbb2ca3e9fb8f582d63e06
[ "MIT" ]
3
2020-11-23T02:26:47.000Z
2020-11-23T02:28:38.000Z
visualization_doc.py
adimaini/Text-Recognition-for-PII
03d56b2836a9f6d30cbbb2ca3e9fb8f582d63e06
[ "MIT" ]
1
2020-11-25T00:31:39.000Z
2020-11-25T00:31:39.000Z
import lib.data_processing as lib import importlib import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import texthero as hero from collections import Counter df = pd.read_csv('./bias_data/bias_data/transcripts/transcripts.csv') print(df.shape) df = df.iloc[:2000, ...
31.166667
72
0.675325
4a0a7deb60c92cab7c792c9c5abb5dd4d02a1c13
9,645
py
Python
testsuite/ui/views/admin/audience/account.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
5
2021-11-04T14:09:24.000Z
2021-12-23T13:48:36.000Z
testsuite/ui/views/admin/audience/account.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
41
2021-11-03T14:27:21.000Z
2022-03-29T14:46:16.000Z
testsuite/ui/views/admin/audience/account.py
dlaso99/3scale-tests
b31a3b3596af6d632b393e383c0417ea56bd95ca
[ "Apache-2.0" ]
12
2021-11-03T17:28:31.000Z
2021-11-30T12:28:25.000Z
"""View representations of Accounts pages""" from widgetastic.widget import TextInput, GenericLocatorWidget, Text, View from widgetastic_patternfly4 import PatternflyTable from testsuite.ui.navigation import step from testsuite.ui.views.admin.audience import BaseAudienceView from testsuite.ui.widgets import Threescal...
35.722222
107
0.689062
4a0a7e4b82d22a5c2e5634f4b28146de274c8106
167,879
py
Python
cime/scripts/tests/scripts_regression_tests.py
CLM-PFLOTRAN/E3SM
cedb30ce46658392447baff069a350bad4418753
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
null
null
null
cime/scripts/tests/scripts_regression_tests.py
CLM-PFLOTRAN/E3SM
cedb30ce46658392447baff069a350bad4418753
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
null
null
null
cime/scripts/tests/scripts_regression_tests.py
CLM-PFLOTRAN/E3SM
cedb30ce46658392447baff069a350bad4418753
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """ Script containing CIME python regression test suite. This suite should be run to confirm overall CIME correctness. """ import glob, os, re, shutil, signal, sys, tempfile, \ threading, time, logging, unittest, getpass, \ filecmp, time from xml.etree.ElementTree import ParseError LIB...
49.173697
242
0.585547
4a0a7ff3b6132731e48564e66d8ad61afe924423
721
py
Python
django/pokemongo/migrations/0018_auto_20181224_2312.py
TrainerDex/trainerdex.co.uk
82b029b8ac480686ec192233c5bc62521d480f88
[ "Apache-2.0" ]
1
2021-03-04T14:46:31.000Z
2021-03-04T14:46:31.000Z
django/pokemongo/migrations/0018_auto_20181224_2312.py
TrainerDex/trainerdex.co.uk
82b029b8ac480686ec192233c5bc62521d480f88
[ "Apache-2.0" ]
99
2020-09-10T11:00:59.000Z
2022-03-29T09:08:40.000Z
django/pokemongo/migrations/0018_auto_20181224_2312.py
TrainerDex/trainerdex.co.uk
82b029b8ac480686ec192233c5bc62521d480f88
[ "Apache-2.0" ]
1
2021-12-21T00:54:01.000Z
2021-12-21T00:54:01.000Z
# Generated by Django 2.1.4 on 2018-12-24 23:12 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("pokemongo", "0017_auto_20181213_1025"), ] operations = [ migrations.AlterField( model_name="update...
27.730769
102
0.599168
4a0a7ffa3007a6fd14a92bc73ac0201db683746f
172,813
py
Python
scalyr_agent/configuration.py
ArthurKamalov/scalyr-agent-2
8392568792fa06534ed9f9ef1892cf91577e3a62
[ "Apache-2.0" ]
1
2021-06-17T18:20:40.000Z
2021-06-17T18:20:40.000Z
scalyr_agent/configuration.py
kdelph23/scalyr-agent-2
6b975db59367d271eeba6a614ac40c7cb4205c41
[ "Apache-2.0" ]
null
null
null
scalyr_agent/configuration.py
kdelph23/scalyr-agent-2
6b975db59367d271eeba6a614ac40c7cb4205c41
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Scalyr 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, so...
38.309244
129
0.617535
4a0a7ffd0430ca7a9b6876665f1a5b83daf9db0d
81,479
py
Python
tencentcloud/dcdb/v20180411/models.py
zhaopufeng/tencentcloud-sdk-python
1f96db68a8aff9e4104600c7dc8ab69796e35e24
[ "Apache-2.0" ]
1
2020-01-03T06:18:22.000Z
2020-01-03T06:18:22.000Z
tencentcloud/dcdb/v20180411/models.py
zhaopufeng/tencentcloud-sdk-python
1f96db68a8aff9e4104600c7dc8ab69796e35e24
[ "Apache-2.0" ]
null
null
null
tencentcloud/dcdb/v20180411/models.py
zhaopufeng/tencentcloud-sdk-python
1f96db68a8aff9e4104600c7dc8ab69796e35e24
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
28.549054
220
0.604426
4a0a800c4a1499ac4aaad12249fceb5a281cec43
28
py
Python
src/zig/utilities.py
rx-gan/zig
5bdbbbda85ff3ac85a0c7a91dc54d995602f9a96
[ "MIT" ]
null
null
null
src/zig/utilities.py
rx-gan/zig
5bdbbbda85ff3ac85a0c7a91dc54d995602f9a96
[ "MIT" ]
null
null
null
src/zig/utilities.py
rx-gan/zig
5bdbbbda85ff3ac85a0c7a91dc54d995602f9a96
[ "MIT" ]
1
2021-07-14T15:37:38.000Z
2021-07-14T15:37:38.000Z
def generate_id(): pass
9.333333
18
0.642857
4a0a80694b3bdb69bd3c878708199e8db58e7aed
2,226
py
Python
openerp/addons/membership/__openerp__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
3
2016-01-29T14:39:49.000Z
2018-12-29T22:42:00.000Z
openerp/addons/membership/__openerp__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
2
2016-03-23T14:29:41.000Z
2017-02-20T17:11:30.000Z
openerp/addons/membership/__openerp__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
39.052632
103
0.60602
4a0a8091969929c142f1852c849f706a15229c69
268
py
Python
homzhub_customization/homzhub_customization/doctype/bhk_multi_selecting_field/bhk_multi_selecting_field.py
HPL-ERP/homzhub_customization
311364116aa61fc00b263c78ffbb6d3946cff154
[ "MIT" ]
null
null
null
homzhub_customization/homzhub_customization/doctype/bhk_multi_selecting_field/bhk_multi_selecting_field.py
HPL-ERP/homzhub_customization
311364116aa61fc00b263c78ffbb6d3946cff154
[ "MIT" ]
null
null
null
homzhub_customization/homzhub_customization/doctype/bhk_multi_selecting_field/bhk_multi_selecting_field.py
HPL-ERP/homzhub_customization
311364116aa61fc00b263c78ffbb6d3946cff154
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, Homzhub and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class BHKMultiSelectingField(Document): pass
24.363636
49
0.783582
4a0a8222a76b0b8d3d7b5d018c15c9c84f3388d6
1,818
py
Python
tests/src/conf/test_settings_class.py
lxbrvr/alfred-keepassxc-workflow
ae05c675cd762cd841e40f19795137eea58a2764
[ "MIT" ]
8
2021-08-17T00:44:54.000Z
2022-02-09T13:43:15.000Z
tests/src/conf/test_settings_class.py
lxbrvr/alfred-keepassxc-workflow
ae05c675cd762cd841e40f19795137eea58a2764
[ "MIT" ]
7
2021-12-05T02:59:10.000Z
2022-03-27T18:03:47.000Z
tests/src/conf/test_settings_class.py
lxbrvr/alfred-keepassxc-workflow
ae05c675cd762cd841e40f19795137eea58a2764
[ "MIT" ]
null
null
null
import pytest from contextlib2 import ExitStack from conf import RequiredFieldException class TestIsValidMethod(object): @pytest.mark.parametrize( "raised_exception, expected_result", [ (RequiredFieldException, False), (lambda: None, True), ] ) def test(sel...
33.666667
120
0.636414
4a0a84f13ff12576a86c24c0a120cab93dc0afe5
719
py
Python
apps/materials/forms.py
JuanJoseStone/shoe-app
b9eb10e59877d6eb0582b65cf1b91cdd47bdcdb0
[ "MIT" ]
null
null
null
apps/materials/forms.py
JuanJoseStone/shoe-app
b9eb10e59877d6eb0582b65cf1b91cdd47bdcdb0
[ "MIT" ]
null
null
null
apps/materials/forms.py
JuanJoseStone/shoe-app
b9eb10e59877d6eb0582b65cf1b91cdd47bdcdb0
[ "MIT" ]
null
null
null
from django import forms from .models import Material class MaterialForm(forms.ModelForm): def clean_name(self): try: model = Material.objects.get( name__iexact=self.cleaned_data['name'].strip()) if not self.instance.pk: raise forms.Valid...
32.681818
85
0.584145
4a0a851e99f681e6178d000e4c21c3cc6e088671
879
py
Python
modules/call_back_query_module.py
WhereIsTheExit/HeinzBot
1e35f1706d03b47dddfa8b8a04cede6a7c4be301
[ "Apache-2.0" ]
6
2019-05-12T13:30:48.000Z
2020-07-30T08:58:10.000Z
modules/call_back_query_module.py
WhereIsTheExit/HeinzBot
1e35f1706d03b47dddfa8b8a04cede6a7c4be301
[ "Apache-2.0" ]
16
2019-05-11T14:07:06.000Z
2021-11-29T22:13:35.000Z
modules/call_back_query_module.py
WhereIsTheExit/HeinzBot
1e35f1706d03b47dddfa8b8a04cede6a7c4be301
[ "Apache-2.0" ]
5
2019-05-11T13:29:47.000Z
2020-01-15T12:18:40.000Z
from telegram import Update from telegram.ext import CallbackContext, DispatcherHandlerStop from modules.abstract_module import AbstractModule from utils.decorators import register_module, register_callback_query_handler @register_module() class CallBackModule(AbstractModule): @register_callback_query_handler(com...
41.857143
86
0.74289
4a0a85b5dbc5aca1746070a5604dfcc072ef2469
1,298
py
Python
teamcat_service/docker_build/target/one_step_build/teamcat/gatesidelib/filehelper.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/docker_build/target/one_step_build/teamcat/gatesidelib/filehelper.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/docker_build/target/one_step_build/teamcat/gatesidelib/filehelper.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 #coding=utf-8 ''' Created on 2014-12-10 @author: Devuser ''' from gatesidelib.common.simplelogger import SimpleLogger import os import stat import shutil class FileHelper(object): @staticmethod def write_lines(filename,linelist): filehandler=open(filename,'w') filehandler....
22.37931
56
0.601695
4a0a85d475a1769a8ae50f636d22f4d5f46d8201
1,360
py
Python
split_data_legacy.py
googleinterns/gail-dyn
31c93b12d068dede0dbe69547f0b2e500374f260
[ "Apache-2.0" ]
null
null
null
split_data_legacy.py
googleinterns/gail-dyn
31c93b12d068dede0dbe69547f0b2e500374f260
[ "Apache-2.0" ]
null
null
null
split_data_legacy.py
googleinterns/gail-dyn
31c93b12d068dede0dbe69547f0b2e500374f260
[ "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 # #     https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
34.871795
75
0.688235
4a0a86ab6c834c62a235974efc39a9c05c70752c
3,985
py
Python
cframework/longbow/src/python/longbow-coverage-report.py
cherouvim/cicn-nrs
440d6a7f56e7240f179205ed5ce1fe8000d03b83
[ "Apache-2.0" ]
10
2018-11-04T06:37:14.000Z
2022-02-18T00:26:34.000Z
cframework/longbow/src/python/longbow-coverage-report.py
cherouvim/cicn-nrs
440d6a7f56e7240f179205ed5ce1fe8000d03b83
[ "Apache-2.0" ]
null
null
null
cframework/longbow/src/python/longbow-coverage-report.py
cherouvim/cicn-nrs
440d6a7f56e7240f179205ed5ce1fe8000d03b83
[ "Apache-2.0" ]
3
2019-01-17T19:47:55.000Z
2022-02-18T00:28:18.000Z
#! /usr/bin/env python # Copyright (c) 2017 Cisco 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 ...
45.284091
111
0.667754
4a0a86b01be5c1688690de2b7f76503c76c206b1
5,595
py
Python
bin/data/make_aws_archive/import_cv.py
dijksterhuis/cleverSpeech
aba8607ffa28e6be48e028e156d46254db19ad88
[ "MIT" ]
3
2021-09-07T22:45:36.000Z
2022-01-01T16:59:57.000Z
bin/data/make_aws_archive/import_cv.py
dijksterhuis/cleverSpeech
aba8607ffa28e6be48e028e156d46254db19ad88
[ "MIT" ]
4
2021-01-26T19:22:29.000Z
2021-12-31T14:38:12.000Z
bin/data/make_aws_archive/import_cv.py
dijksterhuis/cleverSpeech
aba8607ffa28e6be48e028e156d46254db19ad88
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import, division, print_function # Make sure we can import stuff from util/ # This script needs to be run from the root of the DeepSpeech repository import os import sys sys.path.insert(1, os.path.join(sys.path[0], '..')) import csv import tarfile import subproces...
42.386364
110
0.673816
4a0a86ca6bce1b0e35f5edc08e8cd799b94179df
700
py
Python
python/api_preprocess.py
PetalTech/petal-api-getting-started
d77eed5d414a6d9036b91992171e0e3e025199cc
[ "MIT" ]
2
2020-09-29T16:39:34.000Z
2021-04-25T22:28:04.000Z
python/api_preprocess.py
PetalTech/petal-api-getting-started
d77eed5d414a6d9036b91992171e0e3e025199cc
[ "MIT" ]
1
2022-01-13T23:19:24.000Z
2022-01-13T23:19:24.000Z
python/api_preprocess.py
PetalTech/petal-api-getting-started
d77eed5d414a6d9036b91992171e0e3e025199cc
[ "MIT" ]
null
null
null
''' This script contains an example of a preprocessed data Petal Metrics API call. You will need a valid developer API key to access. Usage: python api_preprocess.py -k $API_KEY ''' import argparse import random import api parser = argparse.ArgumentParser() parser.add_argument('-k', '--api_key', type=s...
25
79
0.682857
4a0a87ce73525dc27ce39c2c7848b0da6fa2e080
535
py
Python
setup.py
gameduell/parallelpandas
967fba7a37247897001dbe0c065820ef511acb12
[ "MIT" ]
1
2016-05-26T07:58:58.000Z
2016-05-26T07:58:58.000Z
setup.py
gameduell/parallelpandas
967fba7a37247897001dbe0c065820ef511acb12
[ "MIT" ]
null
null
null
setup.py
gameduell/parallelpandas
967fba7a37247897001dbe0c065820ef511acb12
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name = "parallelpandas", version = "0.1", packages = find_packages(), scripts = [], install_requires=['dill>=0.2', 'pandas>=0.14'], # metadata for upload to PyPI author = "Philipp Metzner", author_email = "philipp....
29.722222
61
0.639252
4a0a8834afbdddec0840ecba04bbb745f403d3b3
245
py
Python
anagrams count.py
sundar369/coding
d5e99623f055a39604351752d494c1c8817d6d91
[ "MIT" ]
null
null
null
anagrams count.py
sundar369/coding
d5e99623f055a39604351752d494c1c8817d6d91
[ "MIT" ]
null
null
null
anagrams count.py
sundar369/coding
d5e99623f055a39604351752d494c1c8817d6d91
[ "MIT" ]
null
null
null
lst1 = list(input().split()) lst2 = list(input().split()) for i in range(len(lst1)): lst1[i] = "".join(sorted(lst1[i])) for i in range(len(lst2)): lst2[i] = "".join(sorted(lst2[i])) count = 0 for i in lst1: if i in lst2: count+=1 print(count)
24.5
35
0.62449
4a0a892fa51c2d80661d2778b8d5643f5ff12153
52
py
Python
hra.py
barcza/piskvorky1d
00bd5ab2c2c57e3520a8d8476e7015ab7e222667
[ "MIT" ]
null
null
null
hra.py
barcza/piskvorky1d
00bd5ab2c2c57e3520a8d8476e7015ab7e222667
[ "MIT" ]
null
null
null
hra.py
barcza/piskvorky1d
00bd5ab2c2c57e3520a8d8476e7015ab7e222667
[ "MIT" ]
null
null
null
import ai import piskvorky piskvorky.piskvorky1d()
10.4
23
0.826923
4a0a8a822108336f379a76b7c1f7cc82c1be708b
574
py
Python
gmap_tagging.py
shelvi31/Gmap-Google-Map-Tagging
1cb1614b6c06eb1404a7b5a7a0047777e5c99970
[ "Apache-2.0" ]
null
null
null
gmap_tagging.py
shelvi31/Gmap-Google-Map-Tagging
1cb1614b6c06eb1404a7b5a7a0047777e5c99970
[ "Apache-2.0" ]
null
null
null
gmap_tagging.py
shelvi31/Gmap-Google-Map-Tagging
1cb1614b6c06eb1404a7b5a7a0047777e5c99970
[ "Apache-2.0" ]
null
null
null
import pandas as pd import gmplot data = pd.read_csv('spatial_network.csv') data.head() # latitude and longitude list latitude_list = data['LATITUDE'] longitude_list = data['LONGITUDE'] # center co-ordinates of the map gmap = gmplot.GoogleMapPlotter( 56.730876,9.349849,9) # plot the co-ordinates on...
27.333333
79
0.724739
4a0a8d4d1b0ea68bb1fa7614f6d7e8bd977327ff
1,481
py
Python
cate/util/undefined.py
strawpants/cate
eeef7da204b2f5c6dab1a90cb240aa5158c44513
[ "MIT" ]
34
2017-09-28T19:08:59.000Z
2022-02-09T14:53:26.000Z
cate/util/undefined.py
strawpants/cate
eeef7da204b2f5c6dab1a90cb240aa5158c44513
[ "MIT" ]
608
2017-09-25T20:29:52.000Z
2022-03-28T11:02:21.000Z
cate/util/undefined.py
strawpants/cate
eeef7da204b2f5c6dab1a90cb240aa5158c44513
[ "MIT" ]
14
2017-10-16T07:34:59.000Z
2021-02-22T15:52:37.000Z
# The MIT License (MIT) # Copyright (c) 2016, 2017 by the ESA CCI Toolbox development team and contributors # # 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 wi...
37.025
83
0.753545
4a0a8d716da14e1d5c89cd169ac05a0c488bc9d6
613
py
Python
setup.py
idel906/algofi-amm-py-sdk
eb5df585c6b890e4d948324c8a3ebf2fd8bc68d2
[ "MIT" ]
null
null
null
setup.py
idel906/algofi-amm-py-sdk
eb5df585c6b890e4d948324c8a3ebf2fd8bc68d2
[ "MIT" ]
null
null
null
setup.py
idel906/algofi-amm-py-sdk
eb5df585c6b890e4d948324c8a3ebf2fd8bc68d2
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="algofi-amm-py-sdk", description="Algofi AMM Python SDK", author="Algofi", author_email="founders@algofi.org", version="0.0.6", long_description=long_description, long_description_co...
26.652174
67
0.672104
4a0a8de75892ade7a78f06bcbe7f82751c673698
4,521
py
Python
python_packages_static/pydrograph/attributes.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
5
2020-05-11T16:05:38.000Z
2021-11-03T22:01:24.000Z
python_packages_static/pydrograph/attributes.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
7
2020-08-19T15:53:54.000Z
2022-03-31T21:56:22.000Z
python_packages_static/pydrograph/attributes.py
usgs/neversink_workflow
acd61435b8553e38d4a903c8cd7a3afc612446f9
[ "CC0-1.0" ]
6
2020-07-31T16:00:03.000Z
2022-03-04T20:54:57.000Z
# site_no -- Site identification number # station_nm -- Site name # site_tp_cd -- Site type # lat_va -- DMS latitude # long_va -- DMS longitude # dec_lat_va -- Decimal latitude # dec_long_va -- Decimal longitude # coord_meth_cd -- Latitude-longitude method # coord_...
25.398876
63
0.653616
4a0a8e88e3421d87979f0dbcc0c29bc94446ef54
3,420
py
Python
opendata/requests/views.py
OpenData-NC/open-data-nc
5e1964d5c986f79055e6f018f0f2f9a15a3eaf99
[ "MIT" ]
5
2015-10-31T02:01:24.000Z
2021-03-02T12:34:59.000Z
opendata/requests/views.py
OpenData-NC/open-data-nc
5e1964d5c986f79055e6f018f0f2f9a15a3eaf99
[ "MIT" ]
null
null
null
opendata/requests/views.py
OpenData-NC/open-data-nc
5e1964d5c986f79055e6f018f0f2f9a15a3eaf99
[ "MIT" ]
4
2016-04-05T06:07:15.000Z
2020-10-18T01:17:17.000Z
from django.contrib.auth.decorators import login_required from django.contrib import messages from django.core.urlresolvers import reverse from django.views.decorators.http import require_POST from django.views.generic import DetailView from django.shortcuts import render, redirect, get_object_or_404 from djangorating...
34.897959
90
0.66462
4a0a8ef05ea5f491fbeeab962306014ee3d85a12
2,084
py
Python
test_source/TestTimeDifference.py
BogyMitutoyoCTL/Sophy
60832ad9c1369a8dcc0379031d2fe0ca9eef44e3
[ "MIT" ]
null
null
null
test_source/TestTimeDifference.py
BogyMitutoyoCTL/Sophy
60832ad9c1369a8dcc0379031d2fe0ca9eef44e3
[ "MIT" ]
1
2018-07-04T08:08:49.000Z
2018-07-04T08:09:01.000Z
test_source/TestTimeDifference.py
BogyMitutoyoCTL/Sophy
60832ad9c1369a8dcc0379031d2fe0ca9eef44e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest from datetime import datetime from TimeDifference import TimeDifference """"" class NameInput(unittest.TestCase): def test_1(self): MyApp().run() self.assertEqual(True, True) """"" class TestTimeDifference(unittest.TestCase): def test_timedifference_c...
32.061538
66
0.629079
4a0a907351610ae29bf2b9a1d16e693df16a88a8
1,844
py
Python
Aeneas/aeneas/bin/aeneas_execute_task.py
yalhaizaey/Dreich
9528856c3879d4c9d3ced453f223785a71188808
[ "Apache-2.0" ]
25
2019-05-09T19:03:37.000Z
2022-02-06T20:47:37.000Z
Experiments/Aeneas/aeneas/bin/aeneas_execute_task.py
jonathanmcchesney/DeFog
bc314d41471d00b9d605bb4519f31a465e0a6b75
[ "Apache-2.0" ]
null
null
null
Experiments/Aeneas/aeneas/bin/aeneas_execute_task.py
jonathanmcchesney/DeFog
bc314d41471d00b9d605bb4519f31a465e0a6b75
[ "Apache-2.0" ]
9
2019-08-19T19:00:41.000Z
2021-12-09T04:46:07.000Z
#!/usr/bin/env python # coding=utf-8 # aeneas is a Python/C library and a set of tools # to automagically synchronize audio and text (aka forced alignment) # # Copyright (C) 2012-2013, Alberto Pettarin (www.albertopettarin.it) # Copyright (C) 2013-2015, ReadBeyond Srl (www.readbeyond.it) # Copyright (C) 2015-2017, A...
32.350877
77
0.746746
4a0a909cef8f68f565c38124d75f239d70e61c8f
4,668
py
Python
scripts/verify-test-files.py
illicitonion/buck
0336e37a5d9da94b6dcdf6ab78711c1788616ad0
[ "Apache-2.0" ]
null
null
null
scripts/verify-test-files.py
illicitonion/buck
0336e37a5d9da94b6dcdf6ab78711c1788616ad0
[ "Apache-2.0" ]
null
null
null
scripts/verify-test-files.py
illicitonion/buck
0336e37a5d9da94b6dcdf6ab78711c1788616ad0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Enforce that Java files which look like they contain JUnit test cases are referenced by a test BUCK target. In other words: find tests that will not run with `buck test --all` """ from __future__ import absolute_import from __future__ import division from __future__ import print_function impo...
30.710526
78
0.631962
4a0a90a7e0bf3c4812511afd3ef5fe6b121c5084
64
py
Python
prediction/yahoo_finance_apis_cheatsheet.py
pradeep-charism/bigdata-analytics-ml
7448cf61ba7b2c4be54f2d6b08f00b7641389633
[ "MIT" ]
null
null
null
prediction/yahoo_finance_apis_cheatsheet.py
pradeep-charism/bigdata-analytics-ml
7448cf61ba7b2c4be54f2d6b08f00b7641389633
[ "MIT" ]
null
null
null
prediction/yahoo_finance_apis_cheatsheet.py
pradeep-charism/bigdata-analytics-ml
7448cf61ba7b2c4be54f2d6b08f00b7641389633
[ "MIT" ]
null
null
null
import yfinance as yf msft = yf.Ticker("MSFT") print(msft.info)
16
24
0.734375
4a0a914bf391fb17e3db3099700a217c828b9b68
71,792
py
Python
yt/frontends/stream/data_structures.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
1
2021-11-29T21:59:06.000Z
2021-11-29T21:59:06.000Z
yt/frontends/stream/data_structures.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/stream/data_structures.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
null
null
null
""" Data structures for Streaming, in-memory datasets """ #----------------------------------------------------------------------------- # Copyright (c) 2013, yt Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this soft...
39.166394
101
0.623133
4a0a91bc16fd8054c1bef8d01a7d432a790bd32a
7,582
py
Python
src/oscar/defaults.py
quangvinh1305/django-oscar
ec51f0d36d0bc148cb33f63362d6d55c9f583849
[ "BSD-3-Clause" ]
null
null
null
src/oscar/defaults.py
quangvinh1305/django-oscar
ec51f0d36d0bc148cb33f63362d6d55c9f583849
[ "BSD-3-Clause" ]
null
null
null
src/oscar/defaults.py
quangvinh1305/django-oscar
ec51f0d36d0bc148cb33f63362d6d55c9f583849
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict from django.urls import reverse_lazy from django.utils.translation import gettext_lazy as _ OSCAR_SHOP_NAME = 'Xhealthy' OSCAR_SHOP_TAGLINE = '' OSCAR_HOMEPAGE = reverse_lazy('catalogue:index') # Dynamic class loading OSCAR_DYNAMIC_CLASS_LOADER = 'oscar.core.loading.default_class_...
30.207171
94
0.570034
4a0a91c532ef48f71ad69c1a9d9e3d8537c1e669
16,135
py
Python
tests/pfc/test_unknown_mac.py
ysmanman/sonic-mgmt
f6b129ede1521211370520dcd4a57279f84e940a
[ "Apache-2.0" ]
2
2020-07-03T01:16:27.000Z
2020-10-09T05:38:07.000Z
tests/pfc/test_unknown_mac.py
ysmanman/sonic-mgmt
f6b129ede1521211370520dcd4a57279f84e940a
[ "Apache-2.0" ]
2
2021-08-18T18:21:10.000Z
2021-08-23T13:49:11.000Z
tests/pfc/test_unknown_mac.py
ysmanman/sonic-mgmt
f6b129ede1521211370520dcd4a57279f84e940a
[ "Apache-2.0" ]
1
2020-07-02T02:49:56.000Z
2020-07-02T02:49:56.000Z
import functools import inspect import json import logging import pytest import random import re import time import ptf.testutils as testutils import ptf.mask as mask import ptf.packet as packet from tests.common import constants from tests.common.fixtures.ptfhost_utils import change_mac_addresses from tests.common.f...
41.478149
119
0.593616
4a0a93aec6aeab1dca3e420d491be431cdee7c08
3,966
py
Python
search/seg_metrics.py
songzijiang/FasterSeg
1a14ef6dd665afd229a16ab43b532b5a406512f8
[ "MIT" ]
334
2019-12-20T02:43:08.000Z
2020-08-11T07:14:21.000Z
search/seg_metrics.py
songzijiang/FasterSeg
1a14ef6dd665afd229a16ab43b532b5a406512f8
[ "MIT" ]
39
2019-12-23T04:05:29.000Z
2020-08-01T20:14:04.000Z
search/seg_metrics.py
songzijiang/FasterSeg
1a14ef6dd665afd229a16ab43b532b5a406512f8
[ "MIT" ]
63
2019-12-21T11:05:52.000Z
2020-07-27T11:54:55.000Z
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Created by: Hang Zhang # ECE Department, Rutgers University ## Email: zhang.hang@rutgers.edu # Copyright (c) 2017 ## # This source code is licensed under the MIT-style license found in the # LICENSE file in the root directory of this source t...
36.054545
90
0.63061
4a0a9449cebf24f6afb5eaa8a7fa985bcb29c04f
9,144
py
Python
rapid/client/controllers/work_controller.py
m2bright/rapid
fd66515105ca9773c5da8562a878c6b0bfa4487a
[ "Apache-2.0" ]
4
2018-04-12T20:16:04.000Z
2020-03-03T08:09:19.000Z
rapid/client/controllers/work_controller.py
m2bright/rapid
fd66515105ca9773c5da8562a878c6b0bfa4487a
[ "Apache-2.0" ]
69
2019-03-13T21:30:51.000Z
2021-12-08T16:54:05.000Z
rapid/client/controllers/work_controller.py
m2bright/rapid
fd66515105ca9773c5da8562a878c6b0bfa4487a
[ "Apache-2.0" ]
4
2020-03-03T08:09:20.000Z
2020-07-20T22:06:28.000Z
""" Copyright (c) 2015 Michael Bright and Bamboo HR 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...
41.753425
149
0.602472
4a0a94c35674c2f7faf717b3150754ef0cc8b29f
21,058
py
Python
setup.py
andreagrant/bokehDev
a684afee183496c54d4f187a890707cf6b5ec2a5
[ "BSD-3-Clause" ]
null
null
null
setup.py
andreagrant/bokehDev
a684afee183496c54d4f187a890707cf6b5ec2a5
[ "BSD-3-Clause" ]
null
null
null
setup.py
andreagrant/bokehDev
a684afee183496c54d4f187a890707cf6b5ec2a5
[ "BSD-3-Clause" ]
null
null
null
"""Setup script for Bokeh.""" #----------------------------------------------------------------------------- # Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENCE.txt, distributed with this software. #---------...
35.214047
137
0.572514
4a0a96349c14c509cc8a2a21f3d3a94a12eae6c8
8,311
py
Python
docs/conf.py
rishikesh67/django-shared-schema-tenants
ed3bcddf80a7838979fe1be2045dfa16b545beed
[ "MIT" ]
20
2017-08-29T02:36:32.000Z
2021-12-06T21:29:46.000Z
docs/conf.py
rishikesh67/django-shared-schema-tenants
ed3bcddf80a7838979fe1be2045dfa16b545beed
[ "MIT" ]
35
2017-08-18T06:28:31.000Z
2021-09-02T01:53:09.000Z
docs/conf.py
rishikesh67/django-shared-schema-tenants
ed3bcddf80a7838979fe1be2045dfa16b545beed
[ "MIT" ]
9
2018-06-17T22:04:13.000Z
2022-03-18T09:27:18.000Z
# -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
32.592157
94
0.721093
4a0a96427e916d8a9ad4bbf72cfb3485dc2ed0aa
41,889
py
Python
yt_dlp/postprocessor/ffmpeg.py
t03b10t99/ytdl-good-boys
d183af3cc1dbb98d2e2f89dbc7cff2901bd10408
[ "Unlicense" ]
18
2020-12-21T22:33:46.000Z
2021-01-11T20:14:35.000Z
yt_dlp/postprocessor/ffmpeg.py
t03b10t99/ytdl-good-boys
d183af3cc1dbb98d2e2f89dbc7cff2901bd10408
[ "Unlicense" ]
8
2021-01-06T21:01:20.000Z
2021-01-12T21:34:46.000Z
yt_dlp/postprocessor/ffmpeg.py
t03b10t99/ytdl-good-boys
d183af3cc1dbb98d2e2f89dbc7cff2901bd10408
[ "Unlicense" ]
2
2021-01-08T17:38:57.000Z
2021-01-12T11:08:27.000Z
from __future__ import unicode_literals import io import itertools import os import subprocess import time import re import json from .common import AudioConversionError, PostProcessor from ..compat import compat_str from ..utils import ( dfxp2srt, encodeArgument, encodeFilename, float_or_none, g...
41.229331
137
0.583447
4a0a9650104ef8be16c5eef5e4c8fc4c68a16810
387
py
Python
alot_checkmail/__init__.py
tbjers/alot-plugin-checkmail
7e2461be2baf695c2a3cb58ea368dbd60f867441
[ "MIT" ]
null
null
null
alot_checkmail/__init__.py
tbjers/alot-plugin-checkmail
7e2461be2baf695c2a3cb58ea368dbd60f867441
[ "MIT" ]
null
null
null
alot_checkmail/__init__.py
tbjers/alot-plugin-checkmail
7e2461be2baf695c2a3cb58ea368dbd60f867441
[ "MIT" ]
null
null
null
__productname__ = "alot-plugin-checkmail" __version__ = "0.0.15" __copyright__ = "Copyright (c) 2021 Torgny Bjers" __author__ = "Torgny Bjers" __author_email__ = "torgny@bjers.org" __description__ = "Command wrapper with feedback for checking mail and other long-running tasks." __url__ = "https://github.com/tbjers/alot...
43
97
0.777778
4a0a97f1847cc94bb5e73b4db4d3a4eeb4f40112
1,612
py
Python
code/analysis/English/get_V-measure.py
tkc-morita/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
4
2021-03-27T18:28:23.000Z
2022-01-10T23:32:29.000Z
code/analysis/English/get_V-measure.py
stannam/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
null
null
null
code/analysis/English/get_V-measure.py
stannam/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
1
2022-01-10T23:45:54.000Z
2022-01-10T23:45:54.000Z
# coding: utf-8 import pandas as pd import sklearn.metrics as skm import argparse, os def get_V_measure(df): labels_true = df.actual_sublex labels_pred = df.predicted_sublex return skm.v_measure_score(labels_true, labels_pred) def get_correct_sublex(data_path): df_data = pd.read_csv(data_path, sep='\t', encod...
32.24
131
0.73201
4a0a9a442beed2eaaf55b65333cdacfcef5d21a5
890
py
Python
pipeline/histology.py
xiaow2/orofacial_pipeline
fdfac5d1a2dd780f017966dc353f77eda1d21b93
[ "MIT" ]
null
null
null
pipeline/histology.py
xiaow2/orofacial_pipeline
fdfac5d1a2dd780f017966dc353f77eda1d21b93
[ "MIT" ]
3
2020-08-20T22:47:52.000Z
2020-09-16T21:06:09.000Z
pipeline/histology.py
xiaow2/orofacial_pipeline
fdfac5d1a2dd780f017966dc353f77eda1d21b93
[ "MIT" ]
2
2020-07-31T22:12:02.000Z
2020-10-08T18:55:03.000Z
import datajoint as dj from . import lab, experiment, ccf, ephys from . import get_schema_name [lab, experiment, ccf, ephys] # schema imports only schema = dj.schema(get_schema_name('histology')) @schema class ElectrodeCCFPosition(dj.Imported): definition = """ -> ephys.ProbeInsertion """ class El...
20.227273
52
0.552809
4a0a9bcb0bf0b7e66acb1b89dd234ee5957d1e6c
6,730
py
Python
setup.py
johnsonkee/mmocr_wxz
867b91664ea373873557743c2a4be23fa014b14f
[ "Apache-2.0" ]
null
null
null
setup.py
johnsonkee/mmocr_wxz
867b91664ea373873557743c2a4be23fa014b14f
[ "Apache-2.0" ]
null
null
null
setup.py
johnsonkee/mmocr_wxz
867b91664ea373873557743c2a4be23fa014b14f
[ "Apache-2.0" ]
null
null
null
import glob import os from setuptools import find_packages, setup import torch from torch.utils.cpp_extension import (CUDA_HOME, BuildExtension, CppExtension, CUDAExtension) def readme(): with open('README.md', encoding='utf-8') as f: content = f.read() return c...
36.378378
125
0.567162
4a0a9bf0f70bfa1accb5cd3b6840ef4e2d05b536
285
py
Python
python_python3/1961.py
mayconrebordao/uri-codes
1081c25ecaf0142f38c7ba287bd01490a1d34474
[ "MIT" ]
null
null
null
python_python3/1961.py
mayconrebordao/uri-codes
1081c25ecaf0142f38c7ba287bd01490a1d34474
[ "MIT" ]
null
null
null
python_python3/1961.py
mayconrebordao/uri-codes
1081c25ecaf0142f38c7ba287bd01490a1d34474
[ "MIT" ]
null
null
null
a= input(); b =a.split(" ") n = int (b[0]) m = int (b[1]) cont = 0 f=input(); r=f.split(" ") ter= int(r[0]) for i in range (1,m): if((int(r[i])-ter)>n): cont+=1 elif ((ter-n)>int(r[i])): cont+=1 ter=(int(r[i])) #elif() if(cont!=0): print("GAME OVER") else : print("YOU WIN")
15
26
0.508772
4a0a9e67b071da2bf455fbf769820dc9cd8bf5d8
1,104
py
Python
grapple/types/media.py
ruisaraiva19/wagtail-grapple
1c674f1e2c8800adb9f51cd3497ff55f72f100b3
[ "MIT" ]
null
null
null
grapple/types/media.py
ruisaraiva19/wagtail-grapple
1c674f1e2c8800adb9f51cd3497ff55f72f100b3
[ "MIT" ]
null
null
null
grapple/types/media.py
ruisaraiva19/wagtail-grapple
1c674f1e2c8800adb9f51cd3497ff55f72f100b3
[ "MIT" ]
null
null
null
import graphene from graphene_django import DjangoObjectType from wagtailmedia.models import Media, get_media_model from ..registry import registry from ..utils import get_media_item_url, resolve_queryset from .structures import QuerySetList class MediaObjectType(DjangoObjectType): class Meta: model = ...
23.489362
75
0.682065
4a0a9eda808a337b58e59554d23f4223e69e38ea
17,206
py
Python
napari/layers/vectors/_tests/test_vectors.py
Zac-HD/napari
102a7e8f845893c874d2b86f9371d41130100b89
[ "BSD-3-Clause" ]
null
null
null
napari/layers/vectors/_tests/test_vectors.py
Zac-HD/napari
102a7e8f845893c874d2b86f9371d41130100b89
[ "BSD-3-Clause" ]
2
2021-05-17T02:15:08.000Z
2022-03-12T21:19:52.000Z
napari/layers/vectors/_tests/test_vectors.py
Zac-HD/napari
102a7e8f845893c874d2b86f9371d41130100b89
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd import pytest from vispy.color import get_colormap from napari._tests.utils import check_layer_world_data_extent from napari.layers import Vectors from napari.utils.colormaps.standardize_color import transform_color # Set random seed for testing np.random.seed(0) def test_rand...
31.22686
95
0.639079
4a0a9fc57dbad30d00d3ae78737a3e953440fb18
4,210
py
Python
grad/naive_max_caps_dim.py
XxuChen/Capsule-Specific-Attacks
7e5a25814ce0d26c4632df2a9e57d18d3435d18f
[ "MIT" ]
null
null
null
grad/naive_max_caps_dim.py
XxuChen/Capsule-Specific-Attacks
7e5a25814ce0d26c4632df2a9e57d18d3435d18f
[ "MIT" ]
null
null
null
grad/naive_max_caps_dim.py
XxuChen/Capsule-Specific-Attacks
7e5a25814ce0d26c4632df2a9e57d18d3435d18f
[ "MIT" ]
null
null
null
# Copyright 2018 Xu Chen All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
42.959184
114
0.677672
4a0aa030136afaa9fde15cd02815be21b7a917e0
632
py
Python
recipes/qhull/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/qhull/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/qhull/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
import os from conans import ConanFile, CMake, tools class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake", "cmake_find_package_multi" def build(self): cmake = CMake(self) cmake.definitions["QHULL_REENTRANT"] = self.options["qhull"].reen...
31.6
78
0.655063