hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
3acdafcd9f69aa4dd23de58f4dc3f2ce2769b7e2
121
py
Python
tests/conftest.py
marcgarreau/eth-utils
386863e6b7d95ac5acb11f6ba81619dc88ed6eb9
[ "MIT" ]
234
2017-11-24T10:11:27.000Z
2022-03-18T21:05:10.000Z
tests/conftest.py
marcgarreau/eth-utils
386863e6b7d95ac5acb11f6ba81619dc88ed6eb9
[ "MIT" ]
138
2017-11-24T08:42:02.000Z
2022-03-30T01:43:01.000Z
tests/conftest.py
marcgarreau/eth-utils
386863e6b7d95ac5acb11f6ba81619dc88ed6eb9
[ "MIT" ]
120
2017-12-12T20:25:18.000Z
2022-03-31T21:41:54.000Z
import warnings import pytest @pytest.fixture(autouse=True) def print_warnings(): warnings.simplefilter("always")
13.444444
35
0.768595
e084a8515de6f54b9e1553d0a7265ad1f88cd945
679
py
Python
fiepipeloosefiles/routines/assetaspect.py
leith-bartrich/fiellc
1c02690538f442dede5d6afc8926355cb2ac838e
[ "MIT" ]
null
null
null
fiepipeloosefiles/routines/assetaspect.py
leith-bartrich/fiellc
1c02690538f442dede5d6afc8926355cb2ac838e
[ "MIT" ]
null
null
null
fiepipeloosefiles/routines/assetaspect.py
leith-bartrich/fiellc
1c02690538f442dede5d6afc8926355cb2ac838e
[ "MIT" ]
null
null
null
from fiepipelib.assetaspect.routines.config import AssetAspectConfigurationRoutines from fiepipelib.assetaspect.routines.autoconf import AutoConfigurationResult from fiepipeloosefiles.data.assetaspect import LooseFilesAspectConfiguration from fieui.FeedbackUI import AbstractFeedbackUI class LooseFilesAspectConfigurat...
35.736842
109
0.835052
10e89ab88de85fab94b44e4decfe40b199d6c125
3,649
py
Python
google/ads/google_ads/v5/proto/services/group_placement_view_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v5/proto/services/group_placement_view_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v5/proto/services/group_placement_view_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.ads.google_ads.v5.proto.resources import group_placement_view_pb2 as google_dot_ads_dot_googleads__v5_dot_proto_dot_resources_dot_group__placement__v...
47.38961
184
0.761853
e068ba1d3d3d95e8c6039594e98fd609f3386777
11,372
py
Python
diofant/combinatorics/prufer.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
diofant/combinatorics/prufer.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
diofant/combinatorics/prufer.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from ..core import Basic, Tuple, sympify from ..core.compatibility import as_int, iterable from ..utilities import flatten class Prufer(Basic): """ The Prufer correspondence is an algorithm that describes the bijection between labeled trees and the Prufer code. A Prufe...
26.570093
101
0.458319
33fee8884675ab6b048f14f514531f656dcefe53
7,145
py
Python
llvm/utils/update_test_checks.py
rarutyun/llvm
76fa6b3bcade074bdedef740001c4528e1aa08a8
[ "Apache-2.0" ]
305
2019-09-14T17:16:05.000Z
2022-03-31T15:05:20.000Z
llvm/utils/update_test_checks.py
rarutyun/llvm
76fa6b3bcade074bdedef740001c4528e1aa08a8
[ "Apache-2.0" ]
11
2019-10-17T21:11:52.000Z
2022-02-17T20:10:00.000Z
llvm/utils/update_test_checks.py
rarutyun/llvm
76fa6b3bcade074bdedef740001c4528e1aa08a8
[ "Apache-2.0" ]
24
2019-10-03T11:22:11.000Z
2022-01-25T09:59:30.000Z
#!/usr/bin/env python3 """A script to generate FileCheck statements for 'opt' regression tests. This script is a utility to update LLVM opt test cases with new FileCheck patterns. It can either update all of the tests in the file or a single test function. Example usage: $ update_test_checks.py --opt=../bin/opt test...
41.063218
99
0.680896
4bd16d0297cd6f64f5ef20d1f306106d7a20518f
153
py
Python
scripts/__init__.py
jgliss/pydoas
d75efeb54e04011849f937728ca0f15ccfdd78c6
[ "BSD-3-Clause" ]
5
2017-03-07T09:03:20.000Z
2020-04-21T06:30:18.000Z
scripts/__init__.py
jgliss/pydoas
d75efeb54e04011849f937728ca0f15ccfdd78c6
[ "BSD-3-Clause" ]
null
null
null
scripts/__init__.py
jgliss/pydoas
d75efeb54e04011849f937728ca0f15ccfdd78c6
[ "BSD-3-Clause" ]
2
2018-11-01T15:28:53.000Z
2019-01-09T03:56:06.000Z
# -*- coding: utf-8 -*- """ Example scripts of pydoas library --------------------------------- """ from . import ex1_read_and_plot_example_data as ex1
19.125
51
0.54902
e70aea7431019cf9e0532c1f3974de988033d280
888
py
Python
umqtt.simple/umqtt_debug.py
dcf1007/micropython-lib
e7460345e99bed1217ba60f2519a9584ad195493
[ "PSF-2.0" ]
null
null
null
umqtt.simple/umqtt_debug.py
dcf1007/micropython-lib
e7460345e99bed1217ba60f2519a9584ad195493
[ "PSF-2.0" ]
null
null
null
umqtt.simple/umqtt_debug.py
dcf1007/micropython-lib
e7460345e99bed1217ba60f2519a9584ad195493
[ "PSF-2.0" ]
null
null
null
from umqtt.simple import MQTTClient from ubinascii import hexlify class debug_socket: def __init__(self, sock): self.sock = sock def read(self, len): data = self.sock.read(len) print("RECV:", hexlify(data, ':').decode()) return data def write(self, data, len=None): ...
22.769231
51
0.574324
9fefb7a1d7e0615044ae00acb0b8e64481e41b97
5,177
py
Python
tools/lint/tests/test_path_lints.py
spao234/wpt
4b9447991bcb28f37b45532caf7f8e8747f9ad41
[ "BSD-3-Clause" ]
2
2021-01-31T18:17:21.000Z
2021-03-07T20:50:44.000Z
tools/lint/tests/test_path_lints.py
spao234/wpt
4b9447991bcb28f37b45532caf7f8e8747f9ad41
[ "BSD-3-Clause" ]
49
2021-03-01T07:28:51.000Z
2022-03-28T16:06:03.000Z
tools/lint/tests/test_path_lints.py
spao234/wpt
4b9447991bcb28f37b45532caf7f8e8747f9ad41
[ "BSD-3-Clause" ]
1
2020-11-09T05:05:06.000Z
2020-11-09T05:05:06.000Z
from __future__ import unicode_literals import mock import os from ..lint import check_path from .base import check_errors import pytest def test_allowed_path_length(): basename = 29 * "test/" for idx in range(5): filename = basename + idx * "a" errors = check_path("/foo/", filename) ...
33.185897
90
0.502415
d3e625ca564fc1907f352608083cef531c3b6e77
6,974
py
Python
dataloader/vid.py
gengshan-y/viser-release
aceefb58fb705cc86be6a83f0297e9d054804619
[ "Apache-2.0" ]
53
2021-12-09T17:17:02.000Z
2022-03-15T15:36:46.000Z
dataloader/vid.py
gengshan-y/viser-release
aceefb58fb705cc86be6a83f0297e9d054804619
[ "Apache-2.0" ]
4
2022-01-11T02:38:32.000Z
2022-03-11T00:01:22.000Z
dataloader/vid.py
gengshan-y/viser-release
aceefb58fb705cc86be6a83f0297e9d054804619
[ "Apache-2.0" ]
5
2021-12-09T17:17:32.000Z
2022-01-11T02:38:46.000Z
# Copyright 2021 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 writin...
44.139241
196
0.626326
c285c3bbe7488a01ea2c3a37617262462d51f0a8
1,479
py
Python
venv/lib/python3.8/site-packages/azureml/_restclient/models/model_test.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/models/model_test.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/models/model_test.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator 2.3.3...
36.073171
109
0.597701
8b83e26b0501c780d1192d7f09abcb006b7038ec
975
py
Python
TrekBot_WS/build_isolated/grid_map_octomap/catkin_generated/pkg.develspace.context.pc.py
Rafcin/RescueRoboticsLHMV
d3dc63e6c16a040b16170f143556ef358018b7da
[ "Unlicense" ]
1
2018-10-04T14:37:00.000Z
2018-10-04T14:37:00.000Z
TrekBot_WS/build_isolated/grid_map_octomap/catkin_generated/pkg.develspace.context.pc.py
Rafcin/TrekBot
d3dc63e6c16a040b16170f143556ef358018b7da
[ "Unlicense" ]
null
null
null
TrekBot_WS/build_isolated/grid_map_octomap/catkin_generated/pkg.develspace.context.pc.py
Rafcin/TrekBot
d3dc63e6c16a040b16170f143556ef358018b7da
[ "Unlicense" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/xavier_ssd/TrekBot/TrekBot_WS/src/grid_map/grid_map_octomap/include;/xavier_ssd/TrekBot/TrekBot_WS/install_isolated/include".split(';') if "/xavier_ssd/TrekBot/TrekBot_WS/src/grid_map/grid_map_octomap...
108.333333
370
0.824615
e8127b8d9be19ddf981689f18f4ef419f77991ed
4,517
py
Python
homeassistant/components/luftdaten/sensor.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/components/luftdaten/sensor.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/luftdaten/sensor.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Support for Sensor.Community sensors.""" from __future__ import annotations from typing import cast from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from homeassistant.con...
31.809859
95
0.683418
2dfdadc14524b9f427f36c1b01cf6c79ffc62e03
4,730
py
Python
python/graphscope/nx/tests/classes/test_function.py
LI-Mingyu/GraphScope-MY
942060983d3f7f8d3a3377467386e27aba285b33
[ "Apache-2.0" ]
1,521
2020-10-28T03:20:24.000Z
2022-03-31T12:42:51.000Z
python/graphscope/nx/tests/classes/test_function.py
LI-Mingyu/GraphScope-MY
942060983d3f7f8d3a3377467386e27aba285b33
[ "Apache-2.0" ]
850
2020-12-15T03:17:32.000Z
2022-03-31T11:40:13.000Z
python/graphscope/nx/tests/classes/test_function.py
LI-Mingyu/GraphScope-MY
942060983d3f7f8d3a3377467386e27aba285b33
[ "Apache-2.0" ]
180
2020-11-10T03:43:21.000Z
2022-03-28T11:13:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is referred and derived from project NetworkX # # which has the following license: # # Copyright (C) 2004-2020, NetworkX Developers # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # #...
32.39726
84
0.580127
d71f2c2702c5ab27fd7e3672be6ef593a1f29cf5
26,800
py
Python
quark/ipam.py
TMaddox/quark
faa3665999be2a7fde503b04bbae198eff78920c
[ "Apache-2.0" ]
null
null
null
quark/ipam.py
TMaddox/quark
faa3665999be2a7fde503b04bbae198eff78920c
[ "Apache-2.0" ]
null
null
null
quark/ipam.py
TMaddox/quark
faa3665999be2a7fde503b04bbae198eff78920c
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Openstack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
42.204724
79
0.538918
9cc3d59f06bcd4ffc5ae014a8475177eae9a4163
3,595
py
Python
src/backend_pool/libvirt/guest_handler.py
GreyNoise-Intelligence/cowrie
d2a9b30f5fd23428baf32e2de1d24e944cf8cde7
[ "BSD-3-Clause" ]
null
null
null
src/backend_pool/libvirt/guest_handler.py
GreyNoise-Intelligence/cowrie
d2a9b30f5fd23428baf32e2de1d24e944cf8cde7
[ "BSD-3-Clause" ]
null
null
null
src/backend_pool/libvirt/guest_handler.py
GreyNoise-Intelligence/cowrie
d2a9b30f5fd23428baf32e2de1d24e944cf8cde7
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019 Guilherme Borges <guilhermerosasborges@gmail.com> # See the COPYRIGHT file for more information import os from configparser import NoOptionError import backend_pool.libvirt.snapshot_handler import backend_pool.util from twisted.python import log from cowrie.core.config import CowrieConfig clas...
32.681818
100
0.648401
a16c009240289dd58a171ad04ec5879c893136ac
70
py
Python
src/boilerplate/examples/__init__.py
quillio-dev/boilerplate-repo
8b6a79fcb99d553d046ce873f2b55d0665a41252
[ "MIT" ]
3
2021-06-18T20:57:57.000Z
2022-03-08T19:24:37.000Z
src/boilerplate/examples/__init__.py
quillio-dev/boilerplate-repo
8b6a79fcb99d553d046ce873f2b55d0665a41252
[ "MIT" ]
12
2021-06-16T20:55:08.000Z
2022-03-27T16:35:45.000Z
src/boilerplate/examples/__init__.py
widal001/vital-signs
9ef28e0103d5a765667a4ede091d931b089fc79a
[ "MIT" ]
2
2021-06-30T04:02:32.000Z
2022-03-08T18:47:47.000Z
__all__ = ["Person"] from boilerplate.examples.classes import Person
17.5
47
0.785714
26d01ee531870d8a63b99c34d5d1511b90ec589e
655
py
Python
app/user/forms.py
PsychedelicMonkey/Bloggy
b5178bab0522a85a8b725251c195807fb4322eda
[ "MIT" ]
null
null
null
app/user/forms.py
PsychedelicMonkey/Bloggy
b5178bab0522a85a8b725251c195807fb4322eda
[ "MIT" ]
null
null
null
app/user/forms.py
PsychedelicMonkey/Bloggy
b5178bab0522a85a8b725251c195807fb4322eda
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import TextAreaField, SubmitField, StringField, HiddenField from wtforms.validators import DataRequired class AboutMeForm(FlaskForm): text = TextAreaField('About Me', validators=[DataRequired()]) submit = SubmitField('Save Changes') class SendMessageForm(FlaskFor...
29.772727
72
0.743511
2086f3459a64cd2d9c1ad695ef51950f30409def
4,072
py
Python
sdk/python/pulumi_azure/waf/get_firewall_policy.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/waf/get_firewall_policy.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/waf/get_firewall_policy.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
34.218487
140
0.662328
8b508d918ec503b3d6b4efec50fa49f8c8ad4baa
858
py
Python
frictionless/validate/schema.py
Grandient/frictionless-py
8c41b96f2047d573702fe7b34ff7ffbd32c3d815
[ "MIT" ]
247
2020-08-04T16:42:09.000Z
2022-03-30T11:54:54.000Z
frictionless/validate/schema.py
Grandient/frictionless-py
8c41b96f2047d573702fe7b34ff7ffbd32c3d815
[ "MIT" ]
444
2020-07-29T09:13:59.000Z
2022-03-31T14:54:57.000Z
frictionless/validate/schema.py
Grandient/frictionless-py
8c41b96f2047d573702fe7b34ff7ffbd32c3d815
[ "MIT" ]
60
2020-09-04T11:39:34.000Z
2022-03-23T18:59:51.000Z
from .. import helpers from ..exception import FrictionlessException from ..report import Report from ..schema import Schema @Report.from_validate def validate_schema(source=None, **options): """Validate schema API | Usage -------- | -------- Public | `from frictionless import validate_schema`...
24.514286
75
0.660839
c172e86252bf81bd34790d55dd1fb74b822a31ba
3,813
py
Python
scripts/support/runner/nios2.py
anangl/zephyr
dbba22397c439ff4675de61407635ae4b5e5ac38
[ "Apache-2.0" ]
1
2021-08-05T06:36:44.000Z
2021-08-05T06:36:44.000Z
scripts/support/runner/nios2.py
cpeniche/zephyr
1e91447b99eb8ee93fbc8a3e4a5247ff7e092a12
[ "Apache-2.0" ]
1
2019-06-18T20:12:22.000Z
2019-06-18T20:12:22.000Z
scripts/support/runner/nios2.py
cpeniche/zephyr
1e91447b99eb8ee93fbc8a3e4a5247ff7e092a12
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Linaro Limited. # # SPDX-License-Identifier: Apache-2.0 '''Runner for NIOS II, based on quartus-flash.py and GDB.''' from .core import ZephyrBinaryRunner, NetworkPortHelper class Nios2BinaryRunner(ZephyrBinaryRunner): '''Runner front-end for NIOS II.''' # From the original shell script...
37.382353
76
0.580907
a45457a1557e6c16af36c79496db0111b5b77502
17,904
py
Python
silx/resources/__init__.py
pierrepaleo/silx
392930f522e291d096ca29facb652a5c8dcfdbcd
[ "CC0-1.0", "MIT" ]
1
2016-10-26T11:05:46.000Z
2016-10-26T11:05:46.000Z
silx/resources/__init__.py
vallsv/silx
834bfe9272af99096faa360e1ad96291bf46a2ac
[ "CC0-1.0", "MIT" ]
7
2016-10-19T09:27:26.000Z
2020-01-24T13:26:56.000Z
silx/resources/__init__.py
payno/silx
13301e61627f98fa837008250ac74a0627a7a560
[ "CC0-1.0", "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2016-2018 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
39.349451
107
0.641421
fc27035578aa2f8c7ae488aa1ee11559285b9ef6
765
py
Python
contrib/subscriber.py
Misschl/FreshMalls
928eb27648d8805a031290e9184f21fcbaf142f8
[ "BSD-2-Clause" ]
1
2021-09-08T03:27:08.000Z
2021-09-08T03:27:08.000Z
contrib/subscriber.py
Misschl/FreshMalls
928eb27648d8805a031290e9184f21fcbaf142f8
[ "BSD-2-Clause" ]
null
null
null
contrib/subscriber.py
Misschl/FreshMalls
928eb27648d8805a031290e9184f21fcbaf142f8
[ "BSD-2-Clause" ]
null
null
null
from user.models import User from django.contrib.auth.hashers import check_password def get_current_user(request): """ 获取当前的用户 :param request: :return: """ user_id = request.session.get('login') if user_id: user = User.objects.get(pk=user_id) return user else: r...
21.857143
65
0.615686
2f28da9fbcdf303bab8f72070109c712c1d91a2d
7,917
py
Python
oos_lp/src/trainer.py
migalkin/NodePiece
a2189801657d41797a3db99c38f071a6468be2c5
[ "MIT" ]
84
2021-06-24T14:42:01.000Z
2022-03-29T06:28:43.000Z
oos_lp/src/trainer.py
migalkin/NodePiece
a2189801657d41797a3db99c38f071a6468be2c5
[ "MIT" ]
3
2021-07-02T05:11:28.000Z
2022-02-07T06:19:56.000Z
oos_lp/src/trainer.py
migalkin/NodePiece
a2189801657d41797a3db99c38f071a6468be2c5
[ "MIT" ]
8
2021-06-24T22:43:24.000Z
2022-03-28T03:42:07.000Z
# Copyright (c) 2020-present, Royal Bank of Canada. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import torch from torch import nn from model.DisMultOutKG import DisMultOutKG from model.dm_tokenized import TokenizedDi...
38.246377
169
0.515094
c143ae32f9e55a946a8a9d84a68008dd10ba1066
9,304
py
Python
tests/run-perfbench.py
andihoff98/micropython
b0ef4364db9a75f761adf07c0f300cb0704fdf19
[ "MIT" ]
2
2022-03-10T03:17:48.000Z
2022-03-10T03:17:58.000Z
tests/run-perfbench.py
andihoff98/micropython
b0ef4364db9a75f761adf07c0f300cb0704fdf19
[ "MIT" ]
19
2022-01-31T20:43:43.000Z
2022-03-30T18:26:37.000Z
tests/run-perfbench.py
andihoff98/micropython
b0ef4364db9a75f761adf07c0f300cb0704fdf19
[ "MIT" ]
1
2022-03-30T18:38:08.000Z
2022-03-30T18:38:08.000Z
#!/usr/bin/env python3 # This file is part of the MicroPython project, http://micropython.org/ # The MIT License (MIT) # Copyright (c) 2019 Damien P. George import os import subprocess import sys import argparse from glob import glob sys.path.append("../tools") import pyboard # Paths for host executables if os.name...
31.972509
97
0.548474
11615e8ea1af7b02a87f8a364441e887b63d4ba5
688
py
Python
code/lsl_record.py
emihelj/cybathlon
f82f3ec55619f3364a59a1f0d63e7df1fef1b8a3
[ "MIT" ]
8
2019-11-13T19:56:49.000Z
2021-08-16T02:44:50.000Z
code/lsl_record.py
emihelj/cybathlon
f82f3ec55619f3364a59a1f0d63e7df1fef1b8a3
[ "MIT" ]
9
2020-02-07T22:53:18.000Z
2021-08-25T15:51:52.000Z
code/lsl_record.py
emihelj/cybathlon
f82f3ec55619f3364a59a1f0d63e7df1fef1b8a3
[ "MIT" ]
2
2021-02-26T11:24:57.000Z
2021-05-13T03:30:54.000Z
import numpy as np import time from src.lsl_client import LSLClient from src.lsl_recorder import LSLRecorder if __name__ == '__main__': lsl_recorder = LSLRecorder(h5_name='data.h5') lsl_reader = LSLClient() countdown = time.time() while time.time() - countdown < 3: if time.time() - countdown >...
26.461538
49
0.549419
ad55131d610679f7768dc610c894a93204dc3ac0
3,928
py
Python
strips/ff.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
strips/ff.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
strips/ff.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
from .hsp import * from misc.functions import argmin, flatten def get_layers(costs): num_layers = max(pair.level for pair in costs.values()) + 1 layers = [[] for level in range(num_layers)] for value, (_, level) in costs.items(): layers[level].append(value) return layers # def print_rpg(litera...
44.636364
132
0.650458
4ae72a7c7cc9638d6e965df0222c5311c4a75b88
701
py
Python
tqsdk/datetime_state.py
contropist/tqsdk-python
6d483544221045431565228fffbfea24eb914b97
[ "Apache-2.0" ]
3,208
2018-06-12T10:51:17.000Z
2022-03-30T14:40:50.000Z
tqsdk/datetime_state.py
YountMan/tqsdk-python
b766b45bb82c89a0401a6a84e0e42600fa10e6f4
[ "Apache-2.0" ]
297
2018-07-23T07:42:43.000Z
2021-10-13T05:19:05.000Z
tqsdk/datetime_state.py
YountMan/tqsdk-python
b766b45bb82c89a0401a6a84e0e42600fa10e6f4
[ "Apache-2.0" ]
656
2018-06-25T06:27:58.000Z
2022-03-31T08:01:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'mayanqiong' """ 时间帮助函数,根据回测/实盘获取不同的当前时间 模块内部创建使用 """ import time class TqDatetimeState: def __init__(self): self.data_ready = False # 是否收到了第一个 mdhis_more_data self.tqsdk_backtest = {} def get_current_dt(self): """返回当前 ...
21.242424
78
0.627675
81a72ada3200975087ce7e214b4f4a1e78d609fc
358
py
Python
solicitud_de_prestamos/config/docs.py
josmeldiaz21/solicitud_de_prestamos
4ac37c8028976c51b2c4b5d2928581cb207e4db4
[ "MIT" ]
null
null
null
solicitud_de_prestamos/config/docs.py
josmeldiaz21/solicitud_de_prestamos
4ac37c8028976c51b2c4b5d2928581cb207e4db4
[ "MIT" ]
1
2019-11-08T22:21:18.000Z
2019-11-08T22:21:18.000Z
solicitud_de_prestamos/config/docs.py
josmeldiaz21/solicitud_de_prestamos
4ac37c8028976c51b2c4b5d2928581cb207e4db4
[ "MIT" ]
null
null
null
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/solicitud_de_prestamos" # docs_base_url = "https://[org_name].github.io/solicitud_de_prestamos" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context....
29.833333
71
0.751397
a25df282856879f39033c0b294fc34b44ac0c7b3
3,687
py
Python
terms_srv/app_terms/admin.py
vowatchka/komtek_test_task
6e26f09de53c9ca9744dcc5249e6f6264adcb20b
[ "MIT" ]
1
2022-03-03T15:51:48.000Z
2022-03-03T15:51:48.000Z
terms_srv/app_terms/admin.py
vowatchka/komtek_test_task
6e26f09de53c9ca9744dcc5249e6f6264adcb20b
[ "MIT" ]
null
null
null
terms_srv/app_terms/admin.py
vowatchka/komtek_test_task
6e26f09de53c9ca9744dcc5249e6f6264adcb20b
[ "MIT" ]
null
null
null
from django.contrib import admin from django.template.defaultfilters import truncatewords from django.urls import reverse from django.utils.html import format_html from .models import Directory, DirectoryVersion, DirectoryItem from .forms import DirectoryVersionForm, DirectoryItemForm # Кол-во записей в списке запис...
28.361538
104
0.64524
18da385ee00bca08c5a46f3b43b82be29452f792
801
py
Python
pages/product_page.py
gostyuhinadv/pytest_avto
c9662eccde362f9c3031a8878361ae746e94efd4
[ "Apache-2.0" ]
null
null
null
pages/product_page.py
gostyuhinadv/pytest_avto
c9662eccde362f9c3031a8878361ae746e94efd4
[ "Apache-2.0" ]
null
null
null
pages/product_page.py
gostyuhinadv/pytest_avto
c9662eccde362f9c3031a8878361ae746e94efd4
[ "Apache-2.0" ]
null
null
null
from .base_page import BasePage from .locators import ProductPageLocators class ProductPage(BasePage): def add_product_to_basket(self): button_add_product = self.browser.find_element(*ProductPageLocators.BUTTON_ADD_PRODUCT_TO_BASKET) button_add_product.click() def success_message_about_add_p...
32.04
105
0.764045
a47f1ac37908a32390e62990e1bc2d02bc018d20
30,787
py
Python
gmosfc/build/lib/gmosfc/fc_gaia.py
astroquackers/gmosfc
6ab965a4040ef5f9fd68232d848606575f80f712
[ "MIT" ]
2
2020-07-08T21:46:29.000Z
2020-07-13T17:41:28.000Z
gmosfc/build/lib/gmosfc/fc_gaia.py
astroquackers/gmosfc
6ab965a4040ef5f9fd68232d848606575f80f712
[ "MIT" ]
null
null
null
gmosfc/build/lib/gmosfc/fc_gaia.py
astroquackers/gmosfc
6ab965a4040ef5f9fd68232d848606575f80f712
[ "MIT" ]
null
null
null
from .fcutils import make_gaia from .fcutils import writeregion import matplotlib.pyplot as plt import numpy as np import os from astroquery.skyview import SkyView import wget from astropy.coordinates import SkyCoord from astropy.coordinates import ICRS, Galactic, FK4, FK5 from astropy.coordinates import Angle, Latitud...
42.058743
367
0.684152
744a3c2901641584a586f06f42efb6266d1a48ea
540
py
Python
manage.py
anjsam1402/urlShort
f4b6b1a4e142f144aa4705388f05fed09a1777ae
[ "MIT" ]
null
null
null
manage.py
anjsam1402/urlShort
f4b6b1a4e142f144aa4705388f05fed09a1777ae
[ "MIT" ]
null
null
null
manage.py
anjsam1402/urlShort
f4b6b1a4e142f144aa4705388f05fed09a1777ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'urlShort.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are...
33.75
73
0.687037
6acd20ffdd5f3901b26c0c2f446b070962fad715
20,168
py
Python
pyandjnotebook/gz_dwnllib.py
meprosky/gz-stockdata
b63954d786e29b6941e1e76f95e76c7ca04bb268
[ "MIT" ]
null
null
null
pyandjnotebook/gz_dwnllib.py
meprosky/gz-stockdata
b63954d786e29b6941e1e76f95e76c7ca04bb268
[ "MIT" ]
null
null
null
pyandjnotebook/gz_dwnllib.py
meprosky/gz-stockdata
b63954d786e29b6941e1e76f95e76c7ca04bb268
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 #Модуль загрузки и сохранения биржевых данных from gz_import import * from gz_const import * from gz_mainlib import * dwnl_ver = '71' # In[8]: def dwnlver(): print('Download ver:', dwnl_ver) #Классы для многопоточности class Mythread(Thread): def __init__(sel...
31.660911
180
0.568227
f5cde4b0c1307718461960f59d301c6bdc11d82a
861
py
Python
src/config/schema.py
plitzenberger/graphene-auth-examples
93694f10977feb35f73ffe1f84dea631fd6d17dc
[ "MIT" ]
null
null
null
src/config/schema.py
plitzenberger/graphene-auth-examples
93694f10977feb35f73ffe1f84dea631fd6d17dc
[ "MIT" ]
null
null
null
src/config/schema.py
plitzenberger/graphene-auth-examples
93694f10977feb35f73ffe1f84dea631fd6d17dc
[ "MIT" ]
null
null
null
import graphene from apps.account.mutations import ( Activate, DeleteAccount, Login, RefreshToken, Register, ResetPassword, ResetPasswordConfirm, ) from apps.account.schema import User, Viewer class RootQuery(graphene.ObjectType): viewer = graphene.Field(Viewer) node = graphen...
23.916667
60
0.707317
b016510cb62ba9e5c1e22cba41fa04adb5b1aed2
7,738
py
Python
sdks/bkapi-client-core/bkapi_client_core/base.py
IMBlues/bkpaas-python-sdk
a87bee3d26f0ddeac124c7a4679cd3eff4abb8fc
[ "MIT" ]
17
2021-08-03T03:15:35.000Z
2022-03-18T06:10:04.000Z
sdks/bkapi-client-core/bkapi_client_core/base.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
7
2021-08-03T07:10:12.000Z
2022-03-23T04:47:22.000Z
sdks/bkapi-client-core/bkapi_client_core/base.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
9
2021-08-03T03:20:36.000Z
2022-03-08T13:47:50.000Z
# -*- coding: utf-8 -*- """ * TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-蓝鲸 PaaS 平台(BlueKing-PaaS) available. * Copyright (C) 2017-2021 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...
30.706349
118
0.594727
50acc9b1884b94d70284e8ba66fd47253254c585
3,782
py
Python
tests/test_xcb.py
paulie-g/tilenol
6e52c558d1c698ef8320e6ef32771af2864c1c49
[ "MIT" ]
42
2015-01-19T15:43:16.000Z
2021-09-19T15:20:58.000Z
tests/test_xcb.py
paulie-g/tilenol
6e52c558d1c698ef8320e6ef32771af2864c1c49
[ "MIT" ]
2
2015-05-30T03:15:17.000Z
2019-02-28T16:37:02.000Z
tests/test_xcb.py
tailhook/tilenol
3b71f6600d437a4e5f167315683e7f0137cd3788
[ "MIT" ]
11
2015-10-04T06:01:02.000Z
2022-03-26T18:46:46.000Z
import unittest import os from functools import wraps def xcbtest(*protos): def wrapper(fun): @wraps(fun) def wrapper(self): from tilenol.xcb import Proto, Connection from zorro import Hub err = [] hub = Hub() def real_test(): ...
32.324786
78
0.570862
71f9471672b61e9bbaaeac9416ab4057b85f70d8
3,947
py
Python
workspace/module/python-2.7/LxKit/qt/kitQtWidgets/ifShelf.py
no7hings/Lynxi
43c745198a714c2e5aca86c6d7a014adeeb9abf7
[ "MIT" ]
2
2018-03-06T03:33:55.000Z
2019-03-26T03:25:11.000Z
workspace/module/python-2.7/LxKit/qt/kitQtWidgets/ifShelf.py
no7hings/lynxi
43c745198a714c2e5aca86c6d7a014adeeb9abf7
[ "MIT" ]
null
null
null
workspace/module/python-2.7/LxKit/qt/kitQtWidgets/ifShelf.py
no7hings/lynxi
43c745198a714c2e5aca86c6d7a014adeeb9abf7
[ "MIT" ]
null
null
null
# coding:utf-8 from .. import kitQtWgtAbs # from ..kitQtWidgets import ifDevelopGroup, ifProductGroup, ifGroup # none = '' # class QtIf_ProjectShelf(kitQtWgtAbs.Abs_KitQtWgtShelf): def __init__(self, mainWindow=None): super(QtIf_ProjectShelf, self).__init__() self._initAbsKitQtWgtShelf() ...
33.449153
136
0.617938
581f60cf562e7fd3d11e6218a80d08e6bbdd2778
10,475
py
Python
pyccel/ast/datatypes.py
nandiniraja348/pyccel
d857efcb8ff327f72473daeb86903c7e9ef93a36
[ "MIT" ]
3
2017-08-31T14:11:55.000Z
2018-03-05T04:47:58.000Z
pyccel/ast/datatypes.py
nandiniraja348/pyccel
d857efcb8ff327f72473daeb86903c7e9ef93a36
[ "MIT" ]
null
null
null
pyccel/ast/datatypes.py
nandiniraja348/pyccel
d857efcb8ff327f72473daeb86903c7e9ef93a36
[ "MIT" ]
1
2018-02-13T23:46:49.000Z
2018-02-13T23:46:49.000Z
# coding: utf-8 #------------------------------------------------------------------------------------------# # This file is part of Pyccel which is released under MIT License. See the LICENSE file or # # go to https://github.com/pyccel/pyccel/blob/master/LICENSE for full license details. # #-----------------------...
27.638522
105
0.520573
38f46385882acb0062e5765a83d2de2a709046b7
30,052
py
Python
Script_for_excel_files.py
GiannisProkopiou/Python-GreeceArrivals
da4521d86987cd5f468681698e8ec90beaca4fd0
[ "MIT" ]
null
null
null
Script_for_excel_files.py
GiannisProkopiou/Python-GreeceArrivals
da4521d86987cd5f468681698e8ec90beaca4fd0
[ "MIT" ]
null
null
null
Script_for_excel_files.py
GiannisProkopiou/Python-GreeceArrivals
da4521d86987cd5f468681698e8ec90beaca4fd0
[ "MIT" ]
null
null
null
import requests def Script_for_excel_files(): excel_url_xwra_2015_a = "https://www.statistics.gr/el/statistics?p_p_id=documents_WAR_publicationsportlet_INSTANCE_VBZOni0vs5VJ&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_cacheability=cacheLevelPage&p_p_col_id=column-2&p_p_col_count=4&p_p_col_pos=2&_docume...
105.445614
569
0.869127
223c228e7a6a41cb264807c783f6305c0c9601a1
53,101
py
Python
zipline/data/data_portal.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
6
2017-12-11T06:12:00.000Z
2019-05-23T17:39:10.000Z
zipline/data/data_portal.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
null
null
null
zipline/data/data_portal.py
liudengfeng/zipline
01fdd51d83efeb3453e92b7d02c255a06eba49ac
[ "Apache-2.0" ]
1
2018-01-26T14:19:38.000Z
2018-01-26T14:19:38.000Z
# # Copyright 2016 Quantopian, 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 wr...
37.055827
90
0.571289
d581073b896ed2535c5311eb13dba35bb2789393
1,595
py
Python
app/request.py
Denzel97/News-Highlighter
dc57da17bbb2419881e586e4dd36eed7e16ec0e6
[ "MIT" ]
null
null
null
app/request.py
Denzel97/News-Highlighter
dc57da17bbb2419881e586e4dd36eed7e16ec0e6
[ "MIT" ]
null
null
null
app/request.py
Denzel97/News-Highlighter
dc57da17bbb2419881e586e4dd36eed7e16ec0e6
[ "MIT" ]
null
null
null
from app import app import urllib.request,json from .models import article Article = article.Article # Getting api key api_key = app.config['ARTICLE_API_KEY'] # Getting the article base url base_url = app.config["ARTICLES_API_BASE_URL"] def get_articles(id): ''' Function that gets the json response to our u...
29
87
0.70721
fc173b2177b9d40a78363b1d041f0b50a65b1dfa
4,943
py
Python
river/neighbors/knn_classifier.py
mfsuve/river
ed015878d1276722e1ffb8b4e914612ae4f41dcb
[ "BSD-3-Clause" ]
1
2020-12-02T04:59:12.000Z
2020-12-02T04:59:12.000Z
river/neighbors/knn_classifier.py
mfsuve/river
ed015878d1276722e1ffb8b4e914612ae4f41dcb
[ "BSD-3-Clause" ]
null
null
null
river/neighbors/knn_classifier.py
mfsuve/river
ed015878d1276722e1ffb8b4e914612ae4f41dcb
[ "BSD-3-Clause" ]
null
null
null
import typing from river import base from river.utils import dict2numpy from river.utils.math import softmax from .base_neighbors import BaseNeighbors class KNNClassifier(BaseNeighbors, base.Classifier): """k-Nearest Neighbors classifier. This non-parametric classification method keeps track of the last ...
31.685897
95
0.620878
2415b982d21f7009c279e83cf885a4a21bd046c5
35,917
py
Python
PythonAPI/examples/manual_control.py
MaxJohnsen/carla
03b2e127b3f666d69087a8b89f4a4f7d60fc576e
[ "MIT" ]
null
null
null
PythonAPI/examples/manual_control.py
MaxJohnsen/carla
03b2e127b3f666d69087a8b89f4a4f7d60fc576e
[ "MIT" ]
null
null
null
PythonAPI/examples/manual_control.py
MaxJohnsen/carla
03b2e127b3f666d69087a8b89f4a4f7d60fc576e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # Allows controlling a vehicle with a keyboard. For a simpler and more # docu...
41.618772
119
0.537378
a3d3f66b272b244f284dfcec8c2ea0a46b718434
2,329
py
Python
knn.py
jenildesai25/k_means_implementation
3d1520f211e1c26ef75741c50be13707cb8df1ed
[ "MIT" ]
1
2019-12-02T00:20:25.000Z
2019-12-02T00:20:25.000Z
knn.py
jenildesai25/k_means_implementation
3d1520f211e1c26ef75741c50be13707cb8df1ed
[ "MIT" ]
null
null
null
knn.py
jenildesai25/k_means_implementation
3d1520f211e1c26ef75741c50be13707cb8df1ed
[ "MIT" ]
null
null
null
from scipy.spatial import distance class Knn(object): @classmethod def get_nearest_neighbors(cls, training_dataset, test_data, k): try: distances = [] for training_data in training_dataset: euclidean_dist = distance.euclidean(training_data[1:], test_data[1:]) ...
32.347222
114
0.648776
fbdfdbc6eb1a8f87f49fb757b19b840d2d7d0ced
5,941
py
Python
proto/Neuron.py
cjackie/JensorFlow
6b928ba2d0c64325cbdbf46ae4ced12821260843
[ "Apache-2.0" ]
null
null
null
proto/Neuron.py
cjackie/JensorFlow
6b928ba2d0c64325cbdbf46ae4ced12821260843
[ "Apache-2.0" ]
null
null
null
proto/Neuron.py
cjackie/JensorFlow
6b928ba2d0c64325cbdbf46ae4ced12821260843
[ "Apache-2.0" ]
null
null
null
class NeuroBase(): ''' call setup before use ''' def __init__(self): ''' @self._uid :number. unique identifer. @self._outNum :number. result after activation. @self._weights :list-like number. weights of inputs. ''' self._uid = NeuroBase._yieldUid() ...
31.601064
88
0.609157
945566b0e19316c82661ad3e9f0af126b2d94f58
14,328
py
Python
vmtp/monitor.py
schoksey/vmtp
5c2a5187c20953fd055cd7e56e72bcc342780153
[ "Apache-2.0" ]
null
null
null
vmtp/monitor.py
schoksey/vmtp
5c2a5187c20953fd055cd7e56e72bcc342780153
[ "Apache-2.0" ]
null
null
null
vmtp/monitor.py
schoksey/vmtp
5c2a5187c20953fd055cd7e56e72bcc342780153
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014 Cisco Systems, Inc. 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...
32.27027
98
0.565955
24eac5270889c811fd2091867be56963ea8904d5
172
py
Python
src/server/model/tests/test_model.py
josugoar/human-benchmark
91f2b0879523741cfbe736caadac7bb1af9e3de3
[ "MIT" ]
1
2020-05-03T20:42:16.000Z
2020-05-03T20:42:16.000Z
src/server/model/tests/test_model.py
josugoar/human-benchmark
91f2b0879523741cfbe736caadac7bb1af9e3de3
[ "MIT" ]
null
null
null
src/server/model/tests/test_model.py
josugoar/human-benchmark
91f2b0879523741cfbe736caadac7bb1af9e3de3
[ "MIT" ]
null
null
null
import unittest class TestModel(unittest.TestCase): def setUp(self): pass def test(self): pass if __name__ == '__main__': unittest.main()
11.466667
35
0.610465
2660d2aa360dca57a191ed6715a30f524a3cce48
2,547
py
Python
test/test_simple_match.py
inverse/tell-me-your-secrets
0b4e631118aa01b96a8dc50178b7ae823e37aa28
[ "MIT" ]
31
2019-11-27T09:14:55.000Z
2022-02-15T12:39:43.000Z
test/test_simple_match.py
inverse/tell-me-your-secrets
0b4e631118aa01b96a8dc50178b7ae823e37aa28
[ "MIT" ]
27
2020-06-18T13:20:42.000Z
2021-09-15T08:13:51.000Z
test/test_simple_match.py
inverse/tell-me-your-secrets
0b4e631118aa01b96a8dc50178b7ae823e37aa28
[ "MIT" ]
12
2019-12-12T08:53:29.000Z
2022-02-15T12:39:53.000Z
import unittest from unittest.mock import patch from tell_me_your_secrets.__main__ import SimpleMatch class SimpleMatchTest(unittest.TestCase): @patch('tell_me_your_secrets.__main__.find_extension') def test_match_extension_match(self, mock_find_extension): mock_find_extension.return_value = '.pem' ...
48.056604
120
0.708284
6b6cbdb93080c6e4a85b7149b37b4df5cea48070
18,879
py
Python
junction/proposals/views.py
sayanchowdhury/junction
49af450e177904c5edeced57154425b2a5e40040
[ "MIT" ]
null
null
null
junction/proposals/views.py
sayanchowdhury/junction
49af450e177904c5edeced57154425b2a5e40040
[ "MIT" ]
null
null
null
junction/proposals/views.py
sayanchowdhury/junction
49af450e177904c5edeced57154425b2a5e40040
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import collections from django.conf import settings from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse from django.http import Http40...
37.090373
88
0.699454
5b543ce1ba4a6b419af5d2f7866ffb56602ee25f
173
py
Python
plugin_georchestra/tasks.py
neogeo-technologies/collab
d205efd0a05b98c8c1781a777c0512b042580b73
[ "Apache-2.0" ]
3
2019-09-10T09:03:02.000Z
2019-10-24T08:23:21.000Z
plugin_georchestra/tasks.py
neogeo-technologies/geocontrib
868bbcdbb575cf8ff0ab2bb6782e64fd1ac0ee6f
[ "Apache-2.0" ]
14
2020-01-27T09:49:33.000Z
2021-06-14T08:04:10.000Z
plugin_georchestra/tasks.py
neogeo-technologies/geocontrib
868bbcdbb575cf8ff0ab2bb6782e64fd1ac0ee6f
[ "Apache-2.0" ]
9
2020-01-16T12:37:39.000Z
2021-04-22T09:57:59.000Z
from celery import shared_task from django.core.management import call_command @shared_task() def task_georchestra_user_sync(): call_command('georchestra_user_sync')
19.222222
47
0.820809
a103ff830542fd2fa039ba29f7f50267100497b1
2,783
py
Python
handset/jobs/tests/popup.py
yiu31802/ave
e46fc357f9464d5beaf42568a74bb95e6b1b8037
[ "BSD-3-Clause" ]
17
2016-11-16T08:09:49.000Z
2021-08-12T06:38:09.000Z
handset/jobs/tests/popup.py
yiu31802/ave
e46fc357f9464d5beaf42568a74bb95e6b1b8037
[ "BSD-3-Clause" ]
null
null
null
handset/jobs/tests/popup.py
yiu31802/ave
e46fc357f9464d5beaf42568a74bb95e6b1b8037
[ "BSD-3-Clause" ]
12
2016-11-20T15:34:03.000Z
2020-08-04T00:26:11.000Z
# Copyright (C) 2013 Sony Mobile Communications AB. # All rights, including trade secret rights, reserved. import time from time import sleep from decorators import smoke RESET_TIMEOUT = 240 REBOOT_TIMEOUT = 120 def is_package_enabled(handset, package): dump = handset.shell('pm list package -e') if package ...
27.554455
81
0.619475
67829690675eb2a595ab0ff52e7e4066b8f537d1
817
py
Python
setup.py
enmanuelmag/notify_function
36028f6868673518432e339b19de2512feb01536
[ "MIT" ]
2
2021-08-07T01:02:57.000Z
2021-08-07T01:05:42.000Z
setup.py
enmanuelmag/notify_function
36028f6868673518432e339b19de2512feb01536
[ "MIT" ]
null
null
null
setup.py
enmanuelmag/notify_function
36028f6868673518432e339b19de2512feb01536
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="notify_function", version="1.4.0", author="Enmanuel Magallanes Pinargote", author_email="enmanuelmag@cardor.dev", description="Notify you when a function finished with option to send a ema...
30.259259
112
0.669523
f81e2b80fb1ff2cc96735392db9dcea19b965bcc
1,221
py
Python
api/web.py
unbalancedparentheses/indielangs
48d193a67062839af982589d18dd68778fb0ca3b
[ "MIT" ]
4
2015-11-20T01:33:54.000Z
2016-10-11T14:57:52.000Z
api/web.py
unbalancedparentheses/indielangs
48d193a67062839af982589d18dd68778fb0ca3b
[ "MIT" ]
14
2015-07-13T05:40:23.000Z
2015-07-20T05:12:56.000Z
api/web.py
unbalancedparentheses/indielangs
48d193a67062839af982589d18dd68778fb0ca3b
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Webserver for indie lanugages""" import os import json import time import rethinkdb as r from flask import Response, Flask DB_HOST = os.getenv('DB', 'localhost') DB = r.connect(DB_HOST) app = Flask(__name__) @app.route("/") def index(): """Returns the list of languages available in gi...
23.037736
61
0.587224
291d1b22859c585a4b9c0dd310598b968a156a2c
1,669
py
Python
assignment_2/student.py
slchangtw/Advanced_Programming_in_Python_Jacobs
46df6a77e23d92fc97c15b6112a3f428b2bbcb42
[ "MIT" ]
null
null
null
assignment_2/student.py
slchangtw/Advanced_Programming_in_Python_Jacobs
46df6a77e23d92fc97c15b6112a3f428b2bbcb42
[ "MIT" ]
null
null
null
assignment_2/student.py
slchangtw/Advanced_Programming_in_Python_Jacobs
46df6a77e23d92fc97c15b6112a3f428b2bbcb42
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # JTSK-350112 # student.py # Shun-Lung Chang # sh.chang@jacobs-university.de class Student(object): """Represents a student.""" def __init__(self, name, number): """All scores are initially 0.""" self._name = name self._scores = [] ...
24.910448
63
0.579988
dc5bd38327f2de650004d53c903648bc564aa7fa
545
py
Python
manage.py
loitd/djangostarter
9606e7464344352da8aa243d4dbd82d88a03db85
[ "MIT" ]
null
null
null
manage.py
loitd/djangostarter
9606e7464344352da8aa243d4dbd82d88a03db85
[ "MIT" ]
null
null
null
manage.py
loitd/djangostarter
9606e7464344352da8aa243d4dbd82d88a03db85
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangostarter.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django...
34.0625
77
0.689908
aa9deda936c9de352b9a0ef53f3c2d3c913b51e1
794
py
Python
examples/main.py
strukovsv/PyHAML
75d7774f30809f755dad2867e9ab55cea3019046
[ "BSD-3-Clause" ]
21
2015-01-27T13:32:46.000Z
2022-03-12T21:45:12.000Z
examples/main.py
strukovsv/PyHAML
75d7774f30809f755dad2867e9ab55cea3019046
[ "BSD-3-Clause" ]
2
2017-05-23T11:30:01.000Z
2019-07-29T01:21:27.000Z
examples/main.py
strukovsv/PyHAML
75d7774f30809f755dad2867e9ab55cea3019046
[ "BSD-3-Clause" ]
8
2015-07-13T17:46:24.000Z
2021-12-08T18:13:22.000Z
from __future__ import print_function from mako.template import Template import haml import haml.codegen source = ''' -! def upper(x): return x.upper() - value = 'hello' %p ${upper(value)} :less body { margin: 0; } p { color: #fff; } ''' print('===== SOURCE ====...
14.178571
90
0.583123
181b59574bb1ef335e34417c1277c09452a4c306
654
py
Python
sleekxmpp/plugins/xep_0279/stanza.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
499
2015-01-04T21:45:16.000Z
2022-02-14T13:04:08.000Z
sleekxmpp/plugins/xep_0279/stanza.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
159
2015-01-02T19:09:47.000Z
2020-02-12T08:29:54.000Z
sleekxmpp/plugins/xep_0279/stanza.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
209
2015-01-07T16:23:16.000Z
2022-01-26T13:02:20.000Z
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.xmlstream import ElementBase class IPCheck(ElementBase): name = 'ip' namespace = 'urn:xmpp:sic:0' ...
21.096774
59
0.619266
6962671c56ed07c52a9b602382c5e78b307ae524
9,117
py
Python
tests/modelling/conftest.py
pauliacomi/adsutils
062653b38924d419d1235edf7909078ff98a163f
[ "MIT" ]
35
2018-01-24T14:59:08.000Z
2022-03-10T02:47:58.000Z
tests/modelling/conftest.py
pauliacomi/adsutils
062653b38924d419d1235edf7909078ff98a163f
[ "MIT" ]
29
2018-01-06T12:08:08.000Z
2022-03-11T20:26:53.000Z
tests/modelling/conftest.py
pauliacomi/adsutils
062653b38924d419d1235edf7909078ff98a163f
[ "MIT" ]
20
2019-06-12T19:20:29.000Z
2022-03-02T09:57:02.000Z
""" This configuration file contains data required for testing isotherm models on pre-calculated data. In this file there are: - references to sample isotherm files - pre-calculated relationships for various models Explanation of parameters: 'initial_guess' : Ihe initial guess for the model parameters ...
27.296407
79
0.423933
16ac26df335be8d1961e5ccfc80fb1b597ccfb69
139
py
Python
ch04/key.points.mutable.py
kxen42/Learn-Python-Programming-Third-Edition
851ddc5e6094fadd44f31a9ad1d3876456b04372
[ "MIT" ]
19
2021-11-05T22:54:09.000Z
2022-03-29T15:03:47.000Z
ch04/key.points.mutable.py
kxen42/Learn-Python-Programming-Third-Edition
851ddc5e6094fadd44f31a9ad1d3876456b04372
[ "MIT" ]
null
null
null
ch04/key.points.mutable.py
kxen42/Learn-Python-Programming-Third-Edition
851ddc5e6094fadd44f31a9ad1d3876456b04372
[ "MIT" ]
26
2021-11-12T17:04:50.000Z
2022-03-29T01:10:35.000Z
# key.points.mutable.py x = [1, 2, 3] def func(x): x[1] = 42 # this affects the `x` argument! func(x) print(x) # prints: [1, 42, 3]
17.375
47
0.561151
f789e5643b03b273507e86d1966e3c54418a8684
1,879
py
Python
problems/EE/auto/problem86_EE.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
5
2020-10-15T14:40:03.000Z
2021-08-20T17:45:41.000Z
problems/EE/auto/problem86_EE.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
null
null
null
problems/EE/auto/problem86_EE.py
sunandita/ICAPS_Summer_School_RAE_2020
a496b62185bcfdd2c76eb7986ae99cfa85708d28
[ "BSD-3-Clause" ]
2
2020-10-15T07:06:14.000Z
2020-10-15T17:33:01.000Z
__author__ = 'patras' from domain_exploreEnv import * from timer import DURATION from state import state, rv DURATION.TIME = { 'survey': 5, 'monitor': 5, 'screen': 5, 'sample': 5, 'process': 5, 'fly': 3, 'deposit': 1, 'transferData': 1, 'take': 2, 'put': 2, 'move': 10, '...
30.306452
235
0.480043
bf55c429f2b9e5305f062655934f161057f02977
763
py
Python
restembed/core/views.py
jumasheff/embedly-via-django
b2359ebcd15172189066d7685fc2dfd0008aec30
[ "MIT" ]
null
null
null
restembed/core/views.py
jumasheff/embedly-via-django
b2359ebcd15172189066d7685fc2dfd0008aec30
[ "MIT" ]
null
null
null
restembed/core/views.py
jumasheff/embedly-via-django
b2359ebcd15172189066d7685fc2dfd0008aec30
[ "MIT" ]
null
null
null
import requests from django.shortcuts import render from django.conf import settings from .forms import SubmitEmbed from .serializer import EmbedSerializer def save_embed(request): if request.method == 'POST': form = SubmitEmbed(request.POST) if form.is_valid(): url = form.cleaned_da...
31.791667
104
0.6173
4ee3a5f6772e2b3b56e863466a4754abc9d91824
8,414
py
Python
mvn/datasets/human36m_preprocessing/generate-labels-npy-multiview.py
Samleo8/learnable-triangulation-pytorch
0d02037979da747b69b1bbb480651ba793f7de43
[ "MIT" ]
18
2020-05-13T15:36:50.000Z
2022-01-05T10:20:32.000Z
mvn/datasets/human36m_preprocessing/generate-labels-npy-multiview.py
agenthong/learnable-triangulation-pytorch
0c0dbaaf0113f25cc3601514b2e4ad17fde5634b
[ "MIT" ]
4
2020-08-02T23:44:37.000Z
2021-02-07T23:32:59.000Z
mvn/datasets/human36m_preprocessing/generate-labels-npy-multiview.py
agenthong/learnable-triangulation-pytorch
0c0dbaaf0113f25cc3601514b2e4ad17fde5634b
[ "MIT" ]
7
2020-07-24T16:38:28.000Z
2021-08-25T08:16:39.000Z
""" Generate 'labels.npy' for multiview 'human36m.py' from https://github.sec.samsung.net/RRU8-VIOLET/multi-view-net/ Usage: `python3 generate-labels-npy-multiview.py <path/to/Human3.6M-root> <path/to/una-dinosauria-data/h36m> <path/to/bboxes-Human36M-squared.npy>` """ # TODO: Modify this to fit our needs...
40.066667
151
0.615878
1bd97ce274787be9690b3212555186de79f86414
4,111
py
Python
homeassistant/components/binary_sensor/point.py
dannyqwertz/home-assistant
688bdc6532e514afbdc8efd1f574a7b5c9e8d280
[ "Apache-2.0" ]
4
2019-01-10T14:47:54.000Z
2021-04-22T02:06:27.000Z
homeassistant/components/binary_sensor/point.py
dannyqwertz/home-assistant
688bdc6532e514afbdc8efd1f574a7b5c9e8d280
[ "Apache-2.0" ]
6
2021-02-08T21:02:40.000Z
2022-03-12T00:52:16.000Z
homeassistant/components/binary_sensor/point.py
dannyqwertz/home-assistant
688bdc6532e514afbdc8efd1f574a7b5c9e8d280
[ "Apache-2.0" ]
1
2019-08-13T11:54:30.000Z
2019-08-13T11:54:30.000Z
""" Support for Minut Point. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/binary_sensor.point/ """ import logging from homeassistant.components.binary_sensor import DOMAIN, BinarySensorDevice from homeassistant.components.point import MinutPointEntit...
37.036036
77
0.68037
dc6259f89b78c14a4a92703e106bd06afa1ea23d
652
py
Python
trtools/tools/repr_tools.py
dalejung/trtools
39db1d72269f43e7ba380da5ad28d565137089ed
[ "MIT" ]
3
2015-01-13T01:03:22.000Z
2016-04-20T03:27:11.000Z
trtools/tools/repr_tools.py
dalejung/trtools
39db1d72269f43e7ba380da5ad28d565137089ed
[ "MIT" ]
null
null
null
trtools/tools/repr_tools.py
dalejung/trtools
39db1d72269f43e7ba380da5ad28d565137089ed
[ "MIT" ]
1
2019-10-16T19:13:47.000Z
2019-10-16T19:13:47.000Z
def base_repr(obj, attrs, class_name=None): if not class_name: class_name = obj.__class__.__name__ ns = {'class_name':class_name} string = "" bits = [] for attr in attrs: process_attr(obj, ns, bits, attr) #if hasattr(obj,'gen_id'): # process_attr(obj, ns, bits, 'gen_id'...
25.076923
58
0.579755
f1e60be69bcea20f6453994232b565f1c2f5798f
1,599
py
Python
palette.py
mayhem/led-strip-art
35c9e1f974b5ff5fb3334ca7e98cd1e0008a116e
[ "BSD-2-Clause" ]
null
null
null
palette.py
mayhem/led-strip-art
35c9e1f974b5ff5fb3334ca7e98cd1e0008a116e
[ "BSD-2-Clause" ]
null
null
null
palette.py
mayhem/led-strip-art
35c9e1f974b5ff5fb3334ca7e98cd1e0008a116e
[ "BSD-2-Clause" ]
null
null
null
from colorsys import hsv_to_rgb, rgb_to_hsv from random import randint, random, uniform from math import fmod def make_hsv(hue, saturation = 1.0, value = 1.0): (red, green, blue) = hsv_to_rgb(hue, saturation, value) return (int(red*255), int(green*255), int(blue*266)) def create_complementary_palette(): ...
28.052632
94
0.586617
cf0ade9f8b6938538677436128c343a0726306c5
1,505
py
Python
integreat_cms/cms/migrations/0018_alter_location_coordinates.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
21
2018-10-26T20:10:45.000Z
2020-10-22T09:41:46.000Z
integreat_cms/cms/migrations/0018_alter_location_coordinates.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
392
2018-10-25T08:34:07.000Z
2020-11-19T08:20:30.000Z
integreat_cms/cms/migrations/0018_alter_location_coordinates.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
23
2019-03-06T17:11:35.000Z
2020-10-16T04:36:41.000Z
# Generated by Django 3.2.13 on 2022-04-30 15:53 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): """ Make the coordination fields of POIs/locations optional and move validation into the POI form. Coordinates are still required if the location ...
31.354167
98
0.54485
b6fda0fdc554ae7173f5f96c0d1b514f789233c7
3,008
py
Python
converters/vamas.py
surfaceanalytics/inelasticscattering
da549dde788a55084c565bbc5f89ebf9cbae4263
[ "MIT" ]
null
null
null
converters/vamas.py
surfaceanalytics/inelasticscattering
da549dde788a55084c565bbc5f89ebf9cbae4263
[ "MIT" ]
3
2021-09-08T03:02:25.000Z
2022-03-12T01:00:06.000Z
converters/vamas.py
surfaceanalytics/inelasticscattering
da549dde788a55084c565bbc5f89ebf9cbae4263
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jul 20 11:39:22 2020 @author: Mark """ class Vamas(): def __init__(self): pass class VamasHeader(): def __init__(self): self.formatID = 'VAMAS Surface Chemical Analysis Standard Data Transfer Format 1988 May 4' self.instituteID = 'Not Spe...
31.663158
107
0.555186
6c26a72beabaa89152dec9e8abedfefe4f98211a
13,638
py
Python
disassembler/formats/pe.py
jchristman/PyDA
25a1091bfff369736e534424ddbdc426ba32a3a0
[ "BSD-3-Clause" ]
12
2015-11-24T22:43:14.000Z
2021-03-24T05:01:43.000Z
disassembler/formats/pe.py
jchristman/PyDA
25a1091bfff369736e534424ddbdc426ba32a3a0
[ "BSD-3-Clause" ]
1
2015-04-22T17:26:31.000Z
2015-04-22T17:48:38.000Z
disassembler/formats/pe.py
jchristman/PyDA
25a1091bfff369736e534424ddbdc426ba32a3a0
[ "BSD-3-Clause" ]
9
2015-03-05T17:43:47.000Z
2021-03-19T14:29:49.000Z
import capstone from capstone import * from disassembler.formats.common.program import CommonProgramDisassemblyFormat from disassembler.formats.common.section import CommonSectionFormat from disassembler.formats.common.inst import CommonInstFormat from disassembler.formats.helpers.flags import Flags from ctypes import ...
46.865979
326
0.523611
0093660076c61398f8cdbe57a694359323944859
206
py
Python
tensorflow/test1.py
issess/TIL
df801ee5faf6df7f3ca89e66ffe3d3c6183efd40
[ "MIT" ]
null
null
null
tensorflow/test1.py
issess/TIL
df801ee5faf6df7f3ca89e66ffe3d3c6183efd40
[ "MIT" ]
null
null
null
tensorflow/test1.py
issess/TIL
df801ee5faf6df7f3ca89e66ffe3d3c6183efd40
[ "MIT" ]
null
null
null
import tensorflow as tf matrix1 = tf.constant([[3., 3.]]) matrix2 = tf.constant([[2.],[2.]]) product = tf.matmul(matrix1, matrix2) sess = tf.Session() result = sess.run(product) print(result) sess.close()
20.6
37
0.679612
147dfd9f83aed072b943dfc566212d95f18944b6
1,462
py
Python
src/apps/baseline_renderer/python/setListenerPosition.py
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
17
2019-03-12T14:52:22.000Z
2021-11-09T01:16:23.000Z
src/apps/baseline_renderer/python/setListenerPosition.py
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
null
null
null
src/apps/baseline_renderer/python/setListenerPosition.py
s3a-spatialaudio/VISR
55f6289bc5058d4898106f3520e1a60644ffb3ab
[ "ISC" ]
2
2019-08-11T12:53:07.000Z
2021-06-22T10:08:08.000Z
#!/usr/bin/env python import argparse import sys import socket def translatePosition( x, y, z ): """ Translate the position into the coordinate system hard-coded into the current position decoder.""" return x, y, z parser = argparse.ArgumentParser() # The positional (mandatory) arguments: parser.add_argument...
29.24
152
0.663475
abc346af9c82c5a7f5b6008e78ac71a889100c3b
4,768
py
Python
src/flower_benchmark/common/client.py
xinchiqiu/flower
ef12441fdebaa32f34e12dd02dfa376fa2988eaf
[ "Apache-2.0" ]
null
null
null
src/flower_benchmark/common/client.py
xinchiqiu/flower
ef12441fdebaa32f34e12dd02dfa376fa2988eaf
[ "Apache-2.0" ]
null
null
null
src/flower_benchmark/common/client.py
xinchiqiu/flower
ef12441fdebaa32f34e12dd02dfa376fa2988eaf
[ "Apache-2.0" ]
1
2020-06-01T11:06:18.000Z
2020-06-01T11:06:18.000Z
# Copyright 2020 Adap GmbH. 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 ag...
34.550725
83
0.632341
6948baa306cadf144b40bc74dadf8910fe5685bd
977
py
Python
benefits/api_views.py
UKnowWhoIm/student-mail-benefits
2d28dc6103dc37c64f4d7ddbaabebb4c67fb0fcd
[ "MIT" ]
null
null
null
benefits/api_views.py
UKnowWhoIm/student-mail-benefits
2d28dc6103dc37c64f4d7ddbaabebb4c67fb0fcd
[ "MIT" ]
8
2021-01-07T14:50:01.000Z
2021-04-01T13:10:47.000Z
benefits/api_views.py
UKnowWhoIm/student-mail-benefits
2d28dc6103dc37c64f4d7ddbaabebb4c67fb0fcd
[ "MIT" ]
2
2021-01-08T13:50:35.000Z
2021-01-19T07:35:35.000Z
from rest_framework import viewsets, mixins from rest_framework.filters import SearchFilter from rest_framework.permissions import SAFE_METHODS from .permissions import IsAdminOrSafe from django_filters import rest_framework as filters from .serializers import CategorySerializer, BenefitReadSerializer, BenefitWriteSeri...
32.566667
90
0.788127
de449ba7c8b52930a5bf238e93420db177d7ef97
878
py
Python
notebook/spinner_thread.py
Lin0818/py-study-notebook
6f70ab9a7fde0d6b46cd65475293e2eef6ef20e7
[ "Apache-2.0" ]
1
2018-12-12T09:00:27.000Z
2018-12-12T09:00:27.000Z
notebook/spinner_thread.py
Lin0818/py-study-notebook
6f70ab9a7fde0d6b46cd65475293e2eef6ef20e7
[ "Apache-2.0" ]
null
null
null
notebook/spinner_thread.py
Lin0818/py-study-notebook
6f70ab9a7fde0d6b46cd65475293e2eef6ef20e7
[ "Apache-2.0" ]
null
null
null
# spinner_thread.py import threading import itertools import time import sys class Signal: go = True def spin(msg, signal): write, flush = sys.stdout.write, sys.stdout.flush for char in itertools.cycle('|/-\\'): status = char + ' ' + msg write(status) flush() write('\x08' ...
20.904762
71
0.594533
ce9afb665e83abdd3967679408106141d469d50b
19,033
py
Python
airflow/operators/python_operator.py
shuva10v/airflow
a6daeb544e815fe350a96d24ae3bb14aee4079a7
[ "Apache-2.0" ]
2
2019-05-14T07:42:56.000Z
2019-06-15T11:29:22.000Z
airflow/operators/python_operator.py
shuva10v/airflow
a6daeb544e815fe350a96d24ae3bb14aee4079a7
[ "Apache-2.0" ]
3
2019-02-14T09:27:44.000Z
2019-04-04T18:55:10.000Z
airflow/operators/python_operator.py
shuva10v/airflow
a6daeb544e815fe350a96d24ae3bb14aee4079a7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
43.854839
90
0.639416
a26205816f71f3c9df18627591f1fa8a387a3121
2,631
py
Python
Acrobot-SARSA/acrobot.py
amsks/RL-Experiements
9a911775b032e813064ad9162fa96fc75a97ebf3
[ "MIT" ]
null
null
null
Acrobot-SARSA/acrobot.py
amsks/RL-Experiements
9a911775b032e813064ad9162fa96fc75a97ebf3
[ "MIT" ]
null
null
null
Acrobot-SARSA/acrobot.py
amsks/RL-Experiements
9a911775b032e813064ad9162fa96fc75a97ebf3
[ "MIT" ]
null
null
null
''' State Space : [cos(theta1) sin(theta1) cos(theta2) sin(theta2) thetaDot1 thetaDot2 ] Action space : 0, 1, 2 Torques Rewards : -1 everywhere, 0 to goal ''' import numpy as np import gym import matplotlib.pyplot as plt import pickle theta_space = np.linspace(-1, +1, 10) theta_dot_s...
21.217742
93
0.666287
a7b086c5f40a3f9fa5b2389a80b4a903ea336b2a
4,209
py
Python
rtsf/p_applog.py
RockFeng0/Rock4Test
40eb7d720efed46054a9d86886abddd083f2300d
[ "MIT" ]
null
null
null
rtsf/p_applog.py
RockFeng0/Rock4Test
40eb7d720efed46054a9d86886abddd083f2300d
[ "MIT" ]
null
null
null
rtsf/p_applog.py
RockFeng0/Rock4Test
40eb7d720efed46054a9d86886abddd083f2300d
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' Current module: pyrunner.p_applog Rough version history: v1.0 Original version to use v2.0 define some normal functions for this module which act as Log Center ******************************************************************** @AUTHOR: Administrator-Bruce Luo(罗科峰) ...
32.129771
126
0.52459
2341f267211bf9378f8db559be355a8624be668d
10,713
py
Python
biobrary/CircleNode.py
benjaminfang/biolib
660ee48205509522e0fbbde287a4456bcd94e448
[ "MIT" ]
1
2022-03-06T11:33:17.000Z
2022-03-06T11:33:17.000Z
biobrary/CircleNode.py
benjaminfang/biolib
660ee48205509522e0fbbde287a4456bcd94e448
[ "MIT" ]
null
null
null
biobrary/CircleNode.py
benjaminfang/biolib
660ee48205509522e0fbbde287a4456bcd94e448
[ "MIT" ]
null
null
null
import ete3 class CircleNode: import sys def __init__(self, BaseInnerNode, Name=''): self.name = Name self.attr = None self.base_dist = None self.linker_dist = None #self.base_inner_node can be 'None' or a ete3 TreeNode self.base_inner_node = BaseInnerNode ...
36.192568
116
0.625035
04a6fedeaa2df9bf5cee20233de0a7f4de428f48
801
py
Python
twitter/urls.py
MinestoPix/django
f7e3ea28cdfc79bdd2ffeccbb87547dff0166224
[ "MIT" ]
null
null
null
twitter/urls.py
MinestoPix/django
f7e3ea28cdfc79bdd2ffeccbb87547dff0166224
[ "MIT" ]
null
null
null
twitter/urls.py
MinestoPix/django
f7e3ea28cdfc79bdd2ffeccbb87547dff0166224
[ "MIT" ]
null
null
null
"""twitter URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
34.826087
77
0.702871
f40f5722d9f2a3649d7b7e0234e9fbae5504ee5f
43,083
py
Python
src/cryptoadvance/specter/logic.py
kkdao/specter-desktop
2ef2d580e24a2eb0106442327e9c6f6d2c68474c
[ "MIT" ]
null
null
null
src/cryptoadvance/specter/logic.py
kkdao/specter-desktop
2ef2d580e24a2eb0106442327e9c6f6d2c68474c
[ "MIT" ]
null
null
null
src/cryptoadvance/specter/logic.py
kkdao/specter-desktop
2ef2d580e24a2eb0106442327e9c6f6d2c68474c
[ "MIT" ]
null
null
null
import base64 import copy import hashlib import json import logging import os import random import shutil from requests import ConnectionError from collections import OrderedDict from time import time from . import helpers from .descriptor import AddChecksum from .helpers import deep_update, get_xpub_fingerprint, load...
36.88613
156
0.556971
4f116617450ffb7abcdfb7c561bb8a4b8b82230f
153
py
Python
ext.py
source-live/lavla
1d87339450a853f6036ba476986a2feac62c846b
[ "MIT" ]
null
null
null
ext.py
source-live/lavla
1d87339450a853f6036ba476986a2feac62c846b
[ "MIT" ]
null
null
null
ext.py
source-live/lavla
1d87339450a853f6036ba476986a2feac62c846b
[ "MIT" ]
null
null
null
""" Changing the file extension is easy. In the root folder open up .ext. In it replace .html.lavla to whatever you want. """ __version__ = "0.01-dev"
30.6
119
0.705882
64f4d3ac6d1fb2db106bbe30bf08e8fee17c0805
9,022
py
Python
applygpy/tests/test_prediction.py
kant/applygpy
11dffe8d26d31b62b85ba306d4fee25ab8d32d23
[ "BSD-3-Clause" ]
null
null
null
applygpy/tests/test_prediction.py
kant/applygpy
11dffe8d26d31b62b85ba306d4fee25ab8d32d23
[ "BSD-3-Clause" ]
null
null
null
applygpy/tests/test_prediction.py
kant/applygpy
11dffe8d26d31b62b85ba306d4fee25ab8d32d23
[ "BSD-3-Clause" ]
1
2020-03-01T15:54:49.000Z
2020-03-01T15:54:49.000Z
''' Created on 30 Sep 2015 @author: Max Zwiessele ''' import unittest, numpy as np, GPy from applygpy.prediction import PredictionModel, PredictionModelSparse,\ ArrayPlaceholder try: import cPickle as pickle except ImportError: import pickle class Test(unittest.TestCase): def setUp(self): self...
41.962791
119
0.567613
cc307f472edda18c939d4c10a45af2a24f9f4a61
1,782
py
Python
var/spack/repos/builtin/packages/r-forecast/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/r-forecast/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/r-forecast/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RForecast(RPackage): """Forecasting Functions for Time Series and Linear Models Metho...
46.894737
94
0.700337
76f59c29794646570941e4c28ca064af03861169
7,721
py
Python
Collections-a-installer/community-general-2.4.0/plugins/modules/znode.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/znode.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
1
2022-03-12T02:25:26.000Z
2022-03-12T02:25:26.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/znode.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # Copyright 2015 WP Engine, Inc. All rights reserved. # 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 DOCUMENTATION = ''' --- module: znode short_description: Create, d...
30.638889
115
0.598886
f7437d16b396850b5a77fb665c76566ee35b86c4
1,782
py
Python
stylegan/pretrained_example.py
britt0508/ExplainedKinshipCorrect
e0e255ff9531af1436bb9a9fe07256e72a0061f7
[ "BSD-Source-Code" ]
null
null
null
stylegan/pretrained_example.py
britt0508/ExplainedKinshipCorrect
e0e255ff9531af1436bb9a9fe07256e72a0061f7
[ "BSD-Source-Code" ]
null
null
null
stylegan/pretrained_example.py
britt0508/ExplainedKinshipCorrect
e0e255ff9531af1436bb9a9fe07256e72a0061f7
[ "BSD-Source-Code" ]
null
null
null
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # This work is licensed under the Creative Commons Attribution-NonCommercial # 4.0 International License. To view a copy of this license, visit # http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to # Creative Commons, PO Box 1866, Mountain ...
36.367347
116
0.729517
fca76af2a7d013b2085ad340ec0c9feb2fcecddf
1,160
py
Python
exe/entrainment_webapp/webmic/webmic.py
adityaj2003/tomcat
0c7f75df95d90fa476e54003b5efb3a485cc61a7
[ "MIT" ]
15
2019-11-04T17:26:18.000Z
2022-03-31T17:32:57.000Z
exe/entrainment_webapp/webmic/webmic.py
adityaj2003/tomcat
0c7f75df95d90fa476e54003b5efb3a485cc61a7
[ "MIT" ]
118
2019-10-26T16:12:26.000Z
2022-03-30T22:36:49.000Z
exe/entrainment_webapp/webmic/webmic.py
adityaj2003/tomcat
0c7f75df95d90fa476e54003b5efb3a485cc61a7
[ "MIT" ]
7
2020-03-24T00:30:07.000Z
2022-02-23T17:16:08.000Z
#!/usr/bin/env python import os from configparser import ConfigParser from flask import Flask, render_template config = ConfigParser() config.read("config.ini") # We check if the WEBMIC_WS_URL environment variable is set. If so, we use # that, and otherwise we fall back to the value defined in the config.ini file. w...
25.217391
79
0.732759
16d8ff4c8a9b180c7885ffbe04d5903605779ab4
2,880
py
Python
misc.py
CanKeles5/DPNet
5b61838c7c477c008e420b673ee9542fa5e529fa
[ "MIT" ]
8
2020-05-08T15:56:23.000Z
2021-12-20T03:14:03.000Z
misc.py
CanKeles5/DPNet
5b61838c7c477c008e420b673ee9542fa5e529fa
[ "MIT" ]
null
null
null
misc.py
CanKeles5/DPNet
5b61838c7c477c008e420b673ee9542fa5e529fa
[ "MIT" ]
2
2020-09-20T03:01:26.000Z
2021-03-17T19:09:33.000Z
import numpy as np import os import pydensecrf.densecrf as dcrf class AvgMeter(object): def __init__(self): self.reset() def reset(self): self.val = 0 self.avg = 0 self.sum = 0 self.count = 0 def update(self, val, n=1): self.val = val self.sum += ...
25.945946
101
0.619097
733170f315752b6a50ed606b3d60aa8599824a69
512
py
Python
wildlifecompliance/migrations/0344_sanctionoutcome_registration_number.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
1
2020-12-07T17:12:40.000Z
2020-12-07T17:12:40.000Z
wildlifecompliance/migrations/0344_sanctionoutcome_registration_number.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
14
2020-01-08T08:08:26.000Z
2021-03-19T22:59:46.000Z
wildlifecompliance/migrations/0344_sanctionoutcome_registration_number.py
preranaandure/wildlifecompliance
bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5
[ "Apache-2.0" ]
15
2020-01-08T08:02:28.000Z
2021-11-03T06:48:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2019-12-16 01:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wildlifecompliance', '0343_sectionregulation_dotag_offence_code'), ] operations = [...
24.380952
76
0.65625
dfd5738e98150fae59988f04f6b76670cff9eeb8
13,155
py
Python
build/PureCloudPlatformClientV2/models/historical_adherence_exception_info.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
10
2019-02-22T00:27:08.000Z
2021-09-12T23:23:44.000Z
libs/PureCloudPlatformClientV2/models/historical_adherence_exception_info.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
5
2018-06-07T08:32:00.000Z
2021-07-28T17:37:26.000Z
libs/PureCloudPlatformClientV2/models/historical_adherence_exception_info.py
rocketbot-cl/genesysCloud
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
[ "MIT" ]
6
2020-04-09T17:43:07.000Z
2022-02-17T08:48:05.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
37.056338
137
0.664386
f0a5942e37e2b820127dd23d6eac6be5ac27e41d
3,284
py
Python
src/test/python/test_imsc_color_parser.py
xchange11/ttconv-1
6e67172af126fa0e90690044848f300c0173715c
[ "BSD-2-Clause" ]
66
2020-09-25T11:38:28.000Z
2022-03-23T15:15:34.000Z
src/test/python/test_imsc_color_parser.py
xchange11/ttconv-1
6e67172af126fa0e90690044848f300c0173715c
[ "BSD-2-Clause" ]
217
2020-09-22T22:45:22.000Z
2022-03-31T23:02:15.000Z
src/test/python/test_imsc_color_parser.py
xchange11/ttconv-1
6e67172af126fa0e90690044848f300c0173715c
[ "BSD-2-Clause" ]
5
2020-09-25T09:24:17.000Z
2021-08-08T20:52:26.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2020, Sandflow Consulting 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, ...
41.56962
81
0.660171
3cbf146d868bfd27c2d778d49d341a9907507711
2,327
py
Python
jaseci_serv/jaseci_serv/jac_api/api.py
Gorgeous-Patrick/jaseci
b423165fefbbc9574cd4467ee05728add7f47e5a
[ "MIT" ]
1
2021-11-11T15:17:02.000Z
2021-11-11T15:17:02.000Z
jaseci_serv/jaseci_serv/jac_api/api.py
Gorgeous-Patrick/jaseci
b423165fefbbc9574cd4467ee05728add7f47e5a
[ "MIT" ]
5
2022-02-03T17:20:16.000Z
2022-03-28T13:11:35.000Z
jaseci_serv/jaseci_serv/jac_api/api.py
Gorgeous-Patrick/jaseci
b423165fefbbc9574cd4467ee05728add7f47e5a
[ "MIT" ]
1
2022-02-22T06:13:50.000Z
2022-02-22T06:13:50.000Z
from django.urls import path from .views import AbstractJacAPIView from .views import AbstractAdminJacAPIView, AbstractPublicJacAPIView from jaseci.element.element import element from jaseci_serv.base.models import super_master from jaseci.utils.utils import copy_func from inspect import signature import uuid import js...
31.876712
85
0.626558
9b0816140cf40f94ed1ecf980a99d990c62d409b
14,495
py
Python
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
import warnings import numpy as np import pandas as pd import xgboost as xgb import scipy.stats as st from sklearn.neighbors import BallTree from xgbse._base import XGBSEBaseEstimator from xgbse.converters import convert_data_to_xgb_format, convert_y from xgbse.non_parametric import ( calculate_kaplan_vectorized,...
34.186321
135
0.635598
746651135067b2553bb3fbc9cd84af9ee41369ea
497
py
Python
main.py
AshishBhoi/DiangoProject1
bbb781bc978e5e1769dd4e4b43af1f0730f81298
[ "MIT" ]
null
null
null
main.py
AshishBhoi/DiangoProject1
bbb781bc978e5e1769dd4e4b43af1f0730f81298
[ "MIT" ]
11
2020-06-05T23:50:18.000Z
2022-03-12T00:02:25.000Z
main.py
AshishBhoi/DiangoProject1
bbb781bc978e5e1769dd4e4b43af1f0730f81298
[ "MIT" ]
null
null
null
from FirstProject.wsgi import application # App Engine by default looks for a main.py file at the root of the app # directory with a WSGI-compatible object called app. # This file imports the WSGI-compatible object of your Django app, # application from mysite/wsgi.py and renames it app so it is discoverable by # App ...
45.181818
77
0.788732
af20d682060dce3ea9270be802be770a37256828
844
py
Python
00_TrackerApp/backend/models.py
JADSN/ReactCodes
ddcf80dc9c0a218e8683b77f40b441fc2381692e
[ "MIT" ]
null
null
null
00_TrackerApp/backend/models.py
JADSN/ReactCodes
ddcf80dc9c0a218e8683b77f40b441fc2381692e
[ "MIT" ]
null
null
null
00_TrackerApp/backend/models.py
JADSN/ReactCodes
ddcf80dc9c0a218e8683b77f40b441fc2381692e
[ "MIT" ]
null
null
null
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship from datetime import date from database import Base # class UserItem(Base): # __tablename__ = "users" # id = Column(Integer, primary_key=True, # autoincrement=True, unique=True, index...
31.259259
73
0.697867
260d152a4a49df2f08d4d057ddbf87ec9e136c3d
45
py
Python
NCM/models/__init__.py
OpenXAIProject/Neural-Conversation-Models
72c2e71f0a5068733762078dfbb5f1405ea0be00
[ "MIT" ]
11
2020-11-24T00:05:50.000Z
2020-11-25T07:52:07.000Z
NCM/models/__init__.py
OpenXAIProject/Neural-Conversation-Models-Response-Evaluation
72c2e71f0a5068733762078dfbb5f1405ea0be00
[ "MIT" ]
null
null
null
NCM/models/__init__.py
OpenXAIProject/Neural-Conversation-Models-Response-Evaluation
72c2e71f0a5068733762078dfbb5f1405ea0be00
[ "MIT" ]
null
null
null
from .hred import * from .speakaddr import *
15
24
0.733333
9c000928ed427ebfff1d2ccf5345bbda6d28cfb2
787
py
Python
cmdb/migrations/0013_auto_20181228_1825.py
mauricewei/sunshine
81289cff4091ca7caee566b778503c0aecd9aefa
[ "Apache-2.0" ]
null
null
null
cmdb/migrations/0013_auto_20181228_1825.py
mauricewei/sunshine
81289cff4091ca7caee566b778503c0aecd9aefa
[ "Apache-2.0" ]
null
null
null
cmdb/migrations/0013_auto_20181228_1825.py
mauricewei/sunshine
81289cff4091ca7caee566b778503c0aecd9aefa
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.4 on 2018-12-28 18:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cmdb', '0012_auto_20181228_1817'), ] operations = [ migrations.AddField( model_name='host', name='host_type', ...
32.791667
198
0.562897
2b877f4a23128dca1d49668e6b56d4c263a75af0
5,241
py
Python
scripts/scrape_alsj_utterances.py
bfeist/Apollo_16
3bd1db9f72bad710eddd5e5588f0d615afb6dfea
[ "MIT" ]
null
null
null
scripts/scrape_alsj_utterances.py
bfeist/Apollo_16
3bd1db9f72bad710eddd5e5588f0d615afb6dfea
[ "MIT" ]
null
null
null
scripts/scrape_alsj_utterances.py
bfeist/Apollo_16
3bd1db9f72bad710eddd5e5588f0d615afb6dfea
[ "MIT" ]
null
null
null
__author__ = "Feist" import requests import re urlArray = [ "a16.landing.html", "a16.postland.html", "a16.window.html", "a16.eva1wake.html", "a16.eva1prep.html", "a16.eva1prelim.html", "a16.lrvdep.html", "a16.lrvload.html", "a16.alsepoff.html", "a16.heatflow.html", "a16.deep...
31.763636
115
0.485976
fb492b85363d99ba03b6e02f6bf4e933a0c6b1e9
3,046
py
Python
config/views.py
dark-codr/radiofunk
2f5a7c7060deb4e9bd6bafb0fd2baf108b9eec22
[ "MIT" ]
null
null
null
config/views.py
dark-codr/radiofunk
2f5a7c7060deb4e9bd6bafb0fd2baf108b9eec22
[ "MIT" ]
7
2022-02-14T05:26:11.000Z
2022-03-29T05:31:08.000Z
config/views.py
dark-codr/radiofunk
2f5a7c7060deb4e9bd6bafb0fd2baf108b9eec22
[ "MIT" ]
null
null
null
from django.http import HttpResponse import random from django.shortcuts import render from django.db.models import Q from itertools import chain from django.contrib.auth.decorators import login_required, user_passes_test from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.views...
30.158416
129
0.690742
37d0717971e3f9026f837af8d10b5c2a4a57f6a2
1,208
py
Python
dassikka/dashboard/models.py
aleksiroima/dashboard
d750bf1eac88f2719ac36b8055a5142a0e6e0a85
[ "MIT" ]
null
null
null
dassikka/dashboard/models.py
aleksiroima/dashboard
d750bf1eac88f2719ac36b8055a5142a0e6e0a85
[ "MIT" ]
null
null
null
dassikka/dashboard/models.py
aleksiroima/dashboard
d750bf1eac88f2719ac36b8055a5142a0e6e0a85
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class busscheduletable(models.Model): line = models.CharField(max_length=10) time = models.CharField(max_length=10) loadtime = models.CharField(max_length=50) class Meta: db_table = 'bus_schedule_table' class headlinetable(models.Model):...
30.974359
72
0.731788
4a8a4b80a775b365298c3227000c7f7bc9c3d9ba
214
py
Python
tests/test_input_prestress_fibres.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
tests/test_input_prestress_fibres.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
tests/test_input_prestress_fibres.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
from __future__ import absolute_import input_name = '../examples/linear_elasticity/prestress_fibres.py' output_name = 'test_prestress_fibres.vtk' from tests_basic import TestInput class Test(TestInput): pass
23.777778
64
0.817757
696c030b549f034c04436efd5f2b348ff5e92849
1,581
py
Python
example/articles/urls.py
sanoma/django-arctic
18edd63e46b31ce0492b5991d036df896bd14bc6
[ "MIT" ]
73
2016-08-15T11:37:08.000Z
2020-04-11T14:12:19.000Z
example/articles/urls.py
sanoma/django-arctic
18edd63e46b31ce0492b5991d036df896bd14bc6
[ "MIT" ]
331
2016-08-16T12:05:04.000Z
2020-04-16T18:39:46.000Z
example/articles/urls.py
sanoma/django-arctic
18edd63e46b31ce0492b5991d036df896bd14bc6
[ "MIT" ]
26
2016-08-17T12:58:30.000Z
2019-10-16T08:07:41.000Z
from django.conf.urls import url from articles.views import ( ArticleCreateView, ArticleDeleteView, ArticleListView, ArticleUpdateView, CategoryArticlesListView, CategoryCreateView, CategoryDeleteView, CategoryListView, CategoryUpdateView, TagCreateView, TagDeleteView, T...
28.232143
78
0.600886