hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
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
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
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
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
e8d5bb24b9977e232680147587a11ee49d24b844
1,584
py
Python
LeetCode_problems/Add Two Numbers Linked List/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
LeetCode_problems/Add Two Numbers Linked List/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
LeetCode_problems/Add Two Numbers Linked List/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
''' You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. ''' # Definition for singly-linked list. class ListNode: def __init__(self, x): sel...
37.714286
86
0.603535
ad53e7a6f4bcbf115d5e5dc8c66f36734f92ace4
1,097
py
Python
RDS/circle1_adapters_and_ports/port_owncloud/src/api/File.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle1_adapters_and_ports/port_owncloud/src/api/File.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle1_adapters_and_ports/port_owncloud/src/api/File.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
from lib.ownCloudUser import OwncloudUser from flask import request, send_file import logging from connexion_plus import FlaskOptimize from RDS import Util logger = logging.getLogger() @FlaskOptimize.do_not_minify() @FlaskOptimize.do_not_compress() def index(): json = request.json try: service, userI...
23.847826
81
0.731996
d13e057b301e0d595cc52632880e2b252e8a2346
4,257
py
Python
steiner.py
AlbertMukhammadiev/SteinerProblem
71d86a86626e093ff20e7018b7c0147a18a4b165
[ "MIT" ]
1
2019-11-14T09:50:58.000Z
2019-11-14T09:50:58.000Z
steiner.py
AlbertMukhammadiev/SteinerProblem
71d86a86626e093ff20e7018b7c0147a18a4b165
[ "MIT" ]
null
null
null
steiner.py
AlbertMukhammadiev/SteinerProblem
71d86a86626e093ff20e7018b7c0147a18a4b165
[ "MIT" ]
null
null
null
"""This module allows to build Steiner tree for 4 points and compute total length of edges. Functions: build_Steiner_tree(G) -> (Graph, double) replace(G, pair) -> None inv_replace(G, temp) -> None rec_Steiner(G, path, nodes) -> None draw_graph(G) -> None eval_point(p) -> Point """ import netw...
29.769231
119
0.611698
0f272788455d32eb7069bbded1d71e8c4f15e66d
1,001
py
Python
Markowitz/Markowitz.py
Jhonattanln/Efficient-Frontier
66d1d73721095f97aec4af8645f2da60d7ca4b09
[ "MIT" ]
null
null
null
Markowitz/Markowitz.py
Jhonattanln/Efficient-Frontier
66d1d73721095f97aec4af8645f2da60d7ca4b09
[ "MIT" ]
null
null
null
Markowitz/Markowitz.py
Jhonattanln/Efficient-Frontier
66d1d73721095f97aec4af8645f2da60d7ca4b09
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from pypfopt import risk_models from pypfopt import expected_returns from pypfopt.efficient_frontier import EfficientFrontier from pypfopt.black_litterman import BlackLittermanModel prbr = pd.read_excel(r'C:\Users\Jhona\OneDrive\Área de Trabalho\PRBR11.xlsx', index_c...
30.333333
117
0.81019
7e787139b49eea01cce2249d67241ead8333666a
174
py
Python
Contests/CCC/CCC '15 J2 - Happy or Sad.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/CCC/CCC '15 J2 - Happy or Sad.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/CCC/CCC '15 J2 - Happy or Sad.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
a = input() b = a.count(":-)") c = a.count(":-(") if b > c: print("happy") elif b < c: print("sad") elif b == c and b > 0: print("unsure") else: print("none")
15.818182
22
0.477011
1db5c2fb37a66e0330cafa773c05cdb64b268e8c
4,485
py
Python
backend/app/api/endpoints/users.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/api/endpoints/users.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/api/endpoints/users.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from typing import Any, List from fastapi import APIRouter, Body, Depends, HTTPException from fastapi.encoders import jsonable_encoder from pydantic.networks import EmailStr from sqlalchemy.orm import Session from app import models from app.api import deps from app.core.config import settings from app.crud....
29.506579
89
0.654404
3828ea957e23f82ea90451169b2d6d3630c068b6
917
py
Python
Hackerrank_problems/kangaroo/solution4.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
205
2021-09-30T15:41:05.000Z
2022-03-27T18:34:56.000Z
Hackerrank_problems/kangaroo/solution4.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
566
2021-09-30T15:27:27.000Z
2021-10-16T21:21:02.000Z
Hackerrank_problems/kangaroo/solution4.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
399
2021-09-29T05:40:46.000Z
2022-03-27T18:34:58.000Z
#!/bin/python3 import os """Logic Used for solving the problem is in this function""" """ The function takes four inputs.The first condition where both the velocities are same, it will not meet again. The second condition is where we equate x1 + v1*t = x2 + v2*t. as the time should be greater then 0, the resulti...
24.131579
151
0.583424
3843f3817124b205c3aed2aa7218b7154d4bb484
661
py
Python
source/pkgsrc/math/libshorttext/patches/patch-text-train.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/math/libshorttext/patches/patch-text-train.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/math/libshorttext/patches/patch-text-train.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-text-train.py,v 1.1.1.1 2014/10/29 17:06:40 cheusov Exp $ # differnt executables are provided by libsvm and liblinear packages --- text-train.py.orig 2013-09-09 08:53:54.000000000 +0000 +++ text-train.py @@ -150,9 +150,9 @@ if __name__ == '__main__': extra_svm_files += [value] elif argv[i] == '-x...
36.722222
82
0.638427
385fe2277e7eb78035a34f4dbc7221044fdb45e9
1,425
py
Python
model/topoml_util/np_gmm_loss.py
Empythy/geometry-learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
21
2018-10-09T08:15:29.000Z
2022-03-16T08:23:08.000Z
model/topoml_util/np_gmm_loss.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
31
2017-09-20T13:30:37.000Z
2018-03-01T13:24:58.000Z
model/topoml_util/np_gmm_loss.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
7
2018-11-29T11:39:02.000Z
2022-01-12T07:10:26.000Z
from topoml_util.gaussian_loss import r4_bivariate_gaussian import numpy as np class GaussianMixtureLoss: def __init__(self, num_components): self.num_components = num_components @staticmethod def softmax(x): """Compute softmax values for each sets of scores in x.""" return...
35.625
111
0.66807
38c65de1d3a1bef43ece24bf779f6cb2ba5f9a12
1,334
py
Python
03 Python/Einparkhilfe/loesung/src/myapp/gui/console_logger.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Einparkhilfe/loesung/src/myapp/gui/console_logger.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Einparkhilfe/loesung/src/myapp/gui/console_logger.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
import logging class ConsoleLogger: """ Klasse, die verschiedene Nachrichten vom Messagebroker empfängt und auf der Konsole ausgibt. Somit sehen wir auf der Konsole immer, was gerade passiert. """ def __init__(self, event_broker): """ Konstruktor. @param event_brok...
38.114286
104
0.688906
aaabe9ba54a79eeb8f1422ba12f3ac5d19370c44
7,174
py
Python
src/behaviour/agent.py
blitzher/Starbot
90da81f3beac74cd4394c2d8e18d9c67d6819b16
[ "MIT" ]
null
null
null
src/behaviour/agent.py
blitzher/Starbot
90da81f3beac74cd4394c2d8e18d9c67d6819b16
[ "MIT" ]
null
null
null
src/behaviour/agent.py
blitzher/Starbot
90da81f3beac74cd4394c2d8e18d9c67d6819b16
[ "MIT" ]
null
null
null
from util.orientation import Orientation from util.vec import Vec3 from util.constants import consts from util.functions import * from rlbot.agents.base_agent import SimpleControllerState from actiomatic.action import * class BehaviourAgent: def __init__(self, action_manager): self.action_manager = actio...
38.778378
138
0.662392
633317d3bf7e75025bba2185c6ab7966226f528a
1,051
py
Python
code/gestures/test.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/gestures/test.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/gestures/test.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
# basic code from >> # http://tkinter.unpythonic.net/wiki/PhotoImage # extra code ------------------------------------------------------------------------- from __future__ import print_function try: import tkinter as tk except: import Tkinter as tk import sys import platform print () print ('python ', sy...
27.657895
86
0.609895
4f0440fd43cf4b38c35d83e8b0e11e17a9ae4755
1,666
py
Python
kts/ui/settings.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/ui/settings.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/ui/settings.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
from IPython.core.display import display from kts.settings import cfg, ConfigError from kts.ui.components import CurrentTheme from kts.ui.highlighting import Highlighter from kts.ui.theme import themes, default_highlightings from kts.ui.dashboard import Dashboard def init(): try: cfg._theme = themes[cfg....
27.311475
75
0.705882
35cf32361eddab3b552511b49d1493781b7878e4
3,382
py
Python
Grundgeruest/migrations/0002_scholariumprofile.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Grundgeruest/migrations/0002_scholariumprofile.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Grundgeruest/migrations/0002_scholariumprofile.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.11 on 2017-04-26 20:49 from __future__ import unicode_literals from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import easy_thumbnails.fields import userena.models class Migration...
62.62963
238
0.631579
57dcc32298cc31cfd9268a24b914171458121967
2,187
py
Python
src/bo4e/enum/kundengruppe.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/kundengruppe.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/kundengruppe.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Kundengruppe(StrEnum): """ Kundengruppe für eine Marktlokation (orientiert sich an den Standard-Lastprofilen). """ RLM = "RLM" #: Kunde mit registrierender Leistungsmessung (kein SLP) RLM_KOMMUNAL = "RLM_KOMMU...
48.6
107
0.70599
dc3bbb5da4f177afecaf2f43db5a3ccc0115d491
516
py
Python
deep-learning-from-scratch/ch05/buy_apple.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
deep-learning-from-scratch/ch05/buy_apple.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
deep-learning-from-scratch/ch05/buy_apple.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from layer_naive import * apple = 100 apple_num = 2 tax = 1.1 # 계층들 mul_apple_layer = MulLayer() mul_tax_layer = MulLayer() # 순전파 apple_price = mul_apple_layer.forward(apple, apple_num) price = mul_tax_layer.forward(apple_price, tax) # 역전파 dprice = 1 dapple_price, dtax = mul_tax_layer.backword(dprice) dapple, dappl...
22.434783
59
0.726744
f4a3206bcede507b3cdc89d7f1d45ac264734d03
678
py
Python
twitoff/models.py
JohnMorrisonn/Twitoff
bd14957017aea8278a603f83b43bb69457d57a43
[ "MIT" ]
null
null
null
twitoff/models.py
JohnMorrisonn/Twitoff
bd14957017aea8278a603f83b43bb69457d57a43
[ "MIT" ]
4
2021-03-19T03:45:47.000Z
2022-03-11T23:59:53.000Z
twitoff/models.py
JohnMorrisonn/Twitoff
bd14957017aea8278a603f83b43bb69457d57a43
[ "MIT" ]
null
null
null
from twitoff import db class User(db.Model): id = db.Column(db.BigInteger, primary_key=True) name = db.Column(db.String(20), unique=True, nullable=False) newest_tweet_id = db.Column(db.BigInteger) def __repr__(self): return '<User {}>'.format(self.name) class Tweet(db.Model): id = db.Co...
30.818182
77
0.675516
5273649c4316d4d561fb82c9f901c068afb3579f
4,148
py
Python
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/utils.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/utils.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/utils.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2020 Huawei Device Co., Ltd. # 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...
34.280992
76
0.631871
21711ef606bf3be4366b548fe537876157b705f4
324
py
Python
code/Lists.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
code/Lists.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
code/Lists.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
# Listen # Variable note_ben = 1 note_jan = 2 note_peter = 1 # Liste 0, 1, 2 noten = [1, 2, 1] note_melissa = 4 # Methode: Wert am Ende hinzufügen noten.append(note_melissa) # Methode: Wert entfernen noten.pop() noten.pop(1) # Zugriff auf Wert print("Bens note: ", noten[0]) print("Jans note: ", noten[1]) print(not...
14.727273
34
0.682099
8009a548b78adc369d0fc11d10be42493a4e6843
608
py
Python
loggingmod.py
matthewmercuri/mdbacktestv2
2525113458cdf71e7d99ac208ad35aea92169b99
[ "MIT" ]
null
null
null
loggingmod.py
matthewmercuri/mdbacktestv2
2525113458cdf71e7d99ac208ad35aea92169b99
[ "MIT" ]
null
null
null
loggingmod.py
matthewmercuri/mdbacktestv2
2525113458cdf71e7d99ac208ad35aea92169b99
[ "MIT" ]
null
null
null
import pandas as pd LOGCOLS = ['Trade Date', 'Symbol', 'Action', 'Quantity', 'Price', 'Trans PnL'] class Log: def _create_log_df(self): self.log_df = pd.DataFrame(columns=LOGCOLS) self.log_df = self.log_df.set_index('Trade Date') def log_trade(self, date, symbol, action, quantity, price, tr...
30.4
78
0.652961
803d0838610056dd8c0d0965548eb756a8d56736
5,019
py
Python
Packs/NCSCCyberAsssessmentFramework/Scripts/NCSCCalculateQuestionsScore/NCSCCalculateQuestionsScore.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/NCSCCyberAsssessmentFramework/Scripts/NCSCCalculateQuestionsScore/NCSCCalculateQuestionsScore.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/NCSCCyberAsssessmentFramework/Scripts/NCSCCalculateQuestionsScore/NCSCCalculateQuestionsScore.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 args = demisto.args() assessment = args.get("assessment") assessment_results = args.get("assessment_results") original_data = json.loads( demisto.executeCommand("getList", {"listName": "NCSC CAF Assessment"})[0][ "Co...
30.791411
98
0.625423
33a8bd258d06d2f13655dfeb80d27f9949f7aab7
46
py
Python
site/public/courses/CS-2.2/Challenges/Solutions/challenge_1/testing.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/CS-2.2/Challenges/Solutions/challenge_1/testing.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/CS-2.2/Challenges/Solutions/challenge_1/testing.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
from src.graph import Graph g = Graph(True)
15.333333
28
0.717391
33f4281d44f427e21e8204819d5aa8b85a2a47d8
2,043
py
Python
api/clean/sequence_price.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_price.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_price.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/7/5 上午10:51 # @Author : Latent # @Email : latentsky@gmail.com # @File : data_sequence.py # @Software: PyCharm # @class : 所有价格参数的验证 """ 字段说明: 1.price_id ---> 数据库处理 2.price 3.orginal_price 4.range_price ---> 后续处理 5.is_promotion 6.discount_level 7.price_level -...
25.860759
78
0.458639
d522bd104e8d57c8f858f8d7fd7ace43ecdb77b2
2,126
py
Python
programm/database/database_handler.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/database/database_handler.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/database/database_handler.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
""" Module for connecting and communicating with sql-database @author: simon-justus wimmer """ import mysql.connector as connector import logging # TODO: avoid sql injection... class DatabaseHandler: global db_num db_num = 0 def __init__(self, logger=logging.getLogger('DatabaseHandler')): global...
30.371429
94
0.610066
89447cadb9df24160cd48e58c7e741290085698c
426
py
Python
pacman-arch/test/pacman/tests/sync999.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync999.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync999.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "System upgrade" sp1 = pmpkg("pkg1", "1.0-2") sp1.conflicts = ["pkg2"] sp1.provides = ["pkg2"] self.addpkg2db("sync", sp1); sp2 = pmpkg("pkg2", "1.0-2") self.addpkg2db("sync", sp2) lp1 = pmpkg("pkg1") self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") self.addpkg2db("local", lp2) self.args = "-Su ...
19.363636
35
0.664319
89b7bf67fa6fab589d55500c1dfcf32e3982403b
20,257
py
Python
Openharmony v1.0/vendor/hisi/hi35xx/third_party/uboot/tools/binman/etype/section.py
clkbit123/TheOpenHarmony
0e6bcd9dee9f1a2481d762966b8bbd24baad6159
[ "MIT" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/device/hisilicon/third_party/uboot/u-boot-2020.01/tools/binman/etype/section.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/device/hisilicon/third_party/uboot/u-boot-2020.01/tools/binman/etype/section.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: GPL-2.0+ # Copyright (c) 2018 Google, Inc # Written by Simon Glass <sjg@chromium.org> """Entry-type module for sections (groups of entries) Sections are entries which can contain other entries. This allows hierarchical images to be created. """ from __future__ import print_function f...
37.512963
98
0.583749
98ac1bc94cefe27ef63bfc417f7b71755c198680
242
py
Python
skripte/python/edit_tools/__init__.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/__init__.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/__init__.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :Id: $Id: $ # Python-Module und experimentelle Skripte zur Arbeit mit der Wortliste. # ======================================================================
30.25
72
0.466942
f6d4f561cdc2bec3f0652ab560ca91983ab4ea1c
1,842
py
Python
cs/lambda_cs/06_graphs/notes/islands/island_rosie.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/06_graphs/notes/islands/island_rosie.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/notes/islands/island_rosie.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
islands = [[0, 1, 0, 1, 0], [1, 1, 0, 1, 1], [0, 0, 1, 0, 0], [1, 0, 1, 0, 0], [1, 1, 0, 0, 0]] def check_islands(islands): island_check = [[False for x in range(len(islands[y]))] for y in range(len(islands))] all_islands = [] for y in range(len(isla...
46.05
110
0.482628
126fd537b53cfe9a646e900765c424d367ef99b7
4,229
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/72a1/projects/social/social.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/72a1/projects/social/social.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/72a1/projects/social/social.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
from util import Queue import random class User: def __init__(self, name): self.name = name class SocialGraph: def __init__(self): self.last_id = 0 self.users = {} self.friendships = {} def add_friendship(self, user_id, friend_id): """ Creates a bi-directio...
31.796992
94
0.604871
d65829741e1fd434cb8d4289efad9ac8d96f12f5
4,058
py
Python
model/layers/fpn.py
quanghona/SOLO_tf2
4aab0fc9115d210f08e694ec59b5f093ade8ce91
[ "MIT" ]
8
2021-03-07T10:25:21.000Z
2022-02-20T23:57:24.000Z
model/layers/fpn.py
quanghona/SOLO_tf2
4aab0fc9115d210f08e694ec59b5f093ade8ce91
[ "MIT" ]
null
null
null
model/layers/fpn.py
quanghona/SOLO_tf2
4aab0fc9115d210f08e694ec59b5f093ade8ce91
[ "MIT" ]
null
null
null
import tensorflow as tf class FeaturePyramidNetwork(tf.keras.layers.Layer): """ Creating the backbone component of feature Pyramid Network paper: https://arxiv.org/pdf/1612.03144.pdf This is a slightly more general version than original paper Can be any number of input feature maps. Can have ...
39.398058
116
0.598817
c3c32e9f3474c11e590b500ee8192bd6b6318ba1
4,016
py
Python
research/nlp/gpt2/task_dataset_preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/gpt2/task_dataset_preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/gpt2/task_dataset_preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
46.16092
112
0.6875
1436c653120b8e54749d303c5a4870b5b1a17fdf
553
py
Python
code/decisionrecorder/SaveCombinations.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
1
2020-03-30T09:25:53.000Z
2020-03-30T09:25:53.000Z
code/decisionrecorder/SaveCombinations.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
2
2020-02-05T14:00:23.000Z
2020-03-30T19:57:19.000Z
code/decisionrecorder/SaveCombinations.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
null
null
null
import json from typing import List from Combination import Combination class SaveCombinations: def __init__(self, path: str = None): self.path = path def save(self, combinations: List[Combination]): data = [] for combination in combinations: data.append({ ...
25.136364
52
0.605787
2c28d3b86fad8f2320bfcc3ff3b446e3b4c7b1b2
392
py
Python
PINp/2014/Chernov_M_S/task_1_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Chernov_M_S/task_1_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Chernov_M_S/task_1_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 27. # Напишите программу, которая будет сообщать род деятельности и псевдоним под # которым скрывается Жан Батист Поклен. После вывода информации программа # должна дожидаться пока пользователь нажмет Enter для выхода. # Чернов Михаил Сергеевич # 28.05.2016 print("Жан Батист Поклен известен под псе...
39.2
77
0.793367
d306521bd31db87bc0621c785ca5327a4552de9f
1,110
py
Python
scripts/docs/hooks/on_config/make_plugins_docs.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
scripts/docs/hooks/on_config/make_plugins_docs.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
scripts/docs/hooks/on_config/make_plugins_docs.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
from lcdoc.tools import dirname, exists, os, app def make_plugin_docs(config): """We want the plugins really self contained, incl. all - also the docs So we scan whats there and symlink over """ from lcdoc.mkdocs import lp def make(pth, dd): D = dirname(lp.__file__) + '/plugs' + pth ...
30
80
0.509009
6cf3b8dceec0f6b13fd1182800208dfe164ab5bb
1,655
py
Python
Project Euler Qusetions 41 - 50/Project Euler Question 50.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
1
2020-02-11T02:03:02.000Z
2020-02-11T02:03:02.000Z
Project Euler Qusetions 41 - 50/Project Euler Question 50.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
Project Euler Qusetions 41 - 50/Project Euler Question 50.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
#Project Euler Question 50 #Consecutive prime sum import math def prime_check(x): if x > 2: if x % 2 == 0: return False else: for factor in range(3, int(math.sqrt(x) + 1), 2): if (x % factor) == 0: return False else: ...
30.090909
119
0.529305
9f7819da41ed921d27e3a89f9498eac8e96bec63
1,165
py
Python
conftest.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
2,109
2020-05-02T23:47:18.000Z
2022-03-31T22:16:54.000Z
conftest.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
1,158
2020-04-29T18:07:02.000Z
2022-03-31T21:50:57.000Z
conftest.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
360
2020-04-29T14:44:49.000Z
2022-03-31T09:26:23.000Z
"""On GH Actions windows-latest, the supplied tmpdir is on a different Drive to the CWD, and so relative path computations fail. Therefore, here we allow for the directory to be directly supplied, via an environmental variable. """ import shutil from pathlib import Path from uuid import uuid4 import pytest def pytes...
28.414634
88
0.683262
e2928ed8b38eca2e880f13f676742ff63e7284d7
134
py
Python
S7/CS431-CDL/pgm-16/cpp.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
2
2021-02-03T02:03:21.000Z
2021-07-03T20:24:14.000Z
S7/CS431-CDL/pgm-16/cpp.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
S7/CS431-CDL/pgm-16/cpp.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
# Constant Propagation Program if __name__ == "__main__": x = 10 y = x + 45 z = y + 4 print(f"The value of z = {z}")
16.75
34
0.537313
e2e7478b7c79b9cff3ec029fe64f4b65047e8200
5,071
py
Python
test/test_npu/test_network_ops/test_upsample_linear1d.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_upsample_linear1d.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_upsample_linear1d.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
46.1
114
0.552159
1ac776bd3d3c44d97c386492a657147533e3a46b
1,672
py
Python
Python/zzz_training_challenge/UdemyPythonPro/Chapter9_Packages/2_Packaging/setup.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter9_Packages/2_Packaging/setup.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter9_Packages/2_Packaging/setup.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# python setup.py develop from setuptools import setup # beschreibt notwendige Informationen auf pypi # PyVersionen können durch :: getrennt werden: geht auch: # Programming Language :: Python :: 3.7 :: or higher CLASSIFIERS = '''\ License :: OSI Approved Programming Language :: Python :: 3.7 :: 3.8 Topic :: Software ...
22.90411
67
0.723086
644a8b0286325438bcc767679bf61ce02f9da1a8
346
py
Python
my_music_app/my_music_app/web/migrations/0003_rename_artists_album_artist.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
my_music_app/my_music_app/web/migrations/0003_rename_artists_album_artist.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
my_music_app/my_music_app/web/migrations/0003_rename_artists_album_artist.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-27 09:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('web', '0002_album'), ] operations = [ migrations.RenameField( model_name='album', old_name='artists', new_name='...
18.210526
47
0.563584
b3baac3a8d1e09644903764ef2f39f0fa84a5b37
49
py
Python
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/format.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/format.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/format.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
year=2000 print("{0}is a leap year".format(year))
24.5
39
0.714286
b3f434657a120277b273c2fe4e0e119bfca4fd99
881
py
Python
InternetOfThingsCourse/mainflask.py
migueltlapa/TheIoTLearningInitiative
98ed32ec00aa8cb20c3770cb6c03be993b693590
[ "Apache-2.0" ]
null
null
null
InternetOfThingsCourse/mainflask.py
migueltlapa/TheIoTLearningInitiative
98ed32ec00aa8cb20c3770cb6c03be993b693590
[ "Apache-2.0" ]
null
null
null
InternetOfThingsCourse/mainflask.py
migueltlapa/TheIoTLearningInitiative
98ed32ec00aa8cb20c3770cb6c03be993b693590
[ "Apache-2.0" ]
null
null
null
#P3_Flask_Network_Data_Send_Data_Network import psutil import signal import sys import time from flask import Flask from flask_restful import Api, Resource from threading import Thread app = Flask(__name__) api = Api(app) def interruptHandler(signal, frame): sys.exit(0) def dataNetwork(): netdata = psutil.ne...
20.488372
54
0.702611
b3fffbbfaf21c1d3a1c59e9f0711101dafa322ab
2,390
py
Python
src/bo4e/bo/fremdkosten.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/fremdkosten.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/fremdkosten.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Fremdkosten class and corresponding marshmallow schema for de-/serialization """ from typing import List, Optional import attr from marshmallow import fields from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt, GeschaeftsobjektSchema from bo4e.com.betrag import Betrag, BetragSchema from bo4e.com.fremdk...
38.548387
176
0.753556
37797389e44b2f48046b4e764e36e329edcb20db
10,427
py
Python
flipui/main.py
julianschick/flipdot-brose-code
b2caf2c52c55a0d5b80dbf3d5adbbf5aec1d79c2
[ "MIT" ]
null
null
null
flipui/main.py
julianschick/flipdot-brose-code
b2caf2c52c55a0d5b80dbf3d5adbbf5aec1d79c2
[ "MIT" ]
null
null
null
flipui/main.py
julianschick/flipdot-brose-code
b2caf2c52c55a0d5b80dbf3d5adbbf5aec1d79c2
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QApplication, QLabel, QGroupBox, QVBoxLayout, QHBoxLayout, QWidget, QPushButton, QSlider, QGridLayout, QMainWindow, QAction, QFileDialog, QCheckBox, QComboBox, QColorDialog from PySide2 import QtCore, QtGui from PySide2.QtCore import QCoreApplication import socket from functools import par...
25.431707
202
0.699914
afe1a8c238442ff716c9914183231b1dc288a54d
4,124
py
Python
scripts/unification/move_fidl_library.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/unification/move_fidl_library.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/unification/move_fidl_library.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python2.7 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import fileinput import os import re import shutil import subprocess import sys SCRIPT_DIR = os.path.dirname(os.pat...
33.803279
89
0.579777
b35f5672b99ebb89c13dca03f1b810c01c5ae676
28,630
py
Python
Packs/XMatters/Integrations/xMatters/xMatters.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/XMatters/Integrations/xMatters/xMatters.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/XMatters/Integrations/xMatters/xMatters.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * import requests import json import dateparser import traceback import urllib.parse from typing import Any, Dict, Tuple, List, Optional, cast ''' CONSTANTS ''' DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ' # Disable insecure warnings requests.packages.urllib3.disable...
34.957265
117
0.609256
640a07abc410edb8685f29ec8f93965b26c42770
836
pyde
Python
sketches/cuteplanet02/cuteplanet02.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/cuteplanet02/cuteplanet02.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/cuteplanet02/cuteplanet02.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# Kitty moving pos_x = 275 pos_y = 100 radius_x = 50 # Bildbreite/2 radius_y = 85 # Bildhöhe/2 STEP = 5 # Geschwindigkeit def setup(): global horngirl size(640, 480) horngirl = loadImage("horngirl.png") def draw(): global pos_x, pos_y background(0, 80, 125) image(horngirl, pos_x, pos_...
23.885714
40
0.537081
921b8972c5f6959f137421c90a6bdbd84e2bab7c
1,487
py
Python
backend/app/schemas/polygon_data.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
backend/app/schemas/polygon_data.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/schemas/polygon_data.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from enum import IntEnum from typing import List, Optional from pydantic import BaseModel class AnnotationType(IntEnum): SOLUTION_POINT = 0 SOLUTION_LINE = 1 SOLUTION = 2 USER_SOLUTION_POINT = 3 USER_SOLUTION_LINE = 4 USER_SOLUTION = 5 BASE = (6,) SOLUTION_RECT = (7,) ...
19.826667
42
0.681237
4712fae5c18da2faf84a6e3e819da46be7013b74
4,606
py
Python
train_scripts/segmentation/train_copy_paste.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
train_scripts/segmentation/train_copy_paste.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
train_scripts/segmentation/train_copy_paste.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import sys #Change path specificly to your directories sys.path.insert(1, '/home/codahead/Fishial/FishialReaserch') import os import cv2 import copy import torch import numpy as np import albumentations as A # copy paste source from module.segmentation_package.src.copy_paste import CopyPaste from module.segmentation_...
34.373134
203
0.723187
4722a2b4414d184994b9635cb3e04b2d770b4c88
1,584
py
Python
data_science_and_big_data_analytics/module_1/case_1.1.2/preProcessamento.py
abrantesasf/mit_xpro
6698c2bb48b8d08bee0d44ab7552e2559e9aa62e
[ "MIT" ]
null
null
null
data_science_and_big_data_analytics/module_1/case_1.1.2/preProcessamento.py
abrantesasf/mit_xpro
6698c2bb48b8d08bee0d44ab7552e2559e9aa62e
[ "MIT" ]
null
null
null
data_science_and_big_data_analytics/module_1/case_1.1.2/preProcessamento.py
abrantesasf/mit_xpro
6698c2bb48b8d08bee0d44ab7552e2559e9aa62e
[ "MIT" ]
1
2022-02-04T15:34:23.000Z
2022-02-04T15:34:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 5 22:06:26 2017 @author: abrantesasf """ #%% Imports import nltk from nltk import word_tokenize from bs4 import BeautifulSoup import urllib.request from collections import defaultdict, Counter import os import re from nltk.stem import RegexpStemme...
25.548387
70
0.609217
7510938d9ce1ae002d2563bcfeecf39f7ec2c2bd
1,601
py
Python
algorithms/ar-lis/python3/longest_increasing_subsequence.py
NuclearCactus/FOSSALGO
eb66f3bdcd6c42c66e8fc7110a32ac021596ca66
[ "MIT" ]
59
2018-09-11T17:40:25.000Z
2022-03-03T14:40:39.000Z
algorithms/ar-lis/python3/longest_increasing_subsequence.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
468
2018-08-28T17:04:29.000Z
2021-12-03T15:16:34.000Z
algorithms/ar-lis/python3/longest_increasing_subsequence.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
253
2018-08-28T17:08:51.000Z
2021-11-01T12:30:39.000Z
def find_longest_increasing_subsequence(arr): """ Longest increasing subsequence is the subsequence that has the longest streak of going up consecutively :param arr: the sequence to search for longest subsequence :return: the longest subsequence found in the sequence arr provided """ longest_fou...
40.025
118
0.650843
cac7df64d66e7226b84bc41f2125905db6185cc4
466
py
Python
exercises/fr/solution_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/solution_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/solution_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("fr_core_news_sm") text = "Apple a été créée en 1976 par Steve Wozniak, Steve Jobs et Ron Wayne." # Traite le texte doc = nlp(text) for token in doc: # Obtiens le texte du token, sa partie de discours et sa relation de dépendance token_text = token.text token_pos = token.po...
27.411765
83
0.7103
04b5f863b6dc365649f0368166c2de110c3142be
345
py
Python
src/util/iterator.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
6
2018-12-20T06:50:52.000Z
2021-12-16T13:08:38.000Z
src/util/iterator.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2020-06-29T07:00:51.000Z
2020-06-29T07:00:51.000Z
src/util/iterator.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2022-03-04T07:29:55.000Z
2022-03-04T07:29:55.000Z
import collections def sliding_window(arr, window_size): for i in range(0, len(arr) - window_size + 1): yield arr[i:i+window_size] def flatten(l): for el in l.values(): if isinstance(el, collections.Iterable) and not isinstance(el, (str, bytes)): yield from flatten(el) el...
23
85
0.614493
6d5bf0d9d9a19baebc74f94835bc6c709eaaade5
636
py
Python
simple-tensorflow-demo/2.basic variable and process/tf_2nd_test.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-tensorflow-demo/2.basic variable and process/tf_2nd_test.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-tensorflow-demo/2.basic variable and process/tf_2nd_test.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
import tensorflow as tf import numpy as np def ori_add(): x = 1 y = 2 z = 3 add = x + y mul = y * z print(add, mul) def tf_add(): x = tf.Variable(1) # x是常量 y = tf.placeholder(tf.int32) # 假设我们不知道y的值, 先占位 z = tf.placeholder(tf.int32) # 假设我们不知道z的值, 先占位 add = tf.add(x, y) m...
21.931034
94
0.583333
1e1e6d97614c249d5dbd7bd8d738b7e3b57a6b7c
1,208
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_convert.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_convert.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_convert.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import test_fasta import os import screed from screed.DBConstants import fileExtension class Test_fasta_to_fastq(test_fasta.Test_fasta): """ Tests the ability to convert a fasta db to a fastq file, parse it into a fastq db, save to a fasta file, parse the fasta file into a fasta db and then run the fas...
38.967742
75
0.680464
94bf89437264e319922b0476062c2e9bc00ab0b7
7,757
py
Python
CC8550-SimulacaoETesteDeSoftware/Lab06/Lab06.py
phdomingues/FEI-CS
e1dc19c190d61f5f13492ba5179f5d41295f1b50
[ "MIT" ]
null
null
null
CC8550-SimulacaoETesteDeSoftware/Lab06/Lab06.py
phdomingues/FEI-CS
e1dc19c190d61f5f13492ba5179f5d41295f1b50
[ "MIT" ]
null
null
null
CC8550-SimulacaoETesteDeSoftware/Lab06/Lab06.py
phdomingues/FEI-CS
e1dc19c190d61f5f13492ba5179f5d41295f1b50
[ "MIT" ]
null
null
null
import random from math import log # log = base e # Seed para padronizar os resultados random.seed(0) # ================== # # === DEFINICOES === # # ================== # class computador: def __init__(self, a, ts, kf, nome="Computador"): self.nome = nome self.a = a/3600 self.ts = ts ...
39.375635
139
0.526234
a21b1e8fe8d18a9dccff2225c54e6ae1e24f56fc
195
py
Python
Shivani/triangle.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/triangle.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/triangle.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
x = int(input("enter first side\n")) y = int(input("enter second side\n")) z = int(input("enter third side\n")) if(x==y==z): print("equilateral triangle") else: print("scalene triangle")
24.375
37
0.646154
bf87d297af9212f8823439ed46e69776d60b7f0e
1,323
py
Python
server/bumf/api/views/transaction.py
bumfiness/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
6
2017-01-07T17:59:46.000Z
2017-02-10T13:19:46.000Z
server/bumf/api/views/transaction.py
rixx/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
null
null
null
server/bumf/api/views/transaction.py
rixx/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
null
null
null
from django.db.models import Q from bumf.api.serializers import ( DossierSerializer, RealTransactionReadSerializer, RealTransactionWriteSerializer, VirtualTransactionReadSerializer, ) from bumf.api.views.base import BumfViewSet from bumf.core.models import Dossier, RealTransaction, VirtualTransaction class D...
33.923077
96
0.761905
bfa08e0ee81cf7f1e531083bfdd8f23a442b81e0
1,900
py
Python
src/utils/mask/mask.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/utils/mask/mask.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/utils/mask/mask.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
import random from concurrent.futures import ProcessPoolExecutor import numpy as np from numpy import ndarray from scipy.spatial.distance import mahalanobis from settings import img_height, img_width from type import PathLike from utils.io.XLoader import get_processed_radar_files_list __all__ = [ "get_systematic...
28.787879
98
0.684211
ec6f7e3960c5271f1035508bb931ee2f3439788b
422
py
Python
hello/hello_sba.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_sba.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_sba.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
# pip install pyctuator import os from flask import Flask from pyctuator.pyctuator import Pyctuator app_name = "Flask App with Pyctuator" app = Flask(app_name) @app.route("/") def hello(): return "Hello World!" Pyctuator( app, app_name, app_url="http://localhost:5000", pyctuator_endpoint_url=...
16.88
61
0.71327
bdcc59e6e37ca192198a8c4aae1a209f64f5fbf7
6,189
py
Python
rbac/ledger_sync/deltas/updating.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
rbac/ledger_sync/deltas/updating.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
rbac/ledger_sync/deltas/updating.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
36.839286
100
0.592341
da3e0a718947cf97c340ff023098e2fc0b1792a9
2,797
py
Python
src/bo4e/com/regionaletarifpreisposition.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/regionaletarifpreisposition.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/regionaletarifpreisposition.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains RegionaleTarifpreisposition class and corresponding marshmallow schema for de-/serialization """ from typing import List, Optional import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.com.com import COM, COMSchema from bo4e.com.regionalepreiss...
40.536232
209
0.765821
da6745d6af5039dc51e1c6370dc475a631490289
1,734
py
Python
stats/pull_stats.py
SteffenKrohn/Dozer
9b11f76bd6dec402fe0efbd192f709d413d2f453
[ "MIT" ]
5
2020-07-08T17:16:36.000Z
2020-07-16T19:15:27.000Z
stats/pull_stats.py
SteffenKrohn/Dozer
9b11f76bd6dec402fe0efbd192f709d413d2f453
[ "MIT" ]
1
2020-07-09T14:28:21.000Z
2020-07-09T14:28:21.000Z
stats/pull_stats.py
SteffenKrohn/Dozer
9b11f76bd6dec402fe0efbd192f709d413d2f453
[ "MIT" ]
1
2020-07-09T13:09:30.000Z
2020-07-09T13:09:30.000Z
import firebase_admin from firebase_admin import credentials from firebase_admin import firestore import csv # init service account cred = credentials.Certificate('dozer-credential.json') firebase_admin.initialize_app(cred) # connect with db db = firestore.client() # init visits and levelstarts collection ref visits...
39.409091
188
0.700115
dae62f5b1f510165cbafb7e2ccbc0612e3573620
1,141
py
Python
code/textmining/ranking_functions.py
DLR-SC/repository-synergy
115e48c37e659b144b2c3b89695483fd1d6dc788
[ "MIT" ]
5
2021-05-09T12:51:32.000Z
2021-11-04T11:02:54.000Z
code/textmining/ranking_functions.py
DLR-SC/repository-synergy
115e48c37e659b144b2c3b89695483fd1d6dc788
[ "MIT" ]
null
null
null
code/textmining/ranking_functions.py
DLR-SC/repository-synergy
115e48c37e659b144b2c3b89695483fd1d6dc788
[ "MIT" ]
3
2021-05-12T12:14:05.000Z
2021-10-06T05:19:54.000Z
# -*- coding: utf-8 -*- """ Created on Tue Mar 24 11:08:18 2020 """ import numpy as np import time def normalise_matrix(X): return np.nan_to_num((X.T / np.sum(X, axis=1)).T) def rank_repositories_multiplicative(X, Xneg, M, O): return (X.dot(np.exp(-M)) * Xneg).dot(X.T) * O def rank_reposit...
31.694444
112
0.651183
970108e94c1224cee30e41023319f246a7355ee4
308
py
Python
models/payment_mode.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/payment_mode.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/payment_mode.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- from openerp import api, exceptions, fields, models, _ class PaymentMode(models.Model): _name = "payment.mode" _description = "Mode de payement" code = fields.Char(string='Code', size=8) name = fields.Char(string='Type') ref = fields.Char(string='Reference')
22
54
0.659091
c1b3fed70b19de245837eab88f5f0a4a437140df
493
py
Python
Topics/Sorting/Selection-Sort/selection-sort.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Topics/Sorting/Selection-Sort/selection-sort.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Topics/Sorting/Selection-Sort/selection-sort.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def selection_sort(a: list) -> list: """Given a list of element it's return sorted list of O(n^2) complexity""" a = a.copy() n = len(a) for i in range(n): mni = i for j in range(i+1, n): if a[j] < a[mni]: mni = j a[i], a[mni] = a[mni], a[i] return ...
24.65
78
0.527383
820ccb2a70485082f4d06882f31f56e63247b733
1,596
pyde
Python
sketches/codingtrain_unicorn_rainbow_4/codingtrain_unicorn_rainbow_4.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/codingtrain_unicorn_rainbow_4/codingtrain_unicorn_rainbow_4.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/codingtrain_unicorn_rainbow_4/codingtrain_unicorn_rainbow_4.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# The Coding Train designs and characters by Jason Heglund: # https://jasonheglund.com/#/the-coding-train/ add_library('sound') from unicornrainbow import UnicornRainbow from codingtrain import CodingTrain trains = [] NO_TRAINS = 2 def setup(): global unicorn, trains, bg, fail, thisdot size(720, 360) thi...
28.5
75
0.632832
820f78729cec27fa3a381e6bc77bf8dfda5786a9
926
py
Python
project_euler_problems/summation of primes/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
project_euler_problems/summation of primes/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
project_euler_problems/summation of primes/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
import math # This solution aims to try every numbers # and add primes to the sum when we encountered def isEven(nb): return nb % 2 == 0 # A prime number is a number that can only be divisible by 1 or itself # Facts about prime numbers: # - 1 is not a prime. # - All primes except 2 are odd. def isPrime(nb): ...
21.045455
73
0.596112
41a08043416778f74c8fc5fd58906be6bb7468f8
943
py
Python
Xtendgpiozero/buttonxtendgpiozero.py
Hofei90/picoffee
6b2a00f2b4631790b90495d736afeb331d759241
[ "MIT" ]
3
2019-05-04T21:34:33.000Z
2022-01-25T10:00:25.000Z
Xtendgpiozero/buttonxtendgpiozero.py
Hofei90/picoffee
6b2a00f2b4631790b90495d736afeb331d759241
[ "MIT" ]
4
2019-04-11T05:03:55.000Z
2020-07-09T06:52:58.000Z
Xtendgpiozero/buttonxtendgpiozero.py
Hofei90/picoffee
6b2a00f2b4631790b90495d736afeb331d759241
[ "MIT" ]
1
2020-02-13T19:04:31.000Z
2020-02-13T19:04:31.000Z
import gpiozero import time class Button(gpiozero.Button): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._event = False self.event_time = None self._pressed_at = None def check_status(self): status = self._event # print("status: {}...
21.930233
56
0.6193
6bf17d5b759f4c6d10e249b6e26f4b67bb52d4d2
1,418
py
Python
Source/02_EmailMiMe/app_html.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
1
2022-02-28T09:49:35.000Z
2022-02-28T09:49:35.000Z
Source/02_EmailMiMe/app_html.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
null
null
null
Source/02_EmailMiMe/app_html.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
null
null
null
""" SMTP : Simple Mail Transfer Protocol Only for ASCII Encoding """ """ MiMe Encoding provides: - Special Chars, etc. - Attachments - HTML Template """ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.image import MIMEImage import os from pathlib import Path ...
19.162162
67
0.708039
d489fb1b45fd6403b009228235e2dfa6775e981f
598
py
Python
7-assets/past-student-repos/Python-II-Notes-master/src/category.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Python-II-Notes-master/src/category.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Python-II-Notes-master/src/category.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# from product import Product class Category: def __init__(self, name, *products): # add later: product list parameter self.name = name self.products = products def __repr__(self): output = self.name if(self.products): for p in self.products: ...
23.92
100
0.565217
2e36d876ab23d8122d4248206a84b9299a23e315
434
py
Python
source/pkgsrc/databases/py-gdbm/files/setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/databases/py-gdbm/files/setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/databases/py-gdbm/files/setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
# $NetBSD: setup.py,v 1.2 2011/11/03 12:21:41 obache Exp $ import distutils from distutils.core import setup, Extension gdbmprefix = '@GDBMPREFIX@' gdbmincl = gdbmprefix + '/include' gdbmlib = gdbmprefix + '/lib' setup( ext_modules = [ Extension( '@GDBM_MODNAME@', ['Modules/@GDBM_MODNAME@module.c'], incl...
19.727273
58
0.686636
d8df11d84d9f35f1d2e58802c5b2b24360de3852
2,302
py
Python
xiaohongshu/xiaohs_user.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
5
2020-08-17T08:37:16.000Z
2021-06-07T05:02:05.000Z
xiaohongshu/xiaohs_user.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
null
null
null
xiaohongshu/xiaohs_user.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
1
2021-06-07T05:02:10.000Z
2021-06-07T05:02:10.000Z
import CralwerSet.connect_mysql as connect_mysql import json import hashlib import time import requests import random import traceback def get_Xsign(id): data = f"/fe_api/burdock/weixin/v2/user/{id}?sid=session.1577714043741394419362WSUDD" m = hashlib.md5(data.encode()) sign = m.hexdigest() return "...
33.852941
289
0.660295
998ba81e27715e15e3c1d53c503441a3cb7297b1
816
py
Python
CodeStatistics/CodeStatistics/utils/MySQLHelper.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
CodeStatistics/CodeStatistics/utils/MySQLHelper.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
CodeStatistics/CodeStatistics/utils/MySQLHelper.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Datetime: 2018/12/26 @Author: Zhang Yafei """ import pymysql from settings import POOL def connect(): conn = POOL.connection() cursor = conn.cursor(cursor=pymysql.cursors.DictCursor) return conn, cursor def connect_close(conn, cursor): cursor.close() conn.close() ...
17.73913
59
0.648284
999b04a9901a1df00dbbb440a812417315c28cab
1,637
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/gemini-0.10.0-py2.7.egg/gemini/vcf_info.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/gemini-0.10.0-py2.7.egg/gemini/vcf_info.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/gemini-0.10.0-py2.7.egg/gemini/vcf_info.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import pysam import sys import os import math class VCFInfo(object): def __init__(self, vcf_filename): self.filename = vcf_filename self.fh = open(self.filename) def _get_header(self): """ return a list of the header lines for a VCF file. """ self....
24.80303
73
0.547954
515e867c2076c0115f659e79a18ab74058764148
3,683
py
Python
docs/efficient_ai_doc/example/quantize_resnet50_example.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
docs/efficient_ai_doc/example/quantize_resnet50_example.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
docs/efficient_ai_doc/example/quantize_resnet50_example.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
""" A example to use quantize from a moxing model Copyright 2019 The Huawei Corps. All Rights Reserved. Modify By h00423091 2019/6/19 11:23 Created By h00423091 2019/6/19 11:23 """ import os import tensorflow as tf import moxing.tensorflow as mox from tensorflow.examples.tutorials.mnist import input_data from efficie...
33.481818
112
0.679881
5acb814c44b816d9d4a16bf616c3821cc886bcbd
55,236
py
Python
bot.py
Mitohku/ufehsuiliesq
80a39c7e61bc55ef84ed48338c3153fb68b67c74
[ "MIT" ]
null
null
null
bot.py
Mitohku/ufehsuiliesq
80a39c7e61bc55ef84ed48338c3153fb68b67c74
[ "MIT" ]
null
null
null
bot.py
Mitohku/ufehsuiliesq
80a39c7e61bc55ef84ed48338c3153fb68b67c74
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import asyncio import os import sys import time import random import datetime as dt import datetime import json, asyncio import copy import logging import traceback import aiohttp from collections import Counter command_prefix = "s" #CHAN...
50.306011
498
0.622764
cfaa660e391c74bf93cb6d17183d663ad1e904ea
143
py
Python
hardware/chip/rtl872xd/hal/hal_test/adc/ucube.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
hardware/chip/rtl872xd/hal/hal_test/adc/ucube.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
hardware/chip/rtl872xd/hal/hal_test/adc/ucube.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
src = Split(''' adc_test.c ''') component = aos_component('adc_test', src) component.add_cflags('-Wall') component.add_cflags('-Werror')
15.888889
42
0.685315
5cddf18971aae0cbaeb5d9196be603554b68d018
1,039
py
Python
Webpage/blog/urls.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/blog/urls.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/blog/urls.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
"""Django URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
35.827586
97
0.710298
8f669ab850d11d530b10227cbe348982e00465dd
1,150
py
Python
Curso-Em-Video-Python/1Materias/19_Dicionarios/#19 Dicionarios.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/19_Dicionarios/#19 Dicionarios.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/19_Dicionarios/#19 Dicionarios.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
'''filme = { 'Titulo':'Star Wars', 'ano': 1997, 'Diretor': 'George Lucas' } #print(filme.values()) #mostra o imput da variavel #print(filme.keys()) # mostra a varial ex nome for k, v in filme.items(): print(f'O {k} é {v}')''' ''' pessoas = {'nome':'Pedro', 'sexo': 'M', 'idade': 22} del pessoas['sexo']...
20.535714
58
0.589565
8f6b34cda02c41980db268fda4e8f2399df8bfe2
3,924
py
Python
Tests/Marketplace/Tests/search_and_unistall_pack_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Tests/Marketplace/Tests/search_and_unistall_pack_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
40
2022-03-03T07:34:00.000Z
2022-03-31T07:38:35.000Z
Tests/Marketplace/Tests/search_and_unistall_pack_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import demisto_client import pytest import Tests.Marketplace.search_and_uninstall_pack as script BASE_URL = 'http://123-fake-api.com' API_KEY = 'test-api-key' MOCK_BASE_SEARCH_RESULTS = """{ "id": "Base", "currentVersion": "1.0.2" }""" MOCK_PACKS_INSTALLATED_RESULT = """[ { "id": "HelloWorld", ...
28.434783
104
0.692406
f1801c18b4c33a8681a49a2ecac045d724450492
5,284
py
Python
2020-09-03-1203-gma_Klassen_bruch.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-03-1203-gma_Klassen_bruch.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-03-1203-gma_Klassen_bruch.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 3 09:33:10 2020 @author: Georg Maubach """ class Bruch: var = 1 def __init__(self, z, n): # Konstruktor self._zaehler = z # Der Konstruktur muss genauso self._nenner = n ...
33.443038
85
0.531037
2d28d7c854c950dd4d8e3194ceca43ac098bb43b
5,600
py
Python
HW1/p2.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW1/p2.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW1/p2.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
#Kyle Verdeyen #kverdey1@jhu.edu #Computer Vision EN.601.461 #Assignment 1 #Programming section 1, p2 #p2.py: runs sequential labeling algorithm that segments binary image into connected regions #4-connected labeling algorithm import cv2 import numpy as np #Modeled after StackOverflow disjoint set data structure #http...
38.62069
129
0.671071
740fb1112e1e005d26ba2743fb3a1521a392094c
849
py
Python
数据结构/NowCode/32_GetMiddleValue.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/32_GetMiddleValue.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/32_GetMiddleValue.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# -*- coding:utf-8 -*- array = [] class Solution: def Insert(self, num): global array # write code here array.append(num) def GetMedian(self): # write code here global array if array == []: return None for i in range(len(array)): f...
26.53125
47
0.465253
bb11c8ffa3b3b5d25b14a4f7e556901703c82ebc
1,810
py
Python
cs/python/python_general/misc_functions/files_and_dirs/augo_create_daily_journal.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/python/python_general/misc_functions/files_and_dirs/augo_create_daily_journal.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/python/python_general/misc_functions/files_and_dirs/augo_create_daily_journal.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Augo :: Create Daily Journal - Get current file name: "yyyy-mm-dd-nnn-day.md" - If it doesn't exist, create current file - Get current sprint: directory number + file name - If no sprint exists, then create it - Get previous filename: "yyyy-mm-dd-nnn-day.md" - Selectively copy/extract from previous and cop...
34.150943
88
0.68674
5668b3e17d26b8712ffed9b8f809cd56b04005c9
16,489
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_drive_firmware.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_drive_firmware.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_drive_firmware.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# (c) 2018, NetApp Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type try: from unittest import mock except ImportError: import mock from ansible_collections.community.general.p...
75.986175
159
0.604949
3b1fd6f53ae624fcfb1ab80f8f4cb18e3d3fb6c8
1,549
py
Python
BinaryHeap.py
GShamian/ExamInf
81f521d0b137eee0a4c7f53443303f419e7c33ef
[ "MIT" ]
2
2017-12-22T20:03:30.000Z
2017-12-24T20:55:38.000Z
BinaryHeap.py
GShamian/ExamInf
81f521d0b137eee0a4c7f53443303f419e7c33ef
[ "MIT" ]
null
null
null
BinaryHeap.py
GShamian/ExamInf
81f521d0b137eee0a4c7f53443303f419e7c33ef
[ "MIT" ]
null
null
null
class BinaryHeap: def __init__(self, s = []): #конструктор self.list = [] #list для кучи self.buildHeap(s) def heapSize(self): #размер кучи return len(self.list) def push(self, x): #вставка элемента self.list.append(x) i = self.heapSize() - 1 parent = (i -...
29.226415
98
0.506779
8ee67503a60f56d55bc9158b1f4488b40307b7da
1,292
py
Python
DisGeneNet/DisGeneNetSQL.py
ecarl-glitch/LeukoDB
57c39d431430fae9def5109b4d6aa457ef1a25cf
[ "MIT" ]
null
null
null
DisGeneNet/DisGeneNetSQL.py
ecarl-glitch/LeukoDB
57c39d431430fae9def5109b4d6aa457ef1a25cf
[ "MIT" ]
null
null
null
DisGeneNet/DisGeneNetSQL.py
ecarl-glitch/LeukoDB
57c39d431430fae9def5109b4d6aa457ef1a25cf
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Purpose is to covert VariantDiseaseAssoc, API results, to SQL Insert Statements import pandas as pd from functools import reduce inputfile = open("VariantDiseaseAssoc.tsv" , "r") outputfile = open('DisGenetoSQL.sql', 'w') line = inputfile.readline() for line in inputfile: ...
39.151515
161
0.567337
d91fbafdfe85f2844e55ed046066d43520395833
516
py
Python
main.py
motazsaad/Flask_TF
2931ac5bdc328d86af56c5b87b5c696ee6796de6
[ "MIT" ]
1
2020-11-04T08:44:54.000Z
2020-11-04T08:44:54.000Z
main.py
motazsaad/Flask_TF
2931ac5bdc328d86af56c5b87b5c696ee6796de6
[ "MIT" ]
null
null
null
main.py
motazsaad/Flask_TF
2931ac5bdc328d86af56c5b87b5c696ee6796de6
[ "MIT" ]
null
null
null
#import random # step 1: import Flask from flask import Flask, render_template # step 2: define Flask app # app = Flask("My Flask App") app = Flask(__name__) # step 3: define pages @app.route('/') def home(): return '<h1> Hello from Flask </h1>' @app.route('/help') def help(): return '<h1> Hello from help...
15.176471
51
0.647287
d95cae94b690c8b8fddb63667f044e2ec7693e9b
2,719
py
Python
server/bumf/core/models/auth.py
bumfiness/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
6
2017-01-07T17:59:46.000Z
2017-02-10T13:19:46.000Z
server/bumf/core/models/auth.py
rixx/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
null
null
null
server/bumf/core/models/auth.py
rixx/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
null
null
null
import re import string from django.contrib.auth.models import AbstractBaseUser, BaseUserManager from django.core.exceptions import ValidationError from django.db import models def nick_validator(value: str) -> None: """ Validate nicknames for length, collisions when lower-cased, and allowed characters (...
33.9875
110
0.668996
d95f4048b597489d84df3443ca086173ecc79dcc
4,652
py
Python
official/nlp/ernie/src/mrc_postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/ernie/src/mrc_postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/ernie/src/mrc_postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
32.760563
78
0.52601
30c2bc970e836aa35e1bdf4575d50c54e1443013
4,444
py
Python
test_client.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
test_client.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
test_client.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
# coding: utf-8 import pytest import paho.mqtt.client as mqtt import paho.mqtt.publish as mqtt_publish from configparser import ConfigParser from json import dumps from pathlib import Path from tentacle.client import MQTTClient, publish, HOSTNAME, PORT from tentacle import client config = ConfigParser() config.read...
34.71875
87
0.674167
d6dffce285736de48f52fb1cc66913f0e74bb549
11,622
py
Python
T1/09_mesh_subdivision/PPP_Keyshot_Examples/PPP_batch.py
tetov/MAS-1920
e5cfe4afbc7c0e80c6adfd139624d028c0ca4bfb
[ "MIT" ]
3
2019-09-15T17:40:35.000Z
2020-11-07T01:47:29.000Z
T1/09_mesh_subdivision/PPP_Keyshot_Examples/PPP_batch.py
tetov/MAS-1920
e5cfe4afbc7c0e80c6adfd139624d028c0ca4bfb
[ "MIT" ]
1
2019-09-17T22:59:19.000Z
2019-09-17T22:59:19.000Z
T1/09_mesh_subdivision/PPP_Keyshot_Examples/PPP_batch.py
MAS-dfab/MAS-1920
93abb09b072b9a061496bc8a30bdce481a8735c5
[ "MIT" ]
8
2019-09-16T18:47:20.000Z
2019-10-15T17:08:08.000Z
# -*- coding: utf-8 -*- # AUTHOR Dries Vervoort (Luxion) # VERSION 0.0.1 # Batch render OBJ models to images. import os, re #Import modules os (operating system dependent functionality) and re (regular expression matching operations) #Function to do a sanity check on the dialog options. def checkDialogOptions(o...
48.831933
202
0.684908
ba36109494ceae654906bb7fb5f38f04d32d9128
343
py
Python
exercises/es/solution_02_10_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/solution_02_10_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/solution_02_10_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("es_core_news_md") doc = nlp( "Estuvimos en un restaurante genial. Luego, fuimos a un bar muy divertido." ) # Crea los spans para "restaurante genial" y "bar muy divertido" span1 = doc[3:5] span2 = doc[11:14] # Obtén la similitud entre los dos spans similarity = span1.similarity(sp...
21.4375
79
0.731778
ba84f51ec7636369df840abb7eaec9306459ded0
1,436
py
Python
LeetCode_problems/Invert Binary Tree/invert_binary_Tree.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
LeetCode_problems/Invert Binary Tree/invert_binary_Tree.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
LeetCode_problems/Invert Binary Tree/invert_binary_Tree.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
from collections import deque class TreeNode: def __init__(self,val): self.val = val self.left = None self.right = None def insert(root,node): if root is None: root = node else: if root.val < node.val: if root.right is None: ...
23.540984
88
0.58078
243b718e5f6d27f203ffa7b84cb1549f652def31
4,332
py
Python
importmodul.py
MaliziaGrimm/Lohnvorerfassung-50a-fuer-DATEV
41b99deacc5bfee6562907de109a8ad5af917d01
[ "MIT" ]
null
null
null
importmodul.py
MaliziaGrimm/Lohnvorerfassung-50a-fuer-DATEV
41b99deacc5bfee6562907de109a8ad5af917d01
[ "MIT" ]
null
null
null
importmodul.py
MaliziaGrimm/Lohnvorerfassung-50a-fuer-DATEV
41b99deacc5bfee6562907de109a8ad5af917d01
[ "MIT" ]
null
null
null
# # Tool zum Import von Stammdaten aus Lodas / LuG nach ARMTool # DalyReport Arbeitnehmer mit Quelle Lodas wird verarbeitet # DalyReport Arbeitnehmer mit Wuelle Lohn und Gehalt wird verarbeitet # Stand 24.12.2021 # import os, time from shutil import copyfile def lodasimport(var_abrmonat, var_abrjahr, v...
47.086957
250
0.659511
79e69da9a81296505de123f96540d727e73fad17
1,978
py
Python
app/main/forms.py
kalbe09/Kicards
ad64cfa808307b10f98f95dbb8cf0350995c3afd
[ "MIT" ]
null
null
null
app/main/forms.py
kalbe09/Kicards
ad64cfa808307b10f98f95dbb8cf0350995c3afd
[ "MIT" ]
null
null
null
app/main/forms.py
kalbe09/Kicards
ad64cfa808307b10f98f95dbb8cf0350995c3afd
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_pagedown.fields import PageDownField from wtforms import StringField, SubmitField, BooleanField, DateField, IntegerField, FileField from wtforms.validators import DataRequired, Optional class CollectionForm(FlaskForm): name = StringField('Name*', validators=[DataRequired...
40.367347
94
0.717391
033998b64bd60accbb03819c650e0fcb271d4580
625
py
Python
exercises/ja/solution_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy from spacy.tokens import Span nlp = spacy.load("ja_core_news_sm") def get_wikipedia_url(span): # もしスパンにいずれかのラベルがついているなら、WikipediaのURLを返す if span.label_ in ("PERSON", "ORG", "GPE", "LOCATION"): entity_text = span.text.replace(" ", "_") return "https://ja.wikipedia.org/wiki/" + ent...
26.041667
61
0.7312
88e7f32169c3fc3d4c5e19f30d763bee15b1aefe
2,492
py
Python
external/test2.py
AFE-GmdG/a-new-life
22f3e5590ff6a5ec2c96f5855ad9e51dde36fe3c
[ "MIT" ]
1
2019-10-27T17:09:46.000Z
2019-10-27T17:09:46.000Z
external/test2.py
a-friedel/a-new-life
22f3e5590ff6a5ec2c96f5855ad9e51dde36fe3c
[ "MIT" ]
null
null
null
external/test2.py
a-friedel/a-new-life
22f3e5590ff6a5ec2c96f5855ad9e51dde36fe3c
[ "MIT" ]
null
null
null
import bpy from mathutils import * from math import * # http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-17-quaternions/ def fromToRotation(start, dest): start.normalize() dest.normalize() cosTheta = Vector.dot(start, dest) if cosTheta < -0.9999999: # special case wh...
28.318182
92
0.579856
cc7475124cf9d7d2a5462031fedc12b53fd736a1
7,841
py
Python
ingress/ambassador/ambassador/ambassador/cli.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
ingress/ambassador/ambassador/ambassador/cli.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2021-03-26T00:22:44.000Z
2021-03-26T00:23:20.000Z
ingress/ambassador/ambassador/ambassador/cli.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
# Copyright 2018 Datawire. 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 agr...
32.945378
94
0.625175