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
6fb8dbf70e03a34c8c72847a6febadb64109d20f
4,718
py
Python
quark_core_api/context/context_objects.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/context/context_objects.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/context/context_objects.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
from future.builtins import super from quark_core_api.context import CoreContext from quark_core_api.exceptions import InvalidOperationException class ApplicationContext(CoreContext): def __init__(self, directory, context_initializer): super().__init__(directory, context_initializer) @property @Co...
28.593939
83
0.648156
96aea2ead7431cb2147dda13106fcc51d145e41c
96
py
Python
scripts/hello_world_akanijade.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_akanijade.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_akanijade.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
# LANGUAGE: python # AUTHOR: Akani # GITHUB: https://github.com/akanijade print "Hello World."
16
38
0.71875
96b5ce34f2543516adaf307c0edb20728b455e3e
401
py
Python
IVTp/2014/Lyach_A_A/Task_1_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Lyach_A_A/Task_1_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Lyach_A_A/Task_1_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1, Вариант 12 # Напишите программу , которая будет сообщать род деятельности и псевдоним под которым скрывается Мария Луиза Чеччарелли. # Послевывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Лях А. А. # 21.05.2016 print("Мария Луиза Чечарелли, более известна к...
44.555556
123
0.773067
73d5421f1b454c0516f606ca73412adb6d53146e
2,085
py
Python
research/hpc/molecular_dynamics/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/hpc/molecular_dynamics/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/hpc/molecular_dynamics/export.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...
35.338983
99
0.706475
fbb557f521a7312bdb97c7bd1d127f0eedac1491
1,226
py
Python
rung_gen.py
alphabet5/RungGenerator
3cdd00f03d7fa9524c1870708c85a97d9f2fc394
[ "MIT" ]
null
null
null
rung_gen.py
alphabet5/RungGenerator
3cdd00f03d7fa9524c1870708c85a97d9f2fc394
[ "MIT" ]
null
null
null
rung_gen.py
alphabet5/RungGenerator
3cdd00f03d7fa9524c1870708c85a97d9f2fc394
[ "MIT" ]
null
null
null
import xmltodict from csv import DictReader from collections import OrderedDict from string import Template comment_template = Template("""********************************************************************************* ${line1} ${line2} *********************************************************************************...
45.407407
134
0.571778
839f13900976cb92e42606d33a00f8d6a9f8952f
4,587
py
Python
src/adjective_based_mitigation/sample_and_eval_adjectives.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/adjective_based_mitigation/sample_and_eval_adjectives.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/adjective_based_mitigation/sample_and_eval_adjectives.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import random import hydra.utils import torch from torch.nn import functional as F import pandas as pd from transformers import AutoTokenizer, AutoModelForCausalLM from src.classifier.torch_helpers.load_pretrained import load_torch_model from src.text_generator.regard_text_generator import ( filter_firs...
37.598361
95
0.715064
f7fdcdb6485fbe32cd6afbac28f4491107befbc0
2,519
py
Python
src/responsive/Responsive.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
src/responsive/Responsive.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
src/responsive/Responsive.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
import wx import wx.grid import typing from pubsub import pub class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, parent=None, title="A Simple Grid", size=(900, 400)) self.panel = wx.Panel(self) pub.subscribe(self.grid_rerender, "grid_rerender") # grid_...
41.983333
117
0.500198
541ce0ac116f445735a40942d017c48736b30fbb
1,170
py
Python
python/Distance.py
thomas-trendsoft/BeerBot
9ac9bfcede3f37dc8aaa3ee09e06272a1b43a9e9
[ "MIT" ]
null
null
null
python/Distance.py
thomas-trendsoft/BeerBot
9ac9bfcede3f37dc8aaa3ee09e06272a1b43a9e9
[ "MIT" ]
null
null
null
python/Distance.py
thomas-trendsoft/BeerBot
9ac9bfcede3f37dc8aaa3ee09e06272a1b43a9e9
[ "MIT" ]
1
2020-12-31T01:22:19.000Z
2020-12-31T01:22:19.000Z
import RPi.GPIO as GPIO import time class Distance: # init driver class def __init__(self): self.trigger = 18 self.echo = 17 #Richtung der GPIO-Pins festlegen (IN / OUT) GPIO.setup(self.trigger, GPIO.OUT) GPIO.setup(self.echo, GPIO.IN) def measure(self): ...
26
67
0.579487
588579d30be46df9d3ceb09b3c784889b2a8715e
668
py
Python
migrations/versions/197cc33a2c8f_.py
liuxianshengqwertyuiop/index
17d5ae1d44a9c4ba41cf7983e9cf5a3c43cdd927
[ "Apache-2.0" ]
null
null
null
migrations/versions/197cc33a2c8f_.py
liuxianshengqwertyuiop/index
17d5ae1d44a9c4ba41cf7983e9cf5a3c43cdd927
[ "Apache-2.0" ]
null
null
null
migrations/versions/197cc33a2c8f_.py
liuxianshengqwertyuiop/index
17d5ae1d44a9c4ba41cf7983e9cf5a3c43cdd927
[ "Apache-2.0" ]
null
null
null
"""empty message Revision ID: 197cc33a2c8f Revises: 4c96355cb8fa Create Date: 2018-10-07 11:40:37.948536 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '197cc33a2c8f' down_revision = '4c96355cb8fa' branch_labels = None depends_on = None def upgrade(): # ...
23.034483
85
0.697605
5482d0ff7d381621a994939d4cf894c84858cb9a
3,445
py
Python
project/views/admin.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/views/admin.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/views/admin.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from flask import flash, redirect, render_template, url_for from flask_babelex import gettext from flask_security import roles_required from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.sql import func from project import app, db from project.forms.admin import AdminSettingsForm, UpdateAdminUnitForm, UpdateUs...
30.758929
86
0.687663
b743a0a403e58d1827beaa0de33b8307271b3070
1,242
py
Python
leetcode/525-Contiguous-Array/one_pass.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/525-Contiguous-Array/one_pass.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/525-Contiguous-Array/one_pass.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# 2/18/17 (better) class Solution(object): def findMaxLength(self, nums): """ :type nums: List[int] :rtype: int """ res, tot, first_idx = 0, 0, {0: -1} for i in range(len(nums)): tot += 1 if nums[i] else -1 if tot in first_idx: ...
25.346939
76
0.434783
3f9e0b3e7634c8fefd89736cd977fda09858a4ee
6,002
py
Python
Utils/tests/download_packs_and_docker_images_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Utils/tests/download_packs_and_docker_images_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Utils/tests/download_packs_and_docker_images_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
from unittest.mock import patch from ..download_packs_and_docker_images import create_content_item_id_set, get_docker_images_with_tag, get_pack_names MOCK_ID_SET = { 'integrations': [{'mock_integration': {'name': 'mock_integration', 'file_path': 'Packs/mock_pack', ...
44.791045
118
0.560313
b782daf1c4563012d60c905e4798ba9124c40be6
142
py
Python
tests/resources/simple/simple-project/app/api/__init__.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
14
2021-03-27T22:18:56.000Z
2022-03-21T19:04:48.000Z
tests/resources/simple/simple-project/app/api/__init__.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
33
2021-03-28T21:06:22.000Z
2022-03-07T14:18:26.000Z
tests/resources/simple/simple-project/app/api/__init__.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
null
null
null
from fastapi import APIRouter from app.api.v1 import router as v1_router router = APIRouter(prefix="/api") router.include_router(v1_router)
20.285714
42
0.802817
128def9c04be9fc37d6cf64ae989635c8ab14b27
791
py
Python
books/PythonAutomate/scheduling/stopwatch.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/scheduling/stopwatch.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/scheduling/stopwatch.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""stopwatch.py A simple stopwatch program """ import time print(( "Press ENTER to begin. Afterward, press ENTER " "to \"click\" the stopwatch. Press Ctrl-C to quit" )) input() # press Enter to begin print("Started") start_time = time.time() # get the first lap's start time last_time = start_time lap_num = 1...
26.366667
75
0.653603
6726f22d01690b2fbc9b1a1ca1a41b7112e77033
1,646
py
Python
ReadExcel.py
ThoEngel/rentenplanung
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
3
2022-01-01T18:24:46.000Z
2022-01-08T15:28:46.000Z
ReadExcel.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
ReadExcel.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
''' Monatliche S&P500 Total Return Daten inkl. Inflation einlesen Daten-Quelle: https://earlyretirementnow.com/2018/08/29/google-sheet-updates-swr-series-part-28/ https://docs.google.com/spreadsheets/d/1QGrMm6XSGWBVLI8I_DOAeJV5whoCnSdmaR8toQB2Jz8/copy? Alternative Daten: (jedoch nicht verwendet) http://www.econ.yale....
28.37931
109
0.72661
67e899e73405490c80499bb7b5c97b034b050f0c
812
py
Python
tests/onegov/core/test_markdown.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_markdown.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_markdown.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.markdown import render_untrusted_markdown as render from mistletoe import HTMLRenderer def test_render_untrusted_markdown(): # no unsafe html assert render("<table></table>") == '&lt;table&gt;&lt;/table&gt;\n' # this would usually result ina code class element, but we currently # do...
33.833333
77
0.656404
67f65b6a6456ae69356a9cbd1f6cbf79a8f29e26
13,982
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/virtualpop_wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/virtualpop_wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/virtualpop_wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
40.645349
120
0.564082
c03d1c8234d1ed1a9aae850c0564f85548f098a8
1,453
py
Python
docs/analysis.py
mckeankylej/hwRecog
b5c9f5f74d47254c4a88347207917bbcdc50a2f5
[ "MIT" ]
308
2015-01-01T01:30:05.000Z
2021-11-08T12:03:18.000Z
docs/analysis.py
mckeankylej/hwRecog
b5c9f5f74d47254c4a88347207917bbcdc50a2f5
[ "MIT" ]
13
2015-05-23T20:39:09.000Z
2019-05-29T17:04:47.000Z
docs/analysis.py
mckeankylej/hwRecog
b5c9f5f74d47254c4a88347207917bbcdc50a2f5
[ "MIT" ]
42
2015-01-01T07:14:18.000Z
2021-09-13T19:33:41.000Z
import numpy as np import matplotlib.pyplot as plt def plot_activation_functions(neuron_type): """ Load the text file generated by the Haskell documentation script and use it to generate a png of the activation function. """ x = np.arange(-10.,10.01,0.01) y = np.loadtxt(neuron_type + ".txt") ...
28.490196
68
0.65382
3f0a5aa43c8b399a7aa2186f01a1bca319fdc47b
89
py
Python
Python/016-Whats-Your-Name.py
sadikkuzu/HackerRank
2b1ed2cf41f6a5404c5b9293186f301b646b5d33
[ "Apache-2.0" ]
5
2019-03-09T22:44:01.000Z
2021-09-14T00:11:38.000Z
Python/016-Whats-Your-Name.py
jguerra7/HackerRank-4
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
[ "Apache-2.0" ]
4
2018-08-16T09:39:47.000Z
2018-09-14T17:37:07.000Z
Python/016-Whats-Your-Name.py
jguerra7/HackerRank-4
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
[ "Apache-2.0" ]
1
2020-06-01T23:38:35.000Z
2020-06-01T23:38:35.000Z
def print_full_name(a, b): print "Hello %s %s! You just delved into python." % (a, b)
44.5
62
0.640449
18db63a8eba1b10f8d48e9099abcbd669bb454ff
2,331
py
Python
src/treemap/treemap.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/treemap/treemap.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/treemap/treemap.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# treemaps import pandas as pd import numpy as np import matplotlib.cm as cmp import matplotlib.colors as cl import matplotlib.pyplot as plt import warnings import squarify cmap_summer = cmp.get_cmap('Wistia') cmap_winter = cmp.get_cmap('cool') min_count = min(canada_medal_count['Medal']) max_count = max(canada_medal...
41.625
273
0.737881
7a15fa737f1be2ae58261582e66d973cef66d20b
27,637
py
Python
tspdb/src/database_module/sql_imp.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
43
2019-12-10T00:05:51.000Z
2022-03-31T21:21:20.000Z
tspdb/src/database_module/sql_imp.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
5
2021-05-09T01:12:31.000Z
2022-03-29T17:34:15.000Z
tspdb/src/database_module/sql_imp.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
14
2020-01-13T21:20:07.000Z
2022-03-31T02:11:26.000Z
from tspdb.src.database_module.db_class import Interface import psycopg2 from sqlalchemy import create_engine import numpy as np import io from time import time import pandas as pd from sqlalchemy.types import * class SqlImplementation(Interface): def __init__(self, driver="postgresql", host="localhost",...
41.004451
274
0.55679
36c342a13f49d7ad0d0dabc8a106beffd73489af
3,510
py
Python
AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/ProcessAIEOutputLib.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
1
2022-03-09T06:15:43.000Z
2022-03-09T06:15:43.000Z
AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/ProcessAIEOutputLib.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
null
null
null
AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/ProcessAIEOutputLib.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020–2021 Xilinx, 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 w...
24.375
95
0.535897
43f74da21ba7fdba3155686fa76c59ee514345fc
807
py
Python
chapter01/clickhouse_study.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter01/clickhouse_study.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter01/clickhouse_study.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
from clickhouse_driver import Client # Connect to database client = Client.from_url("clickhouse://127.0.0.1") # Create table client.execute( """ CREATE TABLE table_name( sku UInt32, name String, description String, category String ) ENGINE = MergeTree() ORDER BY sku...
23.735294
244
0.684015
a12be29fc20b8c51794a07bea24c1b0d58558c8c
216
py
Python
Movie.py
whde/Movie
5d712642242042b0fa2e43f526605def9a6a4343
[ "MIT" ]
1
2018-12-03T06:08:46.000Z
2018-12-03T06:08:46.000Z
Movie.py
whde/Movie
5d712642242042b0fa2e43f526605def9a6a4343
[ "MIT" ]
null
null
null
Movie.py
whde/Movie
5d712642242042b0fa2e43f526605def9a6a4343
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import MySql import Category if __name__ == "__main__": sql = MySql.MySql() Category.Category(sql).get_categorys() db = sql.db1 db.commit() db.close()
15.428571
42
0.615741
62a2cee3c22f841ea8aeaf427b117d620a18d395
5,297
py
Python
project/views/reference.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/views/reference.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/views/reference.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from flask import abort, flash, redirect, render_template, url_for from flask_babelex import gettext from flask_security import auth_required from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.sql import desc from project import app, db from project.access import ( access_or_401, can_reference_event, ...
30.618497
87
0.677931
c51027e218318a3ba80901ae89676d33863b5761
3,067
py
Python
plugins/tff_backend/bizz/authentication.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/authentication.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/authentication.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
33.703297
80
0.72253
3d9fce00293a05e8c5303320c208458cea144c9f
2,854
py
Python
lib/api.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
1
2022-03-09T20:44:33.000Z
2022-03-09T20:44:33.000Z
lib/api.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
lib/api.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
import requests import json import time import os import pandas as pd import numpy as np import random import datetime from . import config ROOT = config.ROOT P_MARKET_PAGE_SIZE = 1000 def get_rj(res): r = get_r(res) return r.json() def get_r(res, retry=3): try: r = requests.get(ROOT + res, ...
25.482143
110
0.555711
b124476271ae716f232239c4094c20cd447a7647
321
py
Python
BITs/2014/KOSTAREV_A_I/task_2_13.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/KOSTAREV_A_I/task_2_13.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/KOSTAREV_A_I/task_2_13.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №2 , Вариант 13 #программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Саади Ширази #Костарев А. И. #29.02.16 print ("Благоприятная возможность - драгоценна, а время подобно мечу.\n"+"\t\t\t\t\t\t\t Саади Ширази) input ("Нажмите Enter для выхода."...
40.125
124
0.744548
b18289eb351624610066441bab7c6a948b18166d
682
py
Python
lib/python/qmk/cli/list/keymaps.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/cli/list/keymaps.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/cli/list/keymaps.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
"""List the keymaps for a specific keyboard """ from milc import cli import qmk.keymap from qmk.decorators import automagic_keyboard from qmk.path import is_keyboard @cli.argument("-kb", "--keyboard", help="Specify keyboard name. Example: 1upkeyboards/1up60hse") @cli.subcommand("List the keymaps for a specific keybo...
31
96
0.73607
65b49db63e83751c3ae4c66f7dccc6f97720d063
2,459
py
Python
research/cv/dcgan/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/dcgan/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/dcgan/preprocess.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...
48.215686
97
0.701911
b828022f5658b45c216f9f691f25f73783b0ccdf
1,518
py
Python
0028implement-strStr.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0028implement-strStr.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0028implement-strStr.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- class Solution: def strStr(self, haystack: str, needle: str) -> int: if len(needle) == 0: return 0 if len(haystack) < len(needle): return -1 partten_next = self.getNext(needle) i = 0 j = 0 while ...
27.6
56
0.444664
b2263dce5792ae344485208e2352c67f1258c935
400
py
Python
BIZa/2014/KorotkovaDE/task_1_41.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/KorotkovaDE/task_1_41.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/KorotkovaDE/task_1_41.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 41. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Самюэл Ленгхорн Клеменс. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Korotkowa D. E. # 07.04.2016 print("Самюэл Ленгхорн Клеменс более известен,...
44.444444
216
0.795
a22ae5e760cdf60d39a9ab922bf337bd4a75acd3
203
py
Python
python/python_new/Python 3/factorial.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_new/Python 3/factorial.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_new/Python 3/factorial.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
num=int(input("Enter a number: ")) fac=1 if num<0: print("Negative number") elif num==0: print("Factorial of 0 is 1") else: for i in range(1,num+1): fac=fac*i print("Factorial of ",num," is ",fac)
18.454545
38
0.64532
a2520cb43814abcb31823a066090047650555443
21,624
py
Python
python/en/archive/topics/towardsdatascience/Understanding Feature Engineering/ufe-3-text-preprocessing.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/towardsdatascience/Understanding Feature Engineering/ufe-3-text-preprocessing.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/towardsdatascience/Understanding Feature Engineering/ufe-3-text-preprocessing.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ufe-3-text-preprocessing.py Understanding Feature Engineering Understanding Feature Engineering (Part 3) # Topics Text Pre-Processing Bag of Words Model Bag of N-Grams Model TF-IDF Model Document Similarity Document Clustering with Similarity Features Topic Models Doc...
45.716702
259
0.556558
38ff42c4bdd20cd5786757274d2e444519b2e5c3
846
py
Python
benwaonline/gateways/comment_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/gateways/comment_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/gateways/comment_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
from benwaonline.gateways import EntityGateway from benwaonline import mappers, assemblers class CommentGateway(EntityGateway): _entity = 'comment' def get_by_post(self, post_id, **kwargs): post = assemblers.get_entity('post')(id=post_id) comments = self.entity(post=post) r = self._fil...
35.25
76
0.684397
3bc39efdf5068a4ed83008f69719f47b373e6836
4,172
py
Python
demo/iterLegge/server/createDataset.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
3
2016-11-21T21:10:42.000Z
2022-01-22T16:25:44.000Z
demo/iterLegge/server/createDataset.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
null
null
null
demo/iterLegge/server/createDataset.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from SPARQLWrapper import SPARQLWrapper, JSON import sys import json import os.path results = { "commissioni" : [], "ddl": [] } def cleanData(data): rows = [] for result in data["results"]["bindings"]: row = {}; for field in result: row[field] = resu...
30.231884
129
0.643337
ce4583e78d27ed030de0736fc9894580749fba32
818
py
Python
Problems/Dynamic Programming/Hard/PaintHouseIII/paint_house_iii.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Hard/PaintHouseIII/paint_house_iii.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Hard/PaintHouseIII/paint_house_iii.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from functools import lru_cache from typing import List, Union # Top-down (Memoization) # TC: O(M * N * N * target); SC: O(M * N * target) def minCost(self, houses: List[int], cost: List[List[int]], m: int, n: int, target: int) -> int: @lru_cache(None) def dp(i: int, j: int, k: int) -> Union[float, int]: ...
26.387097
96
0.49022
0c97bed4d894c0df3ab448556386e37ea3cb73b0
430
py
Python
order/migrations/0019_order_update_time.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
order/migrations/0019_order_update_time.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
order/migrations/0019_order_update_time.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-12-15 00:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0018_auto_20201214_1544'), ] operations = [ migrations.AddField( model_name='order', name='u...
22.631579
76
0.586047
0bad474640e42b54faa4812c7df6fd2a22d6f2c9
2,337
py
Python
apps/node/views.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/node/views.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/node/views.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import JsonResponse from django.views import View from django.core.exceptions import ObjectDoesNotExist from django.core.cache import cache from .models import Node, DataUsageRecord from apps.utils.mixin import LoginRequireMixin from users.models import SSRAccount f...
32.458333
76
0.604193
0bbbb1be549a845f654a2b09dd60e6767643fca4
186
py
Python
wgt/__init__.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
null
null
null
wgt/__init__.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
null
null
null
wgt/__init__.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
1
2022-01-29T12:01:47.000Z
2022-01-29T12:01:47.000Z
"""Top-level package for WGT Connector.""" __author__ = """Fabian Göttel""" __email__ = "fabian.goettel@gmail.com" __version__ = "0.6.1" from .lueftungsanlage import WGT # noqa: F401
23.25
46
0.709677
e7fc16972913c9e9e36e76de40da172829b28f19
1,427
py
Python
2016/day07_internet_protocol_version_7/python/src/part1.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day07_internet_protocol_version_7/python/src/part1.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day07_internet_protocol_version_7/python/src/part1.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Docstring.""" import re from collections import Counter from common import get_input class TLSTester: """.""" def __init__(self, input_list=[]): """Initialize.""" self.input_list = input_list def contains_abba(self, string): """.""" i = 0 ...
28.54
96
0.58164
f01b204686234ba7cf967aaca84991342595204b
529
py
Python
Python/Exercícios_Python/029_radar_de_velocidade.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/029_radar_de_velocidade.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/029_radar_de_velocidade.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """029 - Radar de Velocidade Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/11SigbuEhdV54jVE9DM1ONPZFtQq_I8L3 """ from random import randint from time import sleep print('Seu carro passou no radar 🚗...') sleep(2) vel = randint...
29.388889
100
0.708885
b2dc4f2e458096a58152106c7528f4a78e7808bb
1,579
py
Python
SmartMirror/distance_sensor/distance.py
beckstev/PiShop
ab990c3a787f1811ff0da650f79dbd8bb28c00f7
[ "MIT" ]
null
null
null
SmartMirror/distance_sensor/distance.py
beckstev/PiShop
ab990c3a787f1811ff0da650f79dbd8bb28c00f7
[ "MIT" ]
3
2018-11-22T09:49:52.000Z
2019-05-29T14:43:52.000Z
SmartMirror/distance_sensor/distance.py
beckstev/PiShop
ab990c3a787f1811ff0da650f79dbd8bb28c00f7
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time def distance(TRIGGER_PIN, ECHO_PIN): '''Send a trigger signal with pin @TRIGGER_PIN and receive the echo with @ECHO_PIN RETURN distance in centimeter''' # set trigger pin to HIGH GPIO.output(TRIGGER_PIN, True) # set trigger pin after 0.01ms to LOW ...
24.671875
76
0.59848
6508d40b83ba8ae60090b9460c00776f7f0c7287
1,817
py
Python
tests/_calc/build_net_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
tests/_calc/build_net_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
tests/_calc/build_net_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
import chex import jax import jax.numpy as jnp def test_obs_forward_fc(): from shinrl import build_obs_forward_fc batch = 10 n_out = 5 depth = 2 hidden = 32 net = build_obs_forward_fc(n_out, depth, hidden, jax.nn.relu) key = jax.random.PRNGKey(0) sample_init = jnp.ones([batch, 3]) ...
27.530303
71
0.67694
33066919e4fa3e87db3198c90471f3fa5a7e6b6a
413
py
Python
exercises/ja/exc_03_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/ja/exc_03_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/ja/exc_03_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.language import Language # カスタムコンポーネントを定義 @Language.component("length_component") def length_component_function(doc): # docの長さを取得 doc_length = ____ print(f"この文章は {doc_length} トークンの長さです。") # docを返す ____ # 小サイズの日本語モデルを読み込む nlp = spacy.load("ja_core_news_sm") # パイプラインの最初にコンポ...
17.956522
43
0.753027
334aa0ea319ed402ec27885f81947e97b0b34690
3,339
py
Python
Packs/DeveloperTools/Scripts/CompareIndicators/CompareIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/DeveloperTools/Scripts/CompareIndicators/CompareIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/DeveloperTools/Scripts/CompareIndicators/CompareIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CompareIndicators import collect_unique_indicators_from_lists, extract_list_from_args, demisto def test_collect_unique_indicators_from_lists__empty(): """ Given: - Empty lists When: - Calling collect_unique_indicators_from_lists Then: - Return 2 empty lists """ lis...
30.354545
99
0.610362
6858d850866c10a0e831a6ef37914078f3743c3c
587
py
Python
sketches/Evolution_Ecosystem/food.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/Evolution_Ecosystem/food.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/Evolution_Ecosystem/food.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
class Food(object): def __init__(self, num): self.num = num self.foods = [] for foods in range(self.num): food = PVector(random(width), random(height)) self.foods.append(food) def run(self): rectMode(CENTER) fill(0, 0, 255) fo...
26.681818
64
0.516184
501353ef2510d4a6c0a78859777cb92403cfe641
573
py
Python
Theories/DataStructures/QueueAndStack/StackDFS/FloodFill/flood_fill.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Theories/DataStructures/QueueAndStack/StackDFS/FloodFill/flood_fill.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Theories/DataStructures/QueueAndStack/StackDFS/FloodFill/flood_fill.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def floodFill(image: List[List[int]], sr: int, sc: int, newColor: int) -> List[List[int]]: m, n = len(image), len(image[0]) start_color = image[sr][sc] def fill_pixel(r: int, c: int): if r < 0 or r >= m or c < 0 or c >= n: return if image[r][c] != star...
23.875
90
0.525305
502528ab7d8f4f71890180ccd67902c822f78f05
1,659
py
Python
Mongols/util/namedtuple_factory.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
Mongols/util/namedtuple_factory.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
9
2018-05-18T16:19:27.000Z
2022-02-26T03:48:31.000Z
Mongols/util/namedtuple_factory.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
1
2018-06-14T04:06:14.000Z
2018-06-14T04:06:14.000Z
from __future__ import print_function import collections from sys import stderr import typing from typing import List, Dict, Tuple, Iterable all_namedtuples = {} # type: Dict[str, type(typing.NamedTuple)] # noinspection PyPep8Naming def NamedTuple(typename, fields): # type: (str, Iterable[Tuple[str, type]]) -...
33.857143
74
0.683544
4fdf8c9d3f62ff875d7771b9a7e1213d779dc01e
1,033
py
Python
scrapers/test/test_district_data.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
485
2020-03-10T20:10:44.000Z
2022-03-27T16:11:30.000Z
scrapers/test/test_district_data.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
682
2020-03-17T09:55:12.000Z
2022-03-28T15:16:24.000Z
scrapers/test/test_district_data.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
224
2020-03-09T11:42:13.000Z
2022-03-22T13:16:33.000Z
from scrapers.scrape_common import DistrictData def test_district_data(): dd = DistrictData() dd.date = '1' dd.week = 2 dd.year = 3 dd.canton = '4' dd.district = '5' dd.district_id = 6 dd.population = 7 dd.total_cases = 8 dd.new_cases = 9 dd.total_deceased = 10 dd.new_de...
27.184211
56
0.680542
8ce6208dcff15df4feb59652f211bc5f4f447f77
31,015
py
Python
reproduce/tools.py
darribas/belts
ad9c1410de83e75ab096ec6f7a72ff0a6fc9f4ae
[ "CC-BY-4.0" ]
1
2019-07-19T04:15:17.000Z
2019-07-19T04:15:17.000Z
reproduce/tools.py
darribas/belts
ad9c1410de83e75ab096ec6f7a72ff0a6fc9f4ae
[ "CC-BY-4.0" ]
null
null
null
reproduce/tools.py
darribas/belts
ad9c1410de83e75ab096ec6f7a72ff0a6fc9f4ae
[ "CC-BY-4.0" ]
null
null
null
''' Code to create visualizations for "From manufacturing belt, to rust belt, to college country - A Visual Narrative of the US Urban Growth", by Dani Arribas-Bel and Michiel Gerritse Author: Dani Arribas-Bel <D.Arribas-Bel@bham.ac.uk> ... Copyright (c) 2014, Daniel Arribas-Bel All rights reserved. Redistribution a...
34.770179
96
0.569563
0fc87c253da0f5c7b783b37890e322eace4a7386
1,466
py
Python
2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/max_edges_to_make_bipartite.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/max_edges_to_make_bipartite.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/max_edges_to_make_bipartite.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" Find the max edges that can be added to a tree so that it stays a bipartite graph keep count of nodes of each color - say count_color1, count_color2 These nodes can be connected in count_color1 x count_color2 ways = max no of edges of a bipartite graph Also, a tree has n-1 edges So answer = (count_color1 x count_c...
24.433333
103
0.555935
0fe42945aeba0d098c22b8da9e8ae11a0779ed4b
1,605
py
Python
CodeChef_problems/Chef and Card game/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
CodeChef_problems/Chef and Card game/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
CodeChef_problems/Chef and Card game/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# Taking input for Test Cases for _ in range(int(input())): # Taking input for n. It is the number of moves n = int(input()) # Creating Two empty List for trak of points of chef and morty a,b = [],[] # Declaring both variable at 0 values chef,morty = 0,0 # The Game loop w...
26.75
80
0.527726
ba2ffa2d7816832a1a09187c2008181f682964f3
502
py
Python
src/python/renameFile.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/renameFile.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/renameFile.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
import os def renameFile(path, j): i = 1 for f in os.listdir(path): oldFile = os.path.join(path, f) # newFile = os.path.join(path, str(i) + '.png') newFile = os.path.join(path, f'{j}-{i}.png') os.rename(oldFile, newFile) i += 1 print("finished rename File ...") if ...
13.567568
55
0.52988
e8c45418f8848396801f4fca0988fc630a10dac7
6,000
py
Python
ryu/app/otherApp/topo/scapyTraffic.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/topo/scapyTraffic.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/topo/scapyTraffic.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 import threading from scapy.all import * from scapy.layers.inet import IP, TCP,UDP,Ether import sys,time,logging import numpy as np def sendPacket(ip_src,ip_dst,tcp_srcp,tcp_dstp,pNum,pInter): data = 'yuegengbiaogregaaaaaaaaaaaaaaaaaaaaaaaaaa' \ 'greaggggggggggggggggggggggggggggg...
40
172
0.543
fa05d2c29afae2dae949a1848455330c3664aa00
5,069
py
Python
DataHandler.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
DataHandler.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
DataHandler.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ UNIVERSIDAD DE CONCEPCION Departamento de Ingenieria Informatica y Ciencias de la Computacion Memoria de Titulo Ingenieria Civil Informatica DETECCION DE BORDES EN IMAGENES DGGE USANDO UN SISTEMA HIBRIDO ACO CON LOGICA DIFUSA Autor: Sebastian Ignacio Espinoza Jimenez Patrocinant...
38.992308
156
0.53837
d704ed2c7cd1a589f2cca0596e43aaaba1d5e4ab
12,755
py
Python
Openharmony v1.0/vendor/hisi/hi35xx/third_party/uboot/tools/binman/state.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/state.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/state.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: GPL-2.0+ # Copyright 2018 Google, Inc # Written by Simon Glass <sjg@chromium.org> # # Holds and modifies the state information held by binman # import hashlib import re import fdt import os import tools import tout # Records the device-tree files known to binman, keyed by entry type (e.g. ...
32.538265
80
0.656605
d707cc70bbc264e863916e3e1b52f6862477ad3d
385
py
Python
envs/rpg/levels/teasure_tutorial.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
envs/rpg/levels/teasure_tutorial.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
envs/rpg/levels/teasure_tutorial.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
from envs.rpg.level import Level from envs.rpg.entities.actor import Actor from envs.rpg.entities.treasure import Treasure from random import randrange class TreasureTutorial(Level): @staticmethod def init(): return 4, 4, 8, [Actor([0, 0]), Treasure([2, 2])] # return 4, 4, 8, [Actor([randrange...
32.083333
107
0.680519
d10329ef3755185ee4426ff805c0bb22de8aec1d
879
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_0/update_tax_amount_after_discount.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v4_0/update_tax_amount_after_discount.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_0/update_tax_amount_after_discount.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): frappe.reload_doc("accounts", "doctype", "sales_taxes_and_charges") docs_with_discount_amount = frappe._dict() for dt i...
41.857143
74
0.725825
0e533b7c9510173578c5ff6d75403d82cf400c78
1,704
py
Python
reports/iftomm_dach/code/data_generation/encode_crop_data.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/iftomm_dach/code/data_generation/encode_crop_data.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/iftomm_dach/code/data_generation/encode_crop_data.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
import tensorflow as tf import json from tqdm import tqdm from os import mkdir, path config_file = path.join('data', 'iftomm_dach_interim_023', 'config.json') target_dir = path.join('data', 'iftomm_dach_processed_02') train = path.join(target_dir, 'train.tfrecord') validate = path.join(target_dir, 'validate.tfrecord...
30.981818
73
0.684859
0e87bdc172979e93c216230af0018b9458947f15
9,427
py
Python
test/distributed/test_c10d_spawn.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
test/distributed/test_c10d_spawn.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
test/distributed/test_c10d_spawn.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
# Owner(s): ["oncall: distributed"] import os import sys import tempfile import torch import torch.distributed as c10d import torch.multiprocessing as mp from torch.testing._internal.common_distributed import \ MultiProcessTestCase from torch.testing._internal.common_utils import load_tests,\ NO_MULTIPROCESSI...
37.26087
102
0.615784
7ecd23ac0cca4b26530fb45f7f31cfa2c65a33fc
22,305
py
Python
libapp/views.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
2
2021-05-31T13:11:50.000Z
2021-06-05T04:37:51.000Z
libapp/views.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
libapp/views.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
import datetime import json from django.contrib import messages from django.core.mail import send_mail from django.core.paginator import Paginator from django.db.models import Q, F from django.http import HttpResponse from django.shortcuts import render, redirect import hashlib from django.urls import reverse from dja...
36.625616
117
0.561354
7d260db2410712fe81a98d2471123380fd33f743
2,744
py
Python
python_experiments/paper_figures/tkde/tkde_generate_md_files.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/tkde/tkde_generate_md_files.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/tkde/tkde_generate_md_files.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from paper_figures.tkde.tkde_draw_varying_datasets_time_mem import * from paper_figures.tkde.tkde_draw_dynamic_time_mem import * def format_str_float(w): if isinstance(w, str): return w elif w == 0: return str(0) elif w > 0.001: return str('%.3lf' % w) else: return str(...
35.636364
88
0.647595
bc353655ea2437d3a76b7a92b086ce496c8213f4
1,801
py
Python
day21/snake/snake.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day21/snake/snake.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day21/snake/snake.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
from turtle import Turtle, left, up MOVE_SPEED = 15 MOVE_DISTANCE = 20 UP = 90 DOWN = 270 LEFT = 180 RIGHT = 0 class Snake: def __init__(self, snakeSize): self.snake = [] self.speed = MOVE_SPEED self.createSnake(snakeSize) self.head = self.snake[0] def createSnake(self, si...
24.337838
55
0.580788
cb014076d0b16d72554045fa489cb7217a4d0e33
3,922
py
Python
Werwolf_ROLLE.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
Werwolf_ROLLE.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
Werwolf_ROLLE.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
import random import time from multiprocessing import * from timeout_decorator import * #from foo import * #import sys # ? tote_spieler = {} votes = [] Rollennummer = 1 # Spieler ID gesamt_spieler = [] # Ort zum Sammeln aller Spielernamen spieler_nummer = {} # Ort zum Sammeln von Spieler ID und zugewiese...
31.886179
120
0.63743
1de4953a649e267066b4d04cd507021785cacdb4
185
py
Python
app/views/parsers/__init__.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/views/parsers/__init__.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/views/parsers/__init__.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
from .document_parsers import generate_document_input_parser, generate_document_output_model, \ generate_documents_output_model from .public_parsers import generate_paginate_parser
46.25
95
0.891892
380897148ee4d7c00ca590a95f279d176f163a7c
256
py
Python
src/python/py-accepted/282A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/282A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/282A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 282A # Created on : 2019-01-14 21:33:20 def Main(): n = int(input()) x = 0 for i in range(0, n): s = input() x = x + 1 if '++' in s else x - 1 print(x) if __name__ == '__main__': Main()
14.222222
41
0.464844
69a17572a1ff0ddb47feed995006ec3ea03f570a
893
py
Python
.venv/Lib/site-packages/dexpy/tests/test_model_matrix.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
21
2016-10-19T18:13:03.000Z
2021-11-02T13:58:31.000Z
.venv/Lib/site-packages/dexpy/tests/test_model_matrix.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
43
2016-10-11T20:56:28.000Z
2020-08-20T16:39:38.000Z
.venv/Lib/site-packages/dexpy/tests/test_model_matrix.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
6
2017-12-22T03:47:37.000Z
2021-03-13T03:45:26.000Z
from unittest import TestCase import math import dexpy.design as design import numpy as np import pandas as pd class TestModelMatrix(TestCase): """Tests for generating a model matrix""" @classmethod def test_quadratic_model(cls): """Test expanding a quadratic model in a rotatable ccd""" a...
29.766667
101
0.552072
2a24643ca4060ea1ae1ec256083047876ce76b3c
1,068
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/15_touple_vs_liste.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/15_touple_vs_liste.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/15_touple_vs_liste.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Unterschied von Listen und Tuples KONSTANTE=('Shadow', 'grün', 'schwarz') variable=['eintrag1', 'eintrag2', 'eintrag3'] print('Meine Katze heisst', KONSTANTE[0], 'seine Augen sind', KONSTANTE[1], 'und sein Fell ist', KONSTANTE[2] + '.') try: KONSTANTE.remove('grün') except AttributeError: print('Es ist nich...
26.7
116
0.7603
2acabc4b08b0d1be88e5314007a5ea814496cbfa
404
py
Python
libapp/migrations/0006_alter_fines_money.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
2
2021-05-31T13:11:50.000Z
2021-06-05T04:37:51.000Z
libapp/migrations/0006_alter_fines_money.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
libapp/migrations/0006_alter_fines_money.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-05-30 21:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('libapp', '0005_alter_bookslips_restore'), ] operations = [ migrations.AlterField( model_name='fines', name='money', ...
21.263158
68
0.606436
2d9105050dc1da9d2bbf9f4586dcbd0d808b5763
1,267
py
Python
dash/migrations/0014_indicateurs.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
dash/migrations/0014_indicateurs.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
dash/migrations/0014_indicateurs.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-13 13:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('dash', '0013_auto_202104...
42.233333
118
0.631413
934ea352abff687178a13efbeccd37de06e9fe76
199
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.13-nested-loop.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.13-nested-loop.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.13-nested-loop.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
import turtle turtle.shape("turtle") turtle.speed(1) for side_length in range(50, 100, 10): for i in range(4): turtle.forward(side_length) turtle.left(90) turtle.exitonclick()
16.583333
38
0.673367
87b1061fcf4e64586647d947c2c92ebf17e1b4b9
77
py
Python
src/server/integrations/__init__.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/server/integrations/__init__.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/server/integrations/__init__.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
from .slack import SlackIntegration from .webhook import WebhookIntegration
19.25
39
0.857143
57670a3eff4968c26b9e9e2bb2e11c8b3a207348
3,940
py
Python
python_gui_tkinter/KALU/Version 0.1/load_data.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/Version 0.1/load_data.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/Version 0.1/load_data.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
''' This module provides the loading of data from the xls file provided to the database directly, for the MIS @Copyright :: Don't share this software without the permission of the author e-mail : jimutbahanpal@yahoo.com ''' ''' This module directly imports data from the spreadsheet or xls file to the database so ...
25.584416
123
0.690609
57e83e63be78a35ad42a3a713e010bda394d568a
12,341
py
Python
frappe-bench/apps/erpnext/erpnext/hooks.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hooks.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hooks.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _ app_name = "erpnext" app_title = "ERPNext" app_publisher = "Frappe Technologies Pvt. Ltd." app_description = """ERP made simple""" app_icon = "fa fa-th" app_color = "#e74c3c" app_email = "info@erpnext.com" app_license = "GNU General Public License (v3)" sour...
44.232975
152
0.739648
aa03a21e90d38b4f73f16ba5a853713b6628d3d7
539
py
Python
migrations/versions/04bce5aeff98_.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
migrations/versions/04bce5aeff98_.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
migrations/versions/04bce5aeff98_.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
"""empty message Revision ID: 04bce5aeff98 Revises: e5b60c3dee73 Create Date: 2022-03-08 16:52:23.082825 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "04bce5aeff98" down_revision = "e5b60c3dee73" branch_lab...
18.586207
88
0.730983
aa23a3dc80ac462a0628115f547c3faf794ceb4e
2,619
py
Python
python/fastcampus/chapter06_03_03.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/fastcampus/chapter06_03_03.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/fastcampus/chapter06_03_03.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""파이썬 심화 Future 동시성 비동기 작업 실행 - 지연시간(Block) CPU 및 리소스 낭비 방지 -> Network I/O 관련 작업 동시성 활용 권장 - 적합한 작업일 경우 순차 진행보다 압도적으로 성능 향상 """ import os import time import sys import csv from concurrent import futures # concurrent.futures 방법1(ThreadPoolExecutor, ProcessPoolExecutor) # map() # 서로 다른 스레드 또는 프로세스에서 실행 가능 # 내부 과정 알 필요 ...
23.383929
86
0.612066
aa2e7e4d8d7bcdd8dd3025a50161dfea7e2c6b70
393
py
Python
day27/playground.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day27/playground.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day27/playground.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
# varargs Positional Parameter # * ist wichtig, Name ist beliebig def add(*args): result = 0 for n in args: result += n return result print(add(2, 4, 2, 3, 6, 7, 5, 4)) # varargs Keyword Parameter # ** ist wichtig, Name ist beliebig def calculate(n, **kwargs): n += kwargs["add"] n *= k...
18.714286
39
0.615776
52ecb05d46c00b95ef3fd92e1fb6bc57153025d0
5,347
py
Python
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 7.5 Online Book Reader # Design the data structures for an online book reader system. # Basic functionality: # user membership creation and extension # search book DB # read book # only one active user at a time # only one active book per user # Classes # variables # functions # s...
23.451754
81
0.617917
524c34b6c6bf12a41d5bd74f7186efc4666ddd1d
1,825
py
Python
04_nlp/test_code/NLP_masterthesis_small.py
Verena-Lemberger/masterarbeit
2819f222b75b31bd2a44b45ee3417998c385eeab
[ "MIT" ]
null
null
null
04_nlp/test_code/NLP_masterthesis_small.py
Verena-Lemberger/masterarbeit
2819f222b75b31bd2a44b45ee3417998c385eeab
[ "MIT" ]
14
2021-06-21T19:41:33.000Z
2021-06-21T19:41:35.000Z
04_nlp/test_code/NLP_masterthesis_small.py
Verena-Lemberger/masterarbeit
2819f222b75b31bd2a44b45ee3417998c385eeab
[ "MIT" ]
null
null
null
# Importing libraries import pandas as pd import os import re import gensim from gensim.utils import simple_preprocess import nltk #nltk.download('stopwords') from nltk.corpus import stopwords import gensim.corpora as corpora import pyLDAvis.gensim_models import pickle import pyLDAvis from pprint import pprint from im...
24.013158
107
0.732603
876b26315e64caa6732a353aff876f6106097a4b
459
py
Python
app/models.py
jorgearojas25/FlaskLogin
24dd5353643a46bbb34ed1097c11d84c203f8f38
[ "MIT" ]
null
null
null
app/models.py
jorgearojas25/FlaskLogin
24dd5353643a46bbb34ed1097c11d84c203f8f38
[ "MIT" ]
null
null
null
app/models.py
jorgearojas25/FlaskLogin
24dd5353643a46bbb34ed1097c11d84c203f8f38
[ "MIT" ]
null
null
null
class User: def __init__(self, email, password, token, idUser): self.email = email self.password = password self.token = token self.id = idUser def validatePassword(self,password2): if self.password == password2: return True return False class T...
22.95
55
0.575163
5e728a0839951f0f408463d29e97c9d939764631
770
py
Python
partner_ngos/fund_management/doctype/outcomes/outcomes.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
partner_ngos/fund_management/doctype/outcomes/outcomes.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
partner_ngos/fund_management/doctype/outcomes/outcomes.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Akram Mutaher and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _, throw from frappe.model.document import Document from frappe.utils import (cstr) class Outcomes(Document): def on_...
30.8
68
0.763636
5ec4a3a100624e1c531c430da149d0294a3c4e44
3,676
py
Python
src/onegov/election_day/models/screen.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/models/screen.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/models/screen.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from collections import OrderedDict from onegov.ballot import Election from onegov.ballot import ElectionCompound from onegov.ballot import Vote from onegov.core.orm import Base from onegov.core.orm.mixins import ContentMixin from onegov.core.orm.mixins import TimestampMixin from sqlalchemy import Column from sqlalchem...
29.886179
77
0.647443
0dbb17bd911c68833e6b777e886dc74ddf23edba
7,742
py
Python
src/model/model_base.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/model/model_base.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/model/model_base.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
2
2020-02-05T05:19:18.000Z
2020-02-05T15:04:32.000Z
""" This module contains a base class for a keras wingbeats model. """ import json import uuid import os import sys import tensorflow as tf from tensorflow import keras from . import wingbeats_helper as wb_helper class Model: """ Class that can construct a keras model for training on wingbeats data. At...
37.221154
124
0.612374
10fd8e9a5208534f2cade18564e192f6d4cc39b0
301
py
Python
src/onegov/people/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/people/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/people/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.people.collections.agencies import AgencyCollection from onegov.people.collections.memberships import AgencyMembershipCollection from onegov.people.collections.people import PersonCollection __all__ = ( 'AgencyCollection', 'AgencyMembershipCollection', 'PersonCollection', )
27.363636
76
0.820598
10fe9ab335aebd72c2b0f413c347df59bdb7c6fe
63
py
Python
pandemie/__main__.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/__main__.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/__main__.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
1
2020-03-28T00:02:41.000Z
2020-03-28T00:02:41.000Z
# This file makes the package executable # python3 -m pandemie
21
40
0.777778
801b1a879201272cb235faaa55fdcdedc441e6e4
2,434
py
Python
tests/test_models/test_models.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
tests/test_models/test_models.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
tests/test_models/test_models.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
from unittest.mock import patch from pytest import LogCaptureFixture, raises from volley.models.base import message_model_handler, model_message_handler from volley.models.pydantic_model import GenericMessage, PydanticModelHandler from volley.serializers import JsonSerialization def test_message_to_model_handler_fa...
35.275362
113
0.740756
337c9b7d5fbdcab725e7674f489252d941e06aca
1,641
py
Python
IVTp/2014/Karamyan/Karamyan 9_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 9_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 9_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача9, Вариант 8. # Создайте игру, в которой компьютер выбирает какое-либо слово, # а игрок должен его отгадать. Компьютер сообщает игроку, сколько # букв в слове, и дает пять попыток узнать, есть ли какая-либо буква # в слове, причем программа может отвечать только "Да" и "Нет". # Вслед за тем игрок должен по...
26.901639
70
0.604509
1d3751c049045d59f0417853326f1db7ec4666cf
1,888
py
Python
core/template.py
jreese/seinfeld
400204cef0cb532c3e8e223fa48490247b9149ed
[ "MIT" ]
4
2015-07-09T21:14:22.000Z
2019-07-02T21:53:50.000Z
core/template.py
jreese/seinfeld
400204cef0cb532c3e8e223fa48490247b9149ed
[ "MIT" ]
null
null
null
core/template.py
jreese/seinfeld
400204cef0cb532c3e8e223fa48490247b9149ed
[ "MIT" ]
null
null
null
# Copyright 2014 John Reese # Licensed under the MIT license from functools import wraps import re from flask import g, make_response, render_template, request from jinja2.utils import Markup from core import app, encoder from core.routing import _fullpath, _titles whitespace_regex = re.compile(r'\s*(</?[^>]+>)\s*'...
28.606061
97
0.639301
63add887ee4f61faf07a1efb4063ab5c472f196d
373
py
Python
fileOperate/urls.py
MaoningGuan/FileService
d55fee19a0c96f2cc6dda187d331389b9ae192d3
[ "MIT" ]
8
2020-07-11T14:11:11.000Z
2022-01-27T05:06:07.000Z
fileOperate/urls.py
MaoningGuan/FileService
d55fee19a0c96f2cc6dda187d331389b9ae192d3
[ "MIT" ]
null
null
null
fileOperate/urls.py
MaoningGuan/FileService
d55fee19a0c96f2cc6dda187d331389b9ae192d3
[ "MIT" ]
4
2020-07-11T14:11:17.000Z
2022-01-27T05:06:11.000Z
# -*- coding: utf-8 -*- from django.urls import path, re_path from . import views app_name = 'fileOperate' urlpatterns = [ path('', views.index, name='index'), re_path('download/(?P<filename>.+)', views.download, name='download'), # url(r'^upload/$', views.upload, name='upload'), # url(r'^download/(?P...
28.692308
75
0.630027
897247f8938b24b736266292303ad31d1e550cd1
1,404
py
Python
2-resources/__DATA-Structures/ds-traversal-multi-lang/python/functional-reduce.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/ds-traversal-multi-lang/python/functional-reduce.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/ds-traversal-multi-lang/python/functional-reduce.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# This requires Python>=3.8. # Uses functools.reduce() and does not mutate the input. sections = [ { "title": "Getting started", "reset_lesson_position": False, "lessons": [ {"name": "Welcome"}, {"name": "Installation"}, ], }, { "title": "Ba...
24.206897
69
0.549145
98955b979f0fbe1cd31a453d557bb6a105bafe72
418
py
Python
personal-files/python-test/day_in_year.py
lyf0327/PycharmProjects
ce6507f04a33156a0d6c3f732856dcb655bc2351
[ "Apache-2.0" ]
null
null
null
personal-files/python-test/day_in_year.py
lyf0327/PycharmProjects
ce6507f04a33156a0d6c3f732856dcb655bc2351
[ "Apache-2.0" ]
null
null
null
personal-files/python-test/day_in_year.py
lyf0327/PycharmProjects
ce6507f04a33156a0d6c3f732856dcb655bc2351
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- year = int(raw_input('year:\n')) month = int(raw_input('month:\n')) day = int(raw_input('day:\n')) months = (0,31,59,30,120,151,181,212,243,273,304,334) if 0 < month <= 12 and 0 < day <= 31: sum = months[month-1] else: print 'input error' sum+=day if ((year%400==0...
23.222222
68
0.590909
12062e803e31fad2339f121e02325d101a481d21
11,109
py
Python
fhirclient/r4models/specimendefinition_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/specimendefinition_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/specimendefinition_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import specimendefinition from .fhirdate import FHIRDate class SpecimenDefinitionTests(unittest.TestCase): def i...
78.787234
152
0.716176
c3cc1bbc8361fb79bfc3929e7c307b0d7476fa52
8,616
py
Python
python/coursera_python/IBM/FakeAlbumCoverGame.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/IBM/FakeAlbumCoverGame.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/IBM/FakeAlbumCoverGame.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# coding: utf-8 # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <a href="http://cocl.us/NotebooksPython101"><img src = "https://ibm.box.com/shared/static/yfe6h4az47ktg2mm9h05wby2n7e8kei3.png" width = 750, align = "center"></a> # <a href="https://www.bigdatauniversity.com"><img src = "https:...
36.201681
520
0.709262
614967de2ae370eaec4322587d02952a783fff7b
374
py
Python
exercises/ja/solution_03_09_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_03_09_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_03_09_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.ja import Japanese from spacy.tokens import Token nlp = Japanese() # デフォルト値がFalseである拡張属性「is_country」をトークンに追加 Token.set_extension("is_country", default=False) # テキストを処理し、「スペイン」のトークンについてis_country属性をTrueにする doc = nlp("私はスペインに住んでいます。") doc[2]._.is_country = True # すべてのトークンについて、文字列とis_country属性を表示 print...
24.933333
58
0.791444
9cb9e6e1ffa9cb84124d635cbe19d904e2818641
547
py
Python
infrastructure/storage.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
infrastructure/storage.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
infrastructure/storage.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
from azwrapper import * def createStorage(group, location, name): if resourceExists(group, name): print('Storage already exists ' + name) return print('Create storage ' + name) createAccount = "storage account create -g {} -n {} -l {} --sku {}" azSafe(createAccount.format(group, name, l...
45.583333
155
0.696527
9cd88dcff19681f6e16c8447afa7a0b6665f6e3c
718
py
Python
benwaonline/entities/comment.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/entities/comment.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/entities/comment.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
from benwaonline.schemas import CommentSchema from benwaonline.entities import Entity class Comment(Entity): '''Represents a Comment resource object, related to the Comment model in the database Attributes: type_: 'comments' ''' _schema = 'CommentSchema' type_ = 'comment' attrs = {} ...
26.592593
113
0.649025
213317240a9027ce82f86039ed68195e54ede045
1,210
py
Python
django_project/apps/course/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
django_project/apps/course/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
django_project/apps/course/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.shortcuts import render from utils import restful_res # Create your views here. from django.conf import settings import time,hmac,os,hashlib from .models import CourseOrder def course_token(request): # video:是视频文件的完整链接 file = request.GET.get('video') # course_id = request.GET.get('course_id') ...
39.032258
99
0.71405
b4caf93c31b1c30eca9ecfe75ec02a036f9c3c43
2,856
py
Python
server/apps/users/views.py
Mayandev/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
129
2019-04-20T08:23:25.000Z
2022-03-14T10:02:23.000Z
server/apps/users/views.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
9
2019-05-19T15:06:17.000Z
2021-12-14T06:47:14.000Z
server/apps/users/views.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
34
2019-05-06T06:37:17.000Z
2021-12-09T02:27:58.000Z
from django.shortcuts import render # Create your views here. from django.contrib.auth.backends import ModelBackend from django.contrib.auth import get_user_model from django.db.models import Q from rest_framework.mixins import CreateModelMixin from rest_framework import viewsets from users.serializers import UserReg...
33.209302
110
0.730042
2ee5039d97585e9ea6bddbf5234311bf58117e4a
815
py
Python
tests/test_login.py
WETESTERR/Mehwish-Peter
1b6beb5352683243dfd5667e0749d07ce119254f
[ "MIT" ]
null
null
null
tests/test_login.py
WETESTERR/Mehwish-Peter
1b6beb5352683243dfd5667e0749d07ce119254f
[ "MIT" ]
1
2020-06-23T07:25:39.000Z
2020-06-23T07:25:39.000Z
tests/test_login.py
WETESTERR/Mehwish-Peter
1b6beb5352683243dfd5667e0749d07ce119254f
[ "MIT" ]
null
null
null
from page_objects.login import Login class TestLogin: def test_login(self, driver, email, password): l = Login(driver) l.login(email,password) l.logout() import time from webdriver_manager import driver class TestLogin(): def test_login(self, driver, email, password): ...
18.953488
148
0.689571