hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0db1cd3c88ec4830d65c1a63306bb321b9c06515
250
py
Python
custom/ucla/urls.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
custom/ucla/urls.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
custom/ucla/urls.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, url urlpatterns = patterns('custom.ucla.views', url(r'ucla-task-creation/(?P<app_id>[\w-]+)/modules-(?P<module_id>[\w-]+)/forms-(?P<form_id>[\w-]+)/$', 'task_creation', name='ucla_task_creation') )
35.714286
107
0.656
c8752abbebbdc152e3f7b13495ec5f72c74556b7
6,172
py
Python
src/code_query/model/encoder.py
frans-johansson/code-query
977e98100e1bf3b30246eee5eaa722885f2c0d41
[ "MIT" ]
null
null
null
src/code_query/model/encoder.py
frans-johansson/code-query
977e98100e1bf3b30246eee5eaa722885f2c0d41
[ "MIT" ]
null
null
null
src/code_query/model/encoder.py
frans-johansson/code-query
977e98100e1bf3b30246eee5eaa722885f2c0d41
[ "MIT" ]
null
null
null
""" Contains various encoders for code and queries which the CodeQuery model utilizes. """ from abc import ABC, abstractstaticmethod from argparse import ArgumentParser, Namespace from enum import Enum from typing import Any, Dict, Union import torch from torch import nn import pytorch_lightning as pl from transformer...
37.406061
95
0.647278
d7fc1fee44c7b279ed857a1a5dafc557a00f54a7
2,391
py
Python
base16/base16-bright.py
memeplex/base16-prompt-toolkit
8a52f886005eb1fa005fd65a2c4b1a680a1f1d91
[ "MIT" ]
12
2017-02-27T02:03:20.000Z
2021-04-12T08:56:46.000Z
base16/base16-bright.py
memeplex/base16-prompt-toolkit
8a52f886005eb1fa005fd65a2c4b1a680a1f1d91
[ "MIT" ]
6
2017-02-27T19:09:13.000Z
2020-12-18T10:47:30.000Z
base16/base16-bright.py
memeplex/base16-prompt-toolkit
8a52f886005eb1fa005fd65a2c4b1a680a1f1d91
[ "MIT" ]
8
2018-02-08T12:49:27.000Z
2021-12-21T12:58:27.000Z
# -*- coding: utf-8 -*- # base16-prompt-toolkit (https://github.com/memeplex/base16-prompt-toolkit) # Base16 Prompt Toolkit template by Carlos Pita (carlosjosepita@gmail.com # Bright scheme by Chris Kempson (http://chriskempson.com) from prompt_toolkit.terminal.vt100_output import _256_colors from pygments.style impo...
30.653846
109
0.667921
c5aff79d3ee7bc7be9b1e8832547de5934e21e2f
10,266
py
Python
toontown/building/DistributedElevatorAI.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
1
2020-09-27T22:12:47.000Z
2020-09-27T22:12:47.000Z
toontown/building/DistributedElevatorAI.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
null
null
null
toontown/building/DistributedElevatorAI.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
2
2020-09-26T20:37:18.000Z
2020-11-15T20:55:33.000Z
from otp.ai.AIBase import * from toontown.toonbase import ToontownGlobals from direct.distributed.ClockDelta import * from .ElevatorConstants import * from direct.distributed import DistributedObjectAI from direct.fsm import ClassicFSM, State from direct.fsm import State from direct.task import Task from direct.directn...
34.449664
138
0.624002
8160273d132ac649ac75c6c975152f7536c3ac13
6,810
py
Python
xnas/spaces/OFA/utils.py
zhengxiawu/XNAS
ea8f8ab31f67155482f5b9a9ad2a0b54c45f45d1
[ "MIT" ]
22
2020-07-01T02:12:01.000Z
2020-09-24T05:32:08.000Z
xnas/spaces/OFA/utils.py
zhengxiawu/XNAS
ea8f8ab31f67155482f5b9a9ad2a0b54c45f45d1
[ "MIT" ]
null
null
null
xnas/spaces/OFA/utils.py
zhengxiawu/XNAS
ea8f8ab31f67155482f5b9a9ad2a0b54c45f45d1
[ "MIT" ]
5
2020-07-09T06:53:18.000Z
2020-08-15T13:15:14.000Z
"""Utilities.""" import copy import math import torch import numpy as np import torch.nn as nn import torch.nn.functional as F from xnas.logger.meter import AverageMeter def list_sum(x): return x[0] if len(x) == 1 else x[0] + list_sum(x[1:]) def list_mean(x): return list_sum(x) / len(x) def min_divisibl...
31.82243
96
0.570485
c5a0c89f0d4e45233e61404230e9a8413c0fd471
4,779
py
Python
scripts/azurerm_management_lock.py
recetasdevops/py-az2tf
e6932b64ce194f78724fb92078e2e833a44b50c7
[ "MIT" ]
null
null
null
scripts/azurerm_management_lock.py
recetasdevops/py-az2tf
e6932b64ce194f78724fb92078e2e833a44b50c7
[ "MIT" ]
null
null
null
scripts/azurerm_management_lock.py
recetasdevops/py-az2tf
e6932b64ce194f78724fb92078e2e833a44b50c7
[ "MIT" ]
null
null
null
import uuid def azurerm_management_lock(crf,cde,crg,headers,requests,sub,json,az2tfmess): # management locks tfp="azurerm_management_lock" azr="" if crf in tfp: # REST # # print "REST VNets" url="https://management.azure.com/subscriptions/" + sub + "/providers/Microsoft.Auth...
35.664179
108
0.42624
64cf437027809e4e6c8fe303d5a60bd2b5af8fb0
4,368
py
Python
saleor/rest/views/payment.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/rest/views/payment.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
saleor/rest/views/payment.py
Chaoslecion123/Diver
8c5c493701422eada49cbf95b0b0add08f1ea561
[ "BSD-3-Clause" ]
null
null
null
from django.apps import apps from rest_framework.filters import SearchFilter from rest_framework.filters import OrderingFilter from django_filters.rest_framework import DjangoFilterBackend from rest_flex_fields import FlexFieldsModelViewSet from saleor.rest.serializers import PaymentSerializer __all__ = [ 'Paymen...
25.846154
75
0.550366
9eb2c2d673f7caef76940c1376a9b8228c405177
421
py
Python
core.py
WiGeeky/TelegramExportAnalyzer
8d5f39271ef1b74fba32ae999763738426096a83
[ "MIT" ]
1
2021-02-21T16:02:51.000Z
2021-02-21T16:02:51.000Z
core.py
WiGeeky/TelegramExportAnalyzer
8d5f39271ef1b74fba32ae999763738426096a83
[ "MIT" ]
null
null
null
core.py
WiGeeky/TelegramExportAnalyzer
8d5f39271ef1b74fba32ae999763738426096a83
[ "MIT" ]
null
null
null
import logging import os import json logging.basicConfig(filename='output.log', level=logging.CRITICAL) class Analyzer: def __init__(self, file_path=None,): self.file_path = file_path def __enter__(self): self.file = open(self.file_path, 'r') self.obj = json.load(self.file) ...
22.157895
66
0.648456
ffd79b5007b4878bb49c70e29a48667d7a8ae03c
1,110
py
Python
fsleyes/tests/test_performance.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
12
2018-05-05T01:36:25.000Z
2021-09-23T20:44:08.000Z
fsleyes/tests/test_performance.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
97
2018-05-05T02:17:23.000Z
2022-03-29T14:58:42.000Z
fsleyes/tests/test_performance.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
6
2017-12-09T09:02:00.000Z
2021-03-05T18:55:13.000Z
#!/usr/bin/env python # # test_performance.py - # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # from fsleyes.tests import run_cli_tests, discretise cli_tests = """ 3d.nii.gz 3d.nii.gz -ot mask -t 4000 10000 3d.nii.gz -ot mip {{discretise('3d.nii.gz', 500)}} -ot label dti dti/dti_V1 -ot rgbvector dti/dti_V1 -o...
21.346154
59
0.7
d2efa23258cc94e74e6d818c4e6dcd48ea707f52
36
py
Python
core/entitiy/__init__.py
ryanolee/pager-duty-sync
1fd88634e461b5db647d856bc6b59f990944685e
[ "MIT" ]
null
null
null
core/entitiy/__init__.py
ryanolee/pager-duty-sync
1fd88634e461b5db647d856bc6b59f990944685e
[ "MIT" ]
2
2020-09-27T18:19:17.000Z
2021-06-29T09:21:04.000Z
core/entitiy/__init__.py
ryanolee/pager-duty-sync
1fd88634e461b5db647d856bc6b59f990944685e
[ "MIT" ]
null
null
null
from .OnCallShift import OnCallShift
36
36
0.888889
63c7cb6b5b7747ee15793bf87865f2ab501fcc84
226
py
Python
administration/models.py
AhteshamSid/College_school_management_system
a8504708ea2f347d18d4ac59198f29d05c0374d2
[ "MIT" ]
null
null
null
administration/models.py
AhteshamSid/College_school_management_system
a8504708ea2f347d18d4ac59198f29d05c0374d2
[ "MIT" ]
null
null
null
administration/models.py
AhteshamSid/College_school_management_system
a8504708ea2f347d18d4ac59198f29d05c0374d2
[ "MIT" ]
null
null
null
from django.db import models class Designation(models.Model): name = models.CharField(max_length=100, unique=True) date = models.DateField(auto_now_add=True) def __str__(self): return self.name
22.6
57
0.690265
ee261ac96cb09741c624efdf517c4aa0b7f43e5d
1,193
py
Python
p784m/letter_case_permutation.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
1
2020-02-20T12:04:46.000Z
2020-02-20T12:04:46.000Z
p784m/letter_case_permutation.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
p784m/letter_case_permutation.py
l33tdaima/l33tdaima
0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90
[ "MIT" ]
null
null
null
from typing import List class Solution: def letterCasePermutationV1(self, S: str) -> List[str]: ans = [] def backtrack(path: str, i: int) -> None: nonlocal S while i < len(S) and S[i].isdigit(): path += S[i] i += 1 if i == len(S)...
26.511111
86
0.483655
04e9dbfe77b46dddd534616fd70880e301656bc3
6,335
py
Python
stackoverflow/venv/lib/python3.6/site-packages/pymongo/server_description.py
zhi-xianwei/learn_python3_spider
a3301f8112e4ded25c3578162db8c6a263a0693b
[ "MIT" ]
9,953
2019-04-03T23:41:04.000Z
2022-03-31T11:54:44.000Z
stackoverflow/venv/lib/python3.6/site-packages/pymongo/server_description.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
44
2019-05-27T10:59:29.000Z
2022-03-31T14:14:29.000Z
stackoverflow/venv/lib/python3.6/site-packages/pymongo/server_description.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
2,803
2019-04-06T13:15:33.000Z
2022-03-31T07:42:01.000Z
# Copyright 2014-present MongoDB, 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 wri...
29.882075
79
0.67056
5ef75cbc2d294b7b19070c5cdd9d213f823af358
1,749
py
Python
go/apps/subscription/tests/test_definition.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/apps/subscription/tests/test_definition.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/apps/subscription/tests/test_definition.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from go.apps.subscription.definition import ConversationDefinition from go.apps.subscription.metrics import SubscribedMetric, UnsubscribedMetric from go.base.tests.helpers import GoDjangoTestCase from go.vumitools.metrics import MessagesReceivedMetric, MessagesSentMetric from go.vumitools.tests.helpers import VumiApiHe...
41.642857
77
0.708405
40bf92cbd9543db273c6cb1cc19647144ec476f9
14,852
py
Python
tensorflow/python/keras/layers/preprocessing/integer_lookup.py
jonnymiyagi/tensorflow
b347508e0decd7ac3ec8ae8c9ab53f7a117a6124
[ "Apache-2.0" ]
1
2021-03-16T00:50:36.000Z
2021-03-16T00:50:36.000Z
tensorflow/python/keras/layers/preprocessing/integer_lookup.py
yuxunzhi/tensorflow
bb562131d4bce6bf69188a52e570ef9376726fe4
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/layers/preprocessing/integer_lookup.py
yuxunzhi/tensorflow
bb562131d4bce6bf69188a52e570ef9376726fe4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
43.300292
80
0.676811
482e2286ff62f2a03ba24bce4757bf8d0de1c4a4
6,123
py
Python
deepim/operator_py/zoom_trans.py
THU-DA-6D-Pose-Group/mx-DeepIM
f1c850e5f8f75f1051a89c40daff9185870020f5
[ "Apache-2.0" ]
229
2018-09-08T08:38:59.000Z
2022-03-29T07:09:22.000Z
deepim/operator_py/zoom_trans.py
greatwallet/mx-DeepIM
74b6df2e3f6be7d6fed23ba2f553dab5ae950700
[ "Apache-2.0" ]
59
2018-09-13T20:10:36.000Z
2021-01-08T12:22:27.000Z
deepim/operator_py/zoom_trans.py
greatwallet/mx-DeepIM
74b6df2e3f6be7d6fed23ba2f553dab5ae950700
[ "Apache-2.0" ]
59
2018-09-08T07:56:33.000Z
2022-03-25T22:01:42.000Z
# -------------------------------------------------------- # Deep Iterative Matching Network # Licensed under The Apache-2.0 License [see LICENSE for details] # Written by Yi Li, Gu Wang # -------------------------------------------------------- from __future__ import print_function, division import sys import os cur_...
39.503226
111
0.637433
08bd33517fad6e96e808dc841de7ed5dbafaa98c
935
py
Python
utils/load_config.py
jamaalhay/Final_Proj
3f524a90fee5a3cb21466ab76f630d060792045d
[ "MIT" ]
104
2018-05-16T07:15:29.000Z
2022-03-08T09:28:02.000Z
utils/load_config.py
jamaalhay/Final_Proj
3f524a90fee5a3cb21466ab76f630d060792045d
[ "MIT" ]
4
2018-08-02T17:13:31.000Z
2020-09-16T05:01:09.000Z
utils/load_config.py
jamaalhay/Final_Proj
3f524a90fee5a3cb21466ab76f630d060792045d
[ "MIT" ]
22
2018-05-30T10:13:49.000Z
2021-12-14T15:43:12.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'han' import sys import yaml import logging.config def init_logging(config_path='config/logging_config.yaml'): """ initial logging module with config :param config_path: :return: """ try: with open(config_path, 'r') as f: ...
23.375
76
0.623529
9683bcdd18f7a7de84aa880aece554b9423aab8f
1,268
py
Python
examples/cog.py
LOCUS-TEAM/py-cord-components
117302809482dfdcdfec0cfd9a7fa4fb1eb45671
[ "MIT" ]
1
2022-03-16T12:13:32.000Z
2022-03-16T12:13:32.000Z
examples/cog.py
LOCUS-TEAM/py-cord-components
117302809482dfdcdfec0cfd9a7fa4fb1eb45671
[ "MIT" ]
null
null
null
examples/cog.py
LOCUS-TEAM/py-cord-components
117302809482dfdcdfec0cfd9a7fa4fb1eb45671
[ "MIT" ]
null
null
null
from disnake.ext.commands import command, Cog from disnake_components import ( Button, ButtonStyle, Select, SelectOption, ) class ExampleCog(Cog): def __init__(self, bot): self.bot = bot @command() async def button(self, ctx): async def callback(interaction): a...
24.862745
80
0.485804
8100f93e153abc9e46fc81ca35e2763c39e23790
1,063
py
Python
Initial-codes.py
White-Brett/Nutrients-Prediction
bb2c3bfe3718b41fa8e31bcb19ce50c00aa85b66
[ "CC0-1.0" ]
null
null
null
Initial-codes.py
White-Brett/Nutrients-Prediction
bb2c3bfe3718b41fa8e31bcb19ce50c00aa85b66
[ "CC0-1.0" ]
null
null
null
Initial-codes.py
White-Brett/Nutrients-Prediction
bb2c3bfe3718b41fa8e31bcb19ce50c00aa85b66
[ "CC0-1.0" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt t_1= pd.read_excel("C:/Users/BrettData/Desktop/capst/fertilzer-use.xlsx", sheet_name=0, header=3, names=None, index_col=None, keep_default_na=False) t1=t_1.iloc[7:59,1:5] t1.plot() plt.show() t1.plot(kind='area') plt.show() t_2= pd.read_exc...
36.655172
150
0.727187
fb16e53598ef76514035e6b8a297acc9237b56f9
840
py
Python
horse_neigh_problem.py
lzmaths/leetcode
0e457b74dcb07050a4612c1c209785829bde5898
[ "MIT" ]
null
null
null
horse_neigh_problem.py
lzmaths/leetcode
0e457b74dcb07050a4612c1c209785829bde5898
[ "MIT" ]
null
null
null
horse_neigh_problem.py
lzmaths/leetcode
0e457b74dcb07050a4612c1c209785829bde5898
[ "MIT" ]
null
null
null
import sys class Horse(object): """ given a string like: neineighghneigh, count the number of horses (neigh) """ def countHorse(self, s): dic = {val: idx for idx, val in enumerate("neigh")} counts = [0, 0, 0, 0, 0] ans = 0 for idx, ch in enumerate(s): counts[...
31.111111
76
0.511905
36006c2b5d67581caf4e93b2f32f71ec829bf547
31,053
bzl
Python
packages/bazel/src/ng_module.bzl
Flusinerd/angular
91934ebb5c7633e90b8f9ba8f958b4158259a87b
[ "MIT" ]
1
2020-01-31T01:23:12.000Z
2020-01-31T01:23:12.000Z
packages/bazel/src/ng_module.bzl
Flusinerd/angular
91934ebb5c7633e90b8f9ba8f958b4158259a87b
[ "MIT" ]
null
null
null
packages/bazel/src/ng_module.bzl
Flusinerd/angular
91934ebb5c7633e90b8f9ba8f958b4158259a87b
[ "MIT" ]
null
null
null
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.io/license """Run Angular's AOT template compiler """ load( ":external.bzl", "COMMON_ATTRIBUTES", "COMMON_OUTPUTS", "DEFAULT_API_EXTRAC...
38.864831
161
0.662867
5f57e5922e8612a59e84b62f54d4c5637eff5f20
395
py
Python
podcast-ml/service/src/app/podcastml/controllers/recommend_episodes_for_topic_controller.py
cuappdev/archives
061d0f9cccf278363ffaeb27fc655743b1052ae5
[ "MIT" ]
null
null
null
podcast-ml/service/src/app/podcastml/controllers/recommend_episodes_for_topic_controller.py
cuappdev/archives
061d0f9cccf278363ffaeb27fc655743b1052ae5
[ "MIT" ]
null
null
null
podcast-ml/service/src/app/podcastml/controllers/recommend_episodes_for_topic_controller.py
cuappdev/archives
061d0f9cccf278363ffaeb27fc655743b1052ae5
[ "MIT" ]
null
null
null
from . import * class RecommendEpisodesForTopicController(AppDevController): def get_path(self): return '/episodes/topic/<topic_id>/' def get_methods(self): return ['GET'] @authorize def content(self, **kwargs): topic_id = request.view_args['topic_id'] episode_ids = episodes_for_topic_dao.ge...
24.6875
77
0.736709
bbc475b2076d52f743a63c21f455aebb740d8f3f
4,416
gyp
Python
Mozc-for-iOS/src/ipc/ipc.gyp
spanfish/JapaneseKeyboard
84fa7ef799d145fb9897b6e86bc7bc50610ccb2b
[ "Apache-2.0" ]
33
2015-01-21T09:50:21.000Z
2022-02-12T15:18:25.000Z
src/ipc/ipc.gyp
kishikawakatsumi/Mozc-for-iOS
45b0856ed8a22d5fa6b4471548389cbde4abcf10
[ "Apache-2.0" ]
1
2015-05-12T06:26:54.000Z
2017-11-01T14:43:35.000Z
Mozc-for-iOS/src/ipc/ipc.gyp
spanfish/JapaneseKeyboard
84fa7ef799d145fb9897b6e86bc7bc50610ccb2b
[ "Apache-2.0" ]
8
2015-06-08T15:57:25.000Z
2019-05-15T08:52:58.000Z
# Copyright 2010-2014, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
27.773585
72
0.578125
0374b112cf62737de3ecded31c937ad26ccd7990
276
py
Python
docs/API/Users_Guide/scripts/Basic_Troubleshooting.py
ZhenyuZ/gdc-docs
f024d5d4cd86dfa2c9e7d63850eee94d975b7948
[ "Apache-2.0" ]
null
null
null
docs/API/Users_Guide/scripts/Basic_Troubleshooting.py
ZhenyuZ/gdc-docs
f024d5d4cd86dfa2c9e7d63850eee94d975b7948
[ "Apache-2.0" ]
null
null
null
docs/API/Users_Guide/scripts/Basic_Troubleshooting.py
ZhenyuZ/gdc-docs
f024d5d4cd86dfa2c9e7d63850eee94d975b7948
[ "Apache-2.0" ]
null
null
null
import requests status_endpt = "https://api.gdc.cancer.gov/status" response = requests.get(status_endpt) # OUTPUT METHOD 1: Write to a file. file = open("api_status.json", "w") file.write(response.text) file.close() # OUTPUT METHOD 2: View on screen. print(response.content)
25.090909
50
0.746377
5bf139de1fd12efca36c46bef4bc162f6da33430
761
py
Python
whiteboard/migrations/0006_lift_user.py
DanSparkes/Whiteboard
d084c3513d876fdbba092eae21c3a3fabd6d51da
[ "MIT" ]
1
2019-11-11T17:02:12.000Z
2019-11-11T17:02:12.000Z
whiteboard/migrations/0006_lift_user.py
DanSparkes/Whiteboard
d084c3513d876fdbba092eae21c3a3fabd6d51da
[ "MIT" ]
17
2019-12-05T02:07:59.000Z
2022-02-03T12:59:06.000Z
whiteboard/migrations/0006_lift_user.py
DanSparkes/Whiteboard
d084c3513d876fdbba092eae21c3a3fabd6d51da
[ "MIT" ]
1
2019-11-16T17:25:40.000Z
2019-11-16T17:25:40.000Z
# Generated by Django 2.2.6 on 2019-11-11 20:06 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("whiteboard", "0005_auto_...
26.241379
66
0.592641
a5ac15dd4d1459628946139f4ac9c7aa7635f56c
195
py
Python
python/const.py
tribbloid/convnet-abstraction
8827c1dd8b19462bd0499cd0a8d81a8688e7fc48
[ "Apache-2.0" ]
5
2019-02-11T20:39:05.000Z
2022-01-11T13:25:45.000Z
python/const.py
tribbloid/convnet-abstraction
8827c1dd8b19462bd0499cd0a8d81a8688e7fc48
[ "Apache-2.0" ]
null
null
null
python/const.py
tribbloid/convnet-abstraction
8827c1dd8b19462bd0499cd0a8d81a8688e7fc48
[ "Apache-2.0" ]
1
2019-06-29T11:45:30.000Z
2019-06-29T11:45:30.000Z
import matplotlib.pyplot as plt import mxnet as mx CTX = mx.gpu() if mx.test_utils.list_gpus() else mx.cpu() # print(f"=== MXNet is using {CTX} ===") MODEL_CHKPNT: str = ".model_checkpoints"
19.5
57
0.692308
83388b308770b2e3d7900978aa24947b446fb35c
1,113
py
Python
samba-exploit.py
ozuma/CVE-2007-2447
b8573030e7e34942f477928576256162fd22beff
[ "MIT" ]
2
2021-03-28T16:23:21.000Z
2021-11-16T01:47:09.000Z
samba-exploit.py
ozuma/CVE-2007-2447
b8573030e7e34942f477928576256162fd22beff
[ "MIT" ]
null
null
null
samba-exploit.py
ozuma/CVE-2007-2447
b8573030e7e34942f477928576256162fd22beff
[ "MIT" ]
2
2021-03-28T16:23:23.000Z
2021-11-16T01:47:09.000Z
#!/usr/bin/python3 # Ref: https://github.com/amriunix/CVE-2007-2447/blob/master/usermap_script.py # Ref: https://amriunix.com/post/cve-2007-2447-samba-usermap-script/ # Product: Samba # Vuln: CVE-2007-2447 # Exploit-DB: https://www.exploit-db.com/exploits/16320 # # install: pip3 install pysmb import sys import platfo...
32.735294
104
0.614555
07928766a6137baf3659f56c8651da9cec483cc4
1,892
py
Python
kvstore/storage.py
yuvraj9/key-value-store
9e2fb5af89a3ef29607f23c1fb73121382252326
[ "Apache-2.0" ]
2
2021-07-24T01:01:17.000Z
2021-07-25T18:53:01.000Z
kvstore/storage.py
yuvraj9/key-value-store
9e2fb5af89a3ef29607f23c1fb73121382252326
[ "Apache-2.0" ]
null
null
null
kvstore/storage.py
yuvraj9/key-value-store
9e2fb5af89a3ef29607f23c1fb73121382252326
[ "Apache-2.0" ]
null
null
null
import os import sys import json from utils import get_logger logger = get_logger() class Storage(): """ This is a class manages the storage of key value store. It contains two methods read() and write(). We use these methods to read and write in a file. """ def __init__(self): """ ...
28.666667
74
0.552326
4088c6556087b9d349da882813b2805a90ce00f5
524
py
Python
helpers.py
xtendo-org/imgurup
a760107cbb57bd570f2f9db2de6fa7f43cc206d0
[ "MIT" ]
null
null
null
helpers.py
xtendo-org/imgurup
a760107cbb57bd570f2f9db2de6fa7f43cc206d0
[ "MIT" ]
null
null
null
helpers.py
xtendo-org/imgurup
a760107cbb57bd570f2f9db2de6fa7f43cc206d0
[ "MIT" ]
null
null
null
''' These functions have nothing to do with the API, they just help ease issues between Python 2 and 3 ''' def get_input(string): ''' Get input from console regardless of python 2 or 3 ''' try: return raw_input(string) except: return input(string) def get_config(): ''' Create a...
24.952381
72
0.648855
81989892de9f9891f871cd840253e292f920132f
62,777
py
Python
zulip/zulip/__init__.py
timabbott/python-zulip-api
31365a8aacb01d11d2f4eb4ac7bf07ac88d43ad8
[ "Apache-2.0" ]
null
null
null
zulip/zulip/__init__.py
timabbott/python-zulip-api
31365a8aacb01d11d2f4eb4ac7bf07ac88d43ad8
[ "Apache-2.0" ]
null
null
null
zulip/zulip/__init__.py
timabbott/python-zulip-api
31365a8aacb01d11d2f4eb4ac7bf07ac88d43ad8
[ "Apache-2.0" ]
null
null
null
import argparse import json import logging import optparse import os import platform import random import sys import time import traceback import types import urllib.parse from configparser import ConfigParser from typing import ( IO, Any, Callable, Dict, Iterable, List, Mapping, Optiona...
34.454995
150
0.554072
647544dc747191948872df14f7b09d4aedf1615c
579
py
Python
converterpy/provider/builtin.py
bilalekremharmansa/converterpy
92ecf5ca68e672acad27693eeb83a37ae4d19d3c
[ "MIT" ]
null
null
null
converterpy/provider/builtin.py
bilalekremharmansa/converterpy
92ecf5ca68e672acad27693eeb83a37ae4d19d3c
[ "MIT" ]
null
null
null
converterpy/provider/builtin.py
bilalekremharmansa/converterpy
92ecf5ca68e672acad27693eeb83a37ae4d19d3c
[ "MIT" ]
null
null
null
from converterpy.provider import ConverterProvider from converterpy.converter.si.time_converter import SITimeConverter from converterpy.converter.si.length_converter import SILengthConverter from converterpy.converter.si.mass_converter import SIMassConverter from converterpy.converter.timestamp_date_converter import T...
32.166667
81
0.766839
69dfc9f608a1c5c09b9d705e5db937d9a4825568
1,146
py
Python
google/cloud/monitoring_dashboard_v1/types/alertchart.py
renovate-bot/python-monitoring-dashboards
c1d74f0fbb38f805d7f72f8150cbbb6e5be8c694
[ "Apache-2.0" ]
13
2020-03-24T22:54:01.000Z
2022-03-28T22:06:31.000Z
google/cloud/monitoring_dashboard_v1/types/alertchart.py
renovate-bot/python-monitoring-dashboards
c1d74f0fbb38f805d7f72f8150cbbb6e5be8c694
[ "Apache-2.0" ]
51
2020-01-15T17:48:18.000Z
2022-03-07T16:01:50.000Z
google/cloud/monitoring_dashboard_v1/types/alertchart.py
renovate-bot/python-monitoring-dashboards
c1d74f0fbb38f805d7f72f8150cbbb6e5be8c694
[ "Apache-2.0" ]
8
2020-01-15T00:35:12.000Z
2022-01-29T08:11:27.000Z
# -*- coding: utf-8 -*- # 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...
27.95122
79
0.696335
22bc219a2beddb699c3ce20e4d686a19e7904cb7
37,273
py
Python
queryset_sequence/__init__.py
clokep/django-querysetsequence
104006cb0245e8c314ce8c51b85a146aa1154762
[ "0BSD" ]
17
2020-10-07T14:10:39.000Z
2022-02-10T12:03:24.000Z
queryset_sequence/__init__.py
clokep/django-querysetsequence
104006cb0245e8c314ce8c51b85a146aa1154762
[ "0BSD" ]
7
2020-09-30T18:41:57.000Z
2022-03-04T15:54:40.000Z
queryset_sequence/__init__.py
clokep/django-querysetsequence
104006cb0245e8c314ce8c51b85a146aa1154762
[ "0BSD" ]
2
2022-01-11T15:04:50.000Z
2022-02-02T18:39:07.000Z
from collections import defaultdict import functools from itertools import dropwhile from operator import __not__, attrgetter, eq, ge, gt, itemgetter, le, lt, mul import django from django.core.exceptions import (FieldError, MultipleObjectsReturned, ObjectDoesNotExist) from django.d...
36.470646
169
0.602742
1846d30be846a869f2df44ce5ae63d8ee1d2c30d
1,272
py
Python
examples/Sales_Copy/run_sales_copy.py
paigebranam/Halldon_
1f02878e39e818055f86b8db570f30ae280948dc
[ "MIT" ]
null
null
null
examples/Sales_Copy/run_sales_copy.py
paigebranam/Halldon_
1f02878e39e818055f86b8db570f30ae280948dc
[ "MIT" ]
null
null
null
examples/Sales_Copy/run_sales_copy.py
paigebranam/Halldon_
1f02878e39e818055f86b8db570f30ae280948dc
[ "MIT" ]
null
null
null
##updated api path, engine, top p ##Runs as expected import os import sys API_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..') sys.path.append(API_PATH) from api import GPT, Example, UIConfig # Construct GPT object and show some examples gpt = GPT(engine="curie-instruct-beta", ...
34.378378
124
0.712264
35383c77a80aeedb98a2316547a2611154750065
21,613
py
Python
PyTangoArchiving/servers/PyExtractor/PyExtractor.py
MaxIV-KitsControls/PyTangoArchiving
28852dd5fc2c53d19dad8b654584f5d9408e5a7c
[ "CC-BY-3.0" ]
1
2019-09-20T08:11:04.000Z
2019-09-20T08:11:04.000Z
PyTangoArchiving/servers/PyExtractor/PyExtractor.py
MaxIV-KitsControls/PyTangoArchiving
28852dd5fc2c53d19dad8b654584f5d9408e5a7c
[ "CC-BY-3.0" ]
null
null
null
PyTangoArchiving/servers/PyExtractor/PyExtractor.py
MaxIV-KitsControls/PyTangoArchiving
28852dd5fc2c53d19dad8b654584f5d9408e5a7c
[ "CC-BY-3.0" ]
null
null
null
# "$Name: $"; # "$Header: $"; #============================================================================= # # file : PyExtractor.py # # description : Python source for the PyExtractor and its commands. # The class is derived from Device. It represents the # CORBA servant...
37.457539
141
0.493222
4003ec8c48661a32fac34b3ba2bb854d8f83ded8
166
py
Python
sentry-handle-exceptions-django-projects/step2/djsentry/errors/views.py
fullstackpython/blog-code-examples
a6afcb874e88086686071aa1b2a47548aed5a2b0
[ "MIT" ]
65
2017-06-13T01:02:17.000Z
2022-01-10T09:58:29.000Z
sentry-handle-exceptions-django-projects/step2/djsentry/errors/views.py
fullstackpython/blog-code-examples
a6afcb874e88086686071aa1b2a47548aed5a2b0
[ "MIT" ]
1
2020-06-05T18:07:42.000Z
2020-06-05T18:07:42.000Z
sentry-handle-exceptions-django-projects/step2/djsentry/errors/views.py
fullstackpython/blog-code-examples
a6afcb874e88086686071aa1b2a47548aed5a2b0
[ "MIT" ]
50
2017-07-01T02:10:19.000Z
2022-03-24T17:23:58.000Z
# djsentry/errors/views.py from django.shortcuts import render def errors_index(request): division_by_zero = 1 / 0 return render(request, 'index.html', {})
20.75
44
0.722892
4cf4e85665ff423c4d1f484a17e4444a99b2ad7d
599
py
Python
tests/factories.py
oriolpiera/anem-per-feina
006d2f105596d17afd1d121cccabe97ce6ff3b55
[ "MIT" ]
null
null
null
tests/factories.py
oriolpiera/anem-per-feina
006d2f105596d17afd1d121cccabe97ce6ff3b55
[ "MIT" ]
null
null
null
tests/factories.py
oriolpiera/anem-per-feina
006d2f105596d17afd1d121cccabe97ce6ff3b55
[ "MIT" ]
null
null
null
import factory from jobsapp.models import User, Job # List of factories class UserFactory(factory.django.DjangoModelFactory): class Meta: model = User django_get_or_create = ('first_name', 'last_name') first_name = 'John' last_name = 'Doe' class JobFactory(factory.django.DjangoModelFact...
24.958333
66
0.674457
d16a14b78267943236614a842c40de93ddaef236
3,502
py
Python
module/memory/CreateFiber.py
zhzyker/FourEye
55c9a5b45f69dab736821a4c696ce4398605303c
[ "Apache-2.0" ]
1
2021-09-14T09:39:56.000Z
2021-09-14T09:39:56.000Z
module/memory/CreateFiber.py
zhzyker/FourEye
55c9a5b45f69dab736821a4c696ce4398605303c
[ "Apache-2.0" ]
null
null
null
module/memory/CreateFiber.py
zhzyker/FourEye
55c9a5b45f69dab736821a4c696ce4398605303c
[ "Apache-2.0" ]
1
2021-08-31T13:48:37.000Z
2021-08-31T13:48:37.000Z
#!/usr/bin/python import sys import os from termcolor import colored def rot_compailed(shellcode_size, shellcode): load = ''' #include <windows.h> int main() { FreeConsole(); PVOID mainFiber = ConvertThreadToFiber(NULL); unsigned char shellcode[] ; ...
28.241935
104
0.531696
9b8e35f838902bc89cdb4b5edab89784478335dc
20,725
py
Python
pypureclient/flasharray/FA_2_7/models/host_group_performance_by_array.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_7/models/host_group_performance_by_array.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_7/models/host_group_performance_by_array.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.7 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
56.625683
294
0.664608
b9691245e0dd71130bb6f8e67087d8965c651bf5
159
py
Python
coincident_event_finder/__init__.py
noahhdf/fact-magic-coincident-events
fcac6ab733961f6dda1ceac6406cbe2c0d4d8e45
[ "MIT" ]
null
null
null
coincident_event_finder/__init__.py
noahhdf/fact-magic-coincident-events
fcac6ab733961f6dda1ceac6406cbe2c0d4d8e45
[ "MIT" ]
null
null
null
coincident_event_finder/__init__.py
noahhdf/fact-magic-coincident-events
fcac6ab733961f6dda1ceac6406cbe2c0d4d8e45
[ "MIT" ]
null
null
null
from .coincidents import coincident_indices, coincidents from .eventmerge import merge_events __all__ = ["coincidents", "coincident_indices", "merge_events"]
31.8
63
0.81761
d5341972ab17ea0b515acce184da51b83827935e
849
py
Python
src/plugins/PlatPyGame/code/particles.py
StryQ1/Project-Acturus-X
e1d928eb751befcfd2ad9f1cf50a32749f97b23c
[ "Apache-2.0" ]
3
2022-03-21T07:40:24.000Z
2022-03-21T11:16:43.000Z
src/plugins/PlatPyGame/code/particles.py
StryQ1/Project-Acturus-X
e1d928eb751befcfd2ad9f1cf50a32749f97b23c
[ "Apache-2.0" ]
null
null
null
src/plugins/PlatPyGame/code/particles.py
StryQ1/Project-Acturus-X
e1d928eb751befcfd2ad9f1cf50a32749f97b23c
[ "Apache-2.0" ]
null
null
null
import pygame from support import import_folder class ParticleEffect(pygame.sprite.Sprite): def __init__(self,pos,type): super().__init__() self.frame_index = 0 self.animation_speed = 0.5 if type == 'jump': self.frames = import_folder('../graphics/character/dust_particles/jump') if type == 'lan...
30.321429
76
0.693757
cab803326f28cbc64ccfcd4daed9758b6b6e9f78
6,316
py
Python
peerless/mr.py
dfm/single-transits
311aae377d756b427cef14974a5915553696c7ab
[ "MIT" ]
null
null
null
peerless/mr.py
dfm/single-transits
311aae377d756b427cef14974a5915553696c7ab
[ "MIT" ]
null
null
null
peerless/mr.py
dfm/single-transits
311aae377d756b427cef14974a5915553696c7ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function import h5py import logging import numpy as np from .catalogs import Catalog, LocalCatalog, singleton __all__ = ["WolfgangMRRelation"] class WolfgangMRRelation(LocalCatalog): filename = "wolfgang.csv" def predict_mass(self, radius_sam...
37.595238
76
0.566498
bc1b77b8ef0c5a936be1ba6959355645a1ed08ee
4,115
py
Python
lib/utils.py
jzx-gooner/Structured-Light-Scanner
a5762e193ef040e1d88393c390c3afa1be43b175
[ "MIT" ]
6
2021-11-11T02:32:55.000Z
2022-02-28T12:38:54.000Z
lib/utils.py
jzx-gooner/Structured-Light-Scanner
a5762e193ef040e1d88393c390c3afa1be43b175
[ "MIT" ]
null
null
null
lib/utils.py
jzx-gooner/Structured-Light-Scanner
a5762e193ef040e1d88393c390c3afa1be43b175
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Optional import cv2 import numpy as np import open3d as o3d @dataclass(frozen=True) class Plane: origin: np.ndarray normal: np.ndarray R: Optional[np.ndarray] = None @dataclass(frozen=True) class Point: x: int y: int @dat...
27.804054
86
0.592467
a4f270892fa9061df74cbf985847a5fdf81781a5
8,702
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/_sf_account_manager.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/modules/storage/netapp/_sf_account_manager.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/modules/storage/netapp/_sf_account_manager.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # (c) 2017, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['deprecated'], ...
32.349442
104
0.585383
eb9b7d3ca7dca39d3125958ddfd4192eb81a07f6
98,752
py
Python
test/augmentables/test_polys.py
Gokkulnath/imgaug
d66b76177eb95eca767d70ab2be813fea7cd9000
[ "MIT" ]
1
2019-04-01T11:16:16.000Z
2019-04-01T11:16:16.000Z
test/augmentables/test_polys.py
Gokkulnath/imgaug
d66b76177eb95eca767d70ab2be813fea7cd9000
[ "MIT" ]
null
null
null
test/augmentables/test_polys.py
Gokkulnath/imgaug
d66b76177eb95eca767d70ab2be813fea7cd9000
[ "MIT" ]
1
2020-01-21T15:28:38.000Z
2020-01-21T15:28:38.000Z
from __future__ import print_function, division, absolute_import import time import warnings import sys # unittest only added in 3.4 self.subTest() if sys.version_info[0] < 3 or sys.version_info[1] < 4: import unittest2 as unittest else: import unittest # unittest.mock is not available in 2.7 (though unittest2...
38.514821
118
0.537316
3c5f3586c59170276008997238b98e46b8f3cba1
1,184
py
Python
odoo-13.0/addons/website_rating/models/rating.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/website_rating/models/rating.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/website_rating/models/rating.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import fields, models, exceptions, _ class Rating(models.Model): _inherit = 'rating.rating' # Add this related field to mail.message for performance reason website_published = fields.Boolean(related='message_id.website_published', store=True, readonly=False) # Addin...
45.538462
114
0.669764
f24f87f67193b1e2ebef8bfcda90dd0fa644af3f
12,022
py
Python
tests/extensions/test_storage.py
itcarroll/pystac
6c00d2efbf2fece6ac10d9e5d6a712aee75057a2
[ "Apache-2.0" ]
60
2019-09-09T20:14:08.000Z
2020-08-19T06:59:33.000Z
tests/extensions/test_storage.py
itcarroll/pystac
6c00d2efbf2fece6ac10d9e5d6a712aee75057a2
[ "Apache-2.0" ]
87
2019-09-14T15:47:23.000Z
2020-08-19T16:23:32.000Z
tests/extensions/test_storage.py
itcarroll/pystac
6c00d2efbf2fece6ac10d9e5d6a712aee75057a2
[ "Apache-2.0" ]
24
2019-10-16T17:13:46.000Z
2020-08-19T04:36:58.000Z
import json import random import unittest from string import ascii_letters import pystac from pystac import ExtensionTypeError, Item from pystac.collection import Collection from pystac.extensions.storage import StorageExtension, CloudPlatform from tests.utils import TestCases, assert_to_from_dict class StorageExten...
33.581006
88
0.65297
2be1089a4679f0e8a7259599e7dceafd8a679054
2,601
py
Python
helper/baseballgenSQL.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
helper/baseballgenSQL.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
helper/baseballgenSQL.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
import os import re import originSqlRefine import sys import myUtil def main(path): print('path='+path) myUtil.myPopen(myUtil.svnCmd + ' up', path, encoding='gbk') outpath = r'.\sql\\' if not os.path.isdir(outpath): os.mkdir(outpath) for i in os.listd...
29.224719
218
0.417147
f6de5403105a546d91ec40dc31a9d174266315a6
1,790
py
Python
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/windows/mods/s_server.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/windows/mods/s_server.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/windows/mods/s_server.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
import socket from urllib import request def mod_1(user_id): ''' 普通连接模式 需要的数据: uuid 服务器命令分割: re -> 是否允许连接 time -> 时间 到期时间 json -> v2服务器配置文件 gg -> 服务器公告 ''' #开始创建socks sock = socket.socket() HOST = "192.168.1.104" PORT = 2233 sock.connect((HOST, PORT)) #发送模式 sock.sendall("mod_1".encode()) server_...
16.574074
40
0.650279
1ac68b2fa32f8bcbc9a2e791ab41b1ffaf62d9af
34,724
py
Python
umap/distances.py
worldbeater/umap
eb8c4b2bbb08c1fc9b6a983af8d50a8d03468735
[ "BSD-3-Clause" ]
5,537
2017-07-09T20:26:23.000Z
2022-03-29T17:11:16.000Z
umap/distances.py
worldbeater/umap
eb8c4b2bbb08c1fc9b6a983af8d50a8d03468735
[ "BSD-3-Clause" ]
776
2017-07-09T17:20:20.000Z
2022-03-31T13:37:40.000Z
umap/distances.py
worldbeater/umap
eb8c4b2bbb08c1fc9b6a983af8d50a8d03468735
[ "BSD-3-Clause" ]
712
2017-07-09T17:03:39.000Z
2022-03-30T16:54:09.000Z
# Author: Leland McInnes <leland.mcinnes@gmail.com> # # License: BSD 3 clause import numba import numpy as np import scipy.stats from sklearn.metrics import pairwise_distances _mock_identity = np.eye(2, dtype=np.float64) _mock_cost = 1.0 - _mock_identity _mock_ones = np.ones(2, dtype=np.float64) @numba.njit() def si...
26.690238
117
0.550455
e8ccde3e8dc4e79ff40104fc8e4b508cde6cf61e
130
py
Python
Experiment1/E1.py
menaka121/pythonTuts
8ec48182a38dd656fc64df8b6ae5ac83a372790a
[ "Apache-2.0" ]
null
null
null
Experiment1/E1.py
menaka121/pythonTuts
8ec48182a38dd656fc64df8b6ae5ac83a372790a
[ "Apache-2.0" ]
null
null
null
Experiment1/E1.py
menaka121/pythonTuts
8ec48182a38dd656fc64df8b6ae5ac83a372790a
[ "Apache-2.0" ]
null
null
null
# Factorial using python def fact(n): if n == 0: return 1 else: return n * fact(n-1) print(fact(100))
10.833333
28
0.523077
09fc99e4868d0768a7485bbddaa06ef1feab52e6
458
py
Python
alipay/aop/api/response/AlipayEbppInvoiceRegisterModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayEbppInvoiceRegisterModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayEbppInvoiceRegisterModifyResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayEbppInvoiceRegisterModifyResponse(AlipayResponse): def __init__(self): super(AlipayEbppInvoiceRegisterModifyResponse, self).__init__() def parse_response_content(...
28.625
112
0.78821
34040bb55a90dddd502c5dc5c7c99ae704d3cf27
15,354
py
Python
tests/jstests/12_atomicswap_verify_sender.py
xmonader/pytfchain
ef28238eeaedda1dd5ea8055ea6dc2ca6baa263c
[ "Apache-2.0" ]
null
null
null
tests/jstests/12_atomicswap_verify_sender.py
xmonader/pytfchain
ef28238eeaedda1dd5ea8055ea6dc2ca6baa263c
[ "Apache-2.0" ]
null
null
null
tests/jstests/12_atomicswap_verify_sender.py
xmonader/pytfchain
ef28238eeaedda1dd5ea8055ea6dc2ca6baa263c
[ "Apache-2.0" ]
null
null
null
from Jumpscale import j import pytest from Jumpscale.clients.blockchain.tfchain.stub.ExplorerClientStub import TFChainExplorerGetClientStub def main(self): """ to run: js_shell 'j.clients.tfchain.test(name="atomicswap_verify_sender")' """ # create a tfchain client for devnet c = j.clien...
178.534884
3,548
0.823824
be12e7c9c3d50c296a1cb865edf76e532e01511c
7,777
py
Python
test/test_integration.py
Juniormin123/pyacme
99e844e44fac78ab3e1a0a73f6f6fa8f313489f3
[ "MIT" ]
null
null
null
test/test_integration.py
Juniormin123/pyacme
99e844e44fac78ab3e1a0a73f6f6fa8f313489f3
[ "MIT" ]
null
null
null
test/test_integration.py
Juniormin123/pyacme
99e844e44fac78ab3e1a0a73f6f6fa8f313489f3
[ "MIT" ]
null
null
null
from pyacme.settings import LETSENCRYPT_STAGING import pytest from conftest import Path from conftest import settings from test_common import * @pytest.fixture(scope='class') def root_host_entry(request): marker = request.node.get_closest_marker('host_entry') if marker is None: return add_host_en...
31.232932
80
0.653208
06c29994832d9f048f21df9ff9f47ca094cb2c9e
474
py
Python
backend/refreshDaemon.py
linorallo/Product_Finder
49ee6796eb661e0fa00546047f085ab6fc012eaf
[ "MIT" ]
null
null
null
backend/refreshDaemon.py
linorallo/Product_Finder
49ee6796eb661e0fa00546047f085ab6fc012eaf
[ "MIT" ]
null
null
null
backend/refreshDaemon.py
linorallo/Product_Finder
49ee6796eb661e0fa00546047f085ab6fc012eaf
[ "MIT" ]
null
null
null
import Product_Finder.backend.db as db import Product_Finder.backend.dbScripts as dbScripts from datetime import timedelta, datetime def checkProductUpdates(): actualTime = datetime.now() timeDelta= timedelta(hours=5) timeLimit= actualTime-timeDelta dateFormat = '%Y-%m-%d %H:%M:%S' for ite...
33.857143
63
0.689873
6c68b964da68eba5ce98181b1db293b737b089dc
9,843
py
Python
tests/providers/test_address.py
xxf-liub/faker1
c966a144b370f7abb568a5154c4ef704e846722e
[ "MIT" ]
1
2022-01-07T03:34:39.000Z
2022-01-07T03:34:39.000Z
tests/providers/test_address.py
Saber-xxf/faker1
c966a144b370f7abb568a5154c4ef704e846722e
[ "MIT" ]
null
null
null
tests/providers/test_address.py
Saber-xxf/faker1
c966a144b370f7abb568a5154c4ef704e846722e
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals import re import unittest from decimal import Decimal from ukpostcodeparser.parser import parse_uk_postcode from faker import Faker from faker.providers.address.de_DE import Provider as DeProvider from faker.providers.address.el_GR import Provider as GrProvider...
31.148734
80
0.670832
e507c3949cfaea19292c415b12235e869f3e8c86
7,768
py
Python
docs/conf.py
boeddeker/cntk_helper
c13bf249d4576fbd90f3ac8efb262f54b462a386
[ "MIT" ]
null
null
null
docs/conf.py
boeddeker/cntk_helper
c13bf249d4576fbd90f3ac8efb262f54b462a386
[ "MIT" ]
null
null
null
docs/conf.py
boeddeker/cntk_helper
c13bf249d4576fbd90f3ac8efb262f54b462a386
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # cntk_helper documentation build configuration file, created by # sphinx-quickstart. # # 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. # # All configuration values ha...
31.706122
80
0.706874
5d3d7b7ed00f094f2efd15d41eadd314b25f8cab
12,780
py
Python
tensor2tensor/models/video/basic_stochastic.py
knarfamlap/tensor2tensor
f7e041d00e82e7d1bc2f3eb4dbf24cb246981ed8
[ "Apache-2.0" ]
2
2020-03-02T13:49:11.000Z
2020-06-18T09:48:35.000Z
tensor2tensor/models/video/basic_stochastic.py
knarfamlap/tensor2tensor
f7e041d00e82e7d1bc2f3eb4dbf24cb246981ed8
[ "Apache-2.0" ]
null
null
null
tensor2tensor/models/video/basic_stochastic.py
knarfamlap/tensor2tensor
f7e041d00e82e7d1bc2f3eb4dbf24cb246981ed8
[ "Apache-2.0" ]
1
2021-08-29T20:37:37.000Z
2021-08-29T20:37:37.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
41.493506
80
0.736933
576acdeffa5868403b96b5ac1bdd4a2d2445eb90
9,393
py
Python
deepvariant/realigner/window_selector.py
fabbondanza/deepvariant
c0820eb6b185c612555a80febf89d761c383fafd
[ "BSD-3-Clause" ]
1
2019-05-20T11:55:45.000Z
2019-05-20T11:55:45.000Z
deepvariant/realigner/window_selector.py
fabbondanza/deepvariant
c0820eb6b185c612555a80febf89d761c383fafd
[ "BSD-3-Clause" ]
null
null
null
deepvariant/realigner/window_selector.py
fabbondanza/deepvariant
c0820eb6b185c612555a80febf89d761c383fafd
[ "BSD-3-Clause" ]
1
2017-12-06T17:30:18.000Z
2017-12-06T17:30:18.000Z
# Copyright 2017 Google LLC. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
40.141026
80
0.748749
b909e58a149f3245964dec6232a03c9850a25dc4
1,371
py
Python
utils.py
tae898/eliza
62b4f809b4f854f38b2004759aa4f1e04b95b8e1
[ "MIT" ]
null
null
null
utils.py
tae898/eliza
62b4f809b4f854f38b2004759aa4f1e04b95b8e1
[ "MIT" ]
null
null
null
utils.py
tae898/eliza
62b4f809b4f854f38b2004759aa4f1e04b95b8e1
[ "MIT" ]
null
null
null
import time import jsonpickle import python_on_whales import requests def start_docker_container( image: str, port_id: int, sleep_time=5 ) -> python_on_whales.Container: """Start docker container given the image name and port number. Args ---- image: docker image name port_id: port id sl...
20.462687
86
0.653538
dd0e51ca1d2e1c4d2b9f2fa0e78f3335360803c1
6,889
py
Python
absolv/factories/coordinate.py
SimonBoothroyd/absolv
dedb2b6eb567ec1b627dbe50f36f68e0c32931c4
[ "MIT" ]
null
null
null
absolv/factories/coordinate.py
SimonBoothroyd/absolv
dedb2b6eb567ec1b627dbe50f36f68e0c32931c4
[ "MIT" ]
30
2021-11-02T12:47:24.000Z
2022-03-01T22:00:39.000Z
absolv/factories/coordinate.py
SimonBoothroyd/absolv
dedb2b6eb567ec1b627dbe50f36f68e0c32931c4
[ "MIT" ]
null
null
null
import errno import logging import os import shutil import subprocess from functools import reduce from typing import List, Tuple import numpy from openff.toolkit.topology import Molecule, Topology from openff.utilities import temporary_cd from openmm import unit _logger = logging.getLogger(__name__) class PACKMOLR...
33.604878
88
0.573378
e76209f764a4aa77a0bf6171e360d1f6d132e8e7
266
py
Python
nothing/nothing/doctype/nothing_settings/nothing_settings.py
libracore/nothing
e334c5a534eb3ec11ad8c77a467fae05f5383af5
[ "MIT" ]
1
2022-01-12T11:20:22.000Z
2022-01-12T11:20:22.000Z
nothing/nothing/doctype/nothing_settings/nothing_settings.py
libracore/nothing
e334c5a534eb3ec11ad8c77a467fae05f5383af5
[ "MIT" ]
null
null
null
nothing/nothing/doctype/nothing_settings/nothing_settings.py
libracore/nothing
e334c5a534eb3ec11ad8c77a467fae05f5383af5
[ "MIT" ]
2
2021-05-07T08:01:13.000Z
2021-08-14T22:24:33.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, libracore AG and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class NothingSettings(Document): pass
24.181818
51
0.778195
974a75d62b602afb36f86a2e0e116d09f8aa1ba2
1,994
py
Python
test_main_page.py
Espad/stepik_autotests_final_tasks
2d9e3408766cc00387a8ddd656006556cce567b4
[ "MIT" ]
null
null
null
test_main_page.py
Espad/stepik_autotests_final_tasks
2d9e3408766cc00387a8ddd656006556cce567b4
[ "MIT" ]
null
null
null
test_main_page.py
Espad/stepik_autotests_final_tasks
2d9e3408766cc00387a8ddd656006556cce567b4
[ "MIT" ]
null
null
null
import pytest from .pages.main_page import MainPage from .pages.login_page import LoginPage from .pages.basket_page import BasketPage links = [ "http://selenium1py.pythonanywhere.com/", # link = "http://selenium1py.pythonanywhere.com/catalogue/the-shellcoders-handbook_209?promo=midsummer" ] # task 4.3.11 # Г...
37.622642
107
0.717653
ea08e4d8223db78d60009129f5b76b6d511b69d5
959
py
Python
create-graph.py
gerrymandr/sample-graph-data
9b89f708acd967aa17be8782c182bb63c00c6b29
[ "CC0-1.0" ]
4
2017-10-24T14:52:44.000Z
2018-03-16T07:15:13.000Z
create-graph.py
gerrymandr/sample-graph-data
9b89f708acd967aa17be8782c182bb63c00c6b29
[ "CC0-1.0" ]
null
null
null
create-graph.py
gerrymandr/sample-graph-data
9b89f708acd967aa17be8782c182bb63c00c6b29
[ "CC0-1.0" ]
null
null
null
import networkx as nx import shapely import csv import random #import an adjacency graph exported from QGIS & create a networkx graph def read_file(file): with open(file, 'r') as f: reader = csv.reader(f, delimiter=',') reader.next() #skip header results = [row for row in reader] return results def build_gr...
24.589744
121
0.701773
090d03b91140c6be6713db6c01acfb9d99b96339
426
py
Python
crowdhub/settings/local.py
heolin123/crowdagency
4e892544f7ca49bbac356b73500e77650596d245
[ "MIT" ]
null
null
null
crowdhub/settings/local.py
heolin123/crowdagency
4e892544f7ca49bbac356b73500e77650596d245
[ "MIT" ]
null
null
null
crowdhub/settings/local.py
heolin123/crowdagency
4e892544f7ca49bbac356b73500e77650596d245
[ "MIT" ]
null
null
null
from crowdhub.settings.base import * from crowdhub.settings.auth import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'crowdhub', 'USER': 'root', 'PASSWORD': 'password', 'HOST': 'localhost', } } # Setup mongo connection MONGO_DATABASE_NAME ...
20.285714
54
0.659624
9e64675fe3ecfa4c96bc82604676d085e2021abf
2,293
py
Python
core/models/model_store.py
chenfangchenf/awesome-semantic-segmentation-pytorch
7fb5718d9c8d606aba520a24655b2f244821b7dc
[ "Apache-2.0" ]
2,254
2019-03-19T12:25:34.000Z
2022-03-31T07:28:51.000Z
core/models/model_store.py
omarsayed7/awesome-semantic-segmentation-pytorch
7fbe397a9add570fe1ebee8654898f2b3ba1942f
[ "Apache-2.0" ]
179
2019-03-21T06:00:25.000Z
2022-03-29T04:02:27.000Z
core/models/model_store.py
omarsayed7/awesome-semantic-segmentation-pytorch
7fbe397a9add570fe1ebee8654898f2b3ba1942f
[ "Apache-2.0" ]
552
2019-04-23T08:09:56.000Z
2022-03-29T15:21:29.000Z
"""Model store which provides pretrained models.""" from __future__ import print_function import os import zipfile from ..utils.download import download, check_sha1 __all__ = ['get_model_file', 'get_resnet_file'] _model_sha1 = {name: checksum for checksum, name in [ ('25c4b50959ef024fcc050213a06b614899f94b3d', ...
33.231884
91
0.680331
10ffa37b1e3099f05f0dd08e9c4c40835d8ed3df
576
py
Python
server/core/errors.py
Neoteroi/BlackSheep-Azure-API
e4a7dae9fd3002fe6926c56a1b2ff65ba851e5cb
[ "MIT" ]
7
2021-12-12T09:14:50.000Z
2022-02-06T15:59:57.000Z
server/core/errors.py
Neoteroi/BlackSheep-Azure-API
e4a7dae9fd3002fe6926c56a1b2ff65ba851e5cb
[ "MIT" ]
5
2021-12-13T20:27:13.000Z
2021-12-14T08:31:11.000Z
server/core/errors.py
Neoteroi/BlackSheep-Azure-API
e4a7dae9fd3002fe6926c56a1b2ff65ba851e5cb
[ "MIT" ]
1
2021-12-31T18:52:41.000Z
2021-12-31T18:52:41.000Z
from typing import Any from essentials.exceptions import AcceptedException class ConflictError(Exception): def __init__(self, message: str) -> None: super().__init__(message) class PreconfitionFailed(Exception): def __init__( self, message: str = "The resource has been modified sinc...
25.043478
75
0.682292
1f88edcc2d15b945e54fe86a8104cfabdb3e6e01
170,718
py
Python
nova/tests/unit/virt/vmwareapi/test_vm_util.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/vmwareapi/test_vm_util.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/vmwareapi/test_vm_util.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.' nl|'\n' comment|'# Copyright 2013 Canonical Corp.' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use...
12.746808
111
0.62103
92f38a48ab4c0bf634d58e7bddae67b332b65bca
266
py
Python
src/014/p014.py
Ernulphus/polyglot-euler
a5b59b08e6844f0c278bff5ab798acefa95749f3
[ "MIT" ]
67
2017-12-05T20:44:33.000Z
2022-03-04T08:13:16.000Z
src/014/p014.py
Ernulphus/polyglot-euler
a5b59b08e6844f0c278bff5ab798acefa95749f3
[ "MIT" ]
49
2018-03-26T14:20:26.000Z
2021-08-17T09:08:55.000Z
src/014/p014.py
Ernulphus/polyglot-euler
a5b59b08e6844f0c278bff5ab798acefa95749f3
[ "MIT" ]
17
2018-03-25T23:40:47.000Z
2022-03-04T08:13:44.000Z
def collatz(n): seq = [n] while n > 1: if n % 2 == 0: n = n / 2 else: n = 3 * n + 1 seq.append(int(n)) return seq sizes = [len(collatz(i)) for i in range(1, int(1e6))] print(sizes.index(max(sizes)) + 1)
17.733333
53
0.443609
c117f17480d1bc6e45e99b4815a02b06aed9ec7f
5,520
py
Python
tests/views/test_site_daily_metrics_view.py
groovetch/edx-figures
a69fc1195c05176ac7dae90b337dd77f4bd9679f
[ "MIT" ]
43
2018-05-29T20:01:25.000Z
2021-12-02T09:43:17.000Z
tests/views/test_site_daily_metrics_view.py
groovetch/edx-figures
a69fc1195c05176ac7dae90b337dd77f4bd9679f
[ "MIT" ]
330
2018-05-30T17:06:15.000Z
2022-03-16T15:52:22.000Z
tests/views/test_site_daily_metrics_view.py
groovetch/edx-figures
a69fc1195c05176ac7dae90b337dd77f4bd9679f
[ "MIT" ]
40
2018-10-06T00:15:58.000Z
2022-02-14T12:44:45.000Z
'''Tests Figures SiteDailyMetricsViewSet class ''' from __future__ import absolute_import import datetime from dateutil.parser import parse from dateutil.rrule import rrule, DAILY import pytest from django.contrib.auth import get_user_model from rest_framework.test import ( APIRequestFactory, # RequestsClie...
36.078431
90
0.648732
c36f6860c89a3529a9e42691689d7f1c3941b287
58,001
py
Python
simpletransformers/classification/classification_model.py
asmsuechan/simpletransformers
b6c1c72aea6b00baa40bbd5cc2510a947a9ca181
[ "Apache-2.0" ]
1
2021-04-21T02:25:30.000Z
2021-04-21T02:25:30.000Z
simpletransformers/classification/classification_model.py
pranavnt/simpletransformers
bd4c3972e02ebf1d5258c682e5a7e8ee70b98c06
[ "Apache-2.0" ]
null
null
null
simpletransformers/classification/classification_model.py
pranavnt/simpletransformers
bd4c3972e02ebf1d5258c682e5a7e8ee70b98c06
[ "Apache-2.0" ]
1
2020-11-05T03:39:16.000Z
2020-11-05T03:39:16.000Z
#!/usr/bin/env python # coding: utf-8 from __future__ import absolute_import, division, print_function import json import logging import math import os import random import warnings from dataclasses import asdict from multiprocessing import cpu_count import numpy as np import pandas as pd import torch from scipy.st...
45.59827
214
0.578887
ded88f755816af6203933e55d17f2d4dd6251387
776
py
Python
CCscripts/sgToGraph.py
mrvollger/SDA
eba7d36d0cadf9eba42053b7d2a3371247eebe1b
[ "MIT" ]
21
2019-11-11T10:09:47.000Z
2022-03-28T01:22:12.000Z
CCscripts/sgToGraph.py
mrvollger/SDA
eba7d36d0cadf9eba42053b7d2a3371247eebe1b
[ "MIT" ]
12
2019-11-04T23:30:25.000Z
2021-12-04T12:49:26.000Z
CCscripts/sgToGraph.py
mrvollger/SDA
eba7d36d0cadf9eba42053b7d2a3371247eebe1b
[ "MIT" ]
4
2019-11-15T09:52:24.000Z
2021-04-07T16:42:54.000Z
#!/usr/bin/env python import argparse import networkx as nx import ABPUtils import sys ap = argparse.ArgumentParser(description="Converg sg_edges_list to graph") ap.add_argument("input", help="Input file (should be sg_edges_list, but not assuming anything") ap.add_argument("output", help="Output file. (gml format)") ...
20.972973
95
0.662371
64843030ce2d38f452f0e30806f5241809307e78
238
py
Python
notebooks/__code/metadata_overlapping_images/general_classes.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/metadata_overlapping_images/general_classes.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/metadata_overlapping_images/general_classes.py
mabrahamdevops/python_notebooks
6d5e7383b60cc7fd476f6e85ab93e239c9c32330
[ "BSD-3-Clause" ]
null
null
null
class ScaleSettings: x0 = 50 y0 = 50 thickness = 10 cursor_width = 10 cursor_height = 10 color = [255, 255, 255] # white class MetadataSettings: x0 = 200 y0 = 200 color = [255, 255, 255] # white
13.222222
36
0.567227
3c6d6d288a5896d2c7805bbd972f16365752f82b
6,465
py
Python
test_naucse/test_model.py
befeleme/naucse.python.cz
dee2c8cce8db90108b01b40c0981053943352d11
[ "MIT" ]
4
2019-02-14T08:02:41.000Z
2020-10-20T10:35:55.000Z
test_naucse/test_model.py
befeleme/naucse.python.cz
dee2c8cce8db90108b01b40c0981053943352d11
[ "MIT" ]
71
2018-08-26T22:31:39.000Z
2022-01-20T10:29:23.000Z
test_naucse/test_model.py
befeleme/naucse.python.cz
dee2c8cce8db90108b01b40c0981053943352d11
[ "MIT" ]
40
2018-08-22T14:44:59.000Z
2021-09-20T16:11:27.000Z
from pathlib import Path import os import pytest import yaml from naucse import models from naucse.edit_info import get_local_repo_info from test_naucse.conftest import fixture_path, dummy_schema_url_factory from test_naucse.conftest import assert_yaml_dump, add_test_course def test_empty_model(): model = mode...
32.164179
78
0.647486
24e1994095a6f8b720c4accb8a4cee07a5967176
73
py
Python
code_stats/utils/__init__.py
abhinavshaw1993/code-stat
b98dede12dc01464938f1d8eb21b8219501239fc
[ "MIT" ]
4
2019-08-23T00:53:12.000Z
2020-01-16T06:25:43.000Z
code_stats/utils/__init__.py
abhinavshaw1993/code-stats
b98dede12dc01464938f1d8eb21b8219501239fc
[ "MIT" ]
null
null
null
code_stats/utils/__init__.py
abhinavshaw1993/code-stats
b98dede12dc01464938f1d8eb21b8219501239fc
[ "MIT" ]
null
null
null
__all__ = ['files_and_folders_utils', 'conversion_utils', 'print_utils']
36.5
72
0.780822
a21fe04b4f7a7e7082b7b0902977d755856ec415
606
py
Python
python/docker_runner.py
spawnfest/metaparticler
8dd17ab4fa76af0cd9eb6198fa02de18461236dd
[ "MIT" ]
1
2018-11-02T14:40:31.000Z
2018-11-02T14:40:31.000Z
python/docker_runner.py
spawnfest/metaparticler
8dd17ab4fa76af0cd9eb6198fa02de18461236dd
[ "MIT" ]
null
null
null
python/docker_runner.py
spawnfest/metaparticler
8dd17ab4fa76af0cd9eb6198fa02de18461236dd
[ "MIT" ]
null
null
null
import os def ports(options): try: port_string = "" print(options['ports']) for i in options['ports']: port_string += " -p {}:{}".format(i, i) return port_string except KeyError: return ' ' def run(img, name, options): # Launch docker container os....
20.896552
58
0.539604
5d31b3b576ed84c8457806eca29b23c465e16325
1,523
py
Python
pipeline/tests/core/flow/test_converge_gateway.py
sdgdsffdsfff/bk-sops-tencent
e8aff91f822e79031e12b0f66943830f44ced506
[ "Apache-2.0" ]
1
2020-09-24T07:39:16.000Z
2020-09-24T07:39:16.000Z
pipeline/tests/core/flow/test_converge_gateway.py
sdgdsffdsfff/bk-sops-tencent
e8aff91f822e79031e12b0f66943830f44ced506
[ "Apache-2.0" ]
5
2021-02-08T20:46:54.000Z
2021-06-10T22:54:45.000Z
pipeline/tests/core/flow/test_converge_gateway.py
sdgdsffdsfff/bk-sops-tencent
e8aff91f822e79031e12b0f66943830f44ced506
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
46.151515
115
0.759685
6d2bcf759d600009b1afab03432f4f2686f1fae9
2,421
py
Python
pspec/logData.py
JoyMonteiro/parSPectral
866eebc29e8b0df749131d20dbcafaee321079b3
[ "BSD-3-Clause" ]
2
2015-03-25T10:35:47.000Z
2017-10-17T08:51:48.000Z
pspec/logData.py
JoyMonteiro/parSPectral
866eebc29e8b0df749131d20dbcafaee321079b3
[ "BSD-3-Clause" ]
null
null
null
pspec/logData.py
JoyMonteiro/parSPectral
866eebc29e8b0df749131d20dbcafaee321079b3
[ "BSD-3-Clause" ]
1
2015-03-25T10:35:49.000Z
2015-03-25T10:35:49.000Z
from netCDF4 import Dataset; class logData(object): """ This class is a wrapper over the netCDF4 library to simplify writing fields to a nc file """ def __init__(self, filename, fieldnames, dimNames, dims, cords, time_step, currTime=0, \ overwrite=False): assert len(dimNames...
23.970297
92
0.577447
621a0b187dad1e9191e10f0847749cd1d9f6fc87
8,905
py
Python
datasketch/minhash.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
null
null
null
datasketch/minhash.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
null
null
null
datasketch/minhash.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
null
null
null
import random, copy, struct from hashlib import sha1 import numpy as np # The size of a hash value in number of bytes hashvalue_byte_size = len(bytes(np.int64(42).data)) # http://en.wikipedia.org/wiki/Mersenne_prime _mersenne_prime = (1 << 61) - 1 _max_hash = (1 << 32) - 1 _hash_range = (1 << 32) class MinHash(objec...
40.112613
98
0.606513
7383abbf1008965769b81d3d65404d0801abaa1d
223
py
Python
src/028-number-spiral-diagonals/python/solver.py
xfbs/ProjectEulerRust
e26768c56ff87b029cb2a02f56dc5cd32e1f7c87
[ "MIT" ]
1
2018-01-26T21:18:12.000Z
2018-01-26T21:18:12.000Z
src/028-number-spiral-diagonals/python/solver.py
xfbs/ProjectEulerRust
e26768c56ff87b029cb2a02f56dc5cd32e1f7c87
[ "MIT" ]
3
2017-12-09T14:49:30.000Z
2017-12-09T14:59:39.000Z
src/028-number-spiral-diagonals/python/solver.py
xfbs/ProjectEulerRust
e26768c56ff87b029cb2a02f56dc5cd32e1f7c87
[ "MIT" ]
null
null
null
def solve(m): sum = 1 cur = 1 for ring in range(2, m, 2): cur += ring sum += cur cur += ring sum += cur cur += ring sum += cur cur += ring sum += cur return sum
13.9375
30
0.426009
a55c71e60f3b74220c1de0e24e384deafa4f483d
100
py
Python
python/testData/inspections/PyCallingNonCallableInspection/concealer.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyCallingNonCallableInspection/concealer.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/PyCallingNonCallableInspection/concealer.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
def concealer(): class prog(object): def __call__(self): pass pr = prog() pr()
14.285714
32
0.54
d92c9b2da2362b78299759788007df36c25fcfdf
2,950
py
Python
merrill_feature/feature_selection/func.py
edazizovv/merrill_feature
59c7fd10e833a3376ee8ca3c631a73f0a2357c4f
[ "MIT" ]
null
null
null
merrill_feature/feature_selection/func.py
edazizovv/merrill_feature
59c7fd10e833a3376ee8ca3c631a73f0a2357c4f
[ "MIT" ]
null
null
null
merrill_feature/feature_selection/func.py
edazizovv/merrill_feature
59c7fd10e833a3376ee8ca3c631a73f0a2357c4f
[ "MIT" ]
null
null
null
# # import numpy from scipy import stats from sklearn.linear_model import LinearRegression from sklearn.feature_selection import mutual_info_regression # # def pearson(x, y): p, _ = stats.pearsonr(x, y) return p class Correlated: def __init__(self, model, kwargs): self.model = model ...
23.98374
108
0.592203
a5048c7aafdab0990735956dcc21d9620f7ff5d6
5,665
py
Python
cirq-core/cirq/ops/qubit_order.py
peterse/Cirq
31daa9410a0e1e1ac3da38109aa8ce3a15aed17b
[ "Apache-2.0" ]
3,326
2018-07-18T23:17:21.000Z
2022-03-29T22:28:24.000Z
cirq-core/cirq/ops/qubit_order.py
peterse/Cirq
31daa9410a0e1e1ac3da38109aa8ce3a15aed17b
[ "Apache-2.0" ]
3,443
2018-07-18T21:07:28.000Z
2022-03-31T20:23:21.000Z
cirq-core/cirq/ops/qubit_order.py
peterse/Cirq
31daa9410a0e1e1ac3da38109aa8ce3a15aed17b
[ "Apache-2.0" ]
865
2018-07-18T23:30:24.000Z
2022-03-30T11:43:23.000Z
# Copyright 2018 The Cirq Developers # # 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 ...
35.186335
91
0.649956
7e34817590fa794140696edba14e330853fbe0d4
2,660
py
Python
python/taichi/core/settings.py
447983454/taichi
2bfbca88b2d8cb1a070da9a40c5422c99b23fc2f
[ "MIT" ]
2
2020-10-22T14:57:47.000Z
2020-10-24T07:30:47.000Z
python/taichi/core/settings.py
SingleFYD/taichi
cdff76dd529e7c1a41b219b44712f0ab0584277a
[ "MIT" ]
3
2020-08-24T09:07:15.000Z
2020-08-24T09:18:29.000Z
python/taichi/core/settings.py
SingleFYD/taichi
cdff76dd529e7c1a41b219b44712f0ab0584277a
[ "MIT" ]
1
2020-09-29T17:56:48.000Z
2020-09-29T17:56:48.000Z
import os import platform import multiprocessing default_num_threads = multiprocessing.cpu_count() def get_num_cores(): return os.environ.get('TAICHI_NUM_THREADS', default_num_threads) def get_os_name(): name = platform.platform() # in python 3.8, platform.platform() uses mac_ver() on macOS # it wi...
26.868687
77
0.658647
ae72a700f8ebd6fa862d53db0f000af609980bcc
7,367
py
Python
models/pyrominfo/mastersystem.py
tiradoe/dgen-gtk
6de074f1777dfb2acc1d5c9becbcdec244a85c59
[ "MIT" ]
null
null
null
models/pyrominfo/mastersystem.py
tiradoe/dgen-gtk
6de074f1777dfb2acc1d5c9becbcdec244a85c59
[ "MIT" ]
1
2019-03-21T06:07:00.000Z
2019-03-21T06:07:00.000Z
models/pyrominfo/mastersystem.py
tiradoe/dgen-gtk
6de074f1777dfb2acc1d5c9becbcdec244a85c59
[ "MIT" ]
null
null
null
# Copyright (C) 2013 Garrett Brown # See Copyright Notice in rominfo.py from .rominfo import RomInfoParser class MasterSystemParser(RomInfoParser): """ Parse a Sega Master System image. Valid extensions are sms, gg, sg (SG-1000 ROMs). TODO: Should we support SG-1000 ROMs? Sega Master System header ref...
46.04375
116
0.584906
828b2e9c74b31ec0e739163d1f6cad6f23cb669c
5,596
py
Python
google/cloud/automl_v1/proto/annotation_spec_pb2.py
busunkim96/python-automl
7df905910b86721a6ee3a3b6c916a4f8e27d0aa7
[ "Apache-2.0" ]
null
null
null
google/cloud/automl_v1/proto/annotation_spec_pb2.py
busunkim96/python-automl
7df905910b86721a6ee3a3b6c916a4f8e27d0aa7
[ "Apache-2.0" ]
null
null
null
google/cloud/automl_v1/proto/annotation_spec_pb2.py
busunkim96/python-automl
7df905910b86721a6ee3a3b6c916a4f8e27d0aa7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/automl_v1/proto/annotation_spec.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobu...
38.861111
718
0.678163
c1f47baa064b6b6582412411fb8b0a59bcab3827
176
py
Python
api/api.py
JaniniRami/Flask-Blueprint-Template
4c09716890ae1eb6bb5afcd2800a702300fd5bac
[ "MIT" ]
null
null
null
api/api.py
JaniniRami/Flask-Blueprint-Template
4c09716890ae1eb6bb5afcd2800a702300fd5bac
[ "MIT" ]
null
null
null
api/api.py
JaniniRami/Flask-Blueprint-Template
4c09716890ae1eb6bb5afcd2800a702300fd5bac
[ "MIT" ]
null
null
null
from flask import Blueprint from flask import jsonify api = Blueprint('api', __name__) @api.route('/api/ping') def ping(): return jsonify({'response' : 'pong!'})
19.555556
43
0.659091
dc9c549f23c0cf57d67018fc2db7425c76bf3236
7,069
py
Python
InternalPythonModules/android/shareit.py
ljmf00/autopsy
34a980b7fc7ea47287e7101f5bba6cb1b518bc7b
[ "Apache-2.0" ]
13
2020-11-16T12:30:48.000Z
2021-02-10T15:00:14.000Z
InternalPythonModules/android/shareit.py
ljmf00/autopsy
34a980b7fc7ea47287e7101f5bba6cb1b518bc7b
[ "Apache-2.0" ]
1
2019-12-05T14:10:20.000Z
2019-12-05T14:10:20.000Z
InternalPythonModules/android/shareit.py
ljmf00/autopsy
34a980b7fc7ea47287e7101f5bba6cb1b518bc7b
[ "Apache-2.0" ]
5
2019-10-08T04:48:19.000Z
2019-11-22T04:29:12.000Z
""" Autopsy Forensic Browser Copyright 2019-2020 Basis Technology Corp. Contact: carrier <at> sleuthkit <dot> org 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...
48.751724
172
0.606592
201c3ff46ed39f9d31b9bd6af4988cd2d18f6c06
1,342
py
Python
setup/util/logging.py
JackInTaiwan/ViDB
d658fd4f6a1ad2d7d36bb270fde2a373d3cc965d
[ "MIT" ]
2
2021-05-29T06:57:24.000Z
2021-06-15T09:13:38.000Z
setup/util/logging.py
JackInTaiwan/ViDB
d658fd4f6a1ad2d7d36bb270fde2a373d3cc965d
[ "MIT" ]
null
null
null
setup/util/logging.py
JackInTaiwan/ViDB
d658fd4f6a1ad2d7d36bb270fde2a373d3cc965d
[ "MIT" ]
null
null
null
import os import logging import logging.config def logging_config(log_dir=None, log_file_path=None): config = { "version": 1, "disable_existing_loggers": False, "formatters": { "standard": { "format": "[%(asctime)s][%(name)s][%(funcName)s][%(levelname)s] %(mess...
26.313725
92
0.469449
e45d3e79a872ae3aa196646253da1ec27a9062da
1,512
py
Python
test/test_content_disposition.py
iEngage/python-sdk
76cc6ed697d7599ce9af74124c12d33ad5aff419
[ "Apache-2.0" ]
null
null
null
test/test_content_disposition.py
iEngage/python-sdk
76cc6ed697d7599ce9af74124c12d33ad5aff419
[ "Apache-2.0" ]
null
null
null
test/test_content_disposition.py
iEngage/python-sdk
76cc6ed697d7599ce9af74124c12d33ad5aff419
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ iEngage 2.0 API This API enables Intelligent Engagement for your Business. iEngage is a platform that combines process, augmented intelligence and rewards to help you intelligently engage customers. OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagge...
28
186
0.734127
6cacb5e7e9fa029588bd6a246876de5b05639229
1,214
py
Python
st2auth/st2auth/sso/noop.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
null
null
null
st2auth/st2auth/sso/noop.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
15
2021-02-11T22:58:54.000Z
2021-08-06T18:03:47.000Z
st2auth/st2auth/sso/noop.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
1
2021-07-10T15:02:29.000Z
2021-07-10T15:02:29.000Z
# 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 required by applicable law or agreed to i...
30.35
74
0.760297
fe74c915ed9225b787129d41b8deeb08929b80b7
10,524
py
Python
envinorma/parametrization/apply_parameter_values.py
Envinorma/envinorma-data
85c00abc1af9a3b14912229b0789a0d1d5ae7b69
[ "MIT" ]
4
2020-12-11T09:40:12.000Z
2022-03-08T13:43:35.000Z
envinorma/parametrization/apply_parameter_values.py
Envinorma/envinorma-data
85c00abc1af9a3b14912229b0789a0d1d5ae7b69
[ "MIT" ]
104
2020-12-10T15:20:13.000Z
2021-09-30T13:05:00.000Z
envinorma/parametrization/apply_parameter_values.py
Envinorma/envinorma-data
85c00abc1af9a3b14912229b0789a0d1d5ae7b69
[ "MIT" ]
null
null
null
from copy import copy from dataclasses import dataclass, replace from typing import Any, Dict, List, Optional, Tuple, Union from envinorma.models import ArreteMinisteriel, Regime from envinorma.models.arrete_ministeriel import AMApplicability from envinorma.models.condition import AndCondition, Condition, Greater, Lit...
42.26506
120
0.750665
5f3ca9e85131975ec8930565d53fdc7fefca8a20
463
py
Python
attributes_and_methods/exercise/gym_04/customer.py
BoyanPeychinov/object_oriented_programming
a960721c7c17710bd7b151a9025647e953435962
[ "MIT" ]
null
null
null
attributes_and_methods/exercise/gym_04/customer.py
BoyanPeychinov/object_oriented_programming
a960721c7c17710bd7b151a9025647e953435962
[ "MIT" ]
null
null
null
attributes_and_methods/exercise/gym_04/customer.py
BoyanPeychinov/object_oriented_programming
a960721c7c17710bd7b151a9025647e953435962
[ "MIT" ]
null
null
null
class Customer: customer_id = 0 def __init__(self, name, address, email): Customer.customer_id += Customer.get_next_id() self.name = name self.address = address self.email = email self.id = Customer.customer_id def __repr__(self): return f"Customer <{self.id...
28.9375
96
0.62851
a1b4e3fb9ddeb269f69286ed500a6798491a2380
140
py
Python
examples/get-ip-addresses.py
jkpubsrc/python-module-jk-utils
6bf97b3dcde7a970c20ca43323e2eb0dda8fbfb3
[ "Apache-1.1" ]
1
2022-03-31T05:17:59.000Z
2022-03-31T05:17:59.000Z
examples/get-ip-addresses.py
jkpubsrc/python-module-jk-prettyprintobj
e9af7470abc59458a12282dd96735002a7c0d9dc
[ "Apache-1.1" ]
null
null
null
examples/get-ip-addresses.py
jkpubsrc/python-module-jk-prettyprintobj
e9af7470abc59458a12282dd96735002a7c0d9dc
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python3 import jk_utils d = jk_utils.ip.LocalIPAddressDetector(["eth*", "wlan*"]) for x in d.getIPAddresses(): print(x)
10
57
0.671429
d076ff5841aa706f44a553b58e7f60d4f8758866
855
py
Python
prj/example/posix-build.py
singhalshubh/echronos
c996f1d2c8af6c6536205eb319c1bf1d4d84569c
[ "MIT" ]
154
2015-08-14T03:28:16.000Z
2022-03-19T00:06:38.000Z
prj/example/posix-build.py
singhalshubh/echronos
c996f1d2c8af6c6536205eb319c1bf1d4d84569c
[ "MIT" ]
59
2015-08-30T23:17:33.000Z
2019-06-12T09:20:57.000Z
prj/example/posix-build.py
singhalshubh/echronos
c996f1d2c8af6c6536205eb319c1bf1d4d84569c
[ "MIT" ]
44
2015-09-19T13:02:07.000Z
2022-03-19T00:14:11.000Z
# # eChronos Real-Time Operating System # Copyright (c) 2017, Commonwealth Scientific and Industrial Research # Organisation (CSIRO) ABN 41 687 119 230. # # All rights reserved. CSIRO is willing to grant you a licence to the eChronos # real-time operating system under the terms of the CSIRO_BSD_MIT license. See # the f...
28.5
78
0.712281
ce067bc56466c6b97df47514925f0894a5fbc3bf
474
py
Python
profiles_api/urls.py
gasparcsn/profiles-rest-api
8335165dd9c45ebb384674fb84186fc23d9b5015
[ "MIT" ]
null
null
null
profiles_api/urls.py
gasparcsn/profiles-rest-api
8335165dd9c45ebb384674fb84186fc23d9b5015
[ "MIT" ]
null
null
null
profiles_api/urls.py
gasparcsn/profiles-rest-api
8335165dd9c45ebb384674fb84186fc23d9b5015
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from profiles_api import views router = DefaultRouter() router.register('hello-viewset', views.HelloViewSet, basename='hello-viewset') router.register('profile', views.UserProfileViewSet) router.register('feed', views.ProfileFeedIt...
29.625
78
0.776371
1be1533dde190bf2f12e1bb737dcf9a782ee468f
1,845
py
Python
haproxy/setup.py
vcabbage/integrations-core
449aa06adbb2f37072336fc71c50a4b5385cfd8f
[ "BSD-3-Clause" ]
null
null
null
haproxy/setup.py
vcabbage/integrations-core
449aa06adbb2f37072336fc71c50a4b5385cfd8f
[ "BSD-3-Clause" ]
null
null
null
haproxy/setup.py
vcabbage/integrations-core
449aa06adbb2f37072336fc71c50a4b5385cfd8f
[ "BSD-3-Clause" ]
null
null
null
# To use a consistent encoding from codecs import open from os import path from setuptools import setup HERE = path.abspath(path.dirname(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, "datadog_checks", "haproxy", "__about__.py")) as f: exec(f.read(), ABOUT) # Get the long description from th...
29.758065
77
0.674255
244748e5889af6bf955d242e0aecf1064896c487
6,308
py
Python
numpy/distutils/tests/test_ccompiler_opt_conf.py
kurtamohler/numpy
73157efcd17da95ce984d1595ac4907233b9dbf5
[ "BSD-3-Clause" ]
3
2021-02-06T06:47:30.000Z
2021-08-11T10:05:27.000Z
numpy/distutils/tests/test_ccompiler_opt_conf.py
kurtamohler/numpy
73157efcd17da95ce984d1595ac4907233b9dbf5
[ "BSD-3-Clause" ]
169
2020-12-25T07:10:57.000Z
2022-03-29T22:12:31.000Z
numpy/distutils/tests/test_ccompiler_opt_conf.py
kurtamohler/numpy
73157efcd17da95ce984d1595ac4907233b9dbf5
[ "BSD-3-Clause" ]
1
2021-04-17T03:10:32.000Z
2021-04-17T03:10:32.000Z
import unittest from os import sys, path is_standalone = __name__ == '__main__' and __package__ is None if is_standalone: sys.path.append(path.abspath(path.join(path.dirname(__file__), ".."))) from ccompiler_opt import CCompilerOpt else: from numpy.distutils.ccompiler_opt import CCompilerOpt arch_compiler...
35.638418
101
0.585447
382dc09d9e39a5b0271ddade339bd982e16f1ee3
24,754
py
Python
salt/modules/cp.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
salt/modules/cp.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
salt/modules/cp.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Minion side functions for salt-cp ''' # Import python libs from __future__ import absolute_import import os import logging import fnmatch # Import salt libs import salt.minion import salt.fileclient import salt.utils import salt.utils.files import salt.utils.url import salt.crypt import sa...
31.02005
115
0.615739
be26a0f6d2d3766d1e5edb9faaf8810ae9630ec9
3,172
py
Python
utils.py
zsilver1/dictus
7c5fddda626a134340c5062e3ce4c2c420e300c8
[ "MIT" ]
null
null
null
utils.py
zsilver1/dictus
7c5fddda626a134340c5062e3ce4c2c420e300c8
[ "MIT" ]
null
null
null
utils.py
zsilver1/dictus
7c5fddda626a134340c5062e3ce4c2c420e300c8
[ "MIT" ]
null
null
null
from typing import List, Dict, Set, Tuple import os import shutil import re FOOTNOTE_LINK = re.compile(r"\[\^([\w]+)\]") FOOTNOTE_LABEL = re.compile(r"^\[\^([\w]+)]:\s?(.*)") def cleanup_md_file(filename: str, backup: bool = True): if backup: shutil.copyfile(filename, f"{filename}.backup") headers: ...
31.098039
75
0.592055