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
3d7f5e8d8639c19a9696b7c473c369489767b548
2,869
py
Python
tensorflow/tools/docs/base_dir.py
nkgwer/tensorflow
9cfb4b13c4639f741ec6b92e24c77d294a44c2d5
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/tools/docs/base_dir.py
govl-psb/tensorflow-1
60028072a1c3b4376e145b6fea8e4ccd3324377f
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/tools/docs/base_dir.py
govl-psb/tensorflow-1
60028072a1c3b4376e145b6fea8e4ccd3324377f
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Lint as: python3 # Copyright 2018 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 ...
38.253333
120
0.709655
05f0e133c6f431bd82040d7dd69722dd46ccd0ce
5,009
py
Python
explore.py
airKlizz/passage-ordering
f63b993dfd5b7e6475e7fb8950c23c3f22951979
[ "MIT" ]
1
2021-09-06T09:44:10.000Z
2021-09-06T09:44:10.000Z
explore.py
airKlizz/passage-ordering
f63b993dfd5b7e6475e7fb8950c23c3f22951979
[ "MIT" ]
null
null
null
explore.py
airKlizz/passage-ordering
f63b993dfd5b7e6475e7fb8950c23c3f22951979
[ "MIT" ]
null
null
null
from pathlib import Path import pandas as pd import numpy as np from datasets import load_dataset DATASET_PATH = "dataset/vist_ordering.py" RESULTS_PATH = "results/vist" def pretty(csv_path): return csv_path.name.replace(".csv", "").replace(" ", "_").lower() class Explorer(object): def __init__(self, data...
37.103704
153
0.578159
c951a999cd5942f1f000221702f0ebd6ef59b5df
1,443
py
Python
pushbullet/device.py
fossabot/pushbullet.py
dc04a851bc130bbad55192a645504bfbf140978a
[ "MIT" ]
null
null
null
pushbullet/device.py
fossabot/pushbullet.py
dc04a851bc130bbad55192a645504bfbf140978a
[ "MIT" ]
null
null
null
pushbullet/device.py
fossabot/pushbullet.py
dc04a851bc130bbad55192a645504bfbf140978a
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import warnings from .helpers import use_appropriate_encoding class Device(object): def __init__(self, account, device_info): self._account = account self.device_iden = device_info.get("iden") if not device_info.get("icon", None): devi...
35.195122
107
0.634096
eca653847a45c2c69a690510f874d813abfc47e5
3,083
py
Python
20192801_05_bipartiterG_Visualisierung.py
lisakressin/Kulturelle-Muster-Lehrliteratur
ed6c92b9a453e840f3cb428e3d37c84f2795eb86
[ "MIT" ]
null
null
null
20192801_05_bipartiterG_Visualisierung.py
lisakressin/Kulturelle-Muster-Lehrliteratur
ed6c92b9a453e840f3cb428e3d37c84f2795eb86
[ "MIT" ]
null
null
null
20192801_05_bipartiterG_Visualisierung.py
lisakressin/Kulturelle-Muster-Lehrliteratur
ed6c92b9a453e840f3cb428e3d37c84f2795eb86
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 17 14:37:08 2018 @author: KressinL In diesem Skript werden Eigenschaften des bipartiten Graphen und seiner Struktur visualisiert. """ import os import pandas as pd import numpy as np import networkx as nx from networkx.algorithms import bipartite as bi from m...
40.565789
115
0.651962
bbf29fab8462393be19c2ef46f330e8a43501acd
2,939
py
Python
cmake/test/src/test_custom_target.py
SSteve/fprime
12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8
[ "Apache-2.0" ]
2
2021-09-24T23:28:33.000Z
2022-03-06T08:42:02.000Z
cmake/test/src/test_custom_target.py
SSteve/fprime
12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8
[ "Apache-2.0" ]
42
2021-06-10T23:31:10.000Z
2021-06-25T00:35:31.000Z
cmake/test/src/test_custom_target.py
SSteve/fprime
12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8
[ "Apache-2.0" ]
1
2021-02-23T17:10:44.000Z
2021-02-23T17:10:44.000Z
#### # test_basic.py: # # Basic CMake tests. # #### import os import platform import cmake # Test a normal build, with the ref executable and static libraries BUILD_DIR = os.path.join(os.path.dirname(__file__), "..", "data", "custom-make-targets") EXPECTED = [ os.path.join("awesome", "everything_is_awesome"), ...
45.921875
88
0.710786
e5445fbf735cbb7c34a73a56a71e5f1b94d6fc56
77
py
Python
hello_world.py
amey-git/PythoNetworkTest
de74a050bcb3a0265b15416bad43bf9e4367b20c
[ "Apache-2.0" ]
null
null
null
hello_world.py
amey-git/PythoNetworkTest
de74a050bcb3a0265b15416bad43bf9e4367b20c
[ "Apache-2.0" ]
null
null
null
hello_world.py
amey-git/PythoNetworkTest
de74a050bcb3a0265b15416bad43bf9e4367b20c
[ "Apache-2.0" ]
null
null
null
print "Hello World ! print "Something Else .." for i in range(10) print i
11
25
0.675325
da54cfbc94692ea03e842fe308b816252c6e090c
6,782
py
Python
test/programytest/aiml_tests/bot_tests/test_bot_aiml.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
null
null
null
test/programytest/aiml_tests/bot_tests/test_bot_aiml.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
null
null
null
test/programytest/aiml_tests/bot_tests/test_bot_aiml.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
1
2020-02-21T17:58:05.000Z
2020-02-21T17:58:05.000Z
import unittest import os from programytest.aiml_tests.client import TestClient from programy.config.sections.brain.file import BrainFileConfiguration class BasicTestClient(TestClient): def __init__(self): TestClient.__init__(self) def load_configuration(self, arguments): super(BasicTestClien...
42.3875
105
0.699794
f633b45cc48532d8d2ab2ab19013ebc3e44c2073
570
py
Python
toolkit/core/message.py
RVitalicS/DonorKit
e10d376089b8d037f4820616d25aac89642d23da
[ "Apache-2.0" ]
4
2022-02-14T19:40:01.000Z
2022-03-19T14:14:01.000Z
toolkit/core/message.py
RVitalicS/Maya-to-USD
e10d376089b8d037f4820616d25aac89642d23da
[ "Apache-2.0" ]
null
null
null
toolkit/core/message.py
RVitalicS/Maya-to-USD
e10d376089b8d037f4820616d25aac89642d23da
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os def defaultDefinition (name, module, mode=None): thisdir = os.path.dirname(module) message = "" if mode == "katana": message += "[INFO actions.{}]: " message += 'function is not defined in directory: "{}"' elif mode == "maya": message +...
20.357143
63
0.559649
4e2798b3befd692d2fe01e880fb99c3d79aaf29e
685
py
Python
app/core/migrations/0002_tag.py
sorwarduet/recipe-app-api
ab13680369a693e5bf9d864328384f5781722cc2
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
sorwarduet/recipe-app-api
ab13680369a693e5bf9d864328384f5781722cc2
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
sorwarduet/recipe-app-api
ab13680369a693e5bf9d864328384f5781722cc2
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-06-07 08:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
28.541667
118
0.617518
67d31f34e5fbca0bdd51878b4add251e96e1a6c0
1,870
py
Python
libraries/botbuilder-dialogs/setup.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
null
null
null
libraries/botbuilder-dialogs/setup.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
null
null
null
libraries/botbuilder-dialogs/setup.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os from setuptools import setup REQUIRES = [ "regex<=2019.08.19", "recognizers-text-date-time>=1.0.2a1", "recognizers-text-number-with-unit>=1.0.2a1", "recognizers-text-number>=1.0.2a1", "recognize...
31.166667
79
0.662567
2e0c453c8b657c6582489d41dc079824ff100d0e
27,661
py
Python
tests/slack_sdk/models/test_elements.py
personalcomputer/python-slack-sdk
0ed767296963fa9255005db95fef358f8acb0a30
[ "MIT" ]
492
2020-10-29T02:09:04.000Z
2022-03-31T19:28:01.000Z
tests/slack_sdk/models/test_elements.py
personalcomputer/python-slack-sdk
0ed767296963fa9255005db95fef358f8acb0a30
[ "MIT" ]
387
2020-10-27T06:36:37.000Z
2022-03-29T08:46:52.000Z
tests/slack_sdk/models/test_elements.py
personalcomputer/python-slack-sdk
0ed767296963fa9255005db95fef358f8acb0a30
[ "MIT" ]
165
2020-10-28T22:05:04.000Z
2022-03-28T08:03:00.000Z
import unittest from slack_sdk.errors import SlackObjectFormationError from slack_sdk.models.blocks import ( ButtonElement, DatePickerElement, TimePickerElement, ExternalDataSelectElement, ImageElement, LinkButtonElement, UserSelectElement, StaticSelectElement, CheckboxesElement, ...
34.662907
90
0.464698
8b12375c95c20d04dc19e77526ccade9788b7f1f
2,643
py
Python
conanfile.py
bincrafters/conan-libui
df2afe0574b081754d77b701e867cd30a0b77085
[ "MIT" ]
1
2019-01-07T21:23:09.000Z
2019-01-07T21:23:09.000Z
conanfile.py
bincrafters/conan-libui
df2afe0574b081754d77b701e867cd30a0b77085
[ "MIT" ]
null
null
null
conanfile.py
bincrafters/conan-libui
df2afe0574b081754d77b701e867cd30a0b77085
[ "MIT" ]
2
2019-05-15T05:15:06.000Z
2020-09-11T22:18:27.000Z
from conans import ConanFile, CMake, tools from conans.tools import os_info import os class libuiConan(ConanFile): name = "libui" version = "0.4.1" description = "Simple and portable GUI library in C that uses the native GUI technologies of each platform it supports." topics = ("conan", "libui", "ui",...
35.24
124
0.567159
f416d12ad255057f1e8f9e89b79bc6908c19e89b
1,027
py
Python
utest/test_format_cookie.py
leeuwe/robotframework-browser
34877baafe39048e83d63a194e31adad11d520cd
[ "Apache-2.0" ]
219
2020-06-19T07:59:45.000Z
2022-03-26T22:29:04.000Z
utest/test_format_cookie.py
leeuwe/robotframework-browser
34877baafe39048e83d63a194e31adad11d520cd
[ "Apache-2.0" ]
777
2020-06-18T10:29:32.000Z
2022-03-30T15:05:48.000Z
utest/test_format_cookie.py
leeuwe/robotframework-browser
34877baafe39048e83d63a194e31adad11d520cd
[ "Apache-2.0" ]
61
2020-06-18T11:06:29.000Z
2022-03-25T23:48:57.000Z
import sys from datetime import datetime import pytest from Browser.keywords import Cookie @pytest.fixture def cookie(): return Cookie(None) def test_one_cookie_as_string(cookie: Cookie): as_string = cookie._format_cookies_as_string( [{"name": "tidii", "value": 1111, "expires": -1}] ) asse...
25.675
64
0.652386
879689ac39ed4775480cf21cc1f4e660db86c2ff
3,646
py
Python
dataset_scripts/utils.py
contec-korong/r3det-on-mmdetection
4a78a0b3330d0fcb9c017a5c97d06a92cf85ebac
[ "Apache-2.0" ]
null
null
null
dataset_scripts/utils.py
contec-korong/r3det-on-mmdetection
4a78a0b3330d0fcb9c017a5c97d06a92cf85ebac
[ "Apache-2.0" ]
null
null
null
dataset_scripts/utils.py
contec-korong/r3det-on-mmdetection
4a78a0b3330d0fcb9c017a5c97d06a92cf85ebac
[ "Apache-2.0" ]
null
null
null
import os import math import json coco_class = {'crane':'0', 'container': '1', 'small_ship':'2', 'middle_ship':'3', 'large_ship':'4'} ship_size = {'large_ship':100, 'middle_ship':50} def ship_Division(geojsonpath: str): cnt_large = cnt_middle = cnt_small = 0 for file in os.listdir(geojsonpath): json_...
33.145455
99
0.611081
3b92a3cbcf54199c396411c75c490a193c8c637e
10,252
py
Python
retired modules/vnx_reporter.py
ghzwireless/control
81525249962f840e2d286cdd87dee0f15f20fadb
[ "MIT" ]
293
2015-01-01T12:33:12.000Z
2022-03-29T23:50:48.000Z
retired modules/vnx_reporter.py
riddhishikha15/SysAdminBoard
3e69c1fa194881c01e2424b0b313c8bb636a91b0
[ "MIT" ]
7
2015-08-05T12:55:23.000Z
2019-08-28T20:50:01.000Z
retired modules/vnx_reporter.py
riddhishikha15/SysAdminBoard
3e69c1fa194881c01e2424b0b313c8bb636a91b0
[ "MIT" ]
81
2015-01-21T03:12:26.000Z
2021-10-05T12:26:00.000Z
#!/usr/bin/env python """emc_vnx_reporter - Uses Mechanize to grab VNX perf data from a VNX Reporter web site. The VNX Reporter web site has a CSV export on the main page that includes raw data for 6 hours with samples every 5 minutes. We login to the # Requires Mechanize # pip install mechanize """ from __future...
42.016393
333
0.609345
18a17805724b1c74a8cd70ae5373003ce317050f
1,988
py
Python
src/mwparserfromhell/nodes/__init__.py
odidev/mwparserfromhell
dcf7ba4e79e8c606f6380846b4ef9b5116b3c942
[ "MIT" ]
null
null
null
src/mwparserfromhell/nodes/__init__.py
odidev/mwparserfromhell
dcf7ba4e79e8c606f6380846b4ef9b5116b3c942
[ "MIT" ]
null
null
null
src/mwparserfromhell/nodes/__init__.py
odidev/mwparserfromhell
dcf7ba4e79e8c606f6380846b4ef9b5116b3c942
[ "MIT" ]
null
null
null
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, ...
45.181818
79
0.764085
c79f8c21d782a63dd36ffa6170deee1fd2af61fd
7,605
py
Python
EBRN.py
alilajevardi/Embedded-Block-Residual-Network
f7da00e9b8a7ab491eaa90c627cf8bf2c0aaa648
[ "MIT" ]
12
2020-06-27T07:23:07.000Z
2021-11-22T07:37:59.000Z
EBRN.py
alilajevardi/Embedded-Block-Residual-Network
f7da00e9b8a7ab491eaa90c627cf8bf2c0aaa648
[ "MIT" ]
3
2020-06-27T05:30:19.000Z
2021-05-07T07:12:16.000Z
EBRN.py
alilajevardi/Embedded-Block-Residual-Network
f7da00e9b8a7ab491eaa90c627cf8bf2c0aaa648
[ "MIT" ]
3
2020-09-30T17:31:28.000Z
2021-04-27T02:56:29.000Z
from tensorflow.keras.layers import PReLU, Subtract, Add, Concatenate from tensorflow.keras.layers import Input, Conv2D, Conv2DTranspose, Lambda from tensorflow.keras.models import Model from tensorflow.keras.optimizers import Adam, schedules from tensorflow.keras.losses import mean_squared_error, mean_absolute_error ...
44.215116
111
0.571335
295a03d9c9e61479b62ddc0871e8226422e580cb
12,804
py
Python
util.py
tailintalent/causal
0648b432a396e5bfe3a7c340963731c826a216c6
[ "MIT" ]
17
2020-01-10T18:20:52.000Z
2022-01-20T03:00:48.000Z
util.py
tailintalent/causal
0648b432a396e5bfe3a7c340963731c826a216c6
[ "MIT" ]
2
2021-08-09T14:29:49.000Z
2022-01-24T05:20:03.000Z
util.py
tailintalent/causal
0648b432a396e5bfe3a7c340963731c826a216c6
[ "MIT" ]
3
2020-01-21T07:33:27.000Z
2021-05-23T15:37:54.000Z
import numpy as np import matplotlib.pylab as plt import torch from copy import deepcopy def plot_matrices( matrix_list, shape = None, images_per_row = 10, scale_limit = None, figsize = (20, 8), x_axis_list = None, filename = None, title = None, subtitles = [], highlight_bad...
34.793478
128
0.505467
ac4f8a9bcb5991d76e00fba5e4bff19748c29e30
648
py
Python
user_program/old/u2p2_scan_devices.py
DaveRichmond/USB4VC
ed3c2b1e0f44186c8d43ff9dbe1e93a258819376
[ "MIT" ]
78
2022-02-07T16:48:11.000Z
2022-03-31T12:25:35.000Z
user_program/old/u2p2_scan_devices.py
DaveRichmond/USB4VC
ed3c2b1e0f44186c8d43ff9dbe1e93a258819376
[ "MIT" ]
1
2022-02-26T20:16:08.000Z
2022-02-26T20:24:04.000Z
user_program/old/u2p2_scan_devices.py
DaveRichmond/USB4VC
ed3c2b1e0f44186c8d43ff9dbe1e93a258819376
[ "MIT" ]
1
2022-02-24T03:34:15.000Z
2022-02-24T03:34:15.000Z
import os dev_path = '/proc/bus/input/devices' if 'nt' in os.name: dev_path = 'devices.txt' dev_file = open(dev_path) file_content = dev_file.readlines() dev_file.close() current_line_num = 0 max_lines = len(file_content) while current_line_num < max_lines: this_line = file_content[current_line_num] if this_li...
21.6
45
0.657407
59ee4e78037b97ac523a5525eea685fef473b5fd
2,267
py
Python
volttron/platform/agent/base_market_agent/offer.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
1
2021-04-06T21:28:38.000Z
2021-04-06T21:28:38.000Z
volttron/platform/agent/base_market_agent/offer.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
null
null
null
volttron/platform/agent/base_market_agent/offer.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2019, Battelle Memorial Institute. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www...
39.77193
79
0.751654
7fbe21f7fe0c5695ccf9c207ef6bc58b3435d1f1
8,552
py
Python
kge/graphics/animator.py
Fredkiss3/kge
389d5ab21ecb6dc1a25dd9f98245ba5938a5d253
[ "CC0-1.0" ]
4
2020-03-17T02:15:10.000Z
2021-06-29T13:34:40.000Z
kge/graphics/animator.py
Fredkiss3/kge
389d5ab21ecb6dc1a25dd9f98245ba5938a5d253
[ "CC0-1.0" ]
4
2020-05-23T05:47:30.000Z
2022-01-13T02:15:35.000Z
kge/graphics/animator.py
Fredkiss3/kge
389d5ab21ecb6dc1a25dd9f98245ba5938a5d253
[ "CC0-1.0" ]
null
null
null
from typing import Optional, Dict, Any, Tuple, Set, Callable, Union import kge from kge.core.component import BaseComponent from kge.core.constants import ALWAYS from kge.core.events import Event, AnimChanged, Init from kge.graphics.animation import Animation from kge.utils.condition import Condition class...
33.147287
119
0.56326
13df136b853fb96c17e92504ccf459781694a138
587
py
Python
nestedtensor/__init__.py
swolchok/nestedtensor
3300e3bc42394ab4bb226cef8acc631012a72ef0
[ "BSD-3-Clause" ]
229
2019-10-23T22:05:35.000Z
2022-03-23T00:42:43.000Z
nestedtensor/__init__.py
swolchok/nestedtensor
3300e3bc42394ab4bb226cef8acc631012a72ef0
[ "BSD-3-Clause" ]
110
2019-11-07T19:58:00.000Z
2022-02-22T21:29:45.000Z
nestedtensor/__init__.py
swolchok/nestedtensor
3300e3bc42394ab4bb226cef8acc631012a72ef0
[ "BSD-3-Clause" ]
25
2019-10-28T15:01:21.000Z
2022-02-22T21:23:41.000Z
import torch from .nested.creation import as_nested_tensor from .nested.creation import nested_tensor from .nested.masking import nested_tensor_from_tensor_mask from .nested.masking import nested_tensor_from_padded_tensor from .nested.nested import NestedTensor from .nested.nested import to_nested_tensor from .neste...
25.521739
60
0.846678
c4d4a6936a8780a85257bbf35db4e0c3b9f39968
72
py
Python
BasicOperations/01_01_PyQt4/OpenDesktop.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
1
2018-07-02T13:54:49.000Z
2018-07-02T13:54:49.000Z
BasicOperations/01_01_PyQt4/OpenDesktop.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
null
null
null
BasicOperations/01_01_PyQt4/OpenDesktop.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
3
2016-05-28T15:13:02.000Z
2021-04-10T06:04:25.000Z
QtGui.QDesktopServices.openUrl(QtCore.QUrl('file:///' + strategyFolder))
72
72
0.777778
024503ecb6d01684e6f4efca5f2fa20a56501337
2,476
py
Python
main.py
MarkusAmshove/vcard-to-doist
0f6c9b08ede8d4c15f48019f6abb5957074047ac
[ "MIT" ]
null
null
null
main.py
MarkusAmshove/vcard-to-doist
0f6c9b08ede8d4c15f48019f6abb5957074047ac
[ "MIT" ]
null
null
null
main.py
MarkusAmshove/vcard-to-doist
0f6c9b08ede8d4c15f48019f6abb5957074047ac
[ "MIT" ]
null
null
null
import argparse import vobject from dateutil.parser import parse from todoist.api import TodoistAPI class Contact: def __init__(self, name, bday): self.name = name self.bday = bday def pretty_print(self): print(vars(self)) def format_date(self): return self.bday.strftime(...
30.195122
105
0.626414
6bd78b6f943092929d7fd648469f9b9bbd98a23e
26,362
py
Python
VaxDesign.py
sarisabban/VexDesign
52c8a0ee14b37bdc13d64542a02b4a125ec787d7
[ "MIT" ]
9
2019-10-21T06:03:06.000Z
2021-04-19T10:35:26.000Z
VaxDesign.py
sarisabban/VexDesign
52c8a0ee14b37bdc13d64542a02b4a125ec787d7
[ "MIT" ]
null
null
null
VaxDesign.py
sarisabban/VexDesign
52c8a0ee14b37bdc13d64542a02b4a125ec787d7
[ "MIT" ]
6
2020-03-14T16:43:17.000Z
2020-09-22T18:25:04.000Z
#!/usr/bin/ python3 ''' MIT License Copyright (c) 2017 Sari Sabban Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
39.28763
895
0.654768
645d752108bb592b0a6562acd01c200e6cb77f6b
13,915
py
Python
Code & Design/UV-Field Functions/surface_code.py
ytakzk/Gradual-Assemblies
48579e7a2d73d51b95a685fc1b757024c96011d4
[ "MIT" ]
null
null
null
Code & Design/UV-Field Functions/surface_code.py
ytakzk/Gradual-Assemblies
48579e7a2d73d51b95a685fc1b757024c96011d4
[ "MIT" ]
null
null
null
Code & Design/UV-Field Functions/surface_code.py
ytakzk/Gradual-Assemblies
48579e7a2d73d51b95a685fc1b757024c96011d4
[ "MIT" ]
null
null
null
# surface code __author__ = "Wenqian" __version__ = "2019.02.03" import Rhino.Geometry as rg import scriptcontext as sc import math as ma import rhinoscriptsyntax as rs import copy u_count v_count class BeamNet(object): """ generate beam crvs from a srf """ def __init__(self,srf,rebuild_srf,beam_sh...
41.290801
176
0.627237
7d6cdc590947c567d79b245a1da76e82971773ad
767
py
Python
changes/api/serializer/models/change.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
443
2015-01-03T16:28:39.000Z
2021-04-26T16:39:46.000Z
changes/api/serializer/models/change.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
12
2015-07-30T19:07:16.000Z
2016-11-07T23:11:21.000Z
changes/api/serializer/models/change.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
47
2015-01-09T10:04:00.000Z
2020-11-18T17:58:19.000Z
from changes.api.serializer import Crumbler, register from changes.models.change import Change from changes.utils.http import build_web_uri @register(Change) class ChangeCrumbler(Crumbler): def crumble(self, instance, attrs): result = { 'id': instance.id.hex, 'name': instance.label...
34.863636
71
0.623207
e30b1cbbf4d4d43ba971eb6341d9b4e2ddbd20b5
880
py
Python
Deep-Learning-In-Python/Module-2/weight-change-manual.py
vishwesh5/Datacamp-Courses
f074ec25e373c3d1d2edb1629c5568001aeadec1
[ "MIT" ]
null
null
null
Deep-Learning-In-Python/Module-2/weight-change-manual.py
vishwesh5/Datacamp-Courses
f074ec25e373c3d1d2edb1629c5568001aeadec1
[ "MIT" ]
null
null
null
Deep-Learning-In-Python/Module-2/weight-change-manual.py
vishwesh5/Datacamp-Courses
f074ec25e373c3d1d2edb1629c5568001aeadec1
[ "MIT" ]
null
null
null
# The data point you will make a prediction for input_data = np.array([0, 3]) # Sample weights weights_0 = {'node_0': [2, 1], 'node_1': [1, 2], 'output': [1, 1] } # The actual target value, used to calculate the error target_actual = 3 # Make prediction using original weights mo...
25.142857
81
0.677273
065d9be3370aca32997c5e405854a7bf09a2af74
936
py
Python
tests/test_pipe_decorator.py
alexpeits/straw
55bbbbf2b2bdb617ea889f27aa72ec0455166ebd
[ "BSD-3-Clause" ]
null
null
null
tests/test_pipe_decorator.py
alexpeits/straw
55bbbbf2b2bdb617ea889f27aa72ec0455166ebd
[ "BSD-3-Clause" ]
null
null
null
tests/test_pipe_decorator.py
alexpeits/straw
55bbbbf2b2bdb617ea889f27aa72ec0455166ebd
[ "BSD-3-Clause" ]
null
null
null
import unittest from straw.straw import pipe @pipe def cat(pipe_in, *args): return ' '.join(args) @pipe def upper(pipe_in): return pipe_in.upper() @pipe def join(pipe_in, delimiter='-'): return delimiter.join(pipe_in.split()) class TestPipeDecorator(unittest.TestCase): def test_one(self): ...
20.8
55
0.592949
503777aaf812376ea6e7ceb34e778f50e5490ab4
2,020
py
Python
test/functional/p2p_pos_doublespend.py
NEWBITALGO/BitalGO
f8f5e126a7c808f72ff85b32e28c09a45fe684ca
[ "MIT" ]
2
2020-02-11T16:45:37.000Z
2020-04-16T15:54:38.000Z
test/functional/p2p_pos_doublespend.py
NEWBITALGO/BitalGO
f8f5e126a7c808f72ff85b32e28c09a45fe684ca
[ "MIT" ]
1
2019-07-09T00:08:54.000Z
2019-07-09T00:08:54.000Z
test/functional/p2p_pos_doublespend.py
NEWBITALGO/BitalGO
f8f5e126a7c808f72ff85b32e28c09a45fe684ca
[ "MIT" ]
5
2019-07-26T22:59:20.000Z
2020-10-15T00:33:19.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The BitalGo Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Covers the scenario of a valid PoS block with a valid coinstake transaction where the coinstake input prev...
36.727273
206
0.683663
2abd98c5adcebf649277b941c0537d2c5e24214e
2,266
py
Python
DSA/Python/src/dsa/lib/math/nums/three_sum.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
DSA/Python/src/dsa/lib/math/nums/three_sum.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
1
2020-10-23T04:06:56.000Z
2020-10-23T04:06:56.000Z
DSA/Python/src/dsa/lib/math/nums/three_sum.py
JackieMa000/problems
c521558830a0bbf67f94109af92d7be4397d0a43
[ "BSD-3-Clause" ]
null
null
null
from typing import List # LeetCode15 class ThreeSum: def threeSum(self, nums: List[int]) -> List[List[int]]: return self.threeSum1(nums) def threeSum1(self, nums: List[int]) -> List[List[int]]: """ Rule: SortFind, Double Pointers Sort, remove duplicates loop a: ...
31.041096
85
0.419682
0f347299c44057670f20272e2e1ee0b1151fcd1d
6,247
py
Python
tests/testflows/rbac/tests/privileges/system/merges.py
mcspring/ClickHouse
08f713f177f950c2f675c2c75d1261c91066888c
[ "Apache-2.0" ]
18
2021-05-29T01:12:33.000Z
2021-11-18T12:34:48.000Z
tests/testflows/rbac/tests/privileges/system/merges.py
mcspring/ClickHouse
08f713f177f950c2f675c2c75d1261c91066888c
[ "Apache-2.0" ]
null
null
null
tests/testflows/rbac/tests/privileges/system/merges.py
mcspring/ClickHouse
08f713f177f950c2f675c2c75d1261c91066888c
[ "Apache-2.0" ]
2
2021-07-13T06:42:45.000Z
2021-07-21T13:47:22.000Z
from testflows.core import * from testflows.asserts import error from rbac.requirements import * from rbac.helper.common import * import rbac.helper.errors as errors @TestSuite def privileges_granted_directly(self, node=None): """Check that a user is able to execute `SYSTEM MERGES` commands if and only if the...
41.370861
177
0.657756
b271eb6a5d97e2bbbb8ef0b472416d253d917534
8,260
py
Python
pytket/tests/strategies.py
NewGitter2017/tket
6ff81af26280770bf2ca80bfb2140e8fa98182aa
[ "Apache-2.0" ]
null
null
null
pytket/tests/strategies.py
NewGitter2017/tket
6ff81af26280770bf2ca80bfb2140e8fa98182aa
[ "Apache-2.0" ]
null
null
null
pytket/tests/strategies.py
NewGitter2017/tket
6ff81af26280770bf2ca80bfb2140e8fa98182aa
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2021 Cambridge Quantum Computing # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.273859
87
0.667554
f46639ab28aeab5cbbcac4ec8a8d74c8a7119094
219
py
Python
intxeger/__init__.py
moreati/IntXeger
dc56eaaf2b87f839f230133b8a62eb8a08db20de
[ "MIT" ]
4
2021-03-09T02:36:18.000Z
2022-01-17T06:58:55.000Z
intxeger/__init__.py
moreati/IntXeger
dc56eaaf2b87f839f230133b8a62eb8a08db20de
[ "MIT" ]
5
2021-03-08T10:33:04.000Z
2021-10-14T17:52:43.000Z
intxeger/__init__.py
moreati/IntXeger
dc56eaaf2b87f839f230133b8a62eb8a08db20de
[ "MIT" ]
2
2021-10-07T19:09:36.000Z
2022-01-08T08:13:44.000Z
""" IntXeger is a Python library for generating strings from regular expressions. """ __author__ = "Kevin Alex Zhang" __email__ = "kevz@mit.edu" __version__ = "0.1.1" from .intxeger import build __all__ = ("build",)
18.25
77
0.721461
7eb70d16040f534391c4f89c778b1fbfae10e822
91
py
Python
vmail-manager.py
domrim/vmail-manager
6ee4a8761d31cd9f35d3bf8f6ec08c049d9563ba
[ "MIT" ]
null
null
null
vmail-manager.py
domrim/vmail-manager
6ee4a8761d31cd9f35d3bf8f6ec08c049d9563ba
[ "MIT" ]
null
null
null
vmail-manager.py
domrim/vmail-manager
6ee4a8761d31cd9f35d3bf8f6ec08c049d9563ba
[ "MIT" ]
1
2020-10-11T11:02:59.000Z
2020-10-11T11:02:59.000Z
#!/usr/bin/env python3 from vmail_manager import cli if __name__ == "__main__": cli()
15.166667
29
0.692308
7d689f4c7a4ab6430845f4c212ab50f31cc2e5cf
1,203
py
Python
compiler/datasheet/add_db.py
im-world/OpenRAM
f66aac3264598eeae31225c62b6a4af52412d407
[ "BSD-3-Clause" ]
335
2018-03-13T21:05:22.000Z
2022-03-30T07:53:25.000Z
compiler/datasheet/add_db.py
im-world/OpenRAM
f66aac3264598eeae31225c62b6a4af52412d407
[ "BSD-3-Clause" ]
87
2018-03-06T00:55:51.000Z
2022-03-30T19:38:29.000Z
compiler/datasheet/add_db.py
im-world/OpenRAM
f66aac3264598eeae31225c62b6a4af52412d407
[ "BSD-3-Clause" ]
95
2018-03-14T16:22:55.000Z
2022-03-24T00:34:37.000Z
# See LICENSE for licensing information. # # Copyright (c) 2016-2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # from pathlib import Path import glob import os i...
24.55102
79
0.688279
e1cf850d2b620e5c2e024db496b7a2a354bc65d5
6,988
py
Python
gui/QTabFPC.py
JLSirvent/bws-calibration-analysis
b2f129e31974c16d7498e105a075b43bfece92c9
[ "MIT" ]
null
null
null
gui/QTabFPC.py
JLSirvent/bws-calibration-analysis
b2f129e31974c16d7498e105a075b43bfece92c9
[ "MIT" ]
null
null
null
gui/QTabFPC.py
JLSirvent/bws-calibration-analysis
b2f129e31974c16d7498e105a075b43bfece92c9
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # Copyright (c) <2017> <Lionel Garcia> # BE-BI-PM, CERN (European Organization for Nuclear Research) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ...
32.351852
109
0.560819
5529a0a89b5b8696a931ff06ea22833d7fefdfbd
911
py
Python
functions/sorted.py
onrcayci/python3-notes
64f6708553a54a2b85641690e5e90444a0a68737
[ "MIT" ]
null
null
null
functions/sorted.py
onrcayci/python3-notes
64f6708553a54a2b85641690e5e90444a0a68737
[ "MIT" ]
null
null
null
functions/sorted.py
onrcayci/python3-notes
64f6708553a54a2b85641690e5e90444a0a68737
[ "MIT" ]
null
null
null
""" sorted Return a new sorted list from the items in iterable. """ nums = [6, 1, 8, 2] sorted(nums) # [1, 2, 6, 8] print(nums) # [6, 1, 8, 2] # for dictionaries, you have to pass in how they will be sorted. users = [ {"username": "samuel", "tweets": ["I love cake", "I love pie", "hello world!"]}, {"userna...
37.958333
121
0.621295
0dc605a646526daa32c5fdd82eb48b16fa4276a8
1,996
py
Python
regression_template.py
anatu/ML_working
e2de26ab07de0c55862de8045e48cfb904a76b5a
[ "MIT" ]
null
null
null
regression_template.py
anatu/ML_working
e2de26ab07de0c55862de8045e48cfb904a76b5a
[ "MIT" ]
null
null
null
regression_template.py
anatu/ML_working
e2de26ab07de0c55862de8045e48cfb904a76b5a
[ "MIT" ]
null
null
null
# POLYNOMIAL REGRESSION # Data Preprocessing Template # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.cross_validation import train_test_split from sklearn.linear_model import LinearRegression from sklearn.preprocessing import LabelEncoder, One...
23.761905
89
0.663828
2c32864ce865fb2a2787d7a9dece0222f1b4e52d
685
py
Python
14 - Dictionary/Ex_91.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
4
2021-04-23T18:07:58.000Z
2021-05-12T11:38:14.000Z
14 - Dictionary/Ex_91.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
14 - Dictionary/Ex_91.py
o-Ian/Practice-Python
1e4b2d0788e70006096a53a7cf038db3148ba4b7
[ "MIT" ]
null
null
null
from random import randint from operator import itemgetter cont = 1 jogadores = {'jogador1': randint(1, 6), 'jogador2': randint(1, 6), 'jogador3': randint(1, 6), 'jogador4': randint(1, 6)} for k, v in jogadores.items(): print(f'O {k} tirou {v}.') print('O ranking dos jogadores é: ') valores = sorted(jogadores.value...
38.055556
120
0.605839
b3c63a704bae00ad9343f1c3909c3eaaa4d147e5
1,186
py
Python
BazelExtensions/acknowledgement_merger.py
woshimaliang/PodToBUILD
3b0e2a069c010413d730582bf1a4aac2480fa834
[ "Apache-2.0" ]
null
null
null
BazelExtensions/acknowledgement_merger.py
woshimaliang/PodToBUILD
3b0e2a069c010413d730582bf1a4aac2480fa834
[ "Apache-2.0" ]
null
null
null
BazelExtensions/acknowledgement_merger.py
woshimaliang/PodToBUILD
3b0e2a069c010413d730582bf1a4aac2480fa834
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import plistlib if len(sys.argv) < 3: print("Usage <merge|finalize> output_file [inputs]") sys.exit(0) output = sys.argv[2] action = sys.argv[1] merged_fragments = [] seen_licenses = set() for idx, arg in enumerate(sys.argv): if idx <= 2: continue with open(...
28.926829
83
0.625632
216c0504ab2520653d05c11f7e68a9b8ea55f9d6
13,652
py
Python
metalibm-master/metalibm_core/core/ml_optimization_engine.py
JeffreySarnoff/UsingSollya
bc559b7cfe1b4ce7eb8934d41ddca2670d0e839a
[ "MIT" ]
27
2018-03-12T16:49:36.000Z
2021-12-15T06:53:55.000Z
metalibm-master/metalibm_core/core/ml_optimization_engine.py
JeffreySarnoff/UsingSollya
bc559b7cfe1b4ce7eb8934d41ddca2670d0e839a
[ "MIT" ]
57
2018-03-12T16:49:56.000Z
2021-03-04T15:25:39.000Z
metalibm-master/metalibm_core/core/ml_optimization_engine.py
JeffreySarnoff/UsingSollya
bc559b7cfe1b4ce7eb8934d41ddca2670d0e839a
[ "MIT" ]
4
2018-03-12T15:40:22.000Z
2018-11-28T14:34:54.000Z
# -*- coding: utf-8 -*- ############################################################################### # This file is part of metalibm (https://github.com/kalray/metalibm) ############################################################################### # MIT License # # Copyright (c) 2018 Kalray # # Permission is hereb...
39.005714
204
0.652432
3bd00b0944ac34b3ae67492007ee6e91fcbe210e
2,239
py
Python
BeyondChaos/sillyclowns.py
Crimdahl/BeyondChaosRandomizer
04f10fec2f017f1581f5d43f5951c457312349e3
[ "MIT" ]
6
2021-07-02T05:07:45.000Z
2022-03-02T00:26:40.000Z
BeyondChaos/sillyclowns.py
Crimdahl/BeyondChaosRandomizer
04f10fec2f017f1581f5d43f5951c457312349e3
[ "MIT" ]
19
2021-02-12T23:12:35.000Z
2022-03-24T23:36:36.000Z
BeyondChaos/sillyclowns.py
Crimdahl/BeyondChaosRandomizer
04f10fec2f017f1581f5d43f5951c457312349e3
[ "MIT" ]
23
2021-02-20T02:19:39.000Z
2022-01-14T16:28:20.000Z
from dialoguemanager import get_dialogue, set_dialogue from utils import open_mei_fallback, Substitution, utilrandom as random, PASSWORDS_TABLE, POEMS_TABLE POEM_PAGE_BREAK = "<wait 390 frames><wait 1 frame><page>" def randomize_poem(fout): poems = [] with open_mei_fallback(POEMS_TABLE, encoding='utf8') as...
29.077922
101
0.558285
e6f676a92385c52e93b2b7f231312a53be1ef755
2,107
py
Python
Python/Diversified_Portfolio.py
thefool76/hacktoberfest2021
237751e17a4fc325ded29fca013fb9f5853cd27c
[ "CC0-1.0" ]
448
2021-10-01T04:24:14.000Z
2022-03-06T14:34:20.000Z
Python/Diversified_Portfolio.py
Chanaka-Madushan-Herath/hacktoberfest2021
8473df9e058ccb6049720dd372342e0ea60f0e59
[ "CC0-1.0" ]
282
2021-10-01T04:29:06.000Z
2022-03-07T12:42:57.000Z
Python/Diversified_Portfolio.py
Chanaka-Madushan-Herath/hacktoberfest2021
8473df9e058ccb6049720dd372342e0ea60f0e59
[ "CC0-1.0" ]
1,807
2021-10-01T04:24:02.000Z
2022-03-28T04:51:25.000Z
import quandl import pandas as pd import matplotlib.pyplot as plt #Stock Price starts from 2012 and ends at 2017 stock price start_date = pd.to_datetime("2012-01-01") end_date = pd.to_datetime("2017-01-01") #Getting Apple,cisco,ibm,amazon Stock Price aapl = quandl.get("WIKI/AAPL.11",start_date=start_date,end_date=end...
43.895833
115
0.756051
08d3ba6eb8f1b454b6c6f706d26b0d2efc937719
3,574
py
Python
recipe/app/settings.py
paccy-ops/react-recipe-app
b98717dd3b66754e032a03157385917689de2e5f
[ "MIT" ]
null
null
null
recipe/app/settings.py
paccy-ops/react-recipe-app
b98717dd3b66754e032a03157385917689de2e5f
[ "MIT" ]
null
null
null
recipe/app/settings.py
paccy-ops/react-recipe-app
b98717dd3b66754e032a03157385917689de2e5f
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.2.7. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib imp...
25.528571
91
0.682708
718019f3e5945c4e4b92a41239782ff133f5aaf8
13,955
py
Python
kala.py
delanym/kala
b4e760d4def03198aacf182d279c5c97ddb04a01
[ "BSD-3-Clause" ]
null
null
null
kala.py
delanym/kala
b4e760d4def03198aacf182d279c5c97ddb04a01
[ "BSD-3-Clause" ]
null
null
null
kala.py
delanym/kala
b4e760d4def03198aacf182d279c5c97ddb04a01
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import os import wx import data class Kala(wx.App): def OnInit(self): self.frame = KalaFrame(None, title="Kala - Revised Astrology") self.SetTopWindow(self.frame) self.frame.SetWindowStyle(wx.MAXIMIZE) self.frame.Show() return ...
40.216138
133
0.607668
bf083cb71b7736203d02473137a90d7b5acff945
2,108
py
Python
blog_project/blog/views.py
AhteshamSid/Django-Blog-Application
f7bdba7632e58dd337e97a8b25a9c7b372fd5bde
[ "MIT" ]
null
null
null
blog_project/blog/views.py
AhteshamSid/Django-Blog-Application
f7bdba7632e58dd337e97a8b25a9c7b372fd5bde
[ "MIT" ]
null
null
null
blog_project/blog/views.py
AhteshamSid/Django-Blog-Application
f7bdba7632e58dd337e97a8b25a9c7b372fd5bde
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.contrib.auth.models import User from django.views.generic import ListView, DetailView, CreateView, UpdateView, DeleteView from .models import Post class PostListView...
28.106667
90
0.661765
e3403f54ccf37485bd4b55171806f9724b18cda7
8,173
py
Python
tools/hardware/killerbee_msfrelay.py
lmrosa/metasploit-framework
984ff284acdb6ad67c9ffe1849cc963499ab335e
[ "BSD-2-Clause", "BSD-3-Clause" ]
9
2019-07-12T16:50:13.000Z
2022-02-19T02:43:56.000Z
tools/hardware/killerbee_msfrelay.py
Netw0rkLan/metasploit-framework
b5700beee4b99ddd14ae656293dd48638a00a640
[ "BSD-2-Clause", "BSD-3-Clause" ]
4
2020-12-28T19:35:25.000Z
2020-12-30T11:12:24.000Z
tools/hardware/killerbee_msfrelay.py
Netw0rkLan/metasploit-framework
b5700beee4b99ddd14ae656293dd48638a00a640
[ "BSD-2-Clause", "BSD-3-Clause" ]
7
2016-01-05T18:56:09.000Z
2021-01-08T19:41:17.000Z
#!/usr/bin/env python # KillerBee Metasploit relay server import re import os import sys import cmd import time import json import base64 import socket import threading import pkg_resources # Used to get killerbee version from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer from urlparse import parse_qs,urlpa...
32.43254
115
0.56809
31f2374614883055319ff1d8b89bcc895024eb04
4,300
py
Python
src/probability_util_test.py
Strilanc/honeycomb_threshold
d71737d3b4fb8878e856f8bd66b9632cc7078159
[ "Apache-2.0" ]
5
2021-07-23T05:33:18.000Z
2022-01-27T00:59:40.000Z
src/probability_util_test.py
Strilanc/honeycomb_threshold
d71737d3b4fb8878e856f8bd66b9632cc7078159
[ "Apache-2.0" ]
1
2021-08-03T20:58:26.000Z
2021-08-08T17:13:11.000Z
src/probability_util_test.py
Strilanc/honeycomb_threshold
d71737d3b4fb8878e856f8bd66b9632cc7078159
[ "Apache-2.0" ]
1
2022-01-30T11:05:19.000Z
2022-01-30T11:05:19.000Z
import math from typing import Union import numpy as np import pytest from probability_util import binary_search, log_binomial, log_factorial, least_squares_output_range, least_squares_slope_range, \ binary_intercept, least_squares_through_point @pytest.mark.parametrize( "arg,result", { 0: 0, ...
37.068966
129
0.592791
ed7e1a91ccd846701778f70f64ba4c28cb1877b6
2,143
py
Python
pytorch_toolbelt/utils/support.py
mohitktanwr/toolkits
f3acfca5da05cd7ccdd85e8d343d75fa40fb44d9
[ "MIT" ]
1,281
2019-03-17T18:32:39.000Z
2022-03-31T03:47:22.000Z
pytorch_toolbelt/utils/support.py
mohitktanwr/toolkits
f3acfca5da05cd7ccdd85e8d343d75fa40fb44d9
[ "MIT" ]
28
2019-04-05T10:49:25.000Z
2022-03-11T10:40:28.000Z
pytorch_toolbelt/utils/support.py
mohitktanwr/toolkits
f3acfca5da05cd7ccdd85e8d343d75fa40fb44d9
[ "MIT" ]
99
2019-03-18T08:40:18.000Z
2022-03-26T10:52:57.000Z
import functools import inspect import warnings string_types = (type(b""), type("")) __all__ = ["pytorch_toolbelt_deprecated"] def pytorch_toolbelt_deprecated(reason): """ Mark function or class as deprecated. It will result in a warning being emitted when the function is used. """ if isinstance...
29.356164
110
0.575828
9d0327d207acf19ee9d7307fb0f1bbae2fad1a74
14,491
py
Python
simple_amqp/asyncio.py
rudineirk/py-simple-amqp
4f12f7ab44a04395e151d933e69ff8ce8436419b
[ "MIT" ]
null
null
null
simple_amqp/asyncio.py
rudineirk/py-simple-amqp
4f12f7ab44a04395e151d933e69ff8ce8436419b
[ "MIT" ]
1
2021-06-01T22:18:26.000Z
2021-06-01T22:18:26.000Z
simple_amqp/asyncio.py
rudineirk/py-simple-amqp
4f12f7ab44a04395e151d933e69ff8ce8436419b
[ "MIT" ]
null
null
null
import traceback from asyncio import ensure_future, get_event_loop, sleep from aio_pika import ExchangeType as PikaExchangeType from aio_pika import IncomingMessage as PikaIncomingMessage from aio_pika import Message as PikaMessage from aio_pika import connect as pika_connect from aio_pika.exchange import Exchange fro...
34.176887
78
0.594645
874e739fb61126f078616a57faddbd98e2a1e480
8,241
py
Python
sdks/python/apache_beam/options/pipeline_options_validator.py
bschell/beam
5533acff51cf6157d62a63c60eb3f074f1958df5
[ "Apache-2.0" ]
1
2018-12-03T09:37:01.000Z
2018-12-03T09:37:01.000Z
sdks/python/apache_beam/options/pipeline_options_validator.py
bschell/beam
5533acff51cf6157d62a63c60eb3f074f1958df5
[ "Apache-2.0" ]
2
2018-09-09T16:51:47.000Z
2018-09-16T15:55:50.000Z
sdks/python/apache_beam/options/pipeline_options_validator.py
bschell/beam
5533acff51cf6157d62a63c60eb3f074f1958df5
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
40.2
80
0.703313
3f391b6b3d53201cbc52775a53246a1d23c0b515
3,659
py
Python
dnacentersdk/models/validators/v2_2_2_3/jsd_dfda5beca4cc5437876bff366493ebf0.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
dnacentersdk/models/validators/v2_2_2_3/jsd_dfda5beca4cc5437876bff366493ebf0.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
dnacentersdk/models/validators/v2_2_2_3/jsd_dfda5beca4cc5437876bff366493ebf0.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center UpdateEventSubscriptions data model. Copyright (c) 2019-2021 Cisco Systems. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includ...
31.817391
83
0.510249
c160b0400c1e37fad2d7eec6c52e1af023aab265
219,087
py
Python
venv/Lib/site-packages/emoji/unicode_codes/it.py
miradouro/CursoEmVideo-Python
cc7b05a9a4aad8e6ef3b29453d83370094d75e41
[ "MIT" ]
13
2020-10-07T04:21:24.000Z
2022-01-31T20:36:55.000Z
venv/Lib/site-packages/emoji/unicode_codes/it.py
miradouro/CursoEmVideo-Python
cc7b05a9a4aad8e6ef3b29453d83370094d75e41
[ "MIT" ]
1
2021-06-25T15:29:11.000Z
2021-06-25T15:29:11.000Z
venv/Lib/site-packages/emoji/unicode_codes/it.py
miradouro/CursoEmVideo-Python
cc7b05a9a4aad8e6ef3b29453d83370094d75e41
[ "MIT" ]
1
2021-06-02T20:26:57.000Z
2021-06-02T20:26:57.000Z
# -*- coding: utf-8 -*- """Data literal storing emoji Italian names and Unicode codes.""" __all__ = ['EMOJI_UNICODE_ITALIAN', 'UNICODE_EMOJI_ITALIAN',] EMOJI_UNICODE_ITALIAN = { u':faccina_con_un_gran_sorriso:': u'\U0001F600', u':faccina_con_un_gran_sorriso_e_occhi_spalancati:': u'\U0001F603', u':faccina_con_sor...
66.069662
177
0.794511
e2f34bf334785e2fefa9d85187ec63a6a827788c
1,086
py
Python
poznaj/stories/filters.py
KlubJagiellonski/poznaj-wroclaw-backend
c1e50fb43e5f54a16bf42c70ec890a02063cd58e
[ "Apache-2.0" ]
6
2017-01-31T09:17:46.000Z
2020-05-28T09:27:21.000Z
poznaj/stories/filters.py
KlubJagiellonski/poznaj-wroclaw-backend
c1e50fb43e5f54a16bf42c70ec890a02063cd58e
[ "Apache-2.0" ]
64
2017-01-21T14:04:16.000Z
2019-06-17T12:29:07.000Z
poznaj/stories/filters.py
KlubJagiellonski/poznaj-wroclaw-backend
c1e50fb43e5f54a16bf42c70ec890a02063cd58e
[ "Apache-2.0" ]
5
2017-01-21T14:18:31.000Z
2018-06-28T16:41:16.000Z
from django.contrib.gis.geos import GEOSGeometry from rest_framework import filters from rest_framework.exceptions import ValidationError WRONG_LAT_LONG_TEXT = 'Provide float for latitude and longitude' class FirstPointFilter(filters.BaseFilterBackend): def filter_queryset(self, request, queryset, view): ...
33.9375
99
0.687845
7d60cd29a9b36480c0b919d035f1169291d1e5c7
2,471
py
Python
deeppavlov/models/preprocessors/sanitizer.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
5,893
2018-02-01T18:13:20.000Z
2022-03-31T19:22:21.000Z
deeppavlov/models/preprocessors/sanitizer.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
749
2018-01-31T11:36:02.000Z
2022-03-30T07:24:22.000Z
deeppavlov/models/preprocessors/sanitizer.py
xbodx/DeepPavlov
4b60bf162df4294b8b0db3b72786cdd699c674fa
[ "Apache-2.0" ]
1,155
2018-02-01T10:52:15.000Z
2022-03-29T02:12:15.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
38.015385
88
0.672602
82cdefea57a257341e43bea54720b6871f611aa9
1,155
py
Python
python/tests/structural/test_flyweight.py
harkhuang/designpatterns
dfd6623976410882753913498158dcb0ea70c1d2
[ "Apache-2.0" ]
null
null
null
python/tests/structural/test_flyweight.py
harkhuang/designpatterns
dfd6623976410882753913498158dcb0ea70c1d2
[ "Apache-2.0" ]
null
null
null
python/tests/structural/test_flyweight.py
harkhuang/designpatterns
dfd6623976410882753913498158dcb0ea70c1d2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from patterns.structural.flyweight import Card class TestCard(unittest.TestCase): def test_instances_shall_reference_same_object(self): c1 = Card('9', 'h') c2 = Card('9', 'h') self.assertEqual(c1, c2) self.assertEqual(id...
30.394737
68
0.608658
afcda748cc6c23e976f96da7c8cdcf5ee0fbcaa3
21,717
py
Python
python/smqtk/representation/key_value/postgres.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
82
2015-01-07T15:33:29.000Z
2021-08-11T18:34:05.000Z
python/smqtk/representation/key_value/postgres.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
230
2015-04-08T14:36:51.000Z
2022-03-14T17:55:30.000Z
python/smqtk/representation/key_value/postgres.py
joshanderson-kw/SMQTK
594e7c733fe7f4e514a1a08a7343293a883a41fc
[ "BSD-3-Clause" ]
65
2015-01-04T15:00:16.000Z
2021-11-19T18:09:11.000Z
import logging import multiprocessing import pickle from typing import Hashable, Set from smqtk.representation.key_value import KeyValueStore, NO_DEFAULT_VALUE from smqtk.utils.postgres import norm_psql_cmd_string, PsqlConnectionHelper try: import psycopg2 # type: ignore import psycopg2.extras # type: ignor...
33.985915
80
0.588341
1e7b6a7675215459ae82f91ea5178fd7cfe13741
808
py
Python
pandas/pandas2.py
changeui99/python-study
a0226ff2361d5a08ea0661d23b7af0a4feab4876
[ "MIT" ]
null
null
null
pandas/pandas2.py
changeui99/python-study
a0226ff2361d5a08ea0661d23b7af0a4feab4876
[ "MIT" ]
null
null
null
pandas/pandas2.py
changeui99/python-study
a0226ff2361d5a08ea0661d23b7af0a4feab4876
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np if __name__ == "__main__" : #Series data operation s = pd.Series([1, 2, 3, 4], ['a', 'b', 'c', 'd']) s2 = pd.Series([6, 3, 2, 1], ['d', 'c', 'b', 'e']) print(s) print(s2) print(s + s2) print(s * s2) print(s ** s2) #boolean selection s = ...
23.085714
66
0.502475
f9f51aa656665def07f8e0ffbd1dc1555e1ff00e
2,558
py
Python
flexget/plugins/sites/horriblesubs.py
davidcollom/Flexget
cd763e04afdf6da8f1673dd567a42d55d4cb3b6c
[ "MIT" ]
null
null
null
flexget/plugins/sites/horriblesubs.py
davidcollom/Flexget
cd763e04afdf6da8f1673dd567a42d55d4cb3b6c
[ "MIT" ]
null
null
null
flexget/plugins/sites/horriblesubs.py
davidcollom/Flexget
cd763e04afdf6da8f1673dd567a42d55d4cb3b6c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin import logging from flexget import plugin from flexget.entry import Entry from flexget.event import event from flexget.utils.cached_input import cached from flexget.utils....
35.041096
105
0.60907
c92df652ce6ef87d64d4639e180b26d1712e8f4b
473
py
Python
uni_ticket/migrations/0169_alter_ticketcategory_footer_text.py
biotech2021/uniTicket
8c441eac18e67a983e158326b1c4b82f00f1f1ef
[ "Apache-2.0" ]
15
2019-09-06T06:47:08.000Z
2022-01-17T06:39:54.000Z
uni_ticket/migrations/0169_alter_ticketcategory_footer_text.py
biotech2021/uniTicket
8c441eac18e67a983e158326b1c4b82f00f1f1ef
[ "Apache-2.0" ]
69
2019-09-06T12:03:19.000Z
2022-03-26T14:30:53.000Z
uni_ticket/migrations/0169_alter_ticketcategory_footer_text.py
biotech2021/uniTicket
8c441eac18e67a983e158326b1c4b82f00f1f1ef
[ "Apache-2.0" ]
13
2019-09-11T10:54:20.000Z
2021-11-23T09:09:19.000Z
# Generated by Django 3.2.7 on 2021-11-05 11:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('uni_ticket', '0168_ticketcategory_footer_text'), ] operations = [ migrations.AlterField( model_name='ticketcategory', ...
24.894737
113
0.64482
49c8e1d843cb51ae9efab3b23f861be2d0eb33e1
112
py
Python
ex_025.py
antonioravila/Exercicios-CEV-Python
aef19b7872b90b8ad40b0b1b54f7e063832181e3
[ "MIT" ]
null
null
null
ex_025.py
antonioravila/Exercicios-CEV-Python
aef19b7872b90b8ad40b0b1b54f7e063832181e3
[ "MIT" ]
null
null
null
ex_025.py
antonioravila/Exercicios-CEV-Python
aef19b7872b90b8ad40b0b1b54f7e063832181e3
[ "MIT" ]
null
null
null
nome = str(input("Insira seu nome completo: ").split()).lower() print(f'Seu nome tem Silva? {"silva" in nome}')
37.333333
63
0.669643
a85fe97daa15ecd3f9e48bd9a6e69d68e176cc02
31,436
py
Python
common/policy/policy_test_helper.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
5
2020-09-29T00:36:57.000Z
2022-02-16T06:51:32.000Z
common/policy/policy_test_helper.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
27
2019-11-02T02:18:34.000Z
2022-02-24T18:49:08.000Z
common/policy/policy_test_helper.py
atsgen/tf-test
2748fcd81491450c75dadc71849d2a1c11061029
[ "Apache-2.0" ]
20
2019-11-28T16:02:25.000Z
2022-01-06T05:56:58.000Z
from __future__ import print_function from builtins import str from builtins import range import os import copy import traceback from vnc_api.vnc_api import * from vnc_api.gen.resource_test import * from quantum_test import * from nova_test import * from policy_test import * from vn_test import * import string def co...
43.479945
164
0.505662
fe278ce42fa409a4f81d97af69b21d524c59f59d
2,809
py
Python
spyder/app/cli_options.py
HelenaNascimento/spyder
2857a6f1adb93c7a069d205dc3a4fe3bbf4f85c1
[ "MIT" ]
1
2018-10-17T22:09:50.000Z
2018-10-17T22:09:50.000Z
spyder/app/cli_options.py
HelenaNascimento/spyder
2857a6f1adb93c7a069d205dc3a4fe3bbf4f85c1
[ "MIT" ]
null
null
null
spyder/app/cli_options.py
HelenaNascimento/spyder
2857a6f1adb93c7a069d205dc3a4fe3bbf4f85c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) import argparse def get_options(argv=None): """ Convert options into commands return commands, message """ parser = argparse.ArgumentParser(usage...
51.072727
82
0.587754
98751f83e02ca52c7b9a95c339613cdf69ad5d4d
3,730
py
Python
tests/test_cards/test_actions/test_sentry.py
evanofslack/pyminion
0d0bfc6d8e84e9f33e617c7d01b6edb649166290
[ "MIT" ]
5
2021-12-17T20:34:55.000Z
2022-01-24T15:18:05.000Z
tests/test_cards/test_actions/test_sentry.py
evanofslack/pyminion
0d0bfc6d8e84e9f33e617c7d01b6edb649166290
[ "MIT" ]
31
2021-10-29T21:05:00.000Z
2022-03-22T03:27:14.000Z
tests/test_cards/test_actions/test_sentry.py
evanofslack/pyminion
0d0bfc6d8e84e9f33e617c7d01b6edb649166290
[ "MIT" ]
1
2021-12-23T18:32:47.000Z
2021-12-23T18:32:47.000Z
from pyminion.expansions.base import copper, estate, gold, sentry from pyminion.game import Game from pyminion.players import Human def test_sentry_no_reorder(human: Human, game: Game, monkeypatch): human.deck.cards = [] human.deck.add(gold) human.deck.add(copper) human.deck.add(copper) human.hand...
30.57377
77
0.660054
29facc4ca3b28bf8ccb8cd7a651b882f12055092
634
py
Python
basic_examples/getDatabases.py
flemic/ETD
ed0434c4683684243ad769a666f581944cc9433a
[ "BSD-3-Clause" ]
2
2015-12-21T13:10:32.000Z
2020-09-20T01:28:43.000Z
basic_examples/getDatabases.py
flemic/ETD
ed0434c4683684243ad769a666f581944cc9433a
[ "BSD-3-Clause" ]
null
null
null
basic_examples/getDatabases.py
flemic/ETD
ed0434c4683684243ad769a666f581944cc9433a
[ "BSD-3-Clause" ]
1
2020-09-20T01:28:54.000Z
2020-09-20T01:28:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """getDatabases.py: Get a list of databases in the ETD service.""" __author__ = "Filip Lemic" __copyright__ = "Copyright 2015, Telecommunication Networks Group (TKN), TU Berlin" __version__ = "1.0.0" __maintainer__ = "Filip Lemic" __email__ = "lemic@tkn.tu-berlin.de" __s...
26.416667
97
0.725552
d3fda723319472ae931f0b90517c5a1c99038eba
1,260
py
Python
2016/day9.py
bloy/adventofcode
3c98325666f18bfb1af08aac876156e055eed9f6
[ "MIT" ]
null
null
null
2016/day9.py
bloy/adventofcode
3c98325666f18bfb1af08aac876156e055eed9f6
[ "MIT" ]
2
2019-12-01T15:44:32.000Z
2019-12-01T15:44:32.000Z
2016/day9.py
bloy/adventofcode
3c98325666f18bfb1af08aac876156e055eed9f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pprint import re COMPRESSION_REGEX = r'\((\d+)x(\d+)\)' def solve1(data): decompressed = "" split = re.split(COMPRESSION_REGEX, data, maxsplit=1) while split[0] != data: decompressed += split[0] (run, count, data) = (int(split[1]), int(split[2]), split[3]) ...
26.25
75
0.62381
ce19af2a86064f288c1025e6942cd72c190120ab
4,240
py
Python
dffml/plugins.py
0dust/dffml
28cca0761a5d7963c4b0a952c0ae1bce7ce9b20f
[ "MIT" ]
1
2019-03-11T17:24:17.000Z
2019-03-11T17:24:17.000Z
dffml/plugins.py
Devansh252/dffml
9fe9f18553215b217f7dd9bea9d2d3b3b2b19cc6
[ "MIT" ]
24
2020-05-20T23:29:57.000Z
2021-04-14T04:18:21.000Z
dffml/plugins.py
Devansh252/dffml
9fe9f18553215b217f7dd9bea9d2d3b3b2b19cc6
[ "MIT" ]
1
2020-05-06T19:07:02.000Z
2020-05-06T19:07:02.000Z
""" This file is imported by the top level setup.py and therefore must remain as independent as possible (no relative imports) """ import os import sys import pathlib import inspect import platform import tempfile import contextlib import subprocess import importlib.util def inpath(binary): return any( li...
27.179487
79
0.610849
145609bf5a9750fa9ef6e695a02e78ce5a452bd6
1,506
py
Python
setup.py
scrapli/scrapli_asyncssh
15c260ac0cd8e111f10d1f5f4057c91df2937d7a
[ "MIT" ]
3
2020-05-23T23:44:01.000Z
2021-03-08T15:39:10.000Z
setup.py
scrapli/scrapli_asyncssh
15c260ac0cd8e111f10d1f5f4057c91df2937d7a
[ "MIT" ]
6
2020-10-31T17:12:06.000Z
2020-11-29T15:04:30.000Z
setup.py
scrapli/scrapli_asyncssh
15c260ac0cd8e111f10d1f5f4057c91df2937d7a
[ "MIT" ]
1
2020-09-28T14:49:37.000Z
2020-09-28T14:49:37.000Z
#!/usr/bin/env python """scrapli_asyncssh - asyncssh transport plugin for scrapli""" import setuptools from scrapli_asyncssh import __version__ __author__ = "Carl Montanari" with open("README.md", "r", encoding="utf-8") as f: README = f.read() with open("requirements.txt", "r") as f: INSTALL_REQUIRES = f.re...
33.466667
95
0.664011
43e966499c216a965749db2436aea609077101a1
814
py
Python
codigo/Live145/exemplo_01.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live145/exemplo_01.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live145/exemplo_01.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
from kivy.app import App from kivy.uix.button import Button from kivy.uix.label import Label from kivy.uix.boxlayout import BoxLayout from kivy.uix.textinput import TextInput def on_press(btn): btn.text = 'Apertado' def on_release(btn): btn.text = 'Solto!' class MyApp(App): def build(self): box1 ...
20.35
48
0.609337
5ac007dab3523f09b6787e883180bebbca30a367
15,848
py
Python
snakemake/conda.py
smatsumt/snakemake
6e3afca962a2485bd7310639d0c78265d0d482f5
[ "MIT" ]
1
2020-05-09T12:36:33.000Z
2020-05-09T12:36:33.000Z
snakemake/conda.py
smatsumt/snakemake
6e3afca962a2485bd7310639d0c78265d0d482f5
[ "MIT" ]
null
null
null
snakemake/conda.py
smatsumt/snakemake
6e3afca962a2485bd7310639d0c78265d0d482f5
[ "MIT" ]
null
null
null
import os import re import subprocess import tempfile from urllib.request import urlopen from urllib.parse import urlparse from urllib.error import URLError import hashlib import shutil from distutils.version import StrictVersion import json from glob import glob import tarfile import uuid from snakemake.exceptions im...
37.554502
96
0.52972
d9a72bc8926211229421f019b17162dd79e715aa
7,317
py
Python
tensorflow_addons/optimizers/lookahead.py
failure-to-thrive/addons
63c82e318e68b07eb1162d1ff247fe9f4d3194fc
[ "Apache-2.0" ]
1
2020-01-20T17:48:35.000Z
2020-01-20T17:48:35.000Z
tensorflow_addons/optimizers/lookahead.py
failure-to-thrive/addons
63c82e318e68b07eb1162d1ff247fe9f4d3194fc
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/optimizers/lookahead.py
failure-to-thrive/addons
63c82e318e68b07eb1162d1ff247fe9f4d3194fc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
39.983607
107
0.63086
f69e79550f8a36f8ee0c85eac4f7118c11f40e95
1,356
py
Python
irc/asparagus/modules/shibe.py
Xe/code
d970038329f7c4e4f0ee9dcd1b345741dd0fcc51
[ "Zlib" ]
7
2015-03-26T07:35:06.000Z
2021-12-09T00:03:33.000Z
irc/asparagus/modules/shibe.py
Xe/code
d970038329f7c4e4f0ee9dcd1b345741dd0fcc51
[ "Zlib" ]
null
null
null
irc/asparagus/modules/shibe.py
Xe/code
d970038329f7c4e4f0ee9dcd1b345741dd0fcc51
[ "Zlib" ]
1
2020-11-03T22:59:31.000Z
2020-11-03T22:59:31.000Z
from random import choice, random, randint import time COLORS = ['03','04','06','07','08','09','10','11','12','13'] #Shibe generation code borrowed from aji class pvec: def __init__(self, num): self.v = [1.0] * num self.norm() def norm(self): s = sum(self.v) self.v = [x / s fo...
23.37931
69
0.553835
210f50646369f75a5259bdd2283c7a67e0915787
2,838
py
Python
gpt.py
salil-gtm/gpt-3-use-case-analyzer
a7525191e214985fd63c578db109a5381177a18e
[ "Apache-2.0" ]
8
2021-07-16T22:03:37.000Z
2022-02-02T16:29:14.000Z
gpt.py
salil-gtm/gpt-3-use-case-analyzer
a7525191e214985fd63c578db109a5381177a18e
[ "Apache-2.0" ]
null
null
null
gpt.py
salil-gtm/gpt-3-use-case-analyzer
a7525191e214985fd63c578db109a5381177a18e
[ "Apache-2.0" ]
null
null
null
"""Creates the Example and GPT classes for a user to interface with the OpenAI API.""" import openai def set_openai_key(key): """Sets OpenAI key.""" openai.api_key = key class Example(): """Stores an input, output pair and formats it to prime the model.""" def __init__(self, inp, out): self....
34.192771
86
0.564834
ec60334df561c205bf4743cd6af1ee4ba344d7dd
7,391
py
Python
federated/objectives/base.py
alshedivat/fedpa
695c400c17672f70971599513f0e2388cd302078
[ "Apache-2.0" ]
37
2020-12-08T21:46:23.000Z
2022-03-16T17:05:19.000Z
federated/objectives/base.py
alshedivat/fedpa
695c400c17672f70971599513f0e2388cd302078
[ "Apache-2.0" ]
null
null
null
federated/objectives/base.py
alshedivat/fedpa
695c400c17672f70971599513f0e2388cd302078
[ "Apache-2.0" ]
5
2021-01-02T06:51:29.000Z
2021-12-22T13:51:35.000Z
# coding=utf-8 # Copyright 2020 Maruan Al-Shedivat. # # 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...
31.054622
80
0.611825
4e59729ea423585610ba5b9221c3afbd2f64cbbb
2,753
py
Python
tests/sentry/api/endpoints/test_team_details.py
arsh-co/sentry
7a83a7e8a13047a9471756d679e2deb596cc2ca1
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_team_details.py
arsh-co/sentry
7a83a7e8a13047a9471756d679e2deb596cc2ca1
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/endpoints/test_team_details.py
arsh-co/sentry
7a83a7e8a13047a9471756d679e2deb596cc2ca1
[ "BSD-3-Clause" ]
null
null
null
from django.core.urlresolvers import reverse from mock import patch from sentry.models import ( OrganizationMemberType, Team, TeamStatus ) from sentry.testutils import APITestCase class TeamDetailsTest(APITestCase): def test_simple(self): team = self.team # force creation self.login_as(user=...
30.932584
79
0.628769
265b92a6777968351a722920746656478f467bde
179
py
Python
Task/Special-variables/Python/special-variables.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Special-variables/Python/special-variables.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Special-variables/Python/special-variables.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
names = sorted((set(globals().keys()) | set(__builtins__.__dict__.keys())) - set('_ names i'.split())) print( '\n'.join(' '.join(names[i:i+8]) for i in range(0, len(names), 8)) )
59.666667
102
0.614525
c97cfdc16042fa42ee7a277b8691bd1e36027880
25,016
py
Python
salt/pillar/makostack.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
salt/pillar/makostack.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
salt/pillar/makostack.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Simple and flexible YAML ext_pillar which can read pillar from within pillar. .. versionadded:: 2016.3.0 This custom saltstack ``ext_pillar`` is a direct ripoff of the 'stack' ext_pillar, simply ported to use mako instead of jinja2 for templating. It supports the following features: - mu...
43.131034
100
0.514271
fa472a3a8d48cb554d26e2b9bb092fa315de9def
5,452
py
Python
mgeconvert/caffe_converter/caffe_converter.py
xpmemeda/mgeconvert
d30e28dffaa9c42cbbefd7a8c41c688f9d2a8acd
[ "Apache-2.0" ]
null
null
null
mgeconvert/caffe_converter/caffe_converter.py
xpmemeda/mgeconvert
d30e28dffaa9c42cbbefd7a8c41c688f9d2a8acd
[ "Apache-2.0" ]
null
null
null
mgeconvert/caffe_converter/caffe_converter.py
xpmemeda/mgeconvert
d30e28dffaa9c42cbbefd7a8c41c688f9d2a8acd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
35.868421
88
0.642517
89ab8dc3153da87d3f4c542fe54d365a13eae083
1,128
py
Python
src/sentry/search/base.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
src/sentry/search/base.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
src/sentry/search/base.py
faulkner/sentry
f9dd4d0d7c683632cf02810c03bd42d7051ad010
[ "BSD-3-Clause" ]
null
null
null
""" sentry.search.base ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import ANY = object() EMPTY = object() class SearchBackend(object): def __init__(self, **options): pass ...
28.2
80
0.630319
52ca733654f73287b45ba2ffb3079a8db8ac4451
23,129
py
Python
model/sketch.nyu/network.py
keremyldrr/TorchSSC
2fd21ad25af92cd9f9ad28de3c4bc897c0ae8b43
[ "MIT" ]
22
2019-12-23T05:32:51.000Z
2022-03-02T08:15:56.000Z
model/sketch.nyu/network.py
keremyldrr/TorchSSC
2fd21ad25af92cd9f9ad28de3c4bc897c0ae8b43
[ "MIT" ]
13
2019-12-23T05:33:17.000Z
2022-01-29T21:38:06.000Z
model/sketch.nyu/network.py
keremyldrr/TorchSSC
2fd21ad25af92cd9f9ad28de3c4bc897c0ae8b43
[ "MIT" ]
9
2020-08-01T02:58:40.000Z
2022-02-23T07:58:52.000Z
# encoding: utf-8 import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from functools import partial from collections import OrderedDict from config import config from resnet import get_resnet50 class SimpleRB(nn.Module): def __init__(self, in_channel, norm_layer, bn_momentum): ...
44.308429
135
0.598124
2e76148d852e70bf1e65e7dd50567c95687a94fd
16,856
py
Python
generation/fairseq/data/xdae_denoising_dataset.py
koukoulala/Unicoder
15fa30d74b700c440565079d03b34beb5b6d2bb9
[ "MIT" ]
67
2020-06-03T12:17:08.000Z
2022-03-24T08:49:52.000Z
generation/fairseq/data/xdae_denoising_dataset.py
koukoulala/Unicoder
15fa30d74b700c440565079d03b34beb5b6d2bb9
[ "MIT" ]
5
2020-06-22T13:22:47.000Z
2021-05-31T02:45:25.000Z
generation/fairseq/data/xdae_denoising_dataset.py
koukoulala/Unicoder
15fa30d74b700c440565079d03b34beb5b6d2bb9
[ "MIT" ]
14
2020-06-03T12:09:12.000Z
2021-11-10T08:23:24.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np import torch import math from . import data_utils, FairseqDataset def collate( samples, pad_idx, bos_idx, ...
35.711864
118
0.586082
23b3c2d419ba78374dcdb0edaab7bcd93f1569d4
157,760
py
Python
release/stubs/Autodesk/Revit/DB/Architecture.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
182
2017-06-27T02:26:15.000Z
2022-03-30T18:53:43.000Z
release/stubs/Autodesk/Revit/DB/Architecture.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
28
2017-06-27T13:38:23.000Z
2022-03-15T11:19:44.000Z
release/stubs/Autodesk/Revit/DB/Architecture.py
htlcnn/ironpython-stubs
780d829e2104b2789d5f4d6f32b0ec9f2930ca03
[ "MIT" ]
67
2017-06-28T09:43:59.000Z
2022-03-20T21:17:10.000Z
# encoding: utf-8 # module Autodesk.Revit.DB.Architecture calls itself Architecture # from RevitAPI, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes class BuildingPad(CeilingAndFloor, IDisposable): """ Represents a BuildingPad e...
35.451685
224
0.629437
0156623efa81f30157d0d8fe6140dfe74f495af1
5,567
py
Python
0522/tsp/M2PC.py
Kurogi-Lab/CAN2
abd029895f2ff9d1c8debdb3825b0d4b9314d136
[ "CECILL-B" ]
null
null
null
0522/tsp/M2PC.py
Kurogi-Lab/CAN2
abd029895f2ff9d1c8debdb3825b0d4b9314d136
[ "CECILL-B" ]
null
null
null
0522/tsp/M2PC.py
Kurogi-Lab/CAN2
abd029895f2ff9d1c8debdb3825b0d4b9314d136
[ "CECILL-B" ]
1
2020-12-01T00:54:18.000Z
2020-12-01T00:54:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import pandas as pd #for pandas see http://keisanbutsuriya.hateblo.jp/entry/201\ import argparse import numpy as np import math import subprocess import glob import os #from matplotlib import pylab as plt import matplotlib.pyplot as plt from numpy.lib.stride_tricks import a...
47.991379
146
0.608047
5414b667b92a535322a23f4c7c522b07fa0d2b15
9,424
py
Python
app/portal/horizon/releasenotes/source/conf.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
4
2019-06-21T06:42:07.000Z
2020-12-04T11:59:25.000Z
app/portal/horizon/releasenotes/source/conf.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
106
2019-01-18T03:06:55.000Z
2019-11-29T05:06:18.000Z
app/portal/horizon/releasenotes/source/conf.py
haoshen61/f5-adcaas-openstack
4bda29271930bf7c621f4184bda8d43b2fa96336
[ "Apache-2.0" ]
23
2019-01-10T01:49:08.000Z
2020-05-26T01:10:38.000Z
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
32.054422
79
0.708404
d5fff0e3574dcfcd4f7f0c0fdec984acf8c89083
2,971
py
Python
pytest_cpp/plugin.py
maximilianriemensberger/pytest-cpp
404de526aa6f09838746f18702866d9e020a6fe9
[ "MIT" ]
null
null
null
pytest_cpp/plugin.py
maximilianriemensberger/pytest-cpp
404de526aa6f09838746f18702866d9e020a6fe9
[ "MIT" ]
null
null
null
pytest_cpp/plugin.py
maximilianriemensberger/pytest-cpp
404de526aa6f09838746f18702866d9e020a6fe9
[ "MIT" ]
null
null
null
import os import stat import pytest from pytest_cpp.boost import BoostTestFacade from pytest_cpp.error import CppFailureRepr, CppFailureError from pytest_cpp.google import GoogleTestFacade FACADES = [GoogleTestFacade, BoostTestFacade] DEFAULT_MASKS = ('test_*', '*_test') _ARGUMENTS = 'cpp_arguments' _EMULATOR = 'cp...
31.946237
96
0.62033
2f7fa15b446d569576b9cb9ed1395c5e3d2faea2
1,382
py
Python
runoob/advanced_tutorial/employee.py
zeroonegit/python
919f8bb14ae91e37e42ff08192df24b60135596f
[ "MIT" ]
1
2017-03-30T00:43:40.000Z
2017-03-30T00:43:40.000Z
runoob/advanced_tutorial/employee.py
QuinceySun/Python
919f8bb14ae91e37e42ff08192df24b60135596f
[ "MIT" ]
null
null
null
runoob/advanced_tutorial/employee.py
QuinceySun/Python
919f8bb14ae91e37e42ff08192df24b60135596f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################ # File Name: employee.py # Author: One Zero # Mail: zeroonegit@gmail.com # Created Time: 2015-12-28 20:18:40 ############################ class Employee: """所有员工的基类""" empCount = 0 def __init__(self, name, salary): self.n...
26.075472
68
0.630246
1d2df12ea65f1ce5e1c9e6c78678cb3ea3ac2bfc
6,072
py
Python
nesasm/tests/ora_test.py
gutomaia/nesasm_py
ddd746498806dce77fba75438c7a4338ff442842
[ "BSD-3-Clause" ]
14
2015-08-02T05:36:38.000Z
2021-01-26T13:16:48.000Z
nesasm/tests/ora_test.py
gutomaia/nesasm_py
ddd746498806dce77fba75438c7a4338ff442842
[ "BSD-3-Clause" ]
9
2015-09-19T16:22:54.000Z
2017-10-18T20:15:36.000Z
nesasm/tests/ora_test.py
gutomaia/nesasm_py
ddd746498806dce77fba75438c7a4338ff442842
[ "BSD-3-Clause" ]
3
2015-10-18T15:37:19.000Z
2021-03-08T22:51:32.000Z
# -*- coding: utf-8 -*- ''' ORA, OR with Accumulator Test This is an Logical operation of the 6502 ''' import unittest from nesasm.compiler import lexical, syntax, semantic class OraTest(unittest.TestCase): def test_ora_imm(self): '''Test logical OR operation between $10 (Decimal 16) and the c...
40.751678
69
0.612813
4d757838bc48706a0259dc43279c32f14ee49fca
555
py
Python
utils.py
mask-application/maskapp_bot
768f68565b826c3f03565138e67e560775de1be7
[ "MIT" ]
3
2020-03-24T20:13:03.000Z
2020-04-06T09:24:22.000Z
utils.py
mask-application/maskapp_bot
768f68565b826c3f03565138e67e560775de1be7
[ "MIT" ]
null
null
null
utils.py
mask-application/maskapp_bot
768f68565b826c3f03565138e67e560775de1be7
[ "MIT" ]
null
null
null
import logging import sys def config_logging(log_level, file_name): root_logger = logging.getLogger() root_logger.setLevel(log_level) log_formatter = logging.Formatter(fmt='%(asctime)s_%(name)s_%(levelname)s: %(message)s') file_handler = logging.FileHandler("logs/" + file_name, encoding='utf-8') ...
32.647059
92
0.765766
1925333b96f227151a0046aba44cd817f2d04e57
227
py
Python
BackEnd/api/service/scholar_question.py
camilleAmaury/X5GON_project
8d5b61eb45a357fe1881c0523389d463724c6448
[ "Unlicense" ]
1
2021-05-02T14:24:38.000Z
2021-05-02T14:24:38.000Z
BackEnd/api/service/scholar_question.py
camilleAmaury/X5GON_project
8d5b61eb45a357fe1881c0523389d463724c6448
[ "Unlicense" ]
1
2022-02-10T00:48:47.000Z
2022-02-10T00:48:47.000Z
BackEnd/api/service/scholar_question.py
camilleAmaury/X5GON_project
8d5b61eb45a357fe1881c0523389d463724c6448
[ "Unlicense" ]
null
null
null
def build_scholar_question_schema(scholar_question): mod = {} mod['question_id'] = scholar_question.question_id mod['question'] = scholar_question.question mod['answer'] = scholar_question.answer return mod
32.428571
53
0.735683
f305b83d594ed67c0faf32e2b70648cadd0f8990
430
py
Python
setup.py
olpa/python-lxslt
8d6acdd5dd97baed9ad5ec0135c18d95b0d530d9
[ "MIT" ]
null
null
null
setup.py
olpa/python-lxslt
8d6acdd5dd97baed9ad5ec0135c18d95b0d530d9
[ "MIT" ]
null
null
null
setup.py
olpa/python-lxslt
8d6acdd5dd97baed9ad5ec0135c18d95b0d530d9
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name='lxslt', version="0.1.0", author="Oleg Parashchenko", author_email="olpa@uucode.com", description="XSLT-like transformations over python lists", url="https://github.com/olpa/python-lxslt", classifiers=[ "Topic :: Text Processing :: Markup :: ...
25.294118
62
0.630233
08f3dc61dfbf90d9d28e284a65c45e9a97894992
4,226
py
Python
tests/test_neuron.py
dimdamop/single-neuron
fa649bcd2c7cc68b46c87e63e3c5869f772fecdf
[ "MIT" ]
null
null
null
tests/test_neuron.py
dimdamop/single-neuron
fa649bcd2c7cc68b46c87e63e3c5869f772fecdf
[ "MIT" ]
2
2019-02-21T19:16:02.000Z
2019-02-21T20:12:33.000Z
tests/test_neuron.py
dimdamop/single-neuron
fa649bcd2c7cc68b46c87e63e3c5869f772fecdf
[ "MIT" ]
null
null
null
# Author: Dimitrios Damopoulos # MIT license (see LICENCE.txt in the top-level folder) import unittest import os from tempfile import mkstemp from os.path import exists import numpy as np from numpy import random import string from random import choice as std_choice from single_neuron import neuron as neuron csv...
33.015625
81
0.551585
4907e40b24429f96f3c576a4aca52798c718ca24
1,000
py
Python
authors/apps/profiles/serializers.py
andela/ah-backend-sparta
fcc394e486a736993702bfa1e6fd9e9b189b93ae
[ "BSD-3-Clause" ]
null
null
null
authors/apps/profiles/serializers.py
andela/ah-backend-sparta
fcc394e486a736993702bfa1e6fd9e9b189b93ae
[ "BSD-3-Clause" ]
11
2019-03-25T14:38:23.000Z
2019-04-18T08:02:10.000Z
authors/apps/profiles/serializers.py
andela/ah-backend-sparta
fcc394e486a736993702bfa1e6fd9e9b189b93ae
[ "BSD-3-Clause" ]
5
2019-06-12T08:22:58.000Z
2020-02-07T08:26:37.000Z
from rest_framework import serializers from .models import Profile class ProfileSerializer(serializers.ModelSerializer): followers_no = serializers.SerializerMethodField() following_no = serializers.SerializerMethodField() class Meta: model = Profile fields = ('username','firstname...
34.482759
118
0.736
9ff65436b9c0205b51fb30d00db215030e23b4f5
1,524
py
Python
locallibrary/urls.py
mrmarkhurlburt/django_media_library
59bcff3dcf8a803dbfa22eb4d073bd5e9f73cdee
[ "CC0-1.0" ]
null
null
null
locallibrary/urls.py
mrmarkhurlburt/django_media_library
59bcff3dcf8a803dbfa22eb4d073bd5e9f73cdee
[ "CC0-1.0" ]
1
2022-02-10T11:04:51.000Z
2022-02-10T11:04:51.000Z
locallibrary/urls.py
mrmarkhurlburt/django_media_library
59bcff3dcf8a803dbfa22eb4d073bd5e9f73cdee
[ "CC0-1.0" ]
null
null
null
"""locallibrary URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
33.130435
81
0.727034
77d1e4b422d603a27d36d28595013b65618c18b8
14,409
py
Python
easygl/prefabs/line.py
overdev/easygl-0.1.0-alpha1
c3ab70c272db670cbe4e79a99371d21da466d8a0
[ "MIT" ]
null
null
null
easygl/prefabs/line.py
overdev/easygl-0.1.0-alpha1
c3ab70c272db670cbe4e79a99371d21da466d8a0
[ "MIT" ]
null
null
null
easygl/prefabs/line.py
overdev/easygl-0.1.0-alpha1
c3ab70c272db670cbe4e79a99371d21da466d8a0
[ "MIT" ]
null
null
null
# !/usr/bin/python # -*- coding: utf-8 -*- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # The MIT License (MIT) # # Copyright (c) 2017 Jorge A. Gomes (jorgegomes83 at hotmail dot com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softwar...
41.051282
171
0.626692
68efa087a812dfed3eb83c9f1a7a14451740e65d
4,793
py
Python
tests/commons.py
STAMP-project/camp
e8652ddf3e2e84ffbf2b9dff3fb5ee678b209246
[ "MIT" ]
8
2018-05-28T13:14:24.000Z
2020-08-10T17:37:08.000Z
tests/commons.py
STAMP-project/camp
e8652ddf3e2e84ffbf2b9dff3fb5ee678b209246
[ "MIT" ]
95
2018-05-16T14:06:52.000Z
2022-02-26T04:25:18.000Z
tests/commons.py
STAMP-project/camp
e8652ddf3e2e84ffbf2b9dff3fb5ee678b209246
[ "MIT" ]
10
2018-06-25T16:04:11.000Z
2019-12-12T15:08:00.000Z
# # CAMP # # Copyright (C) 2017 -- 2019 SINTEF Digital # All rights reserved. # # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. # from camp.codecs.yaml import YAML from camp.commands import Command from camp.core import Camp from camp.directori...
26.480663
87
0.657
a8c55890acf018f2e4abc69a37e09a8efe900ae3
4,069
py
Python
tests/components/zha/test_fan.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
3
2020-01-21T18:09:09.000Z
2022-01-17T08:06:03.000Z
tests/components/zha/test_fan.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
tests/components/zha/test_fan.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
3
2020-03-03T18:14:10.000Z
2020-10-04T06:52:45.000Z
"""Test zha fan.""" from unittest.mock import call, patch from homeassistant.components import fan from homeassistant.const import STATE_ON, STATE_OFF, STATE_UNAVAILABLE from homeassistant.components.fan import ATTR_SPEED, DOMAIN, SERVICE_SET_SPEED from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_ON, SERVIC...
34.483051
82
0.704596
279df1b1cf8dbc659a9ef2747d70e9533f9bd403
7,124
py
Python
triangular_lattice/vicsek/vicsek_self-avoiding_fix.py
ssh0/growing-string
2e43916e91157dfb4253775149b35ec9d81ef14d
[ "MIT" ]
null
null
null
triangular_lattice/vicsek/vicsek_self-avoiding_fix.py
ssh0/growing-string
2e43916e91157dfb4253775149b35ec9d81ef14d
[ "MIT" ]
1
2016-04-14T08:15:28.000Z
2016-04-27T02:57:13.000Z
triangular_lattice/vicsek/vicsek_self-avoiding_fix.py
ssh0/growing-string
2e43916e91157dfb4253775149b35ec9d81ef14d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # written by Shotaro Fujimoto # 2016-05-30 import os import sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from triangular import LatticeTriangular as LT import matplotlib.pyplot as plt import matplotlib.tri as tri import matplotlib.ani...
34.582524
97
0.520634
2e418b80a3d353e99412c23a6afff696283b356b
2,565
py
Python
main.py
LG95/Classifcation-tree-based-
1ec905ee58ead38543f30a31034a2cd5b79a171d
[ "MIT" ]
null
null
null
main.py
LG95/Classifcation-tree-based-
1ec905ee58ead38543f30a31034a2cd5b79a171d
[ "MIT" ]
null
null
null
main.py
LG95/Classifcation-tree-based-
1ec905ee58ead38543f30a31034a2cd5b79a171d
[ "MIT" ]
null
null
null
#! /usr/bin/python from build import CLASS, grow_tree, Node def parse(line): first_space = False words = [''] if line[-1] == '\n': line = line[:-1] for char in line: if char != ' ': words[-1] += char first_space = True elif first_space: words.append('') first_space = False if words[-1] == '...
24.428571
146
0.647173
2ad9e9534ee871a386c81ca563a8f6548ea14483
6,637
py
Python
build/management/commands/build_construct_data.py
penglian518/protwis
d81b0aaeb0821dcca1979926dc18c1a70a3ca654
[ "Apache-2.0" ]
null
null
null
build/management/commands/build_construct_data.py
penglian518/protwis
d81b0aaeb0821dcca1979926dc18c1a70a3ca654
[ "Apache-2.0" ]
null
null
null
build/management/commands/build_construct_data.py
penglian518/protwis
d81b0aaeb0821dcca1979926dc18c1a70a3ca654
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.utils.text import slugify from django.db import IntegrityError from protein.models import Protein, ProteinConformation from residue.models import Residue from structure.models import Structure from construct....
39.272189
137
0.605846