blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
2cda01192caf74ae2c14d6719c08706742a49cd8
7f7e36cd9570970007a0f974837f9115e5d4d587
/libdl/nn_losses/mctc.py
6fb9d3994ea386bbc5f573156158ee109eceae17
[]
no_license
christofw/multipitch_mctc
591275e4074ded69aa7f166e7d1982417013c21d
d95e201044d8974ae9d3a5157a6e013a13288071
refs/heads/main
2023-08-16T20:37:57.999239
2021-10-12T11:56:09
2021-10-12T11:56:09
388,519,835
1
0
null
null
null
null
UTF-8
Python
false
false
11,978
py
import numpy as np, os, scipy import torch import torch.nn as nn from itertools import groupby class sctc_loss_threecomp(nn.CTCLoss): """ Separable Connectionist Temporal Classification (SCTC) Loss with three components per category, e.g. (blank, 0, 1) Args: reduction='none' ...
[ "christof.weiss@telecom-paris.fr" ]
christof.weiss@telecom-paris.fr
7cc0ff5d841a8a1c80894553ae24881e03372ee8
eb588aedbda16984770b1d35a0d4d14f6204dfcf
/muswarmlogger/events.py
a44af3d89ef475047f49865501a7195cc022fc11
[]
no_license
fr0gs/mu-swarm-logger-service
b670318647f4c5823cc0f833ae4b2980a290ee10
49d794cda4e2c3dcf8dcdc106f8fece7e9f4078f
refs/heads/master
2021-01-19T13:07:06.128646
2017-04-12T13:00:27
2017-04-12T13:00:53
88,065,283
0
0
null
2017-04-12T15:06:01
2017-04-12T15:06:00
null
UTF-8
Python
false
false
3,529
py
from aiodockerpy import APIClient import importlib import logging import os, sys from typing import Any, Callable, Dict, List from muswarmlogger.sparql import SPARQLClient logger = logging.getLogger(__name__) on_startup_subroutines = [] event_handlers = [] module_mtimes = {} class Event: def __init__(self, cli...
[ "cecile.tonglet@gmail.com" ]
cecile.tonglet@gmail.com
cacefbab7b3e73ec5ec0bc3b622944a513516fa5
369baa3e61ec16e94bfd6755cc9f17fe12178aa2
/stock_analysis/spider_holder.py
7c473c49fb0c691b68e0bd119bb47f61f069e284
[]
no_license
amelie5/interesting_project
4268d85fbc7c7c9f0a5f37ea23c858be89d8931e
f63ef4c71129252eae08b92f2686622976426646
refs/heads/master
2021-01-11T18:24:26.805498
2017-09-25T09:22:02
2017-09-25T09:22:02
79,536,194
3
2
null
null
null
null
UTF-8
Python
false
false
4,153
py
# coding=utf-8 import pandas as pd import requests from pyquery import PyQuery as pq import re import json def get_holder(code): df = pd.DataFrame() url = 'http://stock.finance.qq.com/corp1/stk_holder_count.php?zqdm=' + code html = requests.get(url).text p = pq(html).find('table.list>tr') cnt = 0 ...
[ "wuxiaojun55555@gmail.com" ]
wuxiaojun55555@gmail.com
e355d624e961a40e8b92cff5458a5e10991f08c4
6db927df05667bbe793d95b63e29f5f6cc4d6b7e
/app/users/serializers.py
2f49dde052f319461964784ed654e7a046278146
[]
no_license
ankhanguit/DjangoRest
94509702af2ec3702acfa7430e57e00340f069fe
15a9cc51679d62dd094ff010a8b10578774a520c
refs/heads/master
2020-04-05T07:43:17.461774
2018-11-08T10:01:34
2018-11-08T10:01:34
156,686,118
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
from rest_framework import serializers from . import models class UserSerializer(serializers.ModelSerializer): birth_date = serializers.ReadOnlyField() gender = serializers.ReadOnlyField() class Meta: model = models.User fields = ( 'username', 'email', ...
[ "anhkhanguit@gmail.com" ]
anhkhanguit@gmail.com
d46568a7d208963ca57ef8ab6042e825a9fd0a26
05ce9a6e1575f9fca2c55e2a317fbaee98819f2b
/icon/make_icon
0d560f7ec388c4c1a9b5dd581134b84866297cb9
[ "Apache-2.0" ]
permissive
lkesteloot/r_view
f05c64ce7b13d405cdf52603ed511812cf12f236
7fba4abb53731cd2a99459b33a7e4af9af10e59b
refs/heads/master
2022-01-03T06:02:21.512079
2021-12-28T01:48:49
2021-12-28T01:48:49
124,017,828
0
0
null
null
null
null
UTF-8
Python
false
false
1,774
#!/usr/bin/python # Make our icon procedurally. import sys from PIL import Image RAINBOW = [ (200, 20, 20), (255, 127, 0), (240, 240, 0), (20, 200, 20), (20, 20, 255), (75, 20, 130), (148, 0, 211), ] def make_icon(pathname): width = 1024 height = 1024 ...
[ "lk@teamten.com" ]
lk@teamten.com
5f1c1c4a88042e548781f0e89c112de4fa691097
c399d83163bfdc40dde80cf771a2606d95fc83ed
/src/c2/while-else.py
05a68579c5bfc6c5e971061edd9bd9bca3e9f228
[]
no_license
saimjcf/python_study
3b5c141b683a8b7b05ee0586d2542d263cb6d652
b4a137d17dea4be404ce6f2160b69cae8457feec
refs/heads/master
2020-04-01T03:34:38.193225
2018-10-13T02:57:56
2018-10-13T02:57:56
152,827,456
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
i = 8 while i < 5: print("while(in)=", i) i = i + 1 else: print("while(else)", i)
[ "saimj@DESKTOP-LLVDTKO" ]
saimj@DESKTOP-LLVDTKO
8b57f43da0c346fd63b1a5ec64aa649b9ffcb8f4
66963a3a64123dd343f9520750eea8d469a8eb4f
/scripts/export_targets.py
88f983b29bcc376b0c55cba0262e2d44952e4d73
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Montura/angle
2c1d9dea780634044db4c2dc6825863e79c97540
e2c225d48b2eca6a2d56ff8e56635a1c2e1a2db5
refs/heads/master
2020-12-19T16:00:30.915478
2020-02-05T08:55:23
2020-02-05T08:55:23
235,775,988
0
0
NOASSERTION
2020-01-23T10:54:54
2020-01-23T10:54:54
null
UTF-8
Python
false
false
9,353
py
#! /usr/bin/env python3 assert __name__ == '__main__' ''' To update ANGLE in Gecko, use Windows with git-bash, and setup depot_tools, python2, and python3. Because depot_tools expects `python` to be `python2` (shame!), python2 must come before python3 in your path. Upstream: https://chromium.googlesource.com/angle/an...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
395d25db1cef864e086bca62372ed2fd8cbf961a
115f22f558eb96ca87141a52b953bbc3f2dfc2b1
/2019/check_solution_file.py
43e91de931863b182bd1c82dbc9beef8af77c649
[]
no_license
Ohav/HashCode
0349ca3b5df8af4e7f845cb2200c8814cec4e40a
5d5d8d4af1f6c9c09f13eaa595ac657d885d1d5a
refs/heads/master
2020-05-26T15:07:04.831720
2019-05-23T17:28:36
2019-05-23T17:28:36
188,278,710
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
# Dan eldad Is the best gever # Sanity check: # 1. Lines of presentation match the first line # 2. each photo apears only once # 3. each row has 1 or two numbers # 4. there are rows with two numbers photos = set() with open ("final.sol", 'r') as file: number = int(file.readline()) counter = 0 found_verticals = F...
[ "yael.sarusi@mail.huji.ac.il" ]
yael.sarusi@mail.huji.ac.il
cc4a3c0bedae1de0d655f0cdf260de4421e3be97
3edaacb98d681523d502ff46ab4c88d3caf2fdc2
/node_modules/bcrypt/build/config.gypi
aaf50852446adca3c50d2382fc109069d6955e22
[ "MIT" ]
permissive
Quito848/AuthTest
1400cadc0ef8267dc57484c62a1800b69ec535f5
d950a1569b2ca37e609ba3ab44d7254191603047
refs/heads/master
2020-04-21T18:21:03.214448
2019-02-08T16:43:09
2019-02-08T16:43:09
169,766,250
0
0
null
null
null
null
UTF-8
Python
false
false
6,159
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [], "msbuild_toolset": "v141", "msvs_windows_target_platform_version": "10.0.16299.0" }, "variables"...
[ "nicprocc@gmail.com" ]
nicprocc@gmail.com
f08c96f223b44901d252179aaba6e2dfd26f5949
6be2483b27a8f13cd999691eab8e8d58ca731db3
/main.py
5c50bc4192b580bc844eb21f82e7325e859b4cfb
[]
no_license
EthanLee0210/uno-project
f22273618a39456af071faa351e2cebb4cdedaf7
6a1b1e6686d53e564fe907430ba020c991a7c92d
refs/heads/main
2023-01-20T21:10:27.692975
2020-11-25T21:17:07
2020-11-25T21:17:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,019
py
import deck_functions as df import hand_functions as hf import player_functions as pf class Token: def __init__(self): self.count = 0 self.last_card = '' self.wild_color = '' self.is_reversed = False self.is_first_reversed = False self.is_skipped = False sel...
[ "73154963+danwanamaker@users.noreply.github.com" ]
73154963+danwanamaker@users.noreply.github.com
507d7886ffe1824961877b0e13125edc6b4f9b48
2d539ed2a5e374a4427a6dcb023c43cb1a42b708
/rest_api_app/migrations/0018_auto_20190123_1236.py
d37eb709563efe5817d339a00c6edb2688310e3b
[]
no_license
otninast/rest-api-server
592eab1d89aaa7f64deca9bbb12d6df3bc8e2eac
5281c6c6d083bfce9940656bad34b0c01a256e21
refs/heads/master
2020-04-15T09:25:50.223542
2019-02-15T08:54:40
2019-02-15T08:54:40
164,549,411
0
0
null
2019-02-15T08:54:41
2019-01-08T03:18:41
Python
UTF-8
Python
false
false
506
py
# Generated by Django 2.0.2 on 2019-01-23 03:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rest_api_app', '0017_auto_20190106_2153'), ] operations = [ migrations.AlterField( model_name='trainingprogram', nam...
[ "otninast38@gmail.com" ]
otninast38@gmail.com
62910aef3f58da6894729e13c5a5ec4cc0a914dc
c90dce8358dc43ee2b50e3b8e099a38a38635d0c
/ivi/lecroy/lecroyWR44XIA.py
e7c4c1c2875e9a53a5031e627880b330c92eeb22
[ "MIT" ]
permissive
CedricB31/python-ivi
88209d6ff34dc2f8291eead0ccd03a7437aea9b7
5910db9d0e2f4704aa80fa29de86eb98a82bec8b
refs/heads/master
2020-12-26T09:22:00.284269
2016-06-02T15:04:33
2016-06-02T15:04:33
53,782,758
1
0
null
2016-03-13T11:58:50
2016-03-13T11:58:50
null
UTF-8
Python
false
false
1,643
py
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the righ...
[ "chrisj.egr@gmail.com" ]
chrisj.egr@gmail.com
c1c75b9ead4406e5b43862d69389055a570d21bd
244ecfc2017a48c70b74556be8c188e7a4815848
/res_bw/scripts/common/bwpydevd.py
9e36553c556081fe6c27de8516ff07ec00fc2c01
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
3,544
py
# 2015.11.18 12:00:11 Střední Evropa (běžný čas) # Embedded file name: scripts/common/bwpydevd.py import os import sys import ResMgr import BigWorld import inspect import threading import bwdebug REPLACE_PATHS = [] HAS_BW_CONFIG = False if os.name == 'posix': try: import BWConfig HAS_BW_CONFIG = Tru...
[ "info@webium.sk" ]
info@webium.sk
cc011a55ad7c61646a22ad860015a5d83d61ad5c
efa9be53cf1094300ed66fe09d19d3886de7e663
/tests/regressions/python/966_named_arguments.py
52f1d4c4230498c82665bde68db22392a1904b35
[ "BSL-1.0" ]
permissive
STEllAR-GROUP/phylanx
25a6d1ecf8493fd77583d9b54ea4f6b7f2fcac63
443ba956e47c2c5ae1e3b6d0f51bb31930fa83e9
refs/heads/master
2022-04-30T13:57:26.767667
2022-04-06T13:57:01
2022-04-06T13:57:01
101,409,977
87
55
BSL-1.0
2022-04-06T13:57:02
2017-08-25T14:07:21
C++
UTF-8
Python
false
false
469
py
# Copyright (c) 2019 Bita Hasheminezhad # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # #966: Named arguments don't work from phylanx import Phylanx import numpy as np # make flake happy def eye(N, M, k, d...
[ "hartmut.kaiser@gmail.com" ]
hartmut.kaiser@gmail.com
5a78bdc3ef8695d3d3ed81ddb9d28e9f5bae4391
587846478c16d1c19c3de6a5f0a20b3d01e98471
/main/results/experiments_welink.py
f2b4ff6ff3376f0ebf8097dd6b5bd5d202062a21
[ "MIT" ]
permissive
wissembrdj/welink
198afac250a20d1042024f695355ac397eda3969
ebc0cd4742578ad22014bd8067796e8cc1869f02
refs/heads/master
2022-11-23T11:48:09.220691
2020-07-25T18:56:35
2020-07-25T18:56:35
275,353,098
1
0
null
null
null
null
UTF-8
Python
false
false
14,970
py
import json import csv from result import Result import requests import time import re import io from extract_entities import entities writer = csv.writer(open("welink_results_qald7.csv", 'a', newline='')) url = 'http://127.0.0.1:8000/api/' headers = {'Content-type': 'application/json'} with open('q...
[ "noreply@github.com" ]
noreply@github.com
47c70190efecc803a2d8be5e7ea849460a62ed28
86618c9cc9c9de33bc679c763ddb4cb65e737650
/MyAnswers/0006/word_in_diary.py
6c4b66c0f8e35f84f851380c6f340ac3a3863c47
[]
no_license
LeonHardt427/ShowMeTheCode
ea07779d8c603aad3c89d56dc98a3ec1db48b6d2
e1ef324b447cc38d3c3b3ac2d19df5dcb113136b
refs/heads/master
2021-04-29T09:01:34.654493
2017-01-20T04:00:42
2017-01-20T04:00:42
77,668,523
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
# usr/bin/python # -*- coding: utf-8 -*- ''' **第 0006 题:**你有一个目录,放了你一个月的日记,都是 txt,为了避免分词的问题,假设内容都是英文,请统计出你认为每篇日记最重要的词。 ''' from collections import Counter import re import sys def get_word(txt): common_word = ['the', 'in', 'of', 'and', 'to', 'has', 'that', 'this', 's', 'is', 'are', 'a', 'with', 'as', 'an'] ...
[ "leonhardt427@126.com" ]
leonhardt427@126.com
d5da552639e12a3caecae37b50fdc8d2f9aac299
5891324384c1eb96c19bde7a6d21df91890bacce
/Programacao-Internet/primeira-atividade/atividade02.py
250393fc7488f85a66c91c62c004da3e4c181aed
[]
no_license
Guilherme2020/ADS
f41324f48e6e2bc6ddd7e4310328e09f79b8a7a9
6d3ac6effca7633d6bc309ecfa9c5e8349f8e680
refs/heads/master
2021-01-17T21:06:21.874766
2018-01-19T21:49:40
2018-01-19T21:49:40
60,442,107
0
0
null
2016-06-08T13:57:25
2016-06-05T03:51:00
Python
UTF-8
Python
false
false
273
py
import requests import shutil url = 'https://meusanimais.com.br/wp-content/uploads/2015/05/gato.jpg' r = requests.get(url, stream=True) if r.status_code == 200: with open('gato.jpg','wb') as f: r.raw.decode_content = True shutil.copyfileobj(r.raw, f)
[ "guilhermerodrigues123477@gmail.com" ]
guilhermerodrigues123477@gmail.com
c0901823b1d16ad5c74b7e70f97e4d7f11330163
e664f2b2b23f2194bc6f2e8782c56c54fe22527d
/venv/bin/epylint
45a56bbc0831569e555be8a88096192e8a4ab145
[ "MIT" ]
permissive
daktari01/sama_automated_incentive_app
fb944c244dec244b45fd4e592e95b91f2bec96c0
2b49d504191a10067aa1de4637180c6bc7924054
refs/heads/master
2021-09-04T09:18:08.566742
2017-12-26T03:47:31
2017-12-26T03:47:31
113,555,536
0
0
MIT
2017-12-26T03:47:31
2017-12-08T09:14:58
null
UTF-8
Python
false
false
282
#!/home/daktari/Andela/flask_pro/sama_automated_incentive_app/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pylint import run_epylint if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run_epylint())
[ "dindijjames@gmail.com" ]
dindijjames@gmail.com
f9b1707515b78946ab468234f39d1d4903d4e9b8
a165e553b8c06224f00713c0b11220a0f675ab3d
/streamlit/app.py
c7dc078d15802db6e4097cde52fe054bfb57b7ed
[]
no_license
Uttam-Grade-McK/Income-Prediction
92c9bd2db2321c76b5ea7dd572cad960d34a5b9e
667755668d929aad41e5ff96d9604c1ae69d38ab
refs/heads/main
2023-08-06T03:15:55.640628
2021-09-14T17:34:31
2021-09-14T17:34:31
405,459,667
1
0
null
null
null
null
UTF-8
Python
false
false
4,150
py
# from flask import Flask, request import pandas as pd import numpy as np import pickle import sklearn import streamlit as st from PIL import Image pickle_in = open('Income_Classifier.pkl', 'rb') classifier = pickle.load(pickle_in) def Predict_Income(age, fnlwgt, education_num, marital_status, relationship...
[ "noreply@github.com" ]
noreply@github.com
6f43df9fc8783a67f35973c65b05af46f76f2117
1305bcd0525b66800f07f7cdc12154daee54c2d8
/src/sentry/integrations/github/client.py
ea76c399077c1258f8b4565c97de7446ca29e841
[ "BSD-2-Clause" ]
permissive
xiaohuihuifgt/sentry
9c5a61fed749d837e93e555b46d11777d848b301
ea4098d57463abf52c69c5225f9581071cd03f5b
refs/heads/master
2020-03-20T03:45:06.180800
2018-06-13T00:27:51
2018-06-13T00:27:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,039
py
from __future__ import absolute_import import datetime from sentry.integrations.github.utils import get_jwt from sentry.integrations.client import ApiClient class GitHubClientMixin(ApiClient): allow_redirects = True base_url = 'https://api.github.com' def get_last_commits(self, repo, end_sha): ...
[ "noreply@github.com" ]
noreply@github.com
3b201b951bcaa7fdc3906079154cb31fe14e8094
11b5bd6806447a9b2ef4d8d54a9dc64c8be5d6e5
/configs/base/base.py
49a0c3cdc03b691b6d9591180e6166b27cc4f10f
[]
no_license
milySW/NNResearchAPI
0789478791a91002d79dd909fe5f9654deeb4b44
00bbea4909d1272f80455edb692b45c6c6d56831
refs/heads/master
2023-04-17T19:56:19.667177
2021-05-03T23:48:26
2021-05-03T23:48:26
291,540,762
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
from typing import List, Dict, Any class BaseConfig: @staticmethod def condition(key: str) -> bool: return not key.startswith("__") @classmethod def to_dict(cls) -> Dict[str, Any]: class_dict = cls.__dict__.items() return {key: value for key, value in class_dict if cls.conditi...
[ "gajowczyk.milosz@gmail.com" ]
gajowczyk.milosz@gmail.com
5dd9545b161a3c85837453baef13b476e033796b
fad161c7bb4709487f6561f5fdf40afd106e2c1b
/hik_app/server/appserver.py
fa128745c2149449d5ca0d7d6fdb6723d46414a0
[]
no_license
happyAnger6/hik_app
94ae55fe31b3ba14a566771970a10fa9cf30d953
daf3be00faba271ee6ccf6db1431c2e332f931ab
refs/heads/master
2020-06-15T09:36:37.608041
2019-07-10T12:17:21
2019-07-10T12:17:21
195,262,689
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
from hik_app.utils.epoll import EpollServer class AppServer(EpollServer): def __init__(self): pass
[ "happyAnger6@163.com" ]
happyAnger6@163.com
6efe35387bd54aac15d8cb6ef36b0847abc37b95
adc7e9488f4248c61c5e0e1b20d8476e6c5b63c8
/introduction-to-algorithms/2/3/merge-sort.py
c410aeea175fdcab04cd5e614406b0e4b9db8386
[]
no_license
SergeyKulagin/algoritms
22bcc81486a862b23dcb8cd57e093be0889a7812
b6bb19f95fa9f5170c31a0cf4b2befa1e2d6c420
refs/heads/master
2022-03-17T13:47:59.125689
2022-03-07T16:45:32
2022-03-07T16:45:32
175,367,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
import sys def merge(a, start, middle, end): i = 0 j = 0 left = a[start:middle] left.append(sys.maxsize) right = a[middle:end] right.append(sys.maxsize) for k in range(start, end): if left[i] <= right[j]: a[k] = left[i] i = i + 1 else: a[...
[ "kulaginsp@gmail.com" ]
kulaginsp@gmail.com
edfacbf2d8cbd3f422b2844c79dabc4fe60e2d5c
1d1dbb5cba37a7dfbc9226fd988bb9a756b6542d
/lisc/urls/urls.py
d050c550243df0ec8a99ac66ca08f534d8df6d1b
[ "Apache-2.0" ]
permissive
aashish24/lisc
27b1e2bf793d7a1866c980eaedbf1bcc8c9d7e87
f19a3896d63ff701cb1cf22902d96fb0a67a9a6b
refs/heads/master
2020-07-13T02:36:19.144698
2019-08-25T22:38:20
2019-08-25T22:38:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,132
py
"""Base URL object for LISC. Segments : section added to the URL, separated by '/'. Settings : settings added to the URL, as key value pairs, following a '?' and added with '&'. """ from lisc.urls.utils import make_segments, make_settings ##############################################################################...
[ "tdonoghue@ucsd.edu" ]
tdonoghue@ucsd.edu
788904b590885b4196447c3e6fa4e61cc2d5f1e8
889f243db8de853729ac68f5c6c56e5ea3f54df2
/dominion_grpc_proto/dominion_pb2_grpc.py
2ff7d0cf0456327270ae0beba6e1b40349210282
[ "MIT" ]
permissive
the-gigi/dominion-grpc-proto
1b38160da2d72633f1ff301d95ba6a5966ca3642
bc3f7a93c7985476864aa49359dbe2e14afad271
refs/heads/master
2022-12-04T16:15:55.398905
2020-08-23T19:42:06
2020-08-23T19:42:06
282,386,103
0
0
null
null
null
null
UTF-8
Python
false
false
9,285
py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import dominion_grpc_proto.dominion_pb2 as dominion__pb2 class DominionServerStub(object): """Missing associated documentation comment in .proto file.""" ...
[ "the.gigi@gmail.com" ]
the.gigi@gmail.com
6b3f120d2ee38f1d5955c0b3bc04faa4d16890fa
f28bd0867cbe009b016aafbab79a73b593baabd6
/BMW/dealership/services/wayawayservices.py
7b3ddebde1db87ff0862f567ca3024b6f0d050e6
[]
no_license
kylegrone/greenlightautomotive
2ff778ebfff7eb66d3cfdae6eedbac19398fe90f
65fa72813d1acb80fda966f1cffdb1530b0cfa6b
refs/heads/master
2021-07-17T08:49:10.865191
2017-10-25T02:58:04
2017-10-25T02:58:04
107,046,351
0
0
null
null
null
null
UTF-8
Python
false
false
1,657
py
''' Created on Dec 21, 2015 @author: aroofi ''' from dealership.models import * class WayAwayService(): def get_all_wayaway(self,dealer=None): wayaways = WayAway.objects.all() wayaway_array = [] for wayaway in wayaways: wayaway_tmp = {"dealer":None,"default":wayaway} ...
[ "kgrone@greenlightautomotive.com" ]
kgrone@greenlightautomotive.com
7b06f3fb221180a1c79e4dc9c8b2c27818a05c6d
4e7b28fa812f59fed3686cc2f687d212967ce0af
/validator.py
b1e9d896da424569e40980c37c8691f7d3f8c4fd
[]
no_license
isabella232/faascc
ec13142cc9c9a752ff05273b268fd9dfeea2e064
23a520ef80d18c04eade79b2b1f758275add2689
refs/heads/master
2022-10-08T06:35:36.124049
2020-05-11T13:52:47
2020-05-11T13:52:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
# Validates a (simplified) file for relative completeness import yaml cc = yaml.load(open("faascc.simplified.yaml").read()) def validate(cc): for entry in cc[0]: for ccrel in cc[1:]: if not entry in ccrel: print("Entry", entry, "missing in", ccrel["name"]) validate(cc)
[ "spio@tougener" ]
spio@tougener
f97969be2a7cbf02e096c647e4f3b74269ae0ff5
56c96c128b797635dd20410859ccfe374ef2b4d5
/dojos/anagrama/test_dojo.py
a92947ef85c88540b7e09580c4160b45ee8e56d8
[ "MIT" ]
permissive
gupy-io/mentoria-python
465ba45cb22edd4b339549fe2e8a14dc3d0729d3
c8f56cfe4e0a61dd1f4609b8e645f62b380724f0
refs/heads/master
2022-11-11T16:45:34.443173
2020-03-05T17:10:37
2020-03-05T17:10:37
209,610,190
7
0
MIT
2022-11-01T15:50:53
2019-09-19T17:20:37
Jupyter Notebook
UTF-8
Python
false
false
1,111
py
from exercicio.dojo import anagramas # Aline # Breno # Daniel # Denis # Diogo # Heros # Marina # Matheus # Pedro def teste_uma_letra(): li = anagramas("b") assert li == ["b"] def teste_uma_letra_2(): li = anagramas("a") assert li == ["a"] def test_duas_letras(): li = anagramas("ae") assert l...
[ "matheusmachadoufsc@gmail.com" ]
matheusmachadoufsc@gmail.com
66af5d4f12a2fe96992a1902d9c5be9ae0386389
ad48c3fd77deb941a6e58b5a7b0bab15ad36d3e8
/SECTION_04/chronometry.py
ccad8b41ce20c49bdbc7d44cc8c0b4360194d739
[]
no_license
tmtmaj/PYTHON
74541641c21a9989f9ace8aa0773756d1a079e80
ffc76d025491e482958c442b501c39dd7af7f8da
refs/heads/main
2023-04-01T20:07:45.648270
2021-04-06T05:18:52
2021-04-06T05:18:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
import time def foo(a, b, c): print(a, b, c) time.sleep(2) def goo(): print('goo') time.sleep(3) def chronometry(f, *args, **kwargs ): start = time.time() f(*args, **kwargs) end = time.time() print(f'elapsed : {end-start}') #chronometry(goo) chronometry(fo...
[ "noreply@github.com" ]
noreply@github.com
bfd5ffced44944f1c508de289c0108341965ef13
061bddccaaa87c0624315814ad0afe5709817d28
/Portrayal_allSNPs.py
2b22afbb446bc293d7db96a889e611f129c54b86
[]
no_license
csoeder/snip-suite
05141619c6b348acb420f158f830ffb9783ae0d3
65ab970744bfc02b8d8a2e5e7ce5f68faa11ccf6
refs/heads/master
2020-06-04T21:14:25.095672
2015-02-12T19:40:21
2015-02-12T19:40:21
25,361,201
0
0
null
null
null
null
UTF-8
Python
false
false
11,286
py
""" Given two lists of SNPs from SNP_call: 1 partition them into shared SNPs, SNPs from list 1 only, and SNPs from list 2 only 2 """ # THIS VERSION OPTIMIZED FOR RICH M.'S SUGARFLIES import matplotlib matplotlib.use('agg') import csv import sys import numpy as np import matplotlib.pyplot as plt from subpr...
[ "Charles.Soeder@gmail.com" ]
Charles.Soeder@gmail.com
d16531933e2778cfe27da41deb050b19f3d3155d
fa52d1de7b18af22f6601b773e9f66a32ebd9999
/middleOfLinkedList_Easy/problem.py
ad744e4ef6e65e58c7c6c7b34f459a91061fe8cb
[ "MIT" ]
permissive
razzlestorm/code-challenges
9ba5b222cb97e106900d52d027fe2490d2e47e1c
765dc668623eb5b1e1d52155a09ac17c58b1f756
refs/heads/main
2023-01-24T01:04:04.850044
2020-12-06T00:32:09
2020-12-06T00:32:09
307,545,536
0
0
MIT
2020-11-11T06:42:57
2020-10-27T00:51:59
Python
UTF-8
Python
false
false
735
py
''' Given a non-empty, singly linked list with head node head, return a middle node of linked list. If there are two middle nodes, return the second middle node. Example 1: Input: [1,2,3,4,5] Output: Node 3 from this list (Serialization: [3,4,5]) The returned node has value 3. (The judge's serialization of this n...
[ "willhite.jerimiah@gmail.com" ]
willhite.jerimiah@gmail.com
24f46786de1e0d92144a98136c143df569995bcb
e0934ca26ac6c3f8816952ceafb3c84ace34d6aa
/resources/lib/common/misc_utils.py
67b7ffde68d1eb7d3e5bc4e964e7bd7d679ae6df
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
masQelec/plugin.video.netflix
62e4f6416c0f9bf547a8a5980de9747f677236b6
90ebf3343ebeaf6b790fdb1048d78fe5bf127dde
refs/heads/master
2023-02-09T17:07:36.200308
2021-01-04T01:36:55
2021-01-04T01:36:55
288,575,867
0
0
MIT
2021-01-04T01:36:56
2020-08-18T22:17:06
Python
UTF-8
Python
false
false
6,159
py
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2018 Caphm (original implementation module) Miscellaneous utility functions SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ from urllib.parse import quote, urlencode fro...
[ "gottardo.stefano.83@gmail.com" ]
gottardo.stefano.83@gmail.com
b5ca52130ba54fb17a66f5fe77a40648a3218e22
9c2421c24ed985e64166e884a3f2c3b3c17afd1f
/validator/validator.py
8a04f82b64505034b27282425b6cc9fc40b88dd2
[ "Apache-2.0" ]
permissive
rdgoite/ingest-validator
7f76edd5c12e804cf53fdd1a300b887cfb2b3e94
1b8aa8acd42835127c5680a09b318d4e6fdfe944
refs/heads/master
2021-08-28T14:18:45.593474
2017-11-28T13:22:04
2017-11-28T13:22:04
113,034,596
0
0
null
2017-12-04T11:32:40
2017-12-04T11:32:40
null
UTF-8
Python
false
false
3,147
py
import jsonschema import requests from functools import reduce class ErrorReport: """ A user friendly error message, along with corresponding ValidationError """ def __init__(self, message="", validation_error=None): self.message = message self.validation_error = validation_error ...
[ "rolando@ebi.ac.uk" ]
rolando@ebi.ac.uk
91c01439a08981a8ae26c9299542571550307480
1929443c8e4ec6ccd79777f18d161546867e17ef
/methods/transformers/tests/test_modeling_common.py
6360ea64bad78476a86baedf0e7a2a3e715cb70d
[ "Apache-2.0", "MIT" ]
permissive
INK-USC/RiddleSense
6f4b00546d7f4d5ada12db50929c1f0d7713d541
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
refs/heads/main
2023-08-14T19:01:01.478946
2021-07-05T04:06:01
2021-07-05T04:06:01
376,487,870
8
2
null
null
null
null
UTF-8
Python
false
false
43,481
py
# coding=utf-8 # Copyright 2019 HuggingFace 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 ...
[ "yuchen.lin@usc.edu" ]
yuchen.lin@usc.edu
2bcc73892647048fa886b11407dd34d93f207c30
6b57ceb08961c61e19ecb1e5343c6a85cb4e8bda
/markdown/MarkdownRenderTk.py
7f00c9718443592497ac7ccdf2a4119c3fd81be8
[]
no_license
seggiepants/minesweeper
212a7caa5d64c27bf37ce081adc15b53f21787b2
5ba11e89d3058b694c7fb49dad77acc06b02c125
refs/heads/master
2021-06-28T02:17:25.796316
2021-06-19T07:29:35
2021-06-19T07:29:35
232,244,698
0
0
null
null
null
null
UTF-8
Python
false
false
5,776
py
import os import tkinter as tk from tkinter import PhotoImage, scrolledtext from tkinter.font import Font import urllib.request import base64 class MarkdownRenderTk(): def __init__(self, target): self.text = target fontName = self.find_font(['Times New Roman', 'FreeSerif', 'Helvetica', 'Liberation ...
[ "41271733+seggiepants@users.noreply.github.com" ]
41271733+seggiepants@users.noreply.github.com
bc10bd50610a4cbc01aae785e97c2cd5261cf129
741ee09b8b73187fab06ecc1f07f46a6ba77e85c
/AutonomousSourceCode/data/raw/sort/60b0d171-eaf9-4106-9947-74a8abaa6712__sort.py
1ecfa4d31d8f9aacb3f83b00e8f6dba5fb40c716
[]
no_license
erickmiller/AutomatousSourceCode
fbe8c8fbf215430a87a8e80d0479eb9c8807accb
44ee2fb9ac970acf7389e5da35b930d076f2c530
refs/heads/master
2021-05-24T01:12:53.154621
2020-11-20T23:50:11
2020-11-20T23:50:11
60,889,742
6
1
null
null
null
null
UTF-8
Python
false
false
575
py
def quickSort (arr): """ Quicksort a list :type arr: list :param arr: List to sort :returns: list -- Sorted list """ if not arr: return [] pivots = [] lesser = [] greater = [] for x in arr: if x==arr[0]: pivots.append(x) elif x>arr[0]: ...
[ "erickmiller@gmail.com" ]
erickmiller@gmail.com
b6348cb89e3618cb1488cd7678db294d1f9814b5
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping20r3/StrippingLowMult.py
64d0de0b8e6e74cccb721b4715d426825cefe155
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
54,651
py
#Stripping Lines for Low Multiplicity Processes. #Electroweak Group (Convenor: Tara Shears) #Adaptation of lines (to use line builders) originally designed by Dermot Moran by Will Barter # Accepts events that passed the relevant HLT line. from Gaudi.Configuration import * from GaudiConfUtils.ConfigurableGenerators i...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
54590a54f5fc9df79887398bae3eac38483a904f
cafee376f09de58b47793ad6c8000882ff73c2a2
/week1/banner.py
be7edc96cce370ef73b173efcd30e56665751da1
[]
no_license
edgabriel92/digital_crafts
28cef7e281b22cf2a40b44173e5800e702f9809c
6c9367148eb9b968d52fc098e182319444201611
refs/heads/master
2021-04-06T08:29:58.916357
2018-03-10T16:55:52
2018-03-10T16:55:52
124,678,570
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
userText = raw_input("Text? ") space = len(userText) for row in range(space): if row == 0: print '*' * space elif row - 1 == space: print '*' * space
[ "gabrieledouard@Gabriels-MacBook-Air.local" ]
gabrieledouard@Gabriels-MacBook-Air.local
5b7ffde830bffb098822f58bf2f897b6477cabb5
97149b75bd21fb9f82aed657ab5180f765927746
/ietf/group/migrations/0051_populate_groupfeatures_agenda_filter_type.py
fa5025902b5166df6adb3778d40d3843575268fc
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hassanakbar4/ietfdb-filter-repo
c74e7cbfdd5acb8f55ca0fcff6757166582d68db
67513183b7035014b494bfdd982f9f3990ee0647
refs/heads/main
2023-08-25T09:47:28.900431
2021-11-09T22:16:24
2021-11-09T22:16:24
426,613,149
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
# Copyright The IETF Trust 2021 All Rights Reserved from django.db import migrations def forward(apps, schema_editor): GroupFeatures = apps.get_model('group', 'GroupFeatures') # map AgendaFilterTypeName slug to group types - unlisted get 'none' filter_types = dict( # list previously hard coded i...
[ "jennifer@painless-security.com" ]
jennifer@painless-security.com
393c3143d0a37450a0cd8316de7af61a85e37382
7aa2eb8f887e5bd0b4bdfff2509b244a8d3bb6b2
/ex30.py
10505bebb749c28afacc5cac2b5d2f94f44a23d8
[]
no_license
theyogiwhocodes/lp3thw
6ded2a0d989c49283aec662c93b2045cbc385c91
40fb57dec60671f6d79cbee2f7f7aac90fc96313
refs/heads/master
2021-09-04T03:09:56.138135
2018-01-15T03:46:36
2018-01-15T03:46:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
## Else and If people = 30 cars = 40 trucks = 15 if cars > people: print("We should take the cars.") elif cars < people: print("We should not take the cars.") else: print("We can't decide.") if trucks > cars: print("That's too many trucks.") elif trucks < cars: print("Maybe we could ...
[ "creativecoderr@gmail.com" ]
creativecoderr@gmail.com
9c8e206c740f98c0ccb55c2acca02c89360f9722
654f15aa9ade9ec62c1243fd6619fc7088350bce
/hbmqtt/scripts/sub_script.py
6a178229dd282ee1461a6dcb82cc0d0236a3f8f5
[ "MIT" ]
permissive
nfsnfs/amqtt
29b06b45801536971e7c79bda32bb2a16f12e435
759f0ed64fce5d1443988c6af909aca2326a4979
refs/heads/master
2023-03-30T20:44:41.709936
2021-04-01T09:50:14
2021-04-01T10:53:46
350,219,108
0
0
MIT
2021-04-02T13:29:50
2021-03-22T05:32:20
null
UTF-8
Python
false
false
145
py
import warnings from amqtt.scripts.sub_script import * warnings.warn("importing hbmqtt is deprecated. Please import amqtt", DeprecationWarning)
[ "f.ludwig@greyrook.com" ]
f.ludwig@greyrook.com
485a12f1235acc5c931d5afd6af59d48eb7a96c3
17436750e71236feba9a5fdc70bfabdfa6fc73d6
/Scripts/django-admin.py
08ae5f164a1101cec4e8ddc5badef934512c9e89
[]
no_license
ivoovi/djtest
d40fa12ca30f8b1f5b1ab63943e3e9ab0d4dc98d
38100378b027d11f666202372f60f7b0197894c2
refs/heads/master
2020-04-06T04:01:26.809488
2015-07-28T16:31:04
2015-07-28T16:33:38
39,845,037
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
#!C:\Users\ivo.angelovski\django\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "ivo.angelovski@it-labs.com" ]
ivo.angelovski@it-labs.com
396ccbf2e7079c27966af0da3a7a69286a5f5919
ea691446e415c276debdee3de826015e6e2e7149
/Convergence_project_Pixy/pixy_rpi-master/pixy_rpi-master/echo.py
64740b8a9d225052e066794fe88d12a39de42a06
[]
no_license
hanseunghan/Project
f1c5bc10bc6b19b2dd263a06e25874e9500b75cb
39fe342691d39aab4cdb95b0a195e1bf6be511dc
refs/heads/master
2022-02-02T14:25:41.788291
2022-01-14T01:13:28
2022-01-14T01:13:28
104,845,734
0
1
null
2018-02-09T05:28:06
2017-09-26T06:37:26
C
UTF-8
Python
false
false
336
py
import pixy import pixy_spi p = pixy.Pixy(pixy_spi.LinkSPI()) while(True): num_blocks = p.getBlocks() if num_blocks > 0: print "Detected: %d" % num_blocks for ii, block in enumerate(p.blocks): print " block %d" % ii, pixy.print_block(block) else: print "No b...
[ "hah2461@naver.com" ]
hah2461@naver.com
2199eb93227afc8efb0144072999e74f59f30930
1d925c3989e80d4cc9d635bf928318646621f722
/PythonClassData/Python_IMP/Link Codes/FileHandling/FilehandlingTasks.py
aed1d7bf98389f3b3da982037012df6abbf86b56
[]
no_license
mukeshbhoria/PythonClassData
0af81db1c9635d4a08db92bd36d1bbf1db251212
e2378b7ddb0acc5123e0c7227ce617fb63c701ff
refs/heads/master
2022-04-22T05:14:15.285934
2020-04-15T07:07:57
2020-04-15T07:07:57
255,844,437
0
0
null
null
null
null
UTF-8
Python
false
false
2,229
py
''' FIle Handling Tasks ''' ''' **************************************** Create Backup File ''' file_name = input("Enter the file name: ") Directory = input("Enter the directory of a file: ") infile = open(Directory+'/'+file_name, 'r') content = infile.read() base_file_name = file_name.split('.')[0] ou...
[ "mukesh.bhoria555@gmail.com" ]
mukesh.bhoria555@gmail.com
f54a7460258b64fddbd6b317be7429f7fed6510c
edf8b4fdc80ff333eb6cb60aff8cf41968892516
/ex02/8_7.py
5bb93df4673e873da3479e83c793585be5c2c55d
[]
no_license
khimacademy/c101
aad84d70e240885b41a4c948bffc462aa5a9b174
2100231a5e838884bc285bf33b12feb41ffad2b5
refs/heads/master
2020-03-16T22:48:45.057623
2018-05-11T15:07:47
2018-05-11T15:07:47
133,053,323
0
0
null
null
null
null
UTF-8
Python
false
false
1,005
py
import random birth_year = ['시끄러운 ', '푸른 ', '적색 ', '조용한 ', '웅크린 ', '백색 ', '지혜로운 ', '용감한 ', '날카로운 ', '욕심많은 '] birth_month = ['늑대', '태양', '양', '매', '황소', '불꽃', '나무', '달빛', '말', '돼지', '하늘', '바람'] birth_date = ['와(과) 함께 춤을', '의 기상', '은(는) 그림자 속에', '', '', '', '의 환생', '의 죽음', ' 아래에서', '을(를) 보라', '이(가) 노래하다', ' 그림자', '의 일격'...
[ "sarang.khim@gmail.com" ]
sarang.khim@gmail.com
b65fffee66504b5b0e39054ba8119d5315174f22
7abbcd16dcf2e639e53665d50ec113e1374b79eb
/ROIIM/settings.py
4694ca27b2c475b4f9f05f448a344b3f718e71a2
[]
no_license
srajsonu/ROIIM-Assignment-Paysafe
ab6f160641adb69cef2f78bde594322f286ff089
1d9586e29f1871e4e9577ff2befd594c8a9cbbe4
refs/heads/main
2023-01-04T23:42:53.403941
2020-10-31T17:17:57
2020-10-31T17:17:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,308
py
""" Django settings for ROIIM project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os from ...
[ "srajsonu02@gmail.com" ]
srajsonu02@gmail.com
73d4a33c3b4ba57b5f94c9863889924014b14f4d
1326d8961d9e29edf46af79e7eec0defc80095f8
/Code/78. Subsets.py
80f14f75363aefd0c87c6f46276bae210bf48cc1
[]
no_license
yuansun86/leetcode
58e01131bdbd8314583d7319866570d49cf12eb6
a2f626eef66a3b0e3a11f385ff59b961b3b85edc
refs/heads/master
2023-07-12T20:11:54.481347
2021-08-17T06:44:15
2021-08-17T06:44:15
286,399,034
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
class Solution: def subsets(self, nums: List[int]) -> List[List[int]]: def dfs(nums, current, index, result): result.append(current.copy()) for i in range(index + 1, len(nums)): current = current + [nums[i]] dfs(nums, current, i, result) ...
[ "ysun494@gatech.edu" ]
ysun494@gatech.edu
939e29581caa80c464f394037ba3b65483285f56
10c6c706a81e45222f936c4c10f97e6654bb488c
/locallibrary/urls.py
6e054668512a8a666b6984195a5ddb93f39849f3
[]
no_license
souravramos/locallibrary
e72ec06a171db276f30158a6aff63305b57d0404
eddb897a0df7fef72cdcd4427c6d5b362716f849
refs/heads/master
2022-12-09T09:30:37.021694
2020-09-09T10:10:09
2020-09-09T10:10:09
294,070,668
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
"""locallibrary URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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-...
[ "souravramos04@gmail.com" ]
souravramos04@gmail.com
a9761cdec486e1cf7f1b3070dae451027449aae9
27d9474e974b0ac965bc30a1e2529c20c74dd74a
/src/abc161_a.py
fe49a03cebf509d2edaae0c53f4d7394fcb1e7ed
[]
no_license
ShirasuSalaD/CompetitiveProgramming
ed16ef864e9730693ee2fc2da07f1f51f70c6e7d
60e0e9a46aec686d8c32986d39a790c47884d06c
refs/heads/master
2022-07-25T12:50:23.851627
2020-05-17T15:53:50
2020-05-17T15:53:50
254,588,325
1
0
null
null
null
null
UTF-8
Python
false
false
80
py
s = list(map(int, input().split())) c = s[-1] s.pop(-1) s.insert(0,c) print(*s)
[ "hihihipoke@gmail.com" ]
hihihipoke@gmail.com
7ecad64dbd2a4a3eed561b90cdf6a5522b1482c2
a10b828fc190d635a0b881289e24b02317a86f49
/setup.py
5ce3541905cb1f2d4b30467835a8708018455348
[ "MIT" ]
permissive
fjhheras/hyperevolve
c99bb5da1515feff312c0a4433d1b54aebcd15d9
3aaf20660fc83f0c854a977d2089e5d9c6ffda16
refs/heads/master
2020-03-17T01:33:06.172988
2018-05-12T16:00:52
2018-05-12T16:00:52
133,157,783
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
from distutils.core import setup setup( name='HyperEvolve', version='0.1dev', packages=['hyperevolve',], license='MIT', long_description=open('README.md').read(), )
[ "fjhheras@gmail.com" ]
fjhheras@gmail.com
5c8789023e51ce9b762629769c26a4978ba5edf1
ecb45574b9fe9bc3404eb0e1143bbbe96341dd4a
/first.py
1022d5cb82727f60603941d0465fb44839f4a749
[]
no_license
Harry2522/webUIAuto
ebe946c2cfa721c7edc2b4817a8eae2e17e4d9f2
f8e7e073f9dec25e40bc44263f3ee85b61f480be
refs/heads/master
2022-11-21T05:36:31.834738
2020-07-23T06:00:16
2020-07-23T06:00:16
279,778,644
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # @FileName:first.py # @Time :2020/7/15 14:09 # @Author :Harry ''' webdriver 控制浏览器 ''' from selenium import webdriver import time driver = webdriver.Chrome() driver.maximize_window() #窗口最大化 # driver.set_window_size(600,400) #设置窗口大小 driver.get("http://www.baidu.com") #打...
[ "zhr10187@163.com" ]
zhr10187@163.com
00bcc1cd0d93ac41e1e3d81388d2d53362e54606
75aefcdfa5ea4796f93ec7fdfb972bdd1b3aeea2
/fhirclient/models/claim_tests.py
d67c0e4ef7c00d751a15b05de0d61289948aa908
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
bchaballout/client-py
89a90dd2c991bbbd3710d2783afdc7bb3db5bca6
f1c2807fdc4a534cbd9e8b17ccb54f93de848bcb
refs/heads/master
2021-01-21T20:23:12.412748
2015-08-10T23:36:08
2015-08-10T23:36:08
39,397,021
0
0
null
2015-07-20T17:05:34
2015-07-20T17:05:34
null
UTF-8
Python
false
false
33,861
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 0.5.0.5149 on 2015-07-06. # 2015, SMART Health IT. import os import io import unittest import json from . import claim from .fhirdate import FHIRDate class ClaimTests(unittest.TestCase): def instantiate_from(self, filename): datadir...
[ "phase.of.matter@gmail.com" ]
phase.of.matter@gmail.com
6df1b6d43dfd9b7d2c8c66f79844bb9990260bb6
863a420520418f4b9a1fa88219252772df6ead25
/box_generator.py
601b5633468a5765d865452365e1dc4013d7338e
[]
no_license
orborde/optimizers-curse
25693b4fdf8d34137f2140c2e0779be0dfefca29
93d16f2e4ea4b1a893d3dedd4fdf1827c383f55e
refs/heads/master
2021-04-30T16:37:46.046514
2017-01-26T03:14:36
2017-01-26T03:14:36
80,079,399
1
0
null
null
null
null
UTF-8
Python
false
false
1,063
py
# Boxes have labels from 0 to 20. We want the label to accurately # report the expected value of the box. # # Turns out, this is actually kinda tricky. LABELS = range(0, 20+1) ERROR_MAX = 5 # For each label, generate boxes of the same error size in pairs (one # high, and one low) to keep the EV for that label symmetr...
[ "williamehlhardt@gmail.com" ]
williamehlhardt@gmail.com
dd452cb832b730c1ce93788b8274c1a6b799f5f4
9b2b14bc68af07d8640660aedc559e852e41deaf
/django_admin_shell/settings.py
9d8ffafcfb45dd22d337218a34f06794d38f9c54
[ "MIT" ]
permissive
luoshuihudie/django-admin-shell
872e61bd46dfa9619223dbaf6c38cf068c214ce4
62c09e259c6e8e07b2a69f08fccebebd06605d07
refs/heads/master
2022-09-29T20:06:12.262415
2020-06-08T06:26:47
2020-06-08T06:26:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
650
py
from django.conf import settings def from_settings_or_default(name, default): """Get attribute from settings by name or return default value""" return getattr(settings, name, default) ADMIN_SHELL_ENABLE = from_settings_or_default('ADMIN_SHELL_ENABLE', True) ADMIN_SHELL_ONLY_DEBUG_MODE = from_settings_or_def...
[ "grzegorz.tezycki@gmail.com" ]
grzegorz.tezycki@gmail.com
479d22e2a90d378aefcde1622fcf3f9b20defb3b
6f407956c4eb87d46c35776a61e1d788ac148f26
/Scripts/__imageUtils/setup.py
69986d27b814d91939cc0ac5d9d0a664260551bc
[]
no_license
decobeirne/collab-rob-fwork
3b99402132d49568ffb745732d10530a80575fb7
527c9f09c8a49af28a33fe2dccffd0ffa9bbd547
refs/heads/master
2021-01-01T18:18:36.408989
2013-11-24T20:13:16
2013-11-24T20:13:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
# Run "setup.py install" or "setup.py --help" from distutils.core import setup, Extension imageUtils_mod = Extension('imageUtils', sources = ['imageUtils.c']) setup(name = "imageUtils", version = "1.0", description = "A module providing functionality to process image data for the purpose of training an ob...
[ "declan.obeirne@gmail.com" ]
declan.obeirne@gmail.com
e8158614834d793346fa04dcca631a7b03ad848b
061be453f57c13c7d6d94909119874727efc45cf
/algorithm_puzzles/book1/23.py
043cc9dc18afedc95c2b6822509592d99e56d0b0
[]
no_license
woodchuckchoi/algorithms
e600407d038f6fa6bfbfc3fc7d43ec7ff6677dc6
9998219a0b1ba2c612814c13f3b0a035621634f6
refs/heads/master
2022-12-12T11:38:39.257936
2020-09-14T16:02:15
2020-09-14T16:02:15
295,451,666
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
memo = {} def game(coin, depth): key = (coin, depth) if key in memo: return memo[key] if coin == 0: return 0 if depth == 0: return 1 win = game(coin + 1, depth - 1) lose = game(coin - 1, depth - 1) memo[key] = win + lose return memo[key] print(game(10,...
[ "choiggoggi@gmail.com" ]
choiggoggi@gmail.com
50f303a45e9e71e6835653f8748e6342d5a399a7
76dacf3bfef69c72da228bb4242194dd042b8b3f
/jasmin.py
7c69f1198c880e1bdaf169b4a09223a43f28a3a2
[]
no_license
lillamy2012/scripts
fa64bcfbfafdd0e6ae4b7af482f599ea2d37625a
621c7606e07d21348854665a79d451e01930520f
refs/heads/master
2021-01-22T12:36:55.260771
2018-02-15T10:42:25
2018-02-15T10:42:25
102,352,610
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
import os import sys infile = open('../Araport11_jasmin.cumulated_incl200up.downstream.bed') for line in infile: a=str.split(line) if a[3] == "Upstream_200bp": a[2]=int(a[1])+199 if a[4] == "-": a[3]= "Downstream_200bp" elif a[3] == "Downstream_200bp": a[1]=int(a[2])-19...
[ "elinaxel@gmail.com" ]
elinaxel@gmail.com
655712c48b8e3269f7ded7e0a10596e8d7ca99d6
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_333/ch158_2020_06_22_14_11_49_882526.py
35e060ff4493472da35d6d453c952ee5f1ee6e52
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
with open('texto.txt', 'r') as arquivo: conteudo = arquivo.read() lista_letras = conteudo.split() print(len(lista_letras))
[ "you@example.com" ]
you@example.com
8cd8751626def413a2d50c0ebdd69cd028aa5d1b
c4b4a7c4a3d5df779d9926e5e143070b2244c234
/TerraSible/scripts/run_init.py
d1c60eb11c83f28a03977b7c46fe10104c491744
[]
no_license
ConductorLabsManha/Sprint01
03f5f45407e46205589a7c6dfe5172e46618030c
63fde6990532138a5b2fb55fbc53253a6352342a
refs/heads/master
2020-04-10T17:29:49.220166
2018-12-19T23:49:05
2018-12-19T23:49:05
161,176,027
0
1
null
null
null
null
UTF-8
Python
false
false
1,366
py
import subprocess import os os.system("rm -rf ~/.aws") os.system("cp --force -r ../utils/aws ~/") os.system("mv ~/aws ~/.aws") proc = subprocess.Popen(["aws ec2 describe-instances --query 'Reservations[*].Instances[*].PublicIpAddress' --output=text --profile ellan"], stdout=subprocess.PIPE, shell=True) (out, err) = p...
[ "noreply@github.com" ]
noreply@github.com
3be150e918d31dbb4cc65fb5d2b4cba4f94120b7
d2e69d4d3d1e11a87f5a377e4a423422fe0a7058
/ProxyServerSpiders/ProxyServerSpiders/pipelines.py
856fde62341fc0d507149b6748414b38ec27869e
[]
no_license
oJacker/_python
6f30dd4a60c1593d27c00ac485163fc0ba77dd8c
8086d0cd78e156abfff9819a56384149dd431c56
refs/heads/master
2021-05-06T03:13:29.167281
2018-02-01T09:41:42
2018-02-01T09:41:42
114,827,084
1
0
null
null
null
null
UTF-8
Python
false
false
298
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class ProxyserverspidersPipeline(object): def process_item(self, item, spider): return item
[ "623657285@qq.com" ]
623657285@qq.com
8fac8218dde5732dcaccb6b65cf7d70e11ed6c6a
03ec5158c12d7e4042936b084cbc7e2a266b3168
/python/com/jpmanjarres/hackerrank/warmup/CompareTheTriplets.py
d79cb80570ff0efdb7f86f31056613951c49e435
[]
no_license
paul-manjarres/coding-exercises
063271dc89c4477df6f2cdd4b058af84de8f2892
f9e1d53d1247dde6751baaf2e188495e00bb8129
refs/heads/master
2022-12-16T02:37:40.510609
2022-11-28T00:01:42
2022-11-28T00:01:42
46,098,833
0
0
null
2020-04-25T03:53:29
2015-11-13T03:56:11
Java
UTF-8
Python
false
false
278
py
a = list(map(int, input().strip().split(" "))) b = list(map(int, input().strip().split(" "))) a_points=0 b_points=0 for i in range(len(a)): if a[i] > b[i]: a_points=a_points+1 elif a[i] < b[i]: b_points=b_points+1 print("%d %d" % (a_points, b_points) )
[ "paul.manjarres@gmail.com" ]
paul.manjarres@gmail.com
dc3f11f51eb8421fb823f581064858c0c963d173
4dcfaa112a5bcb888bcd2523ab76e57b6ab0d3b3
/server/jotdown/api/migrations/0002_auto_20190309_1945.py
5582d5742bfc8ca2400702987ea097965cf3d04c
[]
no_license
eastend-street/jotdown
ae466181c1358d10b70e62948faf7ae038c62c98
b80175fb528c80d8a82062e7f073c646bff40923
refs/heads/master
2023-03-11T06:52:25.487151
2022-12-08T09:12:31
2022-12-08T09:12:31
161,026,871
9
1
null
2023-03-04T17:15:42
2018-12-09T10:12:11
Python
UTF-8
Python
false
false
914
py
# Generated by Django 2.1.7 on 2019-03-09 19:45 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AddField( model...
[ "ss_1322irf@icloud.com" ]
ss_1322irf@icloud.com
7c75bdd84cea9c5e7b3aac6e40ef9b847fcf6689
540f3ad8571aeeaf5b9e073aed03ec44928848b5
/2sem/dz2/2.4.py
120fdc9116aecb1f97f875079a2fd7bee5142e2a
[]
no_license
Hecomer/2s
decb85faab54ab308893b3e7b268a79b2620bbfe
0914a60cd1ea9bbae128f761b1dd0fd96c8cb96d
refs/heads/master
2023-04-09T20:29:10.288516
2021-04-26T18:06:24
2021-04-26T18:06:24
361,829,799
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
def swap(first, second): first[:], second[:] = second[:], first[:] first = [1, 2, 3] second = [4, 5, 6] first_content = first[:] second_content = second[:] swap(first, second) print(first, second_content, first == second_content) print(second, first_content, second == first_content)
[ "yan.lyandin111@yandex.ru" ]
yan.lyandin111@yandex.ru
c185b8cb8f190c9a29aa87446ed91c81c412b885
d63da6a2c531bb675e898f09a25b551f97b13ac5
/twitter_dashboard/tweet_cleaning.py
965748ffbd5d9385a286209e434967e32456d901
[]
no_license
AiswaryaSrinivas/DeepDiveData
df78c2cefe75ada7a069a3dff36ee074dea1378b
1abd2cbfde593e80aa8664e548c3c9366b37ab70
refs/heads/master
2023-07-25T17:10:29.104231
2020-03-23T09:12:35
2020-03-23T09:12:35
230,627,612
0
0
null
2023-07-06T21:36:03
2019-12-28T15:26:55
Python
UTF-8
Python
false
false
3,195
py
import pandas as pd import numpy as np from nltk.sentiment.util import * from nltk import tokenize from textblob import TextBlob import sys import string from nltk.corpus import stopwords from nltk.stem import PorterStemmer STOPWORDS=stopwords.words("english") STOPWORDS.append("with") ps = PorterStemmer() s...
[ "aiswaryar2010@gmail.com" ]
aiswaryar2010@gmail.com
a63ced3a2c446078eb60febe8ae557dbda9adcaa
63c91b089638880151a8a281c109aeadc2b55961
/evaluation_annotation/process_cf.py
570d7e5f387906be9c3112c93c884bbaeba56058
[ "Apache-2.0" ]
permissive
jhlau/deepspeare
945c1ab4890421c6babbbaaf97bfd737542686ca
08bd93ee5b023f6097261a51845929deb86296cd
refs/heads/master
2022-10-17T06:18:05.099040
2022-09-30T00:56:33
2022-09-30T00:56:33
132,543,358
74
26
null
null
null
null
UTF-8
Python
false
false
3,808
py
""" Author: Jey Han Lau Date: Oct 17 """ import argparse import sys import unicodecsv as csv import cPickle as pickle from collections import defaultdict import numpy as np import operator #parser arguments desc = "Process CF results to compute accuracy" parser = argparse.ArgumentParser(description=...
[ "laujh@4180L-150001-M.local" ]
laujh@4180L-150001-M.local
c438f8a8958392194e5ec8f5b040dc6b9fb93094
2c3b090bc2d6c5d2ca2b86f132b950f250ce5c02
/tutorials/evaluating_model/tutorial_four.py
10e8f4cc15ccc2e7ed8ae4f1b4cb4b767121cb70
[ "MIT" ]
permissive
InspectorDidi/CausalWorld
b8f7096f0cb623d5c8b7f6040c830f6ef07b4127
548e66c36fba01125cf6290992dfd833ae42709b
refs/heads/master
2022-12-26T23:37:15.568356
2020-10-12T08:02:32
2020-10-12T08:02:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,311
py
""" This tutorial shows you how to use a controller and evaluate it afterwards using an evaluation pipeline compromised of different evaluation protocols. """ from causal_world.evaluation.evaluation import EvaluationPipeline import causal_world.evaluation.protocols as protocols import causal_world.evaluation.visualizat...
[ "ossama.ahmed@mail.mcgill.ca" ]
ossama.ahmed@mail.mcgill.ca
9b035474444b9df6e18203574899dd3bc88ed562
917f2a06cf57e2ca5f0d8f8dab3c363400f1396d
/utils/extract_name_id.py
5926ffdc26c646fea3de6eaed89ca5fb9bf00f3e
[]
no_license
hammer-wang/file_processing
b6719d6b62a9396a7da994db087d9f85ab554435
223f85524a1eba48921b9d85e5349066100d34ad
refs/heads/master
2021-01-14T04:32:53.194223
2020-09-24T15:53:26
2020-09-24T15:53:26
242,601,415
0
0
null
null
null
null
UTF-8
Python
false
false
3,026
py
""" This script renamed the .ipynb files with the format [uniquename]_[umid].ipynb and put them in to a new dir. Author: Haozhu Wang (hzwang@umich.edu) Date: 2020-02-21 Dependency: -- tqdm -- jupyter nbconvert 5.6.0 (this should come with jupyter lab) Example: python extract_name_id.py --source ~/Documents/EECS5...
[ "haozhuwang1993@gmail.com" ]
haozhuwang1993@gmail.com
da71f5d45b34ab62983eb0904dc4d8d27ccc828d
c8f820edc0c480082ac57306b9a33ad8570203ba
/keras/0723/keras06_RMSE.py
5cfd8d2cfd1f36f04aa731f2f1569cdd8711b82d
[]
no_license
JIN-YEONG/keras_example
4f9224158babb2224053377e511695a2fea64ad1
97b279dbf2ba7a16ce93abca55711fa9b2cce252
refs/heads/master
2022-02-21T22:01:37.110003
2019-09-15T23:59:20
2019-09-15T23:59:20
198,376,897
0
0
null
null
null
null
UTF-8
Python
false
false
2,042
py
# 1. 데이터 import numpy as np x_train = np.array([1,2,3,4,5,6,7,8,9,10]) # 10행 1열의 데이터 y_train = np.array([1,2,3,4,5,6,7,8,9,10]) x_test = np.array([11,12,13,14,15,16,17,18,19,20]) y_test = np.array([11,12,13,14,15,16,17,18,19,20]) # x3 = np.array([101,102,103,104,105,106]) # 6행 1열의 데이터 # x4 = np.array(range...
[ "noreply@github.com" ]
noreply@github.com
7af2abeb802513450eeacf1a37de43fd1172416f
acd981a3b0ed2865c75f3ebd6c3a0854556386f9
/Pytroch/Example/ganNet.py
02ed6bebb100e2cefab9d941d5c0c5fce71ce14a
[]
no_license
haolingyi/Python
8719b88246e58f11cbb6277475d12c4def8e24d1
5229bf4ae4462e2a4fa7999a35cfbdad20bab8b2
refs/heads/master
2020-04-17T20:47:32.872615
2019-01-22T03:36:11
2019-01-22T03:36:11
161,257,418
0
0
null
null
null
null
UTF-8
Python
false
false
2,247
py
import torch import torch.nn as nn import numpy as np import matplotlib.pyplot as plt BATCH_SIZE = 64 LR_G = 0.0001 LR_D = 0.0001 N_IDEAS = 5 ART_COMPONENTS = 15 PAINT_POINTS = np.vstack([np.linspace(-1, 1, ART_COMPONENTS) for _ in range(BATCH_SIZE)]) def artist_works(): a = np.random.u...
[ "1031909300@qq.com" ]
1031909300@qq.com
025feeecda138da3b5497a8bf20f9c7c167b5c9a
972a694174dfbd25dbf27d8aa98d272625c2400f
/bin/apred
615f8a79cb96cb34f9e655aafc3447ad2c83724f
[ "BSD-3-Clause" ]
permissive
sdss/apogee
d3344021ac66f91e4259dd1fcf160ee7657740ec
e134409dc14b20f69e68a0d4d34b2c1b5056a901
refs/heads/master
2021-08-06T18:44:13.668542
2021-06-11T13:00:51
2021-06-11T13:00:51
127,458,050
5
5
BSD-3-Clause
2018-09-20T22:18:47
2018-03-30T18:02:58
IDL
UTF-8
Python
false
false
1,292
#!/usr/bin/env python # encoding: utf-8 # # @Author: Jon Holtzman # @Date: March 2018 # @Filename: apred # @License: BSD 3-Clause # @Copyright: Jon Holtzman from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import argp...
[ "holtz@nmsu.edu" ]
holtz@nmsu.edu
22f6f5181a3fae5dcc7e8de760d03839b9c2c842
472ddd7186ce8495ab37aaa4cd6ec29ed38f5462
/Tests/test_BioSQL_sqlite3.py
c282caf8dd0d7c434447a1dcb3dcd3f980f04bc2
[ "BSD-3-Clause", "LicenseRef-scancode-biopython" ]
permissive
EsamTolba/biopython
66ef643d6d4602900971cc0c5cc1e70d77f17f57
120616cf0d28cb8e581898afd6604e5a2065a137
refs/heads/master
2020-06-25T00:52:45.827047
2019-07-23T06:54:14
2019-07-25T09:25:12
199,145,343
1
0
NOASSERTION
2019-07-27T09:39:19
2019-07-27T09:39:18
null
UTF-8
Python
false
false
2,723
py
#!/usr/bin/env python # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Run BioSQL tests using SQLite.""" import os import unittest from Bio import SeqIO from BioSQL import BioSeqDatabase # Reall...
[ "p.j.a.cock@googlemail.com" ]
p.j.a.cock@googlemail.com
28af29cc61c2977f5a3a64e7e807be08ae6a4b16
5410700e83210d003f1ffbdb75499062008df0d6
/leetcode/distributeCandies-2.py
149c757de3160a89b886ce61026bdb4a8fd7c015
[]
no_license
lilyandcy/python3
81182c35ab8b61fb86f67f7796e057936adf3ab7
11ef4ace7aa1f875491163d036935dd76d8b89e0
refs/heads/master
2021-06-14T18:41:42.089534
2019-10-22T00:24:30
2019-10-22T00:24:30
144,527,289
1
0
null
null
null
null
UTF-8
Python
false
false
554
py
class Solution: def distributeCandies(self, candies: int, num_people: int) -> List[int]: ans = [0] * num_people r = 1 while candies > 0: for i in range(num_people): if candies < 0: break if candies > i+1+(r-1)*num_people: ...
[ "myyan_yan@msn.com" ]
myyan_yan@msn.com
71ac1c1d19491024685edd2fcd786657244b6e4d
b023d1fe4e5941737af34d59d5d4b73a9a8798f7
/UpdatedDataBase/CRUD.py
69066695976c7e3522f6a7a9a3eece55fa7ea687
[]
no_license
dbomb995/dbomb995.github.io
40e6be3c8191e1047a0e9f0fd874bbfb9bfae84c
1fa0cf95d3d99254f8135b32411dc150e0b4cdae
refs/heads/master
2022-12-01T23:24:26.478278
2020-08-17T03:25:21
2020-08-17T03:25:21
275,789,774
0
1
null
null
null
null
UTF-8
Python
false
false
5,899
py
import json import pymongo from bson import json_util from pymongo import MongoClient #Opens connection to market.stocks MongoDB connection = MongoClient() db = connection['market'] collection = db.stocks #Displays options for the user to select from when the menu() function is called def option(): print("") ...
[ "dbomb995@gmail.com" ]
dbomb995@gmail.com
4a6d1fd4f63b7607b2710377fbe8bc317dc6917f
4382c60f18aba351a2e7cdab7ce2793c2d27717c
/Algorithm 191021/venv/Scripts/pip3-script.py
212857ca75ce92bc01364279892e2ab932ceb2a8
[]
no_license
vxda7/pycharm
e550b1db4cabe1a0fa03e140f33b028ef08bd4cb
ce29f682a923875b62a8c7c0102790eef11ab156
refs/heads/master
2020-07-03T11:27:27.807096
2019-11-15T08:50:32
2019-11-15T08:50:32
201,891,357
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
#!"C:\Users\student\pycharm\Algorithm 191021\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys....
[ "vxda77@gmail.com" ]
vxda77@gmail.com
aedb84bd3fcf3e2a5cc04325bb7819bf98adcc0b
7b4b31a8b736db18995474ac109cfbee868cca7a
/interface/move_friend.py
36831720c7d96876fa9a2b686da598a106cfbe27
[]
no_license
morainwang/yqt
d727cf61c481943b61eef67af44ce91651d675e5
390e5f8b50df046f4c02be5461f3fc0be55cef34
refs/heads/master
2021-01-10T06:47:14.763655
2016-02-04T06:02:15
2016-02-04T06:02:15
51,055,054
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
#!/usr/bin/env python # coding=utf-8 ''' Created on 2015年7月13日 @author: wang ''' import socket import time import msgserver_login msgserver = msgserver_login.Login(587) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((msgserver[0], 8888)) def keepalive(): while (True): reqs = 'POS...
[ "945999681@qq.com" ]
945999681@qq.com
4ee1b7c42d9547199a0d99865d9381741c6123b1
2bfbe221abb5c3fa00379de05cb743353ce0188e
/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/{{cookiecutter.app_slug}}/tests.py
c6b1d486e5929c9927a34056b6a066cded757bbb
[ "MIT" ]
permissive
OpenUpSA/cookiecutter-django-dokku
d4893c155cb2ced6be2cab838da81db14de01b54
cfd2ae5ed55f726cebaba5c79a1bafc8001bdc03
refs/heads/master
2023-04-01T17:01:04.781614
2022-12-08T15:30:31
2022-12-08T15:30:31
233,432,629
4
6
MIT
2023-03-21T22:36:38
2020-01-12T17:43:07
Python
UTF-8
Python
false
false
599
py
from django.test import Client, TestCase import html5lib class IndexTestCase(TestCase): def test_index(self): c = Client() response = c.get("/{{ cookiecutter.app_slug }}") self.assertContains( response, "index for {{ cookiecutter.app_slug }} in {{ cookiecutter.project_slug }}"...
[ "jbothma@gmail.com" ]
jbothma@gmail.com
8c7d1a3a84798547b9863732dd3bde921ea2269c
52c448f927aa4ef75226874dfbb0bc07b1702c4e
/training-scripts/zipporah/split_data.py
da0d0169a01837c0e3384e89515ccd262cea59da
[]
no_license
hiropppe/abc
38c5e958d42cd2c57e889edd89cef72903ad18f8
25c05a97a86c2f9c6d40cb3a4a9418009ed38c53
refs/heads/master
2021-09-10T22:11:58.117828
2021-09-10T08:00:19
2021-09-10T08:00:19
220,932,262
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
import numpy as np import sys data = [l.strip() for l in open(sys.argv[1])] np.random.seed(123) indices = np.random.permutation(len(data)) bad = float(sys.argv[2]) dev = float(sys.argv[3]) bad_size = int(len(data) * bad) dev_size = int(len(data) * dev) bad_indices = indices[:bad_size] dev_indices = indices[bad_siz...
[ "sergei.0910@gmail.com" ]
sergei.0910@gmail.com
f2d30d55e098e543d0f035e1dec0b2bf27b106d8
cb625ff39b40e99f617e8654292023ef84d909c9
/tags/views.py
47fd51f86e89571cf92441582b039a4e050b045c
[]
no_license
adeepivt/learning-drf
c702e0cde5d24ad954fbb83b34097a8372146527
3dba082f867149bb9c521ef4ae1dcdef1efc71c4
refs/heads/master
2023-08-31T10:04:21.741233
2021-09-24T04:49:22
2021-09-24T04:49:22
401,654,922
0
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
from django.shortcuts import render, HttpResponse from .models import Bookmark, Tag from rest_framework.response import Response from rest_framework.viewsets import ModelViewSet from .serializers import BookmarkSerializer from rest_framework.permissions import IsAuthenticated from rest_framework_simplejwt.authenticatio...
[ "adeepivt@gmail.com" ]
adeepivt@gmail.com
a415186085d91d6da918529b721765c1974f6a51
e880191135eb932c0dcde3b02358f808c7087507
/Geo_GDAL/Demo/blend2013.py
ef4521cfc6e2c0e4c891819ecf81c22543578974
[]
no_license
THRILLERLEMON/ThrillerPython
e5a62148d1e80f1374313edf2e1604a12989300a
35cbdef0c4a606c53d4dd8f38d532e4ab5c1b74d
refs/heads/master
2021-06-28T07:22:56.781004
2021-01-06T07:46:17
2021-01-06T07:46:17
200,649,205
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
import glob import os import sys from osgeo import ogr from osgeo import gdal from osgeo import osr import numpy files = glob.glob(r'C:\Users\thril\Desktop\1bi25\**\lrdl.shp') ogr.RegisterAll() driver = ogr.GetDriverByName('ESRI Shapefile') ds1st = driver.Open(files[0]).GetLayer('lrdl') outds = driver.CreateDataSource(...
[ "thrillerlemon@gmail.com" ]
thrillerlemon@gmail.com
c33207c35a3baea0264021dfb406a6a82389c6e0
fd87dff3c3e82cbc3a3af316ac91ca3dac88a80a
/python_example2.py
9e64d833e90c10c1e4c9e7b36d84b8a550625721
[]
no_license
jwkrijnen/Code-Portfolio
4a76180144cdbd422841a92da51368bdfbd86610
910f57146e3fdd924b7a104449ed4f2fa1580b69
refs/heads/master
2021-01-01T04:06:17.712243
2016-05-13T13:00:57
2016-05-13T13:00:57
58,719,024
0
0
null
null
null
null
UTF-8
Python
false
false
12,712
py
import os.path import socket import select import time import threading import sys from random import uniform from python_example3 import RipPacket from copy import deepcopy UDP_IP = "127.0.0.1" out_socket = None triggered_update_blocking = False triggered_update_queued = False class Router(): #...
[ "joshua.krijnen@gmail.com" ]
joshua.krijnen@gmail.com
91917fac81bb1808c922dffe9aeabecc53f78eb3
c45c303164c8723483f328195f947eed93077752
/View/sale/sale_base.py
690afe26c9041fa4eb8c7c12c16b87e34a11c5e4
[]
no_license
jinshang123/Py-store
3a22d8042346509c9d644bfbd964f943ddb4c101
4ad71d60880a3b397d692c7555e17e946f6e4e53
refs/heads/master
2021-09-04T02:16:44.238087
2018-01-14T14:50:54
2018-01-14T14:50:54
114,749,342
0
0
null
2018-01-14T14:07:37
2017-12-19T10:05:02
Python
UTF-8
Python
false
false
2,923
py
import traceback from PyQt5 import QtWidgets from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QFileDialog from View.sale.excel_process import ExcelProcess from View.sale.ui.ui_sale_detail import Ui_SaleDetail as SaleDetail from View.utils import table_utils class SaleBase(QtWidgets.QWidget, SaleDetail): ...
[ "zgj0607@gmail.com" ]
zgj0607@gmail.com
f839bce97bc08a27d763a4accd8677b3d4ea5af2
7a5b0a67cd5006abe4f2682fd5c0bde3c7347b45
/download2.py
062adc4f46d99f305b95eb77617b2929fdaa1c5c
[]
no_license
krishnamittal96/hackillinois
6981540f8507f9d689c593c094bcb1dc4327be62
6ba09d665616d20f47299dd3b5279fcbde5834be
refs/heads/master
2016-09-08T00:37:01.033357
2015-03-02T00:35:57
2015-03-02T00:35:57
31,477,233
0
0
null
null
null
null
UTF-8
Python
false
false
1,198
py
import gdata.youtube import gdata.youtube.service import youtube_dl import os from subprocess import call import sys yt_service = gdata.youtube.service.YouTubeService() def SearchAndPrint(search_terms): yt_service = gdata.youtube.service.YouTubeService() query = gdata.youtube.service.YouTubeVideoQuery() query.v...
[ "krishnamittal96@gmail.com" ]
krishnamittal96@gmail.com
e0c2cdc1977ef458e236976eb45e9dc4724592ef
be0e1a61c2f79a5323ad613d3f9fff88538ec97f
/tests/python/test_stokes_rt.py
b0c990ed3648f1db6d8d415055ce0151e80376de
[ "MIT" ]
permissive
apusok/FD-PDE
1686f1b57a3e1eb1376bfa02cab6ee4b1cbc9562
a2472e1da2fa2e4faf4b77b4e4383d0ecd145cb7
refs/heads/main
2023-04-10T02:39:39.904772
2022-07-22T15:08:23
2022-07-22T15:08:23
516,734,168
2
2
null
null
null
null
UTF-8
Python
false
false
1,006
py
# --------------------------------------- # Run Rayleigh-Taylor instability test with particles # --------------------------------------- # Import modules import os import sys, getopt print('# --------------------------------------- #') print('# Rayleigh-Taylor Instability+Particles (STOKES) ') print('# -------------...
[ "adina.pusok@gmail.com" ]
adina.pusok@gmail.com
f170e5ebabb16f16c2787f9d5457e3cafb7b4bc5
65406cada87de2ea97d80214ad254eb8cdef7f78
/flexiqueue.py
4ce7885a9c142c32547c661aaa7fd3b05f9b0f08
[]
no_license
varunkashyapks/Network
440f7d6e68e1160e09c9dab47e31b333e9266a24
1092909dac9b9ebd1c3ce02e0091f26d0f51fed5
refs/heads/master
2021-01-20T08:43:20.966665
2017-05-03T20:17:42
2017-05-03T20:17:42
89,952,623
0
0
null
null
null
null
UTF-8
Python
false
false
1,084
py
class flexiqueue: capacity = 10 def __init__(self): self.data = [None]*flexiqueue.capacity self.front = 0 self.size = 0 def is_emtpty(self): return self.size == 0 def count(self): return self.size def first_element(self): if not self.is_emtpty(): return self.data[self.front] def resize(self,cap...
[ "noreply@github.com" ]
noreply@github.com
cfa73a0feeceb3dba9e7da7f826e1a0333e089ee
6774fb78abc8589f63f067cb0866e335b1e9b2a6
/BioAsq6B/QaSimSent/predictor.py
51ce33fc6236f324e6b53e954611e832430e7baf
[]
no_license
romanegloo/18-bioasq6b
87f57b34771ae98672929d5b6b4aff38182daccc
31e701961ba19c481556f0fb5f81b8d591d6254c
refs/heads/master
2022-01-12T10:40:55.627692
2019-05-18T13:15:19
2019-05-18T13:15:19
114,382,674
2
0
null
null
null
null
UTF-8
Python
false
false
8,607
py
#!/usr/bin/env python3 """QA_Proximity predictor; Classifies if the given text is relevant to the question.""" from typing import Tuple, List import logging import spacy from spacy.tokenizer import Tokenizer import torch import torch.functional as F import re import pickle import prettytable from .model import QaSim...
[ "bornoriginal1@gmail.com" ]
bornoriginal1@gmail.com
2b49a203f5f3fab8478211693e180d4aa7513f1c
091155389673325cfe8b0da3dc64c113f1ded707
/tests/configs/test_config.py
1a90b597484431762d0251da6cde3e2baac90477
[ "Apache-2.0" ]
permissive
Megvii-BaseDetection/cvpods
7b7c808257b757d7f94d520ea03b370105fb05eb
2deea5dc659371318c8a570c644201d913a83027
refs/heads/master
2023-03-22T00:26:06.248877
2023-03-10T10:05:26
2023-03-10T10:05:26
318,124,806
659
91
Apache-2.0
2023-03-10T10:05:28
2020-12-03T08:26:57
Python
UTF-8
Python
false
false
7,550
py
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # pylint: disable=W0613 import os import tempfile import unittest import torch # from cvpods.configs import configurable, downgrade_config, get_cfg, upgrade_config from cvpods.layers import ShapeSpec _V0_CFG = """ MODEL: ...
[ "noreply@github.com" ]
noreply@github.com
41dcee6f352b6aeb4d60cf0a7e7cefc0c8539933
050ea6fa9d32fd293b37ff88e27260c4b441ef60
/core/employee_lookup.py
836f1838a6ead2a99c724e537ed37fd9709c1299
[ "MIT" ]
permissive
hpasalar/Hackerwasi
eaa945ae8c74440bf60e865a86dcb4e4c80cbbf6
72f8463a8384cac08ff87f9a59816a08381b6916
refs/heads/master
2022-12-06T00:40:27.077837
2020-08-16T05:34:47
2020-08-16T05:34:47
289,902,665
3
0
MIT
2020-08-24T10:55:19
2020-08-24T10:55:18
null
UTF-8
Python
false
false
829
py
# -*- coding: utf-8 -*- from core.LinkedIn import searchLinkedIn from colorama import init, Fore, Back, Style from terminaltables import SingleTable warning = "["+Fore.RED+"!"+Fore.RESET+"]" question = "["+Fore.YELLOW+"?"+Fore.RESET+"]" found = "["+Fore.GREEN+"+"+Fore.RESET+"]" wait = "["+Fore.MAGENTA+"*"+Fore.RESE...
[ "hackerbad669@gmail.com" ]
hackerbad669@gmail.com
9215430ed85c25b3937c5251aa1bad39a44402d8
5d751981646de202f81f61b9c9a7443453a64839
/02 数据库/02 redis/03 python使用redis.py
01947292507a86c2a522958b2d11e92bbbf5bdd1
[]
no_license
jia80H/python-advance-learning
4464d9499e32d0dfab4181f7c9aa41c2313382bf
b03bbd65d842507e85b0a8296794a051ea89b884
refs/heads/main
2023-03-14T07:54:33.471717
2021-03-07T00:23:44
2021-03-07T00:23:44
337,283,779
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
import redis client = redis.Redis() client.set('username', 'admin') client.hset('student', 'name', 'hao') client.hset('student', 'age', 18) d = client.keys('*') e = client.get('username') f = client.hgetall('student') print(d, e, f, sep='\n')
[ "mlfy_jia@outlook.com" ]
mlfy_jia@outlook.com
3834848d95757726447869fd51bb62c81af6ec51
b9120c5bc5aa5492de4631ace309a8c9333b704f
/Sesion_07/Ejem_Escritura_Archivo.py
8442cf373b3d9d6fc64036f06651c8d00cfc1245
[]
no_license
JuniorLlancari/Quantum-python
02af8333d608f3ca6a3e11c3f8a52169efcc70a3
ffd9abecfa78639d2e7c2deb641acc9baf8313b3
refs/heads/master
2023-03-31T00:44:25.350271
2021-04-01T16:34:56
2021-04-01T16:34:56
335,133,876
1
1
null
2021-04-01T16:34:57
2021-02-02T01:31:41
Python
UTF-8
Python
false
false
107
py
#CREANDO UN FICHERO # with open('numero.txt','w') as f: # for i in range(15): # f.write(str(i))
[ "juniorllancariv@gmail.com" ]
juniorllancariv@gmail.com
d0fb5a2dd10cecf5a018af51d1c99441fbf430df
43d9e1c55f6f06453bf1836ab288b4a71d862228
/ProyectoWeb/blog/admin.py
3d67e3d4eb2a023adbe2e75adc10fbd9bd15242f
[]
no_license
billyordores/ProyectoWeb
ceb602689bb90a06aba29914456bf5fa15e474d5
64bfaa275f03bf4688c9ded3fdc58821da999ab6
refs/heads/main
2023-06-24T11:03:45.948784
2021-07-27T11:28:17
2021-07-27T11:28:17
388,111,402
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
from django.contrib import admin from .models import Categoria, Post # Register your models here. class CategoriaAdmin(admin.ModelAdmin): readonly_fields=('created','updated') class PostAdmin(admin.ModelAdmin): readonly_fields=('created', 'updated') admin.site.register(Categoria, CategoriaAdmin) admin.site.r...
[ "billy.ordores.pantoja@gmail.com" ]
billy.ordores.pantoja@gmail.com
147b3f49376d8ffc70e3fd5db7ced898b8fad8f0
dd7be0b5437a4e0afc19f8a71aace9ec65a43135
/IMDBScrapy.py
d62c21a3a8e1d00b2a84db2d1dc97e3a1c2af26d
[]
no_license
Scipius02/IMDBVisualiser
dec9efee08c9c1d4dddc4bd103c0c0bb68f436c9
61265305664c2bcf407804bf9136ac7fe137a941
refs/heads/master
2021-05-18T10:54:00.404359
2020-03-30T06:14:34
2020-03-30T06:14:34
251,217,677
0
0
null
null
null
null
UTF-8
Python
false
false
2,463
py
from bs4 import BeautifulSoup import requests import re import json # get number of seasons of a tv show def numberofseasons(): URL = 'https://www.imdb.com' newURL = URL + '/title/tt0092455/' page = requests.get(newURL) soup = BeautifulSoup(page.content, 'html.parser') results = soup.find(id='titl...
[ "noreply@github.com" ]
noreply@github.com
4606fa88ae7df1801ce384b62f6b18e650bd9d27
5ad585dcfd36707bc6bab8033b3844bdbc535f6b
/pdfread/__main__.py
39880da1905946142240140e91773fe5d9eea053
[]
no_license
wlizama/python-training
09bbc9b2648edfcc7e177d49c9fa7d89309fa30e
1ff70727d6f528d5f60d5af666c6d5afdd218736
refs/heads/master
2022-11-27T07:49:02.988278
2020-05-23T17:09:48
2020-05-23T17:09:48
122,639,831
0
1
null
2022-11-22T04:32:08
2018-02-23T15:40:14
Python
UTF-8
Python
false
false
1,212
py
import PyPDF2 def findFile(fullNameFile): fileToFind = None try: fileToFind = open(fullNameFile, "rb") except FileNotFoundError: pass return fileToFind def execute(): _strRUCEmisor = "20123456789" _strTipoDocEmisor = "07" _strSerieDocEmisor = "F005" _filePDFNumDesde =...
[ "wilderlizama@gmail.com" ]
wilderlizama@gmail.com
85b30b860deb61f064afb3ef616df3dde8e9ad89
a86ca34e23afaf67fdf858df9e47847606b23e0c
/lib/temboo/Library/Tumblr/CreateChatPost.py
347314b1976b8c41d3939a68880737b693241ed9
[]
no_license
miriammelnick/dont-get-mugged
6026ad93c910baaecbc3f5477629b0322e116fa8
1613ee636c027ccc49c3f84a5f186e27de7f0f9d
refs/heads/master
2021-01-13T02:18:39.599323
2012-08-12T23:25:47
2012-08-12T23:25:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,701
py
############################################################################### # # CreateChatPost # Creates a new chat post for a specified Tumblr blog. # # Python version 2.6 # ############################################################################### from temboo.core.choreography import Choreography from temb...
[ "miriam@famulus" ]
miriam@famulus
fcee5c12f32936a9f042d97e4578c6bd4fc6b86a
800985e7651360f37a3ec76b8934cf6b04c6080f
/app.py
1c113df3fa9955ad6356d20718dab127be90975e
[]
no_license
Dikshitha0812/Api-alphabet-recognition
da5002e2b609980d2c7922d9b62753ad188e3bce
67096b58f43932a304330464ca4e687524b486f3
refs/heads/main
2023-07-07T22:29:52.421535
2021-08-25T12:57:48
2021-08-25T12:57:48
399,819,340
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
from flask import Flask, jsonify, request from classifier import get_alphabet App = Flask(__name__) # defining the portal @app.route("/predict-alphabet", methods=["POST"]) # writing function for predicting def predict_data(): image = cv2.imdecode(np.fromstring(request.files.get("alphabet").read(), np.ui...
[ "noreply@github.com" ]
noreply@github.com
74f8bfe1b1693dba259cbdf2ebce62709b7f0027
462ffb47a6474a54ec1724c8385be93653b70b54
/project/web/views.py
2b0d2a717c18b77b020deac69e736cd1bcd6536e
[]
no_license
NikitinaKatya/tusur.refectory
589699e85d6f5c2911b96f7243020af1c49de1c5
cb720e346542e904d2298736c1d9dbe28da93d35
refs/heads/master
2020-08-09T12:18:26.498569
2019-10-06T12:22:18
2019-10-06T12:22:18
214,086,027
1
0
null
2019-10-10T04:24:38
2019-10-10T04:24:38
null
UTF-8
Python
false
false
298
py
from django.shortcuts import render # from django.http import HttpResponse def index(request): return(render(request, 'main.html')) def index_menu(request): return(render(request, 'menu.html')) def index_shop(request): return(render(request, 'shop.html')) # Create your views here.
[ "44731656+mrmiv@users.noreply.github.com" ]
44731656+mrmiv@users.noreply.github.com
79d6f5512808ca89c83adc1044a871dfba8f6416
40a18752fe454bbf029f3f39b7e84cf4403d4977
/Class Files/test_divisors.py
2af9817eb7cfdeb98cd0f21a85efb6681f0ccd9a
[]
no_license
jcanning/Class_craftingQualityCode
51e63b3c08371c1816db48ee3af0ce6813d10712
745b9cc4fa0a5b49dd6d64bf9f6243c24c76ea2e
refs/heads/master
2021-01-01T05:35:45.441972
2013-05-01T21:53:09
2013-05-01T21:53:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
import unittest import divisors class TestDivisors(unittest.TestCase): """Example unittest test mehtods for get_divisors.""" def test_divisors_example_1(self): """Test get_divisors with 8 and [1 ,2, 3].""" actual = divisors.get_divisors(8, [1, 2, 3]) expected = [1, 2] self.ass...
[ "JohnAllan@.(none)" ]
JohnAllan@.(none)
9c28cbaa9c1ae9facf8736de25b788afaa065c74
764832026510a666640e44d7245d623dca6fe615
/rtxs/test/test03.py
90c26979e45f0cf446263e519d845c73c86927e6
[]
no_license
MrWJB/rtxs
58f2ec1f4918de19b046b2e994f2bd4ad68ac669
2f584566de9a5ddccbfaaeef7756ced4ecb2055a
refs/heads/master
2020-05-18T06:32:09.946064
2019-04-30T09:55:57
2019-04-30T09:55:57
184,236,330
0
0
null
null
null
null
UTF-8
Python
false
false
1,080
py
# -*- coding: utf-8 -*- def count(): def f(j): def g(): return j * j return g fs = [] for i in range(1, 4): fs.append(f(i)) # f(i)立刻被执行,因此i的当前值被传入f() return fs f1, f2, f3 = count() print(f1()) print(f2()) print(f3()) # 装饰器 # def now(): # print('2005-3-25'...
[ "w1812121918@163.com" ]
w1812121918@163.com
9704ad9c7cc99b07e77c6e219ae310c687900ba3
048f12857291f0d4c4a5d05d3a13e15c13532997
/dfs/유기농_배추.py
54730f9bb8a12be784b59741ac63d9ab74f27bc4
[]
no_license
jsg921019/algorithm_study
1841d5b0d7b22a77e00d1a4bbca785acffeb0e4c
16073349a4e969a8f6af6de76054d7179772738c
refs/heads/main
2023-06-07T23:48:16.469076
2023-05-31T19:21:44
2023-05-31T19:21:44
366,484,457
0
0
null
null
null
null
UTF-8
Python
false
false
1,555
py
# https://www.acmicpc.net/problem/1012 # solution 1 : iteration import sys sys.stdin = open('private/input.txt', 'r') input = sys.stdin.readline def sol(m, n, k): n_worm = 0 farm = [[0]*n for _ in range(m)] cabbage = [[*map(int, input().split())] for _ in range(k)] for i, j in cabbage: farm[...
[ "jsg921019@gmail.com" ]
jsg921019@gmail.com
35a839d7db607c87500bdb9d971083a1259a382c
7172aab86832e0d8697f9d746a0a6add90488e49
/json_pathfinder.py
15ce35a8cd7697bb5b01388a2c005e8e11f8a500
[]
no_license
xKTSE/dailyprogrammer
a4f71b3481cf891393a57e673df988be733806ee
c5933dad3e93b50f1e284e86741273214ebaf64e
refs/heads/master
2021-01-25T05:34:55.202585
2015-09-20T20:10:51
2015-09-20T20:10:51
41,971,701
0
0
null
null
null
null
UTF-8
Python
false
false
1,871
py
# https://www.reddit.com/r/dailyprogrammer/comments/3j3pvm/20150831_challenge_230_easy_json_treasure_hunt/ import json import types NumberTypes = (types.IntType, types.LongType, types.FloatType, types.ComplexType) json_str = \ ''' {"dlpgcack": false, "indwqahe": null, "caki": {"vvczskh": null, "tczqyzn": false, ...
[ "ktruong12033@gmail.com" ]
ktruong12033@gmail.com
45c74a8e2a9bf988eb230ab9dcf388081ff90d79
a9e5027d61e493bbf134ccd76cdc7f71fb878c80
/DawProyecto/web/urls.py
942c3d28960934fd8a2299af57b7de1eb6894b05
[]
no_license
rdsuarezb/Designer
463e5777cfa94d193e03fa43d437d0b31bccaa60
62870a18920b4f0ca33615051413beb68e97d789
refs/heads/master
2021-01-10T05:03:39.167950
2016-01-26T03:37:47
2016-01-26T03:37:47
50,333,781
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
from django.conf.urls import include, url urlpatterns = [ # Examples: # url(r'^$', 'DawProyecto.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^$',"web.views.CargarPrincipal"), url(r'^Perfil/$',"web.views.CargarPerfil"), url(r'^Documentos/$',"web.views.CargarDoc...
[ "narutix17@gmail.com" ]
narutix17@gmail.com