hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
85c1d41e0ffd477d4930abc2243ffa926855d096
565
py
Python
models.py
Arnaud15/ProjectMSE226
11db7260611242ba0e464c0fab266591afb3c1a6
[ "MIT" ]
null
null
null
models.py
Arnaud15/ProjectMSE226
11db7260611242ba0e464c0fab266591afb3c1a6
[ "MIT" ]
null
null
null
models.py
Arnaud15/ProjectMSE226
11db7260611242ba0e464c0fab266591afb3c1a6
[ "MIT" ]
null
null
null
import sklearn.linear_model as skl
56.5
118
0.723894
import sklearn.linear_model as skl def linear_regression(type, penalty_log='l2', alpha=0, l1_ratio=0, fit_intercept=True, normalize=False): dic = {"ols": skl.LinearRegression(fit_intercept, normalize), 'ridge': skl.Ridge(alpha, fit_intercept, normalize), "lasso": skl.Lasso(alpha, fit_intercept, normali...
507
0
23
a2bf734bd139742c1f3f8731ae4083b0bc7bfdd5
403
py
Python
tests/unit/test_util.py
yougov/pmxbot
7e13ec7dc9c1759a1d6a637b0424d7efbb6c62c1
[ "MIT" ]
17
2016-01-27T12:10:03.000Z
2019-08-28T23:02:51.000Z
tests/unit/test_util.py
yougov/pmxbot
7e13ec7dc9c1759a1d6a637b0424d7efbb6c62c1
[ "MIT" ]
79
2015-12-02T16:02:01.000Z
2020-02-09T01:51:05.000Z
tests/unit/test_util.py
yougov/pmxbot
7e13ec7dc9c1759a1d6a637b0424d7efbb6c62c1
[ "MIT" ]
8
2016-06-27T11:07:42.000Z
2019-01-24T20:21:42.000Z
import pytest from pmxbot import util @pytest.mark.xfail(reason="Wordnik is unreliable") @pytest.mark.xfail(reason="#97: Google is unreliable")
22.388889
54
0.784119
import pytest from pmxbot import util @pytest.mark.xfail(reason="Wordnik is unreliable") def test_lookup(needs_wordnik): assert util.lookup('dachshund') is not None @pytest.mark.xfail(reason="#97: Google is unreliable") def test_emergency_compliment(needs_internet): assert util.load_emergency_compliments()...
186
0
67
07faafb2470cb4cfac7096981ce820ce593ba511
3,824
py
Python
examples/statistics.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
examples/statistics.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
examples/statistics.py
chiluf/visvis.dev
373846ea25044b7ca50f44c63dab4248e14deacd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ This example a coupe of ways to visualize statistic data. As an example I took the monthly temperature in the region where I live (Twente, The Netherlands) over the period 1983-2010. This data was extracted from publicly available data obtained from the Royal Netherlands Meteorological Inst...
39.020408
77
0.656642
#!/usr/bin/env python """ This example a coupe of ways to visualize statistic data. As an example I took the monthly temperature in the region where I live (Twente, The Netherlands) over the period 1983-2010. This data was extracted from publicly available data obtained from the Royal Netherlands Meteorological Inst...
0
0
0
cdd3664562efc356638d927e7302539928cb2b06
1,320
py
Python
tests/terraform/checks/resource/gcp/test_CloudStorageLogging.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/terraform/checks/resource/gcp/test_CloudStorageLogging.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/terraform/checks/resource/gcp/test_CloudStorageLogging.py
kylelaker/checkov
6eada26030a87f397a6bf1831827b3dc6c5dad2d
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import unittest import hcl2 from checkov.common.models.enums import CheckResult from checkov.terraform.checks.resource.gcp.CloudStorageLogging import check if __name__ == '__main__': unittest.main()
33
82
0.625
import unittest import hcl2 from checkov.common.models.enums import CheckResult from checkov.terraform.checks.resource.gcp.CloudStorageLogging import check class TestCloudStorageLogging(unittest.TestCase): def test_failure(self): hcl_res = hcl2.loads(""" resource "google_storage_bucket" "loggin...
1,008
28
77
802109d07a839590f191a668a78ce0dbc359cb5f
540
py
Python
antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/area/prepro.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2020-09-30T11:40:22.000Z
2020-11-09T09:06:30.000Z
antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/area/prepro.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
antarest/study/storage/rawstudy/model/filesystem/root/input/hydro/prepro/area/prepro.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from antarest.study.storage.rawstudy.model.filesystem.config.model import ( FileStudyTreeConfig, ) from antarest.study.storage.rawstudy.model.filesystem.context import ( ContextServer, ) from antarest.study.storage.rawstudy.model.filesystem.ini_file_node import ( IniFileNode, )
33.75
76
0.768519
from antarest.study.storage.rawstudy.model.filesystem.config.model import ( FileStudyTreeConfig, ) from antarest.study.storage.rawstudy.model.filesystem.context import ( ContextServer, ) from antarest.study.storage.rawstudy.model.filesystem.ini_file_node import ( IniFileNode, ) class InputHydroPreproAreaP...
174
25
49
d3b5b655afd498b598dfe9266c76d3818cd93340
26,166
py
Python
models/cifar/resnet.py
HRanWang/imagenet_whr
fcfe830c7889a7239d3f791de192d6121f8c316f
[ "MIT" ]
1
2019-10-19T15:30:02.000Z
2019-10-19T15:30:02.000Z
models/cifar/resnet.py
HRanWang/imagenet_whr
fcfe830c7889a7239d3f791de192d6121f8c316f
[ "MIT" ]
null
null
null
models/cifar/resnet.py
HRanWang/imagenet_whr
fcfe830c7889a7239d3f791de192d6121f8c316f
[ "MIT" ]
null
null
null
from __future__ import absolute_import '''Resnet for cifar dataset. Ported form https://github.com/facebook/fb.resnet.torch and https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py (c) YANG, Wei ''' import torch.nn as nn import math import torch import numpy as np __all__ = ['resnet','resnet50']...
41.798722
150
0.613697
from __future__ import absolute_import '''Resnet for cifar dataset. Ported form https://github.com/facebook/fb.resnet.torch and https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py (c) YANG, Wei ''' import torch.nn as nn import math import torch import numpy as np __all__ = ['resnet','resnet50']...
20,490
4,004
678
1c293d539578de6f1ef7fcad8bd8b118b92f8704
824
py
Python
src/python/misc/serifxml_round_trip.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
2
2022-03-24T14:37:51.000Z
2022-03-24T19:56:45.000Z
src/python/misc/serifxml_round_trip.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
null
null
null
src/python/misc/serifxml_round_trip.py
BBN-E/text-open
c508f6caeaa51a43cdb0bc27d8ed77e5750fdda9
[ "Apache-2.0" ]
null
null
null
# Read in serifxml then save it an make sure the files are # essentially identical import sys, os script_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(script_dir, "..")) import serifxml3 if len(sys.argv) != 3: print("Usage: " + sys.argv[0] + " input-serifxml-file output-serifxml-...
21.684211
80
0.713592
# Read in serifxml then save it an make sure the files are # essentially identical import sys, os script_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(script_dir, "..")) import serifxml3 if len(sys.argv) != 3: print("Usage: " + sys.argv[0] + " input-serifxml-file output-serifxml-...
0
0
0
fa60c271da2ff5f23a591f6ce737335abc7c261e
331
py
Python
src/kgmk/dsa/algebra/modular/matrix/dot/jit.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/algebra/modular/matrix/dot/jit.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/dsa/algebra/modular/matrix/dot/jit.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
import numpy as np import numba as nb @nb.njit
18.388889
51
0.567976
import numpy as np import numba as nb @nb.njit def mod_matrix_dot( a: np.ndarray, b: np.ndarray, mod: int, ) -> np.ndarray: ha, wa = a.shape hb, wb = b.shape assert wa == hb c = np.zeros((ha, wb), np.int64) for i in range(ha): for j in range(wb): c[i, j] = np.sum(a[i] * b[:, j] % mod) % mod ...
261
0
22
8ae9ce3f0d275395b8f614a561a53d141570dcb2
707
py
Python
SeRe/tools/data_pre/filename2txt.py
Anny-Anny/SeRe
2483269c5b5b36673b8893bb026689d731226cb8
[ "MIT" ]
null
null
null
SeRe/tools/data_pre/filename2txt.py
Anny-Anny/SeRe
2483269c5b5b36673b8893bb026689d731226cb8
[ "MIT" ]
null
null
null
SeRe/tools/data_pre/filename2txt.py
Anny-Anny/SeRe
2483269c5b5b36673b8893bb026689d731226cb8
[ "MIT" ]
null
null
null
import os ROOT = '/home/xjw/Downloads/code/mmsegmentation-0.21.0/' def txt2filename(txt_path): """ @param txt_path: @return: 返回数据集中包含的所有图片的名称 """ data = [] with open(txt_path, 'r') as f: for ch in f.readlines(): data.append(ch.strip()) return data if __name__ == '_...
23.566667
98
0.592645
import os ROOT = '/home/xjw/Downloads/code/mmsegmentation-0.21.0/' def filename2txt(filepath, txt_path): with open(txt_path, 'w+') as f: for root, dirs, files in os.walk(filepath): for name in files: f.write(name.split(".")[0] + '\n') f.close() def txt2filename(txt_path)...
200
0
23
e38cea4dfc6f41ac44fabb67e89d4f818b54bb37
1,013
py
Python
Python/Multiflex_set_binary_mode.py
Terabee/sample_codes
a58676f5e7fec1dfcacc5269515b3ef069b01ec7
[ "MIT" ]
13
2019-06-24T05:34:08.000Z
2022-01-16T08:37:37.000Z
Python/Multiflex_set_binary_mode.py
Terabee/sample_codes
a58676f5e7fec1dfcacc5269515b3ef069b01ec7
[ "MIT" ]
8
2019-08-28T17:30:23.000Z
2021-10-01T17:07:23.000Z
Python/Multiflex_set_binary_mode.py
Terabee/sample_codes
a58676f5e7fec1dfcacc5269515b3ef069b01ec7
[ "MIT" ]
10
2019-04-30T20:19:41.000Z
2021-02-10T19:32:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example TeraRanger MultiFlex configuration script. For more information about how to use this script, please refer to this document: https://www.terabee.com/wp-content/uploads/2017/09/TR-MF-Python-ReadMe.pdf """ import sys import binascii import serial if __name__ ==...
26.657895
81
0.642646
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Example TeraRanger MultiFlex configuration script. For more information about how to use this script, please refer to this document: https://www.terabee.com/wp-content/uploads/2017/09/TR-MF-Python-ReadMe.pdf """ import sys import binascii import serial if __name__ ==...
0
0
0
aecbe0d40235ca0fe8d7b8b6e024663d65c7ef43
1,236
py
Python
homepage/migrations/0007_userprofile_follows.py
Andre-Azu/instagramclone
94906c7d2f88c24c156b19a96ab0edf619c67277
[ "Unlicense" ]
null
null
null
homepage/migrations/0007_userprofile_follows.py
Andre-Azu/instagramclone
94906c7d2f88c24c156b19a96ab0edf619c67277
[ "Unlicense" ]
null
null
null
homepage/migrations/0007_userprofile_follows.py
Andre-Azu/instagramclone
94906c7d2f88c24c156b19a96ab0edf619c67277
[ "Unlicense" ]
null
null
null
# Generated by Django 4.0 on 2021-12-15 07:28 from django.db import migrations, models import django.db.models.deletion
38.625
146
0.615696
# Generated by Django 4.0 on 2021-12-15 07:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('homepage', '0006_image_comments_image_likes'), ] operations = [ migrations.CreateModel( name='Use...
0
1,091
23
5cbfbd355f1a6d92f9d29c7c9a4593dc242bdb15
5,347
py
Python
gateapi-python/gate_api/models/options_underlying_ticker.py
jarenmt/IEOPUMP
220f7f612d299f7305e82fe6c33661e6871f2d86
[ "MIT" ]
null
null
null
gateapi-python/gate_api/models/options_underlying_ticker.py
jarenmt/IEOPUMP
220f7f612d299f7305e82fe6c33661e6871f2d86
[ "MIT" ]
null
null
null
gateapi-python/gate_api/models/options_underlying_ticker.py
jarenmt/IEOPUMP
220f7f612d299f7305e82fe6c33661e6871f2d86
[ "MIT" ]
null
null
null
# coding: utf-8 """ Gate API v4 Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501 Contact: support@mail.gate.io Gen...
31.452941
239
0.616607
# coding: utf-8 """ Gate API v4 Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501 Contact: support@mail.gate.io Gen...
0
0
0
f5b61b7592684510eb43bc9ae6e4136074f3f566
577
py
Python
accounts/admin.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
accounts/admin.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
accounts/admin.py
GermanMtzmx/mailtest
9ec3f51344e6968698f8313ef987fca4d2907cdf
[ "Xnet", "X11" ]
null
null
null
from django.contrib import admin class UserAdmin(admin.ModelAdmin): """User admin""" exclude = ('renewed',) list_display = ('username', 'email', 'isActive', 'created', 'modified') list_filter = ('isActive',) search_fields = ('firstName', 'lastName', 'username', 'email') class...
19.896552
51
0.637782
from django.contrib import admin class UserAdmin(admin.ModelAdmin): """User admin""" exclude = ('renewed',) list_display = ('username', 'email', 'isActive', 'created', 'modified') list_filter = ('isActive',) search_fields = ('firstName', 'lastName', 'username', 'email') class...
0
0
0
b2aa72705f3ef23ab152b930ee038b7c4589011a
2,545
py
Python
J1939_PGN/J1939_PGN.py
CSS-Electronics/j1939_pgn
e268e1b2713c9f0d8634dda30e6493235eee5e56
[ "MIT" ]
1
2021-06-22T07:24:08.000Z
2021-06-22T07:24:08.000Z
J1939_PGN/J1939_PGN.py
CSS-Electronics/j1939_pgn
e268e1b2713c9f0d8634dda30e6493235eee5e56
[ "MIT" ]
null
null
null
J1939_PGN/J1939_PGN.py
CSS-Electronics/j1939_pgn
e268e1b2713c9f0d8634dda30e6493235eee5e56
[ "MIT" ]
null
null
null
from enum import Enum, auto class J1939_PDU(Enum): """ J1939 PDU type """ PDU1 = auto() PDU2 = auto() class J1939_PGN: """ J1939 PGN class. """ _id = None def __init__(self, msg_id: int = None, msg_pgn: int = None): """ Takes either a message ID or PGN ...
21.752137
64
0.46169
from enum import Enum, auto class J1939_PDU(Enum): """ J1939 PDU type """ PDU1 = auto() PDU2 = auto() class J1939_PGN: """ J1939 PGN class. """ _id = None def __init__(self, msg_id: int = None, msg_pgn: int = None): """ Takes either a message ID or PGN ...
363
0
27
13568121b4814c3d81c59418c50fdd6901e9fb77
379
py
Python
exercises/exercise26.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
exercises/exercise26.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
exercises/exercise26.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
birthday_dictionary = { "Albert Einstein" : "1/12/1912", "Jeong Eun Kim" : "21/12/1983", "Djangojeng-e" : "18/12/1986", "Django": "01/01/2005" } name = input("Who's Birthday do you want to look up?") if name in birthday_dictionary: print(f'{name}s birthday is {birthday_dictionary[name]}') else...
21.055556
62
0.630607
birthday_dictionary = { "Albert Einstein" : "1/12/1912", "Jeong Eun Kim" : "21/12/1983", "Djangojeng-e" : "18/12/1986", "Django": "01/01/2005" } name = input("Who's Birthday do you want to look up?") if name in birthday_dictionary: print(f'{name}s birthday is {birthday_dictionary[name]}') else...
0
0
0
49d3502c205ec9a70b70b5cd9b2d3a0fa593abcc
1,621
py
Python
Dice Rolling Simulator/dice_game.py
Hongyanlee0614/Cool-Python-Projects
4e35822b696674221636ede1b86acc0793305c18
[ "MIT" ]
null
null
null
Dice Rolling Simulator/dice_game.py
Hongyanlee0614/Cool-Python-Projects
4e35822b696674221636ede1b86acc0793305c18
[ "MIT" ]
null
null
null
Dice Rolling Simulator/dice_game.py
Hongyanlee0614/Cool-Python-Projects
4e35822b696674221636ede1b86acc0793305c18
[ "MIT" ]
null
null
null
import tkinter # for GUI from PIL import Image, ImageTk # operation regarding image import random # toplevel widget which represents the main window of an application root = tkinter.Tk() root.geometry('400x400') root.title('Data Flair Roll the Dice') # Adding label into the frame. Here we skip a line l0 =...
30.018519
80
0.687847
import tkinter # for GUI from PIL import Image, ImageTk # operation regarding image import random # toplevel widget which represents the main window of an application root = tkinter.Tk() root.geometry('400x400') root.title('Data Flair Roll the Dice') # Adding label into the frame. Here we skip a line l0 =...
171
0
25
e1bc973a11687fa3e830c8942a5ed3120eac2208
197
py
Python
fetch_gitignore/__init__.py
clickyotomy/git-fetch-gitignore
f534abf491f15ac85540fcb6ff5c6a9837c9b14e
[ "MIT" ]
3
2016-09-16T12:19:36.000Z
2019-08-08T20:24:57.000Z
fetch_gitignore/__init__.py
clickyotomy/git-fetch-gitignore
f534abf491f15ac85540fcb6ff5c6a9837c9b14e
[ "MIT" ]
null
null
null
fetch_gitignore/__init__.py
clickyotomy/git-fetch-gitignore
f534abf491f15ac85540fcb6ff5c6a9837c9b14e
[ "MIT" ]
null
null
null
#! /usr/bin/env python2.7 ''' __init__ file for fetch_gitignore. ''' __author__ = "Srinidhi Kaushik" __license__ = "MIT" __version__ = "0.0.1" __email__ = "clickyotomy@users.noreply.github.com"
16.416667
50
0.715736
#! /usr/bin/env python2.7 ''' __init__ file for fetch_gitignore. ''' __author__ = "Srinidhi Kaushik" __license__ = "MIT" __version__ = "0.0.1" __email__ = "clickyotomy@users.noreply.github.com"
0
0
0
2a4e2a2f19d2573e61fe39bb7dc94a42dc9ed626
3,030
py
Python
lista07_listaEncadeada/pylista07_questao06.py
mayararysia/ESTD
65aa8816aa8773066201cb410b02c1cb72ad5611
[ "MIT" ]
null
null
null
lista07_listaEncadeada/pylista07_questao06.py
mayararysia/ESTD
65aa8816aa8773066201cb410b02c1cb72ad5611
[ "MIT" ]
null
null
null
lista07_listaEncadeada/pylista07_questao06.py
mayararysia/ESTD
65aa8816aa8773066201cb410b02c1cb72ad5611
[ "MIT" ]
null
null
null
""" 06. Escreva um método show() para escrever toda a lista. Exemplo: lista = ListaOrdenada(); lista.append(3); lista.append(2); lista.show() imprime: [2,3] """ #Implementação da Classe Noh #Lista não ordenada: if __name__ == '__main__': minha_lista = ListaOrdenada() #exemplo de uso print(minha_lista.isEmpty()) ...
23.129771
86
0.593729
""" 06. Escreva um método show() para escrever toda a lista. Exemplo: lista = ListaOrdenada(); lista.append(3); lista.append(2); lista.show() imprime: [2,3] """ #Implementação da Classe Noh class Noh: def __init__(self,valor_inicial): self._dados = valor_inicial self._proximo = None def getData(self): ...
2,181
-12
371
b2524167a78952f075171b4993c8cca048abf2dd
901
py
Python
experiment/hyper-params-search/hps/common/Common.py
GyunHyukLee/GoldMine
93d765934cd8c4e152f12dc1a9677bd77ea64f28
[ "Apache-2.0" ]
13
2020-06-01T06:31:01.000Z
2021-03-08T04:57:01.000Z
experiment/hyper-params-search/hps/common/Common.py
GyunHyukLee/GoldMine
93d765934cd8c4e152f12dc1a9677bd77ea64f28
[ "Apache-2.0" ]
1
2020-10-13T08:56:38.000Z
2020-10-13T08:56:38.000Z
experiment/hyper-params-search/hps/common/Common.py
GyunHyukLee/GoldMine
93d765934cd8c4e152f12dc1a9677bd77ea64f28
[ "Apache-2.0" ]
7
2020-06-03T01:46:22.000Z
2021-03-08T04:57:04.000Z
# -*- coding: utf-8 -*- # Author : Jin Kim # e-mail : jinkim@seculayer.com # Powered by Seculayer © 2020 Solution Development 2 Team, R&D Center. import os from hps.common.Constants import Constants from hps.utils.Singleton import Singleton from hps.utils.MPLogger import MPLogger from hps.utils.CommonUtils import Co...
32.178571
93
0.7303
# -*- coding: utf-8 -*- # Author : Jin Kim # e-mail : jinkim@seculayer.com # Powered by Seculayer © 2020 Solution Development 2 Team, R&D Center. import os from hps.common.Constants import Constants from hps.utils.Singleton import Singleton from hps.utils.MPLogger import MPLogger from hps.utils.CommonUtils import Co...
0
531
22
57d9b30c8c5f267a7385f0b7589bbb8355313743
2,306
py
Python
posto/webhook/auth.py
tefra/posto
95cc39348f0c59339d9b7038d8640510849a2805
[ "MIT" ]
null
null
null
posto/webhook/auth.py
tefra/posto
95cc39348f0c59339d9b7038d8640510849a2805
[ "MIT" ]
1
2022-01-27T09:37:28.000Z
2022-01-27T09:40:50.000Z
posto/webhook/auth.py
tefra/posto
95cc39348f0c59339d9b7038d8640510849a2805
[ "MIT" ]
null
null
null
import functools import hmac from typing import Any from typing import Callable from typing import Optional from flask import abort from flask import current_app from flask import request from werkzeug.exceptions import ServiceUnavailable def authorize_source() -> Callable: """Detect the source from the headers ...
25.622222
80
0.645707
import functools import hmac from typing import Any from typing import Callable from typing import Optional from flask import abort from flask import current_app from flask import request from werkzeug.exceptions import ServiceUnavailable def authorize_source() -> Callable: """Detect the source from the headers ...
492
0
27
e509428d899feeca516dab5cb1e43ec7ec393808
15,280
py
Python
python/pysvso/optimizers/icp.py
mfkiwl/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
2249bf358f51b337eb52a347ea7d46bff0654576
[ "Apache-2.0" ]
191
2020-07-01T11:57:17.000Z
2022-03-23T12:40:43.000Z
python/pysvso/optimizers/icp.py
mfkiwl/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
2249bf358f51b337eb52a347ea7d46bff0654576
[ "Apache-2.0" ]
10
2020-07-06T12:41:51.000Z
2022-02-09T23:43:11.000Z
python/pysvso/optimizers/icp.py
mfkiwl/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
2249bf358f51b337eb52a347ea7d46bff0654576
[ "Apache-2.0" ]
45
2020-07-01T13:31:20.000Z
2022-02-03T07:21:42.000Z
import numpy as np from enum import Enum from pysvso.lib.maths.rotation import Euler, Quaternion, rotation_matrix, dRx, dRy, dRz from scipy.optimize import fmin_bfgs from scipy.optimize import fmin from scipy.optimize import minimize from scipy.optimize import approx_fprime # when point cloud is parse from sklearn.nei...
30.499002
142
0.532199
import numpy as np from enum import Enum from pysvso.lib.maths.rotation import Euler, Quaternion, rotation_matrix, dRx, dRy, dRz from scipy.optimize import fmin_bfgs from scipy.optimize import fmin from scipy.optimize import minimize from scipy.optimize import approx_fprime # when point cloud is parse from sklearn.nei...
9,835
4,125
221
7f93836e41dc7de37d20c9086ad3bdf24f6efdd0
938
py
Python
train.py
tfandkusu/food101-tflite
be09912a8b7c398a348eb86a1b216356e56cbe13
[ "Apache-2.0" ]
7
2019-05-12T22:44:37.000Z
2021-06-07T08:29:58.000Z
train.py
tfkeras/food101-tflite
be09912a8b7c398a348eb86a1b216356e56cbe13
[ "Apache-2.0" ]
null
null
null
train.py
tfkeras/food101-tflite
be09912a8b7c398a348eb86a1b216356e56cbe13
[ "Apache-2.0" ]
3
2019-06-04T12:08:43.000Z
2020-04-23T18:09:29.000Z
import tensorflow as tf import model import data # 訓練データ作成担当 g = data.Data() # GPUをすべて使わないオプション config = tf.ConfigProto() config.gpu_options.allow_growth = True sess = tf.Session(config=config) tf.keras.backend.set_session(sess) # モデルを作成 model = model.make(tflite=False) # 最適化を定義 optimizer = tf.keras.optimizers.Adam(lr...
26.8
66
0.749467
import tensorflow as tf import model import data # 訓練データ作成担当 g = data.Data() # GPUをすべて使わないオプション config = tf.ConfigProto() config.gpu_options.allow_growth = True sess = tf.Session(config=config) tf.keras.backend.set_session(sess) # モデルを作成 model = model.make(tflite=False) # 最適化を定義 optimizer = tf.keras.optimizers.Adam(lr...
0
161
22
96d3891dd1dd4c7b4e68f80119deca6d242b9c04
6,468
py
Python
fastapi/account/controllers/account.py
ilDug/docker-utils
6580e916a8c2c0d91f2e3da52a9d839507569bb7
[ "MIT" ]
null
null
null
fastapi/account/controllers/account.py
ilDug/docker-utils
6580e916a8c2c0d91f2e3da52a9d839507569bb7
[ "MIT" ]
null
null
null
fastapi/account/controllers/account.py
ilDug/docker-utils
6580e916a8c2c0d91f2e3da52a9d839507569bb7
[ "MIT" ]
null
null
null
import uuid import hashlib import bcrypt import json from string import Template from datetime import datetime from fastapi import HTTPException from fastapi.encoders import jsonable_encoder from pydantic import IPvAnyAddress from pymongo import MongoClient from bson import json_util from core.models import MongoMode...
36.96
110
0.548237
import uuid import hashlib import bcrypt import json from string import Template from datetime import datetime from fastapi import HTTPException from fastapi.encoders import jsonable_encoder from pydantic import IPvAnyAddress from pymongo import MongoClient from bson import json_util from core.models import MongoMode...
5,367
458
23
511eaa58ab745f5d34d4945e2abfe854d6b5c2c5
1,305
py
Python
tools/ui2py.py
BYUCamachoLab/autogator
464d43d797c58a03263527bb7fdc737adb045c75
[ "MIT" ]
null
null
null
tools/ui2py.py
BYUCamachoLab/autogator
464d43d797c58a03263527bb7fdc737adb045c75
[ "MIT" ]
2
2021-05-04T15:46:46.000Z
2022-02-14T19:18:38.000Z
tools/ui2py.py
BYUCamachoLab/autogator
464d43d797c58a03263527bb7fdc737adb045c75
[ "MIT" ]
2
2019-09-09T20:33:02.000Z
2019-09-25T21:44:46.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright © Autogator Project Contributors # Licensed under the terms of the MIT License # (see autogator/__init__.py for details) """ Tool that converts all .ui and .qrc files in the autogator.resources folder to python files in autogator.compiled. Usage: $ python3 ...
31.071429
85
0.616092
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright © Autogator Project Contributors # Licensed under the terms of the MIT License # (see autogator/__init__.py for details) """ Tool that converts all .ui and .qrc files in the autogator.resources folder to python files in autogator.compiled. Usage: $ python3 ...
0
0
0
37f14711c2fe081a327c2678cd3e96f52faa5215
2,150
py
Python
annotate/tests/test_pages.py
iafisher/exegesis
25bb55ecf82e9ffbf4dbdb71e6e86000d37a9966
[ "MIT" ]
null
null
null
annotate/tests/test_pages.py
iafisher/exegesis
25bb55ecf82e9ffbf4dbdb71e6e86000d37a9966
[ "MIT" ]
7
2018-07-28T02:30:45.000Z
2018-08-11T21:05:55.000Z
annotate/tests/test_pages.py
iafisher/exegesis
25bb55ecf82e9ffbf4dbdb71e6e86000d37a9966
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from annotate import models class TestPages(TestCase): """Test that the proper templates are used to render pages."""
38.392857
77
0.669767
from django.contrib.auth import get_user_model from django.test import TestCase from annotate import models class TestPages(TestCase): """Test that the proper templates are used to render pages.""" def setUp(self): User = get_user_model() User.objects.create_user('temporary', 'temporary@examp...
1,757
0
189
ae43fe8255d01b1bdd638bd84beb9976436c8118
1,117
py
Python
Resize.py
PENGsBIT/PIL-demo
36181d79ca6ab9fe177d734ab20ec093a9ba2246
[ "Apache-2.0" ]
null
null
null
Resize.py
PENGsBIT/PIL-demo
36181d79ca6ab9fe177d734ab20ec093a9ba2246
[ "Apache-2.0" ]
null
null
null
Resize.py
PENGsBIT/PIL-demo
36181d79ca6ab9fe177d734ab20ec093a9ba2246
[ "Apache-2.0" ]
null
null
null
# -*-coding:utf-8-*- import numpy as np from PIL import Image from scipy import misc
32.852941
97
0.617726
# -*-coding:utf-8-*- import numpy as np from PIL import Image from scipy import misc def resize(img): # img = Image.open(cirFileName) # w, h = img.size # # 去掉浮点,防报错 # w, h = round(w * 0.2), round(h * 0.2) img = img.resize((200, 200), Image.ANTIALIAS).convert("RGBA") return img def getResultA...
1,000
0
46
f179ba977ded22d79e6b5ab337596e7134fe8e7c
2,023
py
Python
.ipynb_checkpoints/settings-checkpoint.py
dbbabcock/data_690_ai_the_toy_show
97614cdaa1d7204abd1c30b5463976578be6a67d
[ "MIT" ]
null
null
null
.ipynb_checkpoints/settings-checkpoint.py
dbbabcock/data_690_ai_the_toy_show
97614cdaa1d7204abd1c30b5463976578be6a67d
[ "MIT" ]
null
null
null
.ipynb_checkpoints/settings-checkpoint.py
dbbabcock/data_690_ai_the_toy_show
97614cdaa1d7204abd1c30b5463976578be6a67d
[ "MIT" ]
null
null
null
from datetime import datetime import torch import torchvision def load_stored_resnet_model(categories, file_path): '''Adapted from NVIDIA DLI Course Code: Getting Started with AI on Jetson Nano''' print("Loading stored classification model...") # If we're on the Jetson Nano use cuda, otherwise cpu: ...
38.169811
92
0.638655
from datetime import datetime import torch import torchvision def __init__(): global toy_list, model_file_path, model, response_dict, computer_name, categories toy_list = ['Minnie Mouse', 'Tigger', 'Horse', 'White Bear', 'Flamingo', 'Tiger Puppet', 'Elephant Puppet', 'Oriole', 'Black ...
1,243
0
50
bfb54c2d2ea587f2eea3dd14e9aabadd7e86ef91
550
py
Python
utea_web/moduli/migrations/0009_auto_20181003_1248.py
arol-varesi/utea_web
36b04656b93b123d3805d25ee4e61c6ae68252ed
[ "MIT" ]
null
null
null
utea_web/moduli/migrations/0009_auto_20181003_1248.py
arol-varesi/utea_web
36b04656b93b123d3805d25ee4e61c6ae68252ed
[ "MIT" ]
null
null
null
utea_web/moduli/migrations/0009_auto_20181003_1248.py
arol-varesi/utea_web
36b04656b93b123d3805d25ee4e61c6ae68252ed
[ "MIT" ]
1
2021-10-02T11:45:34.000Z
2021-10-02T11:45:34.000Z
# Generated by Django 2.1.1 on 2018-10-03 10:48 from django.db import migrations, models
22.916667
50
0.581818
# Generated by Django 2.1.1 on 2018-10-03 10:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('moduli', '0008_auto_20181002_2154'), ] operations = [ migrations.AlterField( model_name='sigla', name='descrizione',...
0
436
23
9f9d45af4cae398c88e5f196080679db57c797e3
540
py
Python
venv/lib/python3.8/site-packages/zif.py
Jn-mic/Projects-Portfolio
642b9e58b81e8d505cc7462370e80fbab2945fd9
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/zif.py
Jn-mic/Projects-Portfolio
642b9e58b81e8d505cc7462370e80fbab2945fd9
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/zif.py
Jn-mic/Projects-Portfolio
642b9e58b81e8d505cc7462370e80fbab2945fd9
[ "MIT" ]
null
null
null
import zipfile # #压缩 # file=zipfile.ZipFile('text.zip','w')#text.zip创建压缩包文件名 w读 # file.write("class.py")#压缩的文件名 # file.close() #解压缩 # file=zipfile.ZipFile('text.zip','r')#写 # file.extractall(path="../")#写到哪个路径下 创建到卓面 默认是在跟慕入下面 #暴力破解加密的压缩包 fileobj=open("pwd.txt","r")#新建一个txt文件 for item in fileobj.readline...
25.714286
59
0.631481
import zipfile # #压缩 # file=zipfile.ZipFile('text.zip','w')#text.zip创建压缩包文件名 w读 # file.write("class.py")#压缩的文件名 # file.close() #解压缩 # file=zipfile.ZipFile('text.zip','r')#写 # file.extractall(path="../")#写到哪个路径下 创建到卓面 默认是在跟慕入下面 #暴力破解加密的压缩包 fileobj=open("pwd.txt","r")#新建一个txt文件 for item in fileobj.readline...
0
0
0
c8c11a61c01891c5110af5047097e53b2754d5ff
2,155
py
Python
feature_extraction/measurements/granularity.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
feature_extraction/measurements/granularity.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
feature_extraction/measurements/granularity.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import numpy as np import skimage import skimage.morphology as morph from . import Measurement from ..util.cleanup import cell_aoi_and_clip
34.758065
117
0.706729
# coding=utf-8 import numpy as np import skimage import skimage.morphology as morph from . import Measurement from ..util.cleanup import cell_aoi_and_clip class Granularity(Measurement): default_options = { 'subsampling': 2, # 2x downsampling 'element_size': 20, 'spectrum_length': 16, # standard stuff '...
1,753
224
23
4ecda2218db21b332e4657876d786a1dfb654049
8,817
py
Python
src/Linestring.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
41
2021-11-24T05:54:08.000Z
2022-03-26T10:19:30.000Z
src/Linestring.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
1
2022-02-28T04:34:51.000Z
2022-03-07T10:49:27.000Z
src/Linestring.py
Lovely-XPP/tkzgeom
bf68e139dc05f759542d6611f4dc07f4f2727b92
[ "MIT" ]
10
2021-11-24T07:35:17.000Z
2022-03-25T18:42:14.000Z
from PyQt5 import QtCore, QtWidgets, QtGui from Item import Item from Tikzifyables.Arrowable import Arrowable from Tikzifyables.DashPatternable import DashPatternable from Tikzifyables.Colourable.LineColourable import LineColourable from Tikzifyables.Decorationable import Decorationable from Tikzifyables.CurveStrategy...
52.171598
135
0.653851
from PyQt5 import QtCore, QtWidgets, QtGui from Item import Item from Tikzifyables.Arrowable import Arrowable from Tikzifyables.DashPatternable import DashPatternable from Tikzifyables.Colourable.LineColourable import LineColourable from Tikzifyables.Decorationable import Decorationable from Tikzifyables.CurveStrategy...
7,494
880
23
67995b2f86c3ae2b6a09815a02f81e478aa1eb27
12,847
py
Python
virtnet_conf.py
gizmoguy/faucet-gui
0055b29be284dfcc68e36f3f0f864c99c062376c
[ "Apache-2.0" ]
16
2018-08-31T02:17:55.000Z
2021-12-27T06:43:51.000Z
virtnet_conf.py
urantialife/faucet-gui
f9741a8c47da6fc6fb1a508c794e04bcb69cfef6
[ "Apache-2.0" ]
2
2018-08-31T04:02:09.000Z
2021-06-04T13:27:48.000Z
virtnet_conf.py
urantialife/faucet-gui
f9741a8c47da6fc6fb1a508c794e04bcb69cfef6
[ "Apache-2.0" ]
9
2019-01-06T17:58:48.000Z
2021-12-28T17:59:55.000Z
""" PROGRAM_NAME: virtnet_creator FILE_NAME: conf.py AUTHOR: Brendan Geoghegan PROGRAM_DESCRIPTION: This program is a GUI application for users to build or load network topologies that have a SDN controller at their center. The original code tied into a Xen loadout used to clone, startup, and operate VMs, but this ...
49.794574
120
0.592745
""" PROGRAM_NAME: virtnet_creator FILE_NAME: conf.py AUTHOR: Brendan Geoghegan PROGRAM_DESCRIPTION: This program is a GUI application for users to build or load network topologies that have a SDN controller at their center. The original code tied into a Xen loadout used to clone, startup, and operate VMs, but this ...
10,725
0
286
9630077f65b7d28eba7099895195d4d403635301
339
py
Python
StoryMap/apps/users/admin.py
LittleBai0606/StoryMap
1169e763031f92ee6da65829fa9cbce1ebd991ad
[ "MIT" ]
1
2021-11-01T05:58:25.000Z
2021-11-01T05:58:25.000Z
StoryMap/apps/users/admin.py
LittleBai0606/StoryMap
1169e763031f92ee6da65829fa9cbce1ebd991ad
[ "MIT" ]
null
null
null
StoryMap/apps/users/admin.py
LittleBai0606/StoryMap
1169e763031f92ee6da65829fa9cbce1ebd991ad
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import UserProfile # Register your models here. admin.site.register(UserProfile, UserProfileAdmin)
24.214286
92
0.722714
from django.contrib import admin from .models import UserProfile # Register your models here. class UserProfileAdmin(admin.ModelAdmin): fields = ['username', 'password', 'email', 'nickname', 'gender', 'birthday', 'avatar', ] list_display = ['username', 'email', 'nickname'] admin.site.register(UserProfile,...
0
168
23
df7a5da0ce6a0c9361b27bfdc4e070c0fb9fba67
2,013
py
Python
turn_classification/turn_classification.py
team8/outdoor-blind-navigation
78b99fe1a193161c4b809990c71940fbed719785
[ "MIT" ]
6
2021-05-18T16:46:04.000Z
2022-01-08T02:49:27.000Z
turn_classification/turn_classification.py
aoberai/outdoor-blind-navigation
78b99fe1a193161c4b809990c71940fbed719785
[ "MIT" ]
15
2021-05-19T23:40:50.000Z
2021-07-06T08:24:40.000Z
turn_classification/turn_classification.py
aoberai/outdoor-blind-navigation
78b99fe1a193161c4b809990c71940fbed719785
[ "MIT" ]
4
2021-05-26T02:10:43.000Z
2021-09-04T17:59:51.000Z
import cv2 import threading import tensorflow as tf import numpy as np import time import capturer from utils.circularBuffer import CircularBuffer labels = ['Left Turn', 'No Turn', 'Right Turn'] model_path = "./turn_classification/turn_classification_model_final_v1.h5" readings_buffer_size = 20 image_preprocessing_dim...
38.711538
141
0.694983
import cv2 import threading import tensorflow as tf import numpy as np import time import capturer from utils.circularBuffer import CircularBuffer labels = ['Left Turn', 'No Turn', 'Right Turn'] model_path = "./turn_classification/turn_classification_model_final_v1.h5" readings_buffer_size = 20 image_preprocessing_dim...
1,487
4
158
8a3a89d4511059d142d7dd9786e728c20d3522fe
8,071
py
Python
ardana_service/admin.py
ArdanaCLM/ardana-service
680099101de36fce893ef6d138b75d778f92f182
[ "Apache-2.0" ]
1
2017-07-20T01:04:21.000Z
2017-07-20T01:04:21.000Z
ardana_service/admin.py
GarySmith/ardana-service
680099101de36fce893ef6d138b75d778f92f182
[ "Apache-2.0" ]
null
null
null
ardana_service/admin.py
GarySmith/ardana-service
680099101de36fce893ef6d138b75d778f92f182
[ "Apache-2.0" ]
2
2017-08-02T17:18:47.000Z
2019-10-11T23:48:58.000Z
# (c) Copyright 2017-2019 SUSE LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
26.813953
79
0.638087
# (c) Copyright 2017-2019 SUSE LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
369
0
45
3a3491b43a5a2b9285bd18407b12c00d9f4f6e46
8,549
py
Python
src/generate.py
josephnavarro/ascii-art-generator
9317aaff92b58ab68a9598fdb89c95699bea4927
[ "MIT" ]
null
null
null
src/generate.py
josephnavarro/ascii-art-generator
9317aaff92b58ab68a9598fdb89c95699bea4927
[ "MIT" ]
null
null
null
src/generate.py
josephnavarro/ascii-art-generator
9317aaff92b58ab68a9598fdb89c95699bea4927
[ "MIT" ]
null
null
null
#! usr/bin/env python3 """ : : Utility for generating ASCII art given an input image. : : """ from src.ascii import * from src.luminosity import * UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" LOWER = "abcdefghijklmnopqrstuvwxyz" DIGIT = "0123456789" SYMBOL = "~!@#$%^&*()_+`-=[]{}|\\:;\"'<>?,./" ...
30.208481
118
0.601474
#! usr/bin/env python3 """ : : Utility for generating ASCII art given an input image. : : """ from src.ascii import * from src.luminosity import * UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" LOWER = "abcdefghijklmnopqrstuvwxyz" DIGIT = "0123456789" SYMBOL = "~!@#$%^&*()_+`-=[]{}|\\:;\"'<>?,./" ...
0
0
0
8feb772e81d2e7de2f57a541d565f8376b286c08
11,234
py
Python
app/admin.py
sedrof/not-phs
8f4031e220a7690c5304cebe310e3ef14d8e7424
[ "MIT" ]
null
null
null
app/admin.py
sedrof/not-phs
8f4031e220a7690c5304cebe310e3ef14d8e7424
[ "MIT" ]
null
null
null
app/admin.py
sedrof/not-phs
8f4031e220a7690c5304cebe310e3ef14d8e7424
[ "MIT" ]
null
null
null
from import_export.admin import ImportExportModelAdmin, ExportMixin from django.contrib import admin from master_data.models import * from centrelink.models import * from calculator.models import * from imports.models import * from django.utils.safestring import mark_safe from json2html import * from django.contrib.aut...
32.847953
129
0.60673
from import_export.admin import ImportExportModelAdmin, ExportMixin from django.contrib import admin from master_data.models import * from centrelink.models import * from calculator.models import * from imports.models import * from django.utils.safestring import mark_safe from json2html import * from django.contrib.aut...
5,757
3,877
387
2ed8a4a9bb1c53941ec398bf527dee4dcaca6772
686
py
Python
skyportal/handlers/api/internal/instrument_observation_params.py
jialin-wu-02/skyportal
29d606ad8567b2230fb0553b18dd3cb9d3ab2d84
[ "BSD-3-Clause" ]
null
null
null
skyportal/handlers/api/internal/instrument_observation_params.py
jialin-wu-02/skyportal
29d606ad8567b2230fb0553b18dd3cb9d3ab2d84
[ "BSD-3-Clause" ]
156
2019-10-17T19:35:22.000Z
2021-08-01T13:23:47.000Z
skyportal/handlers/api/internal/instrument_observation_params.py
jialin-wu-02/skyportal
29d606ad8567b2230fb0553b18dd3cb9d3ab2d84
[ "BSD-3-Clause" ]
null
null
null
import json from baselayer.app.access import auth_or_token from ...base import BaseHandler
38.111111
89
0.677843
import json from baselayer.app.access import auth_or_token from ...base import BaseHandler class InstrumentObservationParamsHandler(BaseHandler): @auth_or_token def get(self): try: with open("instrument_observation_params.json") as f: instrument_data = json.load(f) ...
493
78
23
951b82e5411a16957eaeb5663362a43cd0c01672
1,555
py
Python
src/data/parse.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
2
2022-01-01T11:06:22.000Z
2022-02-19T03:19:18.000Z
src/data/parse.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
null
null
null
src/data/parse.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
2
2020-08-15T05:38:49.000Z
2022-03-05T07:31:11.000Z
# Copyright 2020 Ayoub ENNASSIRI # # 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 writi...
31.1
74
0.579421
# Copyright 2020 Ayoub ENNASSIRI # # 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 writi...
697
0
54
059cf7be37e442771a2a7e9542192e55afa38fe8
675
py
Python
pytup2019/bowler_queries/remove_debugger.py
lensvol/pytup2019
9fe2413a7fcb5e4a4631c42400daeebc2176fce1
[ "MIT" ]
1
2020-03-14T15:16:55.000Z
2020-03-14T15:16:55.000Z
pytup2019/bowler_queries/remove_debugger.py
lensvol/pytup2019
9fe2413a7fcb5e4a4631c42400daeebc2176fce1
[ "MIT" ]
null
null
null
pytup2019/bowler_queries/remove_debugger.py
lensvol/pytup2019
9fe2413a7fcb5e4a4631c42400daeebc2176fce1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from bowler import Query, Filename, Capture, LN PATTERN = """ power < "ipdb" trailer < '.' 'set_trace' > trailer < '(' ')' > > | power < "breakpoint" trailer < "(" ")" > > """
22.5
87
0.62963
#!/usr/bin/env python import sys from bowler import Query, Filename, Capture, LN PATTERN = """ power < "ipdb" trailer < '.' 'set_trace' > trailer < '(' ')' > > | power < "breakpoint" trailer < "(" ")" > > """ def remove_debugger_statements(node: LN, capture: Capture, filename: Filename): parent_index...
405
0
46
d036b24263c3c6126474bf42a609edea5fe3d39d
1,679
py
Python
Web/testyummly.py
magmastonealex/InTheFridge
95b2e7127f259bd57afceb5759914621c6ab3e5b
[ "Apache-2.0" ]
1
2015-04-20T01:25:25.000Z
2015-04-20T01:25:25.000Z
Web/testyummly.py
magmapus/InTheFridge
95b2e7127f259bd57afceb5759914621c6ab3e5b
[ "Apache-2.0" ]
null
null
null
Web/testyummly.py
magmapus/InTheFridge
95b2e7127f259bd57afceb5759914621c6ab3e5b
[ "Apache-2.0" ]
null
null
null
import requests import urllib import json if __name__ == "__main__": y=Yummly() y.setup('d579507d','736c339e12b7a287c72c2de82313657e') ing=["fruit","milk"] print y.getAll(ing,"course^course-Beverages") y.getCourses() #todo
30.527273
152
0.645622
import requests import urllib import json class Yummly: s=requests.Session() base="http://api.yummly.com/v1/api/recipes" def setup(self,appid,appkey): self.s.headers.update({'X-Yummly-App-ID':appid,'X-Yummly-App-Key':appkey}) def qsearch(self,ing,course): pms=urllib.quote("allowedCourse[]")+"="+urllib.quote(cou...
1,255
174
22
b9544fa75fdfdd8216e4bbd3c9533a4f56740534
1,182
py
Python
data_storing/assets/tables/moving_average.py
marcellogoccia/deep-value-investing
4d45cc92c157246485b638d2052596a76975ec8a
[ "MIT" ]
null
null
null
data_storing/assets/tables/moving_average.py
marcellogoccia/deep-value-investing
4d45cc92c157246485b638d2052596a76975ec8a
[ "MIT" ]
null
null
null
data_storing/assets/tables/moving_average.py
marcellogoccia/deep-value-investing
4d45cc92c157246485b638d2052596a76975ec8a
[ "MIT" ]
null
null
null
from utilities.config import database from utilities.common_methods import getDebugInfo from utilities import log from sqlalchemy import Column, ForeignKey from sqlalchemy.types import Integer, Float, Date, String from sqlalchemy.orm import relationship from data_storing.assets.base import Base table_name = database...
35.818182
103
0.725888
from utilities.config import database from utilities.common_methods import getDebugInfo from utilities import log from sqlalchemy import Column, ForeignKey from sqlalchemy.types import Integer, Float, Date, String from sqlalchemy.orm import relationship from data_storing.assets.base import Base table_name = database...
101
710
23
d913e76a3b390e2b515230b0eab52acb3113fad6
387
py
Python
tests/unittests/test_scaled_f_score.py
sharockys/listentweet
afd376f527488fa0809a80173dcedd9847f85e19
[ "MIT" ]
null
null
null
tests/unittests/test_scaled_f_score.py
sharockys/listentweet
afd376f527488fa0809a80173dcedd9847f85e19
[ "MIT" ]
16
2021-04-28T07:54:55.000Z
2022-03-29T11:15:05.000Z
tests/unittests/test_scaled_f_score.py
sharockys/listentweet
afd376f527488fa0809a80173dcedd9847f85e19
[ "MIT" ]
null
null
null
import nltk
29.769231
74
0.749354
import nltk def test_ScaledFScore(): # primitive test only. from listentweet.keyword_extraction.scaled_f_score import ScaledFScore nltk.download("gutenberg") emma = nltk.corpus.gutenberg.open("austen-emma.txt").readlines() sfs = ScaledFScore(emma) characteristic_words = sfs.get_f1_score(keywo...
351
0
23
a96eca71d5759d02d2e44335fcb14f0c2dff7682
478
py
Python
src/exercise_one/scripts/data_processing.py
Ali-Elganzory/ARL-ROS
403c05d1332c3814ec7039b5ef733f708d845f8b
[ "MIT" ]
null
null
null
src/exercise_one/scripts/data_processing.py
Ali-Elganzory/ARL-ROS
403c05d1332c3814ec7039b5ef733f708d845f8b
[ "MIT" ]
null
null
null
src/exercise_one/scripts/data_processing.py
Ali-Elganzory/ARL-ROS
403c05d1332c3814ec7039b5ef733f708d845f8b
[ "MIT" ]
null
null
null
import rospy from std_msgs.msg import String if __name__ == "__main__": data_processing()
22.761905
82
0.669456
import rospy from std_msgs.msg import String def process_clbk(raw_data: String): name, age, height = map(lambda x: x.split(": ")[1], raw_data.data.split(", ")) age = int(age) height = int(height) rospy.loginfo(f"\nname: {name}\nage: {age}\nheight: {height}") def data_processing(): rospy.init_nod...
333
0
46
2d0e162b87c63c828d5b570a15927ce895086357
14,969
py
Python
src/3_model/minlp/data_plots.py
akxen/rep-gep
ed470cd60ecba110e228ce54b8c471cb9cb0256d
[ "MIT" ]
null
null
null
src/3_model/minlp/data_plots.py
akxen/rep-gep
ed470cd60ecba110e228ce54b8c471cb9cb0256d
[ "MIT" ]
null
null
null
src/3_model/minlp/data_plots.py
akxen/rep-gep
ed470cd60ecba110e228ce54b8c471cb9cb0256d
[ "MIT" ]
null
null
null
"""Plot input traces to visualise data""" import os import sys import pandas as pd import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator sys.path.append(os.path.join(os.path.dirname(__file__), 'utils')) from utils.data import ModelData def plot_coal_fuel_costs(): """Coal...
34.175799
121
0.636582
"""Plot input traces to visualise data""" import os import sys import pandas as pd import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator sys.path.append(os.path.join(os.path.dirname(__file__), 'utils')) from utils.data import ModelData def plot_coal_fuel_costs(): """Coal...
0
0
0
98e8ef272f6ae099e91304a8f9b8a8b7b3ca7691
572
py
Python
app/mod_whatis/views.py
crtarsorg/glasomer.rs-v2
ac43e1ba30b80a4ba9ca67768680b6e79f1512f3
[ "CC0-1.0" ]
null
null
null
app/mod_whatis/views.py
crtarsorg/glasomer.rs-v2
ac43e1ba30b80a4ba9ca67768680b6e79f1512f3
[ "CC0-1.0" ]
54
2017-03-06T12:48:40.000Z
2017-04-20T08:33:09.000Z
app/mod_whatis/views.py
crtarsorg/glasomer.rs-v2
ac43e1ba30b80a4ba9ca67768680b6e79f1512f3
[ "CC0-1.0" ]
null
null
null
from flask import Blueprint, render_template from app import mongo_utils from bson import json_util import json mod_whatis = Blueprint('whatis', __name__, url_prefix='/sta-je-glasomer') @mod_whatis.route('/', methods=['GET'])
38.133333
108
0.758741
from flask import Blueprint, render_template from app import mongo_utils from bson import json_util import json mod_whatis = Blueprint('whatis', __name__, url_prefix='/sta-je-glasomer') @mod_whatis.route('/', methods=['GET']) def index(): year = "" project_enabled = mongo_utils.get_enabled_project() for pr...
323
0
22
5a7cf5792682d6ad3c192a5fde31f431b97168ff
313
py
Python
course/migrations/0047_remove_page_data_ordinal_uniqueness.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
284
2015-01-09T12:02:28.000Z
2022-03-27T14:30:46.000Z
course/migrations/0047_remove_page_data_ordinal_uniqueness.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
799
2015-02-26T08:49:46.000Z
2022-03-31T16:09:26.000Z
course/migrations/0047_remove_page_data_ordinal_uniqueness.py
inducer/courseflow
0f9786e3616dbedf08365d81a731f672b97ba9f5
[ "Unlicense" ]
120
2015-01-30T18:00:56.000Z
2022-03-28T06:24:43.000Z
from django.db import models, migrations
19.5625
57
0.613419
from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('course', '0046_allow_null_page_data_ordinals'), ] operations = [ migrations.AlterUniqueTogether( name='flowpagedata', unique_together=set(), ), ]
0
248
23
629635c2446dffba0f7e84880658f4cf63855f95
1,388
py
Python
main-step-demo.py
cfalguiere/datalab-utils
cfa36030ce12efc8e4b5b7ad065ab59e763e0b78
[ "MIT" ]
null
null
null
main-step-demo.py
cfalguiere/datalab-utils
cfa36030ce12efc8e4b5b7ad065ab59e763e0b78
[ "MIT" ]
6
2018-03-13T10:52:45.000Z
2018-03-14T21:37:17.000Z
main-step-demo.py
cfalguiere/datalab-utils
cfa36030ce12efc8e4b5b7ad065ab59e763e0b78
[ "MIT" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- """Run Score Credit Habitat""" from __future__ import print_function import sys import logging from easydatalab.common.app import AppContext from easydatalab.common.exceptions import ExecutionError def main(): """Main entry point for the script.""" cfgFile = 'easydat...
31.545455
77
0.627522
#!/usr/bin/python #-*- coding: utf-8 -*- """Run Score Credit Habitat""" from __future__ import print_function import sys import logging from easydatalab.common.app import AppContext from easydatalab.common.exceptions import ExecutionError def main(): """Main entry point for the script.""" cfgFile = 'easydat...
0
0
0
2d0633efdab3a26a7e6897b19ca7b6bd561f2da7
697
py
Python
src/daemons/videod.py
schnema123/pydrive
287a9f83604470e6bd01d2a3d4f355559f8253d8
[ "MIT" ]
null
null
null
src/daemons/videod.py
schnema123/pydrive
287a9f83604470e6bd01d2a3d4f355559f8253d8
[ "MIT" ]
null
null
null
src/daemons/videod.py
schnema123/pydrive
287a9f83604470e6bd01d2a3d4f355559f8253d8
[ "MIT" ]
null
null
null
import socket import zmq from shared.daemon_ports import get_port from shared.messaging.sock import create_sub_sock # Send from replayd -> videod if __name__ == "__main__": """ context = zmq.Context() port = get_port("replayd") socket = create_sub_sock(context, port) """ videosocket = socke...
21.78125
67
0.637016
import socket import zmq from shared.daemon_ports import get_port from shared.messaging.sock import create_sub_sock # Send from replayd -> videod if __name__ == "__main__": """ context = zmq.Context() port = get_port("replayd") socket = create_sub_sock(context, port) """ videosocket = socke...
0
0
0
1dc5885e8b632bcad5a0b70c1b8d8c5702ffa110
1,820
py
Python
setup.py
bocadilloproject/bocadillo-cli
f11ec438504eb2edd3c4e8f5d2992e804b3da6b0
[ "MIT" ]
6
2019-04-17T17:07:46.000Z
2020-08-09T07:37:34.000Z
setup.py
bocadilloproject/bocadillo-cli
f11ec438504eb2edd3c4e8f5d2992e804b3da6b0
[ "MIT" ]
10
2019-04-17T21:27:46.000Z
2019-06-17T05:45:51.000Z
setup.py
bocadilloproject/bocadillo-cli
f11ec438504eb2edd3c4e8f5d2992e804b3da6b0
[ "MIT" ]
1
2019-05-12T17:32:45.000Z
2019-05-12T17:32:45.000Z
import os import re import setuptools description = "Standard development tooling for Bocadillo" with open("README.md", "r") as readme: long_description = readme.read() NAME = "bocadillo-cli" PACKAGE = "bocadillo_cli" GITHUB = "https://github.com/bocadilloproject/bocadillo-cli" CHANGELOG = f"{GITHUB}/blob/master...
33.090909
76
0.659341
import os import re import setuptools description = "Standard development tooling for Bocadillo" with open("README.md", "r") as readme: long_description = readme.read() NAME = "bocadillo-cli" PACKAGE = "bocadillo_cli" GITHUB = "https://github.com/bocadilloproject/bocadillo-cli" CHANGELOG = f"{GITHUB}/blob/master...
280
0
23
dc155e623350a743adcb1fb509940559b7b8f2f2
1,396
py
Python
7_dynamic_programming/easy/knapsack_DP_easy.py
itsEmShoji/TCScurriculum
bd27c8c2b26032e9e6f92a50b40ec19d45301988
[ "MIT" ]
null
null
null
7_dynamic_programming/easy/knapsack_DP_easy.py
itsEmShoji/TCScurriculum
bd27c8c2b26032e9e6f92a50b40ec19d45301988
[ "MIT" ]
null
null
null
7_dynamic_programming/easy/knapsack_DP_easy.py
itsEmShoji/TCScurriculum
bd27c8c2b26032e9e6f92a50b40ec19d45301988
[ "MIT" ]
null
null
null
# TODO: imports # REQUIRES: num_items >= 0, capacity >= 0, # size of item_values >= num_items, # size of item_weights >= num_items, # item_values are all >= 0, item_weights are all >= 0 # EFFECTS: Computes the max value that can be obtained by picking # from a set of num_items items without exceed...
34.04878
81
0.657593
# TODO: imports # REQUIRES: num_items >= 0, capacity >= 0, # size of item_values >= num_items, # size of item_weights >= num_items, # item_values are all >= 0, item_weights are all >= 0 # EFFECTS: Computes the max value that can be obtained by picking # from a set of num_items items without exceed...
217
11
72
a0127677f968c02630c0e8876bdfc54172dc9051
4,858
py
Python
EDMScripts/OldScripts/SimpleEDMLoop.py
gautampk/EDMSuite
e7b67336b45e679d7903d527f6d81080c6846166
[ "MIT" ]
6
2017-02-02T17:54:23.000Z
2021-07-03T12:41:36.000Z
EDMScripts/OldScripts/SimpleEDMLoop.py
gautampk/EDMSuite
e7b67336b45e679d7903d527f6d81080c6846166
[ "MIT" ]
null
null
null
EDMScripts/OldScripts/SimpleEDMLoop.py
gautampk/EDMSuite
e7b67336b45e679d7903d527f6d81080c6846166
[ "MIT" ]
11
2015-03-19T18:23:38.000Z
2021-02-18T11:05:51.000Z
# Import a whole load of stuff from System.IO import * from System.Drawing import * from System.Runtime.Remoting import * from System.Threading import * from System.Windows.Forms import * from System.Xml.Serialization import * from System import * from DAQ.Environment import * from EDMConfig import *
33.503448
109
0.735282
# Import a whole load of stuff from System.IO import * from System.Drawing import * from System.Runtime.Remoting import * from System.Threading import * from System.Windows.Forms import * from System.Xml.Serialization import * from System import * from DAQ.Environment import * from EDMConfig import * def saveBlockCon...
4,345
0
208
667fb47b49bdff6addfc9ed051899adc1ecd6337
1,558
py
Python
parent/venv/message_box.py
lugidm/FusariumUNet
853dc39848b2570a73504e1db57e3ccd26764573
[ "Unlicense" ]
null
null
null
parent/venv/message_box.py
lugidm/FusariumUNet
853dc39848b2570a73504e1db57e3ccd26764573
[ "Unlicense" ]
null
null
null
parent/venv/message_box.py
lugidm/FusariumUNet
853dc39848b2570a73504e1db57e3ccd26764573
[ "Unlicense" ]
null
null
null
import tkinter
30.54902
109
0.610398
import tkinter class Mbox(object): def __init__(self, root, msg): tki = tkinter self.top = root self.top.attributes("-topmost", True) self.return_value = None frm = tki.Frame(self.top, borderwidth=4, relief='ridge') frm.pack(fill='both', expand=True) label ...
1,333
-2
211
6a698ccac6fd0c7f76e5a8a4bb85aeca85cff63e
22,145
py
Python
mycroft/stt/__init__.py
NeonDaniel/HolmesV
ecf839156758d98d020f6272e4727aad60278004
[ "Apache-2.0" ]
9
2021-05-06T18:04:18.000Z
2022-02-23T21:59:49.000Z
mycroft/stt/__init__.py
NeonDaniel/HolmesV
ecf839156758d98d020f6272e4727aad60278004
[ "Apache-2.0" ]
5
2021-04-13T22:54:47.000Z
2021-04-18T14:24:25.000Z
mycroft/stt/__init__.py
HelloChatterbox/mycroft-lib
c417807d32eff629354ffe740da14caed2a1bee5
[ "Apache-2.0" ]
4
2021-09-11T04:02:10.000Z
2021-12-18T23:57:19.000Z
# Copyright 2017 Mycroft AI 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 writin...
33.757622
79
0.603116
# Copyright 2017 Mycroft AI 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 writin...
12,249
730
1,407
6af4692a61fa738f40f505d58ac7cde5a59bfad9
1,698
py
Python
sdk/ingestion/microsoft/bing/commerce/ingestion/models/transformation_tryout_response_py3.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
1
2020-05-04T09:58:07.000Z
2020-05-04T09:58:07.000Z
sdk/ingestion/microsoft/bing/commerce/ingestion/models/transformation_tryout_response_py3.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
2
2020-04-21T02:32:32.000Z
2020-04-21T19:37:54.000Z
sdk/ingestion/microsoft/bing/commerce/ingestion/models/transformation_tryout_response_py3.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
4
2020-07-31T10:39:22.000Z
2021-11-10T08:14:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
39.488372
123
0.604829
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
319
0
29
c94779c915148b6ad1bdd49ed67c0ea57c1425eb
789
py
Python
rucken_todo/serializers/TodoProjectSerializer.py
site15/rucken-todo-django
bf30d4ad43be22bd8383447e07b151d6dc99da72
[ "MIT" ]
3
2018-06-04T07:36:59.000Z
2019-10-07T05:33:56.000Z
rucken_todo/serializers/TodoProjectSerializer.py
site15/rucken-todo-django-example
bf30d4ad43be22bd8383447e07b151d6dc99da72
[ "MIT" ]
428
2017-11-24T20:19:39.000Z
2022-03-26T04:13:25.000Z
rucken_todo/serializers/TodoProjectSerializer.py
rucken/todo-django
bf30d4ad43be22bd8383447e07b151d6dc99da72
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from dynamic_rest.serializers import ( DynamicModelSerializer, DynamicRelationField ) from ..models import TodoProject from .ShortUserSerializer import ShortUserSerializer from .ShortTodoStatusSerializer import ShortTodoStatusSerializer
35.863636
109
0.735108
from __future__ import unicode_literals from dynamic_rest.serializers import ( DynamicModelSerializer, DynamicRelationField ) from ..models import TodoProject from .ShortUserSerializer import ShortUserSerializer from .ShortTodoStatusSerializer import ShortTodoStatusSerializer class TodoProjectSerializer(Dyn...
0
478
23
fb3c596fe6612b15cdd72e0d834f7c922c8070d3
2,102
py
Python
src/detection/visualisation.py
wdoppenberg/crater-detection
471d1bc508dee873cc5d05329147dfc5314bc15d
[ "MIT" ]
8
2021-06-09T15:07:16.000Z
2021-12-22T09:39:29.000Z
src/detection/visualisation.py
wdoppenberg/crater-detection
471d1bc508dee873cc5d05329147dfc5314bc15d
[ "MIT" ]
3
2021-04-23T12:29:40.000Z
2021-06-10T11:01:05.000Z
src/detection/visualisation.py
wdoppenberg/crater-detection
471d1bc508dee873cc5d05329147dfc5314bc15d
[ "MIT" ]
null
null
null
from typing import Union import cv2 import numpy as np import torch from matplotlib import pyplot as plt, patches
37.535714
111
0.572312
from typing import Union import cv2 import numpy as np import torch from matplotlib import pyplot as plt, patches def draw_patches( img: Union[np.ndarray, torch.Tensor], bboxes: Union[np.ndarray, torch.Tensor], labels: Union[np.ndarray, torch.Tensor], scores: Union[np.ndarray, torch.T...
1,940
0
46
e1e37ca4bd3f37516c74ca148f8f13300997a396
1,502
py
Python
quorapy/scraper.py
djunehor/quorapy
0496a362d7ecd0b2422288a26290a8503d562128
[ "MIT" ]
null
null
null
quorapy/scraper.py
djunehor/quorapy
0496a362d7ecd0b2422288a26290a8503d562128
[ "MIT" ]
null
null
null
quorapy/scraper.py
djunehor/quorapy
0496a362d7ecd0b2422288a26290a8503d562128
[ "MIT" ]
null
null
null
"""Module for scraping""" from bs4 import BeautifulSoup import dateparser import datetime class Scraper: """Scraper class""" def get_urls(self): """Scrapes posts on a page""" all_urls = [] # infinite scroll urls = self.soup.find_all("a", class_="SQnoC3ObvgnGjWt90zD9Z _2INHSNB8...
28.339623
94
0.561252
"""Module for scraping""" from bs4 import BeautifulSoup import dateparser import datetime class Scraper: """Scraper class""" def __init__(self, html): self.html = html self.soup = BeautifulSoup(html, "lxml") print(f"[Scraper] Retrieved page") def get_urls(self): """Scrape...
994
0
81
0d64ae13b623685600630d0fe9894fd2c441936e
890
py
Python
test/test_key.py
emartech/python-easy-crypto
ef09b42e43fb6649498bfb7b5ffbbf490a94d85d
[ "MIT" ]
3
2019-11-03T18:26:35.000Z
2021-03-07T02:37:52.000Z
test/test_key.py
emartech/python-easy-crypto
ef09b42e43fb6649498bfb7b5ffbbf490a94d85d
[ "MIT" ]
4
2019-06-05T01:48:19.000Z
2019-07-19T11:53:51.000Z
test/test_key.py
emartech/python-easy-crypto
ef09b42e43fb6649498bfb7b5ffbbf490a94d85d
[ "MIT" ]
2
2019-07-11T08:59:03.000Z
2022-02-17T19:41:21.000Z
import unittest import os from easycrypto.key import Key
29.666667
59
0.652809
import unittest import os from easycrypto.key import Key class KeyTest(unittest.TestCase): def test_key_length_is_as_specified(self): key, _ = Key.generate('pwd', 12) self.assertEqual(len(key), 32) def test_generate_uses_different_salt_every_time(self): self.assertNotEqual( ...
690
12
130
0320bc714098189f04667b3582a960eb0486b15d
5,128
py
Python
readinglistreader.py
treese/ReadingListReader
d9e56ec2225400994706ad9c2e9d4815fe4f509d
[ "MIT" ]
62
2015-01-08T03:22:03.000Z
2021-12-22T00:46:30.000Z
readinglistreader.py
treese/ReadingListReader
d9e56ec2225400994706ad9c2e9d4815fe4f509d
[ "MIT" ]
7
2015-02-16T14:12:02.000Z
2021-07-22T06:03:47.000Z
readinglistreader.py
treese/ReadingListReader
d9e56ec2225400994706ad9c2e9d4815fe4f509d
[ "MIT" ]
16
2015-04-19T22:15:24.000Z
2021-09-14T13:08:57.000Z
#!/usr/bin/env python import os import argparse import datetime from readinglistlib import ReadingListReader # Configure CLI fields = ['title', 'url', 'preview', 'date', 'added', 'viewed', 'uuid', 'synckey', 'syncserverid'] ap = argparse.ArgumentParser(description='This script outputs the contents of your Safari Rea...
61.783133
433
0.719189
#!/usr/bin/env python import os import argparse import datetime from readinglistlib import ReadingListReader # Configure CLI fields = ['title', 'url', 'preview', 'date', 'added', 'viewed', 'uuid', 'synckey', 'syncserverid'] ap = argparse.ArgumentParser(description='This script outputs the contents of your Safari Rea...
356
0
46
85890f25969655f8b43b5f8b0ea57d7e21d01c40
745
py
Python
exercicio_py/ex0004_conta_quantidade_caractere/main_v0.py
danielle8farias/Exercicios-Python-3
f2fe9b6ca63536df1d83fd10162cfc04de36b830
[ "MIT" ]
null
null
null
exercicio_py/ex0004_conta_quantidade_caractere/main_v0.py
danielle8farias/Exercicios-Python-3
f2fe9b6ca63536df1d83fd10162cfc04de36b830
[ "MIT" ]
null
null
null
exercicio_py/ex0004_conta_quantidade_caractere/main_v0.py
danielle8farias/Exercicios-Python-3
f2fe9b6ca63536df1d83fd10162cfc04de36b830
[ "MIT" ]
null
null
null
######## # autora: danielle8farias@gmail.com # repositório: https://github.com/danielle8farias # Descrição: Usuário informa nome e sobrenome. # O programa retorna quantas letras o nome completo possui (excluindo espaços) # e quantas letras o primeiro nome possui. ######## nome_completo = input('Digite seu nome com...
37.25
79
0.739597
######## # autora: danielle8farias@gmail.com # repositório: https://github.com/danielle8farias # Descrição: Usuário informa nome e sobrenome. # O programa retorna quantas letras o nome completo possui (excluindo espaços) # e quantas letras o primeiro nome possui. ######## nome_completo = input('Digite seu nome com...
0
0
0
67ce0d92034f71c96a8e965173c68e6445d1be29
31
py
Python
techrachit.py
eastmest/Termux-Megapackage
08f610d25539cfdc5992893996aa4c89630c9a07
[ "MIT" ]
null
null
null
techrachit.py
eastmest/Termux-Megapackage
08f610d25539cfdc5992893996aa4c89630c9a07
[ "MIT" ]
null
null
null
techrachit.py
eastmest/Termux-Megapackage
08f610d25539cfdc5992893996aa4c89630c9a07
[ "MIT" ]
null
null
null
print ("tech rachit are here")
15.5
30
0.709677
print ("tech rachit are here")
0
0
0
3fa62522c102c532d31c74e82903732fc572abac
390
py
Python
feedback/urls.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
feedback/urls.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
feedback/urls.py
asb29/Redundant
ee816fd41f9217610bd11f757cf9175288723c70
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'feedback' urlpatterns = [ url(r'^article/(?P<slug>[-\w]+)/comment$', views.comment, name='comment'), url(r'^reviewcomment/(?P<comment_id>[0-9]+)/$', views.reviewcomment, name='review-comment'), url(r'^article...
21.666667
51
0.561538
from django.conf.urls import url from . import views app_name = 'feedback' urlpatterns = [ url(r'^article/(?P<slug>[-\w]+)/comment$', views.comment, name='comment'), url(r'^reviewcomment/(?P<comment_id>[0-9]+)/$', views.reviewcomment, name='review-comment'), url(r'^article...
0
0
0
2fc23c16f3cf180ba3fd5c3369c888fc32045d14
27,933
py
Python
pref/webapp/views/property.py
ahampt/Pref
6a6b44c751da4358d97c7f170237b8fc0a4bc3d0
[ "MIT" ]
null
null
null
pref/webapp/views/property.py
ahampt/Pref
6a6b44c751da4358d97c7f170237b8fc0a4bc3d0
[ "MIT" ]
7
2015-08-02T20:58:23.000Z
2016-05-02T03:25:21.000Z
pref/webapp/views/property.py
ahampt/Pref
6a6b44c751da4358d97c7f170237b8fc0a4bc3d0
[ "MIT" ]
null
null
null
import logging, sys from django.conf import settings from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.mail import send_mail from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import HttpResponse, Http404 from django.shortcuts import render_to...
67.798544
315
0.666667
import logging, sys from django.conf import settings from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.mail import send_mail from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import HttpResponse, Http404 from django.shortcuts import render_to...
26,854
0
88
a77e4ba1d9535c20aa67f0efe32a4d0cd4d16c2b
6,253
py
Python
src/motor/3rdparty/compute/CUDA/mak/build.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
src/motor/3rdparty/compute/CUDA/mak/build.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
src/motor/3rdparty/compute/CUDA/mak/build.py
motor-dev/Motor
98cb099fe1c2d31e455ed868cc2a25eae51e79f0
[ "BSD-3-Clause" ]
null
null
null
from waflib import Task from waflib.TaskGen import feature, before_method, taskgen_method, extension from waflib.Tools import c_preproc try: import cPickle as pickle except ImportError: import pickle template_kernel = """ _MOTOR_PLUGIN_EXPORT void _%(kernel)s(const u32 index, const u32 total, ...
39.828025
237
0.611866
from waflib import Task from waflib.TaskGen import feature, before_method, taskgen_method, extension from waflib.Tools import c_preproc try: import cPickle as pickle except ImportError: import pickle template_kernel = """ _MOTOR_PLUGIN_EXPORT void _%(kernel)s(const u32 index, const u32 total, ...
4,551
0
175
773ebb715bc24daa595c7968a1ae63723535d201
1,023
py
Python
sols/1022.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
sols/1022.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
sols/1022.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right # DFS and convert binary (Accepted), O(n) time and space # Recursion (Top Voted), O(n) time and space
31.96875
87
0.540567
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: # DFS and convert binary (Accepted), O(n) time and space def sumRootToLeaf(self, root: Optional[TreeNode...
652
-6
74
82d289627c3ee9209ff2dfa6c1d190469fb034cb
286
py
Python
tests/__init__.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
2
2019-10-14T05:05:34.000Z
2022-03-28T04:55:00.000Z
tests/__init__.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
42
2020-08-25T07:59:32.000Z
2021-11-15T03:12:29.000Z
tests/__init__.py
sturmianseq/zenmake
44f1131c1ab677d8c3c930150c63a7dde4ef7de0
[ "BSD-3-Clause" ]
1
2021-08-13T13:59:51.000Z
2021-08-13T13:59:51.000Z
import sys from os import path ZENMAKE_DIR = path.dirname(path.abspath(__file__)) ZENMAKE_DIR = path.normpath(path.join(ZENMAKE_DIR, path.pardir, 'src', 'zenmake')) if ZENMAKE_DIR not in sys.path: sys.path.insert(1, ZENMAKE_DIR) # for test 'testLoadPyModule()' something = 'qaz'
23.833333
82
0.744755
import sys from os import path ZENMAKE_DIR = path.dirname(path.abspath(__file__)) ZENMAKE_DIR = path.normpath(path.join(ZENMAKE_DIR, path.pardir, 'src', 'zenmake')) if ZENMAKE_DIR not in sys.path: sys.path.insert(1, ZENMAKE_DIR) # for test 'testLoadPyModule()' something = 'qaz'
0
0
0
0a2c7252d45b9a2d213668ef67304ff04ab1a631
5,680
py
Python
Drivers/THINGSPEAK.py
bbaumg/Sensor
95eae629a7d36099cf0786e4d3a46c826ed93099
[ "MIT" ]
null
null
null
Drivers/THINGSPEAK.py
bbaumg/Sensor
95eae629a7d36099cf0786e4d3a46c826ed93099
[ "MIT" ]
null
null
null
Drivers/THINGSPEAK.py
bbaumg/Sensor
95eae629a7d36099cf0786e4d3a46c826ed93099
[ "MIT" ]
null
null
null
# Author: Barrett Baumgartner # # # 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, modify, merge, publish, distr...
33.609467
85
0.687324
# Author: Barrett Baumgartner # # # 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, modify, merge, publish, distr...
883
3,601
23
c8aa1d30b2fb5fede83f69d67c6dcdcea0d94f4b
83
py
Python
build/lib/psearcher/__init__.py
iridesc/psearcher
ee64a6c2cf9d326d562ccb06ec0c9e08b5862b2e
[ "MIT" ]
1
2019-12-04T15:54:50.000Z
2019-12-04T15:54:50.000Z
psearcher/__init__.py
iridesc/psearcher
ee64a6c2cf9d326d562ccb06ec0c9e08b5862b2e
[ "MIT" ]
null
null
null
psearcher/__init__.py
iridesc/psearcher
ee64a6c2cf9d326d562ccb06ec0c9e08b5862b2e
[ "MIT" ]
null
null
null
from .BaseEngine import BaseEngine from .Bing import Bing from .Baidu import Baidu
20.75
34
0.819277
from .BaseEngine import BaseEngine from .Bing import Bing from .Baidu import Baidu
0
0
0
623fad3932fdae3b4cc05b052d24851f20dc14b2
157
py
Python
server/app/services/device_data/views/_reports_type/__init__.py
goodfree/ActorCloud
e8db470830ea6f6f208ad43c2e56a2e8976bc468
[ "Apache-2.0" ]
173
2019-06-10T07:14:49.000Z
2022-03-31T08:42:36.000Z
server/app/services/device_data/views/_reports_type/__init__.py
zlyz12345/ActorCloud
9c34b371c23464981323ef9865d9913bde1fe09c
[ "Apache-2.0" ]
27
2019-06-12T08:25:29.000Z
2022-02-26T11:37:15.000Z
server/app/services/device_data/views/_reports_type/__init__.py
zlyz12345/ActorCloud
9c34b371c23464981323ef9865d9913bde1fe09c
[ "Apache-2.0" ]
67
2019-06-10T08:40:05.000Z
2022-03-09T03:43:56.000Z
from .aggr_events import devices_event_aggr_data __all__ = ['REPORTS_TYPE_FUNC'] REPORTS_TYPE_FUNC = { 'devicesEventAggr': devices_event_aggr_data }
15.7
48
0.789809
from .aggr_events import devices_event_aggr_data __all__ = ['REPORTS_TYPE_FUNC'] REPORTS_TYPE_FUNC = { 'devicesEventAggr': devices_event_aggr_data }
0
0
0
ba536605d96d30f13a42d4df687616345dedf4d2
6,657
py
Python
school/school/migrations/0001_initial.py
firemark/sample-school-django
3b9758ba62e4a37915e69e607d2a2948f1dc0204
[ "MIT" ]
null
null
null
school/school/migrations/0001_initial.py
firemark/sample-school-django
3b9758ba62e4a37915e69e607d2a2948f1dc0204
[ "MIT" ]
null
null
null
school/school/migrations/0001_initial.py
firemark/sample-school-django
3b9758ba62e4a37915e69e607d2a2948f1dc0204
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-18 23:26 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
138.6875
4,712
0.700916
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-18 23:26 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
0
6,447
23
a3beca4cb5005e736958d53aabeebe0736bd64f0
108
py
Python
run.py
TinLe/fantasticsearch
dfd43f56d70c33738f69f08fd9d613401dbc5634
[ "Apache-2.0" ]
null
null
null
run.py
TinLe/fantasticsearch
dfd43f56d70c33738f69f08fd9d613401dbc5634
[ "Apache-2.0" ]
null
null
null
run.py
TinLe/fantasticsearch
dfd43f56d70c33738f69f08fd9d613401dbc5634
[ "Apache-2.0" ]
null
null
null
#!flask/bin/python from fantasticsearch import fantasticsearch fantasticsearch.run(debug=True, port=5001)
18
43
0.824074
#!flask/bin/python from fantasticsearch import fantasticsearch fantasticsearch.run(debug=True, port=5001)
0
0
0
2b0a3505c24baa750d6115f2ad0f6544ab52f9c6
201
py
Python
ci.py
arelemegha/python-programs
c9af116c0db45dcd13d97e80a32733df372fe2d4
[ "CC0-1.0" ]
null
null
null
ci.py
arelemegha/python-programs
c9af116c0db45dcd13d97e80a32733df372fe2d4
[ "CC0-1.0" ]
null
null
null
ci.py
arelemegha/python-programs
c9af116c0db45dcd13d97e80a32733df372fe2d4
[ "CC0-1.0" ]
null
null
null
p = float(input("Enter the principle amount : ")) r = float(input("Enter the rate : ")) t = int(input("Enter the time: ")) a = p * (pow((1 + r / 100), t)) ci = a-p print("compound interest is : ", ci)
28.714286
49
0.587065
p = float(input("Enter the principle amount : ")) r = float(input("Enter the rate : ")) t = int(input("Enter the time: ")) a = p * (pow((1 + r / 100), t)) ci = a-p print("compound interest is : ", ci)
0
0
0
ec82a1fc36f35ef6fe3a1fa212ae968fe8f68e2b
386
py
Python
src/browserist/browser/get/element.py
jakob-bagterp/browserist
76bd916dd217b7da3759fd6ec3374191002dc091
[ "Apache-2.0" ]
2
2022-02-20T10:03:19.000Z
2022-03-22T11:17:10.000Z
src/browserist/browser/get/element.py
jakob-bagterp/browserist
76bd916dd217b7da3759fd6ec3374191002dc091
[ "Apache-2.0" ]
null
null
null
src/browserist/browser/get/element.py
jakob-bagterp/browserist
76bd916dd217b7da3759fd6ec3374191002dc091
[ "Apache-2.0" ]
null
null
null
from selenium.webdriver.common.by import By from ...constant import timeout from ...model.type.xpath import XPath from ..wait.for_element import wait_for_element
32.166667
86
0.753886
from selenium.webdriver.common.by import By from ...constant import timeout from ...model.type.xpath import XPath from ..wait.for_element import wait_for_element def get_element(driver: object, xpath: str, timeout: int = timeout.DEFAULT) -> object: xpath = XPath(xpath) wait_for_element(driver, xpath, timeout...
199
0
23
034de1341e667b7696b2129e6182000c170e9094
73
py
Python
AnalyzeSystem/f0_test.py
keel-210/AutoSinger
c9a855570b9222befca11072f47632b4ddebe294
[ "MIT" ]
null
null
null
AnalyzeSystem/f0_test.py
keel-210/AutoSinger
c9a855570b9222befca11072f47632b4ddebe294
[ "MIT" ]
null
null
null
AnalyzeSystem/f0_test.py
keel-210/AutoSinger
c9a855570b9222befca11072f47632b4ddebe294
[ "MIT" ]
null
null
null
import pyworld as pyworld import pysptk as sptk import pyreaper as reaper
24.333333
25
0.849315
import pyworld as pyworld import pysptk as sptk import pyreaper as reaper
0
0
0
f9ed84d75a8201857334c9dfb6e24601b014935d
1,622
py
Python
pages/themes/DBMS-Lecture2/examples/mongo_CRUD.py
WWWCourses/PythonCourseNetIT-Slides
78dbb5eb7695cc64042b71a1911d4ef3feddb074
[ "MIT" ]
null
null
null
pages/themes/DBMS-Lecture2/examples/mongo_CRUD.py
WWWCourses/PythonCourseNetIT-Slides
78dbb5eb7695cc64042b71a1911d4ef3feddb074
[ "MIT" ]
null
null
null
pages/themes/DBMS-Lecture2/examples/mongo_CRUD.py
WWWCourses/PythonCourseNetIT-Slides
78dbb5eb7695cc64042b71a1911d4ef3feddb074
[ "MIT" ]
null
null
null
import pymongo # ------------------------- Connect to MongoDB Server ------------------------ # # connect to MongoDB server: client = pymongo.MongoClient("mongodb://localhost:27017") # ----------------------- Switch context to a database ----------------------- # # get "python_course" database: db = client.python_cou...
36.044444
128
0.586313
import pymongo # ------------------------- Connect to MongoDB Server ------------------------ # # connect to MongoDB server: client = pymongo.MongoClient("mongodb://localhost:27017") # ----------------------- Switch context to a database ----------------------- # # get "python_course" database: db = client.python_cou...
0
0
0
9b780f6fac390d0cc6693e2c3cd1ca78f31f2eb6
348
py
Python
opensenate/tests/parliamentarians_test.py
g0ulartleo/opendata-senado
091d060d55d49f844d192baa1c0aef1aa039f1c0
[ "MIT" ]
null
null
null
opensenate/tests/parliamentarians_test.py
g0ulartleo/opendata-senado
091d060d55d49f844d192baa1c0aef1aa039f1c0
[ "MIT" ]
null
null
null
opensenate/tests/parliamentarians_test.py
g0ulartleo/opendata-senado
091d060d55d49f844d192baa1c0aef1aa039f1c0
[ "MIT" ]
null
null
null
from unittest import TestCase from ..parliamentarians import SenatorClient
29
45
0.695402
from unittest import TestCase from ..parliamentarians import SenatorClient class TestParliamentarians(TestCase): def test_get_senator(self): senator_client = SenatorClient() senators = senator_client.get() self.assertIsInstance(senators, list) if len(senators) <= 0: rai...
207
16
49
d06ea409af79d80d23b209f9aa5dc10f5c6cf8f0
733
py
Python
molecule/blockbook/tests/test_chain.py
trustwallet/ansible-collection-blockchain
4ea4ae041dc4625ba914925cccafebefd99c672f
[ "MIT" ]
1
2022-03-24T21:27:27.000Z
2022-03-24T21:27:27.000Z
molecule/blockbook/tests/test_chain.py
trustwallet/ansible-collection-blockchain
4ea4ae041dc4625ba914925cccafebefd99c672f
[ "MIT" ]
null
null
null
molecule/blockbook/tests/test_chain.py
trustwallet/ansible-collection-blockchain
4ea4ae041dc4625ba914925cccafebefd99c672f
[ "MIT" ]
2
2022-03-19T17:34:56.000Z
2022-03-23T19:08:55.000Z
import os import pytest import testinfra.utils.ansible_runner from ansible.template import Templar from ansible.parsing.dataloader import DataLoader testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.mark.chain("firo") @pytest.mark.cha...
27.148148
63
0.768076
import os import pytest import testinfra.utils.ansible_runner from ansible.template import Templar from ansible.parsing.dataloader import DataLoader testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.mark.chain("firo") def test_blockboo...
308
0
66
a131c678638de05ea4d2a12998c4a9866393a59c
1,008
py
Python
networks/spm.py
kamiLight/CADepth-master
8251f12f21393aae3261c3765218063cea1cae30
[ "MIT" ]
11
2022-01-03T14:56:40.000Z
2022-03-01T06:37:05.000Z
networks/spm.py
kamiLight/CADepth-master
8251f12f21393aae3261c3765218063cea1cae30
[ "MIT" ]
1
2022-03-23T01:28:56.000Z
2022-03-24T00:46:44.000Z
networks/spm.py
kamiLight/CADepth-master
8251f12f21393aae3261c3765218063cea1cae30
[ "MIT" ]
1
2022-01-14T08:25:50.000Z
2022-01-14T08:25:50.000Z
import torch import torch.nn as nn class SPM(nn.Module): """ Structure Perception Module """ def forward(self,x): """ inputs : x : input feature maps(B X C X H X W) returns : out : attention value + input feature attention: B X C ...
32.516129
84
0.5625
import torch import torch.nn as nn class SPM(nn.Module): """ Structure Perception Module """ def __init__(self, in_dim): super(SPM, self).__init__() self.chanel_in = in_dim self.softmax = nn.Softmax(dim=-1) def forward(self,x): """ inputs : x : i...
116
0
26
d5ee6b368b0d4584ed1bd6908ed0752e007fd580
558
py
Python
examples/serialized_declare.py
jmptbl/puka
bc6e845c8a5f4319ffc54cc71959c56a8893edaf
[ "MIT" ]
81
2015-01-22T10:09:37.000Z
2022-01-25T04:38:29.000Z
examples/serialized_declare.py
ov7a/puka
d2a1a8747b417021d6f18df7ee73d336f670f5a9
[ "MIT" ]
17
2015-05-13T01:51:53.000Z
2021-03-05T04:01:39.000Z
examples/serialized_declare.py
ov7a/puka
d2a1a8747b417021d6f18df7ee73d336f670f5a9
[ "MIT" ]
25
2015-02-12T14:02:41.000Z
2020-05-15T14:08:43.000Z
#!/usr/bin/env python import sys sys.path.append("..") import logging FORMAT_CONS = '%(asctime)s %(name)-12s %(levelname)8s\t%(message)s' logging.basicConfig(level=logging.DEBUG, format=FORMAT_CONS) import puka client = puka.Client("amqp://localhost/") promise = client.connect() client.wait(promise) for i in ra...
19.241379
67
0.706093
#!/usr/bin/env python import sys sys.path.append("..") import logging FORMAT_CONS = '%(asctime)s %(name)-12s %(levelname)8s\t%(message)s' logging.basicConfig(level=logging.DEBUG, format=FORMAT_CONS) import puka client = puka.Client("amqp://localhost/") promise = client.connect() client.wait(promise) for i in ra...
0
0
0
21beef38496aa0556afe362af0fdf823475e15cb
3,065
py
Python
tssimul.py
jli05/CS229-TimeSeries-LSTM
366b87d81bbdfecd74c97ffb5387622c0d60d43d
[ "Apache-2.0" ]
null
null
null
tssimul.py
jli05/CS229-TimeSeries-LSTM
366b87d81bbdfecd74c97ffb5387622c0d60d43d
[ "Apache-2.0" ]
null
null
null
tssimul.py
jli05/CS229-TimeSeries-LSTM
366b87d81bbdfecd74c97ffb5387622c0d60d43d
[ "Apache-2.0" ]
null
null
null
''' Simulate ARIMA(p, 0, q) model ''' import argparse import numpy as np from scipy import stats def simulate_eps(sigma, size, dist='normal', df=None): ''' Simulate innovation ''' n_samples, length_sample = size if dist.startswith('n'): eps = np.random.standard_normal(size) * sigma elif dist....
32.606383
78
0.604894
''' Simulate ARIMA(p, 0, q) model ''' import argparse import numpy as np from scipy import stats def simulate_eps(sigma, size, dist='normal', df=None): ''' Simulate innovation ''' n_samples, length_sample = size if dist.startswith('n'): eps = np.random.standard_normal(size) * sigma elif dist....
0
0
0
c150f8cf6799b8c70596657c3001737e829dd448
24,931
py
Python
dm_alchemy/types/unity_python_conversion.py
locross93/dm_alchemy
35449de51d56c427959ae6a3be13d6c6ab738be5
[ "Apache-2.0" ]
182
2021-02-08T15:25:06.000Z
2022-03-31T00:46:23.000Z
dm_alchemy/types/unity_python_conversion.py
locross93/dm_alchemy
35449de51d56c427959ae6a3be13d6c6ab738be5
[ "Apache-2.0" ]
6
2021-02-12T10:42:51.000Z
2022-03-14T23:59:45.000Z
dm_alchemy/types/unity_python_conversion.py
locross93/dm_alchemy
35449de51d56c427959ae6a3be13d6c6ab738be5
[ "Apache-2.0" ]
18
2021-02-08T20:37:22.000Z
2022-03-15T20:54:14.000Z
# Lint as python3 # Copyright 2020 DeepMind Technologies Limited. 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 # # Un...
43.661996
80
0.740083
# Lint as python3 # Copyright 2020 DeepMind Technologies Limited. 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 # # Un...
3,794
0
377
3e437eb10c5579c54d13b48fb00dc5e65c50fb7b
8,319
py
Python
fastatomography/tomo/backends/astra_cpu.py
PhilippPelz/fasta-tomography
a75f0559c5912249d7c6e330b061ecad744556bf
[ "MIT" ]
1
2021-06-07T14:08:26.000Z
2021-06-07T14:08:26.000Z
fastatomography/tomo/backends/astra_cpu.py
PhilippPelz/fasta-tomography
a75f0559c5912249d7c6e330b061ecad744556bf
[ "MIT" ]
null
null
null
fastatomography/tomo/backends/astra_cpu.py
PhilippPelz/fasta-tomography
a75f0559c5912249d7c6e330b061ecad744556bf
[ "MIT" ]
null
null
null
# Copyright 2014-2017 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Backend for ASTRA using CPU.""" from __f...
38.513889
78
0.63361
# Copyright 2014-2017 The ODL contributors # # This file is part of ODL. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. """Backend for ASTRA using CPU.""" from __f...
0
0
0
2032cd849767a64618fdc7306202ed98d257d8f4
1,960
py
Python
frappe/query_builder/terms.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
3,755
2015-01-06T07:47:43.000Z
2022-03-31T20:54:23.000Z
frappe/query_builder/terms.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
7,369
2015-01-01T19:59:41.000Z
2022-03-31T23:02:05.000Z
frappe/query_builder/terms.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
2,685
2015-01-07T17:51:03.000Z
2022-03-31T23:16:24.000Z
from typing import Any, Dict, Optional from pypika.terms import Function, ValueWrapper from pypika.utils import format_alias_sql
39.2
138
0.764286
from typing import Any, Dict, Optional from pypika.terms import Function, ValueWrapper from pypika.utils import format_alias_sql class NamedParameterWrapper(): def __init__(self, parameters: Dict[str, Any]): self.parameters = parameters def update_parameters(self, param_key: Any, param_value: Any, **kwargs): ...
1,590
51
186
2437b1fc5a17eb5303585ed2331bad10c365b40a
59
py
Python
src/qsiprep_analyses/utils/__init__.py
GalBenZvi/qsiprep_analyses
51512cffca218210f6b85e5eadd593b382963bbd
[ "Apache-2.0" ]
null
null
null
src/qsiprep_analyses/utils/__init__.py
GalBenZvi/qsiprep_analyses
51512cffca218210f6b85e5eadd593b382963bbd
[ "Apache-2.0" ]
6
2022-03-04T15:28:20.000Z
2022-03-30T09:37:12.000Z
src/qsiprep_analyses/utils/__init__.py
GalBenZvi/qsiprep_analyses
51512cffca218210f6b85e5eadd593b382963bbd
[ "Apache-2.0" ]
2
2022-03-13T11:07:48.000Z
2022-03-13T11:50:40.000Z
""" Utilities for the :mod:`qsiprep_analyses` package. """
14.75
50
0.694915
""" Utilities for the :mod:`qsiprep_analyses` package. """
0
0
0
5bca9217161ce91c534256d2d0103754755ea4e6
2,240
py
Python
My_Account/migrations/0001_initial.py
CHESyrian/Syrians
8376e9bed6e3a03f536d8aacd523d630f6bc4345
[ "MIT" ]
null
null
null
My_Account/migrations/0001_initial.py
CHESyrian/Syrians
8376e9bed6e3a03f536d8aacd523d630f6bc4345
[ "MIT" ]
null
null
null
My_Account/migrations/0001_initial.py
CHESyrian/Syrians
8376e9bed6e3a03f536d8aacd523d630f6bc4345
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-04-22 21:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
44.8
133
0.612946
# Generated by Django 3.0.3 on 2020-04-22 21:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
0
2,060
23
d00702f8ce3921e21728a7927615308f95062ef8
3,279
py
Python
refresh.py
pwillworth/dfkreport
ae10226430a3a74ac3c07ae888cab14dde778db8
[ "Apache-2.0" ]
11
2022-01-18T17:36:12.000Z
2022-03-21T21:09:17.000Z
refresh.py
pwillworth/dfkreport
ae10226430a3a74ac3c07ae888cab14dde778db8
[ "Apache-2.0" ]
null
null
null
refresh.py
pwillworth/dfkreport
ae10226430a3a74ac3c07ae888cab14dde778db8
[ "Apache-2.0" ]
4
2022-01-18T18:37:48.000Z
2022-01-22T02:14:48.000Z
#!/usr/bin/env python3 import nets import db import contracts from web3 import Web3 import prices import logging import logging.handlers import jsonpickle # Iterate through all transactions for account and run refresh actions # Update the gas transaction fee amount and value assuming tx is on Harmony if __name__ ==...
43.72
175
0.655688
#!/usr/bin/env python3 import nets import db import contracts from web3 import Web3 import prices import logging import logging.handlers import jsonpickle def main(): handler = logging.handlers.RotatingFileHandler('../refresh.log', maxBytes=33554432, backupCount=10) logging.basicConfig(handlers=[handler], leve...
2,871
0
67
d57b9bd1fceae16ab680d68d444523487314cf4c
5,908
py
Python
examples/research/ftt-nas/fixed_point_plugins/fixed_point_patch_new.py
Harald-R/aw_nas
8cf0cf48f7bcfd7893e6355dcc3ccbc83fd39783
[ "MIT" ]
195
2020-08-15T17:39:23.000Z
2022-02-28T07:48:03.000Z
examples/research/ftt-nas/fixed_point_plugins/fixed_point_patch_new.py
Harald-R/aw_nas
8cf0cf48f7bcfd7893e6355dcc3ccbc83fd39783
[ "MIT" ]
22
2020-08-16T01:44:48.000Z
2022-03-12T00:46:54.000Z
examples/research/ftt-nas/fixed_point_plugins/fixed_point_patch_new.py
Harald-R/aw_nas
8cf0cf48f7bcfd7893e6355dcc3ccbc83fd39783
[ "MIT" ]
27
2020-08-16T06:34:56.000Z
2022-03-06T18:16:52.000Z
#pylint: disable-all """ Script for patch SubCandidateNet/CNNGenotypeModel.forward """ from contextlib import contextmanager import six import numpy as np import torch from torch import nn from nics_fix_pt.quant import quantitize from aw_nas.weights_manager.super_net import SubCandidateNet from aw_nas.final.cnn_model...
48.826446
130
0.629824
#pylint: disable-all """ Script for patch SubCandidateNet/CNNGenotypeModel.forward """ from contextlib import contextmanager import six import numpy as np import torch from torch import nn from nics_fix_pt.quant import quantitize from aw_nas.weights_manager.super_net import SubCandidateNet from aw_nas.final.cnn_model...
3,287
0
135
eedd7919dde8c6f614677433f04639e63a253d58
2,942
py
Python
gland_classification/four_resolutions_model/model.py
onermustafaumit/MLNM
eef9a694fc616d68094c6dbf4d8fd4e45c842e2d
[ "MIT" ]
1
2022-02-07T06:41:43.000Z
2022-02-07T06:41:43.000Z
gland_classification/four_resolutions_model/model.py
onermustafaumit/MLNM
eef9a694fc616d68094c6dbf4d8fd4e45c842e2d
[ "MIT" ]
null
null
null
gland_classification/four_resolutions_model/model.py
onermustafaumit/MLNM
eef9a694fc616d68094c6dbf4d8fd4e45c842e2d
[ "MIT" ]
null
null
null
import torchvision import torch.nn as nn
45.261538
119
0.71312
import torchvision import torch.nn as nn class ResNet(nn.Module): def __init__(self, pretrained=False, num_classes=2, num_intermediate_features=64): super().__init__() self.pretrained = pretrained self.num_classes = num_classes self.num_intermediate_features = num_intermedi...
2,714
5
168
9dbbc46dc3ab82348e7ae0fc2b05ea58038bf2f9
5,019
py
Python
py/sym/messages/authz_pb2.py
symopsio/protobufs
5a33aa2c00116810e7e5a1d2b23f9134bb13eb10
[ "Apache-2.0" ]
null
null
null
py/sym/messages/authz_pb2.py
symopsio/protobufs
5a33aa2c00116810e7e5a1d2b23f9134bb13eb10
[ "Apache-2.0" ]
null
null
null
py/sym/messages/authz_pb2.py
symopsio/protobufs
5a33aa2c00116810e7e5a1d2b23f9134bb13eb10
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sym/messages/authz.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from goo...
36.904412
397
0.75533
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sym/messages/authz.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from goo...
0
0
0
65515bf65bebc383c9d94596460baa49da4a8f9c
2,506
py
Python
parser.py
winterYANGWT/STEFANN_PyTorch
bcee0ddbc286b4c83de0b2ea243091fb9c14fb90
[ "Apache-2.0" ]
1
2021-07-11T04:47:18.000Z
2021-07-11T04:47:18.000Z
parser.py
mathemusician/STEFANN_PyTorch
82941bc859af424babcf1f23a3d973764226263b
[ "Apache-2.0" ]
1
2021-08-11T16:37:02.000Z
2021-08-11T16:37:02.000Z
parser.py
mathemusician/STEFANN_PyTorch
82941bc859af424babcf1f23a3d973764226263b
[ "Apache-2.0" ]
1
2021-07-10T04:26:33.000Z
2021-07-10T04:26:33.000Z
import os import os.path as path import itertools import pandas as pd import glob import config import random FANNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/fannet' COLORNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/colornet' if __name__=='__main__': process_fannet(path.join(FANNET_IMG_DIR,'train'), ...
31.721519
72
0.622107
import os import os.path as path import itertools import pandas as pd import glob import config import random FANNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/fannet' COLORNET_IMG_DIR='/mnt/Data/GoogleFontsSTEFANN/colornet' def process_fannet(img_dir,save_path): perms=itertools.product(os.listdir(img_dir), ...
1,762
0
46
7b8242216757295d93bacc284fc1accdd444067f
1,084
py
Python
js_code.py
luoshenshen/LibrarySeats
c9fbd4fb7c26d380ee17b765cb4b83b1f3bbb78c
[ "MIT" ]
12
2021-06-03T03:26:45.000Z
2022-03-06T09:45:57.000Z
js_code.py
luoshenshen/LibrarySeats
c9fbd4fb7c26d380ee17b765cb4b83b1f3bbb78c
[ "MIT" ]
5
2021-11-06T07:35:00.000Z
2022-03-13T06:02:58.000Z
js_code.py
luoshenshen/LibrarySeats
c9fbd4fb7c26d380ee17b765cb4b83b1f3bbb78c
[ "MIT" ]
4
2021-06-07T09:46:31.000Z
2022-03-09T14:20:34.000Z
''' @ project: LibrarySeats @ file: test @ user: 罗申申 @ email: luoshenshen@buaa.edu.cn @ tool: PyCharm @ time: 2021/5/24 14:27 ''' import re import function import execjs import browser_tools def verify_code_get(jsname,cookie,time): '''代码不麻烦,主要是分析js花了些时间''' url = "https://static.wechat.laixuanzuo.com/template/...
23.565217
95
0.654059
''' @ project: LibrarySeats @ file: test @ user: 罗申申 @ email: luoshenshen@buaa.edu.cn @ tool: PyCharm @ time: 2021/5/24 14:27 ''' import re import function import execjs import browser_tools def obtain_js(html): js = '<script src="(.*?)"' href = re.compile(js, re.S).findall(html) return href def verify_c...
195
0
46
9d5a188e29aa85bb09a92509714e910b4fa52596
1,678
py
Python
en16931/tests/test_invoice_line.py
invinet/python-en16931
f6671f86e8d578c3c82a48134426f89ec13b160c
[ "Apache-2.0" ]
9
2018-07-09T10:34:27.000Z
2021-10-13T20:11:04.000Z
en16931/tests/test_invoice_line.py
invinet/python-en16931
f6671f86e8d578c3c82a48134426f89ec13b160c
[ "Apache-2.0" ]
null
null
null
en16931/tests/test_invoice_line.py
invinet/python-en16931
f6671f86e8d578c3c82a48134426f89ec13b160c
[ "Apache-2.0" ]
1
2022-02-07T15:30:53.000Z
2022-02-07T15:30:53.000Z
import pytest from en16931.invoice_line import InvoiceLine
28.931034
62
0.585221
import pytest from en16931.invoice_line import InvoiceLine class TestInvoiceLine: def test_initialization(self): il = InvoiceLine(quantity=11, unit_code="EA", price=2, item_name='test', currency="EUR", tax_percent=0.21, tax_category="S") assert i...
1,350
1
266
9faa68d2b05b4a33cebe4f7dd86018471e582c98
3,336
py
Python
var_caller_mt.py
shimbalama/friday_sessions_QIMR
5f5c65fdea98b22df845b09e3a72dbc7989e8ed1
[ "MIT" ]
null
null
null
var_caller_mt.py
shimbalama/friday_sessions_QIMR
5f5c65fdea98b22df845b09e3a72dbc7989e8ed1
[ "MIT" ]
null
null
null
var_caller_mt.py
shimbalama/friday_sessions_QIMR
5f5c65fdea98b22df845b09e3a72dbc7989e8ed1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from multiprocessing import Pool, TimeoutError from glob import glob import gzip import pysam from Bio import SeqIO from collections import Counter, defaultdict import scipy.stats as stats import operator import pandas as pd import argparse import cProfile import sys def chunk_ref(args, chroms...
25.082707
121
0.555456
#!/usr/bin/env python3 from multiprocessing import Pool, TimeoutError from glob import glob import gzip import pysam from Bio import SeqIO from collections import Counter, defaultdict import scipy.stats as stats import operator import pandas as pd import argparse import cProfile import sys def main (): parser = a...
2,328
0
46
dade49d1b215000562cd2d23b09812f5a692264c
713
py
Python
BOJ_Solved/BOJ-16928.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
7
2021-11-19T14:50:59.000Z
2022-02-25T20:00:20.000Z
BOJ_Solved/BOJ-16928.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
null
null
null
BOJ_Solved/BOJ-16928.py
CodingLeeSeungHoon/Python_Algorithm_TeamNote
1e92986999b45aa9951e12e67b23062e410e9b36
[ "MIT" ]
null
null
null
# coding=utf-8 """ 백준 16928번 : 뱀과 사다리 게임 """ import sys from collections import deque input = sys.stdin.readline N, M = map(int, input().split()) graph = [*range(101)] visited = [-1] * 101 for _ in range(N + M): x, y = map(int, input().split()) graph[x] = y bfs(graph, 1, visited) print(visited[-1])
19.27027
63
0.504909
# coding=utf-8 """ 백준 16928번 : 뱀과 사다리 게임 """ import sys from collections import deque input = sys.stdin.readline def bfs(graph, start, visited): queue = deque([start]) visited[start] = 0 while queue: v = queue.popleft() for i in range(1, 7): y = v + i if y > 100...
376
0
23
b156fbcb3777c67bbda34c74c49e66b3b3d17cc7
4,001
py
Python
data/birthmark_xml_create.py
mitubaEX/MITUBASearcher
7d6eb92bcc608a27519d8e6e30b033dc784694f3
[ "Apache-2.0" ]
null
null
null
data/birthmark_xml_create.py
mitubaEX/MITUBASearcher
7d6eb92bcc608a27519d8e6e30b033dc784694f3
[ "Apache-2.0" ]
5
2017-09-12T15:41:33.000Z
2017-10-23T14:21:23.000Z
data/birthmark_xml_create.py
mitubaEX/MITUBASearcher
7d6eb92bcc608a27519d8e6e30b033dc784694f3
[ "Apache-2.0" ]
null
null
null
import glob import os import sys import csv csv.field_size_limit(1000000000) # -*- coding: utf-8 -*- import codecs files = [] cvfv = codecs.open("./birth_cvfv.xml","w",'utf-8') fmc = codecs.open("./birth_fmc.xml","w",'utf-8') fuc = codecs.open("./birth_fuc.xml","w",'utf-8') _2gram = codecs.open("./birth_2gram.xml","w"...
43.021505
198
0.48038
import glob import os import sys import csv csv.field_size_limit(1000000000) # -*- coding: utf-8 -*- import codecs files = [] cvfv = codecs.open("./birth_cvfv.xml","w",'utf-8') fmc = codecs.open("./birth_fmc.xml","w",'utf-8') fuc = codecs.open("./birth_fuc.xml","w",'utf-8') _2gram = codecs.open("./birth_2gram.xml","w"...
1,249
0
69
95964d33b38741eebab8192e62f19d04248c6675
1,170
py
Python
setup.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
1
2022-03-27T20:09:10.000Z
2022-03-27T20:09:10.000Z
setup.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
4
2022-03-25T03:45:10.000Z
2022-03-29T14:31:16.000Z
setup.py
AmidBidee/RobotArm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
null
null
null
import setuptools from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="robotarm", # Replace with your username version="0.0.4", author="<Aaron Ahmid Balogun>", author_email="<amidbidee@gmail.com>", description="<Template ...
21.272727
106
0.620513
import setuptools from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name="robotarm", # Replace with your username version="0.0.4", author="<Aaron Ahmid Balogun>", author_email="<amidbidee@gmail.com>", description="<Template ...
0
0
0
51cb20a476045ed9a30f634816c937e0032634fa
5,628
py
Python
samples/snippets/publisher_test.py
deckikwok/python-pubsub
7e02bd8bc87676b0f38c90bc218dd4714f09f3a4
[ "Apache-2.0" ]
null
null
null
samples/snippets/publisher_test.py
deckikwok/python-pubsub
7e02bd8bc87676b0f38c90bc218dd4714f09f3a4
[ "Apache-2.0" ]
null
null
null
samples/snippets/publisher_test.py
deckikwok/python-pubsub
7e02bd8bc87676b0f38c90bc218dd4714f09f3a4
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google 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.0 # # Unless required by applicable law or a...
29.621053
88
0.744314
# Copyright 2016 Google 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.0 # # Unless required by applicable law or a...
4,100
0
387
7b2a91c84bc4cb09ca9e0267db05e2ac0ace93e9
3,354
py
Python
newsapp/models.py
Esther-Anyona/four-one-one
6a5e019b35710941a669c1b49e993b683c99d615
[ "MIT" ]
null
null
null
newsapp/models.py
Esther-Anyona/four-one-one
6a5e019b35710941a669c1b49e993b683c99d615
[ "MIT" ]
null
null
null
newsapp/models.py
Esther-Anyona/four-one-one
6a5e019b35710941a669c1b49e993b683c99d615
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from cloudinary.models import CloudinaryField # CloudinaryImage("turtles.jpg").image(width=70, height=53, crop="scale") """ Models """
34.9375
173
0.720036
from django.db import models from django.contrib.auth.models import User from cloudinary.models import CloudinaryField # CloudinaryImage("turtles.jpg").image(width=70, height=53, crop="scale") """ Models """ class Neighbourhood(models.Model): neighbourhood_name = models.CharField(max_length=100) location = mo...
701
2,349
91
38bbd6e96323d1dc65e0352cdedb7d3a7f70fe9a
321
py
Python
setup.py
fiefdx/pytea
466f2e15506fc66e402437aa2cfeb8b2c9f19c64
[ "MIT" ]
1
2016-09-04T10:24:27.000Z
2016-09-04T10:24:27.000Z
setup.py
fiefdx/pytea
466f2e15506fc66e402437aa2cfeb8b2c9f19c64
[ "MIT" ]
null
null
null
setup.py
fiefdx/pytea
466f2e15506fc66e402437aa2cfeb8b2c9f19c64
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2014-07-16 @summary: Trellis TEA use pure python @author: fiefdx ''' from distutils.core import setup setup(name='pytea', version='1.0.2', author = 'fiefdx', author_email = 'fiefdx@gmail.com', package_dir={'pytea': 'src'}, packages=['pytea'], ...
20.0625
40
0.595016
# -*- coding: utf-8 -*- ''' Created on 2014-07-16 @summary: Trellis TEA use pure python @author: fiefdx ''' from distutils.core import setup setup(name='pytea', version='1.0.2', author = 'fiefdx', author_email = 'fiefdx@gmail.com', package_dir={'pytea': 'src'}, packages=['pytea'], ...
0
0
0