blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
fda7d35613b1b1283da4534a0c4ecbc79eb64f6c
ff9b5e272d080a4c68930585201179f7c3710567
/python/item_tenant.py
97f242bc5ad7e8cd999021f43a2f50da6e3f3d36
[]
no_license
shuangplus/Association
db40fc3dfef02db0e745bfaad20b560a96b139ea
6fb35ea8e82b619a0b2e299c8fb1dc43bf482bd9
refs/heads/master
2021-01-20T15:27:21.629185
2017-02-22T03:00:09
2017-02-22T03:00:09
82,753,085
0
0
null
null
null
null
UTF-8
Python
false
false
3,821
py
# coding:utf-8 ''' 关联规则入库 ''' import MySQLdb,datetime import sys reload(sys) sys.setdefaultencoding('utf-8') from pyspark import SparkContext, SQLContext # 环境 env = sys.argv[1] # support值 # sup = sys.argv[2] # 一段时间内的热销(unicode) timefield = sys.argv[2] current = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") s...
[ "dennygirl@qq.com" ]
dennygirl@qq.com
802a01d937108930c50341e0bd32ddd902ab60ca
ced6bc9fcb1c61686d3d14d4391ec71896b6d68c
/kubeflow/pipeline/workflow.py
6f382f376921628d1ae5439680f5b88e7d3b8cf3
[]
no_license
LavanyaVaddavalli/dkube-cicd-example
500c54d3f56d213492687e430490f95009868c0f
2daffdebc03a809730efc245bf6e72281aa1499a
refs/heads/master
2023-08-15T06:54:44.415025
2021-10-13T02:33:54
2021-10-13T02:33:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,680
py
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "rajendra.singh@oneconvergence.com" ]
rajendra.singh@oneconvergence.com
012ec17b5e84d6854c67607f15c1ae46ca041bb5
a980b855d47476ea07dc587845f821af0b879dfc
/genetics/Genetic_Operations.py
79e8b56fc6a3d006eb90519fde87bef6ce9067ad
[]
no_license
TiagoNO/RegressaoSimbolicaPG
0212d676d8802b347eaa25b3a176bf30d3d11f18
12dd850d9bb17d1ff5550aefe48eba5c6beb9277
refs/heads/master
2020-03-29T03:49:50.889670
2018-10-17T19:05:06
2018-10-17T19:05:06
149,502,893
0
0
null
null
null
null
UTF-8
Python
false
false
5,634
py
from Mutation import Mutation from Individual import Population from Configuration import Configuration from Tree import Tree_Operations import random class Genetic_Operations: @staticmethod def cross_over(parents): if len(parents) == 1: return [parents[0][0]] child_A = Tree_O...
[ "tiagonegri237@gmail.com" ]
tiagonegri237@gmail.com
b75034e71ea52da064264aaa0132d64e774a589b
178c109f7eafe9193cce39f8e56f2c6ef0a803b8
/clientbase/tests/test_models.py
f5f7265781f3f57296ec7cbdf7d693129c51a472
[]
no_license
alexn95/test-task
52d44d9100308b4171e7c953140dcb9a3f425bbe
7f5ca79556e2e35c48d4026c621e1d3fbdb12163
refs/heads/master
2020-04-18T08:15:31.667463
2019-03-29T11:13:31
2019-03-29T11:13:31
167,390,081
0
0
null
null
null
null
UTF-8
Python
false
false
3,672
py
""" Module contain tests of model functionality """ import datetime from random import randint from django.test import TestCase from ..models import try_parsing_string_to_date, Client class ClientTestCase(TestCase): """ Test cases of client model """ def setUp(self): self.cli...
[ "alexey.novickiy@nosota.com" ]
alexey.novickiy@nosota.com
4a7c8a6504ce84ef9ca5b15e24ab496415836436
e9e757eac082774862e81032fa3035a691ef7d08
/raritan/rpc/serial/__init__.py
463590eeb4d0481bf363a5cb5d3ab1e71dd4f0a3
[]
no_license
cafykit/raritan-pdu-json-rpc
fa0947cc2f679f928bf5b49b8e3f760d03d899cd
ef8d157bb97f8eed8f8b5e2a580381b8515dcf20
refs/heads/master
2023-07-23T14:41:14.584934
2023-03-17T06:43:03
2023-03-17T06:43:03
145,891,392
5
3
null
2023-07-10T17:38:09
2018-08-23T18:18:26
Python
UTF-8
Python
false
false
23,792
py
# Do NOT edit this file! # It was generated by IdlC class idl.json.python.ProxyAsnVisitor. # # Section generated from "/home/nb/builds/MEGA/px2-3.0.0-3.0.9-branch-20140613-none-release-none-pdu-raritan/fwcomponents/mkdist/tmp/px2_final/libidl_client/serial/idl/AnalogModem.idl" # import raritan.rpc from raritan.rpc im...
[ "nechandy@cisco.com" ]
nechandy@cisco.com
7e8a5843ebdece43950d4e025780c296fcdc0025
e59798d78589acc9d7bf5fc6eb631c65577f9fa5
/configs/runTheHLT_data.py
d4275c6b707cdcf844edffa44bfc1b96cecafecf
[]
no_license
HuguesBrun/firstDataMCcomparisonHLTrun2
98712eb7047a0c812072ebb675fe573c331b77e7
9e3a29ee451d9ddee64e0ae66f557198c5ecccb4
refs/heads/master
2020-05-20T00:59:12.957104
2015-08-16T10:22:45
2015-08-16T10:22:45
40,736,363
0
0
null
null
null
null
UTF-8
Python
false
false
269,399
py
# /users/hbrun/onlineTest/firstCollisions2015/reRun50nsFrozenMuons/V6 (CMSSW_7_4_6) import FWCore.ParameterSet.Config as cms process = cms.Process( "HLTfancy" ) process.load('Configuration.EventContent.EventContent_cff') process.load('Configuration.StandardSequences.EndOfProcess_cff') process.HLTConfigVersion = c...
[ "hbrun@cern.ch" ]
hbrun@cern.ch
7e90c16773df457453798bd1c125c6a403c4a723
642a6fe8873e651c64a1f62ce1411dbb12cebd98
/Python/Python Basic/w3resources/basic_practice_part1/Q3.py
a389c05d32b409864e83ac63d8fb3f5728983b62
[]
no_license
lydia0423/Machine_Learning
4dc9cdb8049c0e26e527ebd35e100eab60186d7a
f4b241efe9522dbcb9dfa923f80d028d64a6054d
refs/heads/main
2023-03-26T18:17:37.029260
2021-03-29T04:17:01
2021-03-29T04:17:01
336,692,282
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
#?3. Write a Python program to display the current date and time. #?Sample Output : #?Current date and time : #?2014-07-05 14:34:14 import datetime now = datetime.datetime.now() #strftime = string from time (convert string to datetime format) print("Current date and time {}".format(now.strftime("%Y-%m-%d %H:%M:%S"))...
[ "lydia08248@yahoo.com" ]
lydia08248@yahoo.com
2003bee1e38a1aeac301a614509ac0e61340e723
e6278885d9d05cfa43711e5b9df12d953ec294d9
/Car_CA.py
546de14ae08b9605a71645ce286cd8d482ca3e67
[]
no_license
Mjayendr/Car-Dealership-CA
29f3d7a474c149a607583cd12f4288e217b17761
91de3cdc6284ef9de30cd5f3b2f6fbf6d269a564
refs/heads/master
2020-03-29T01:02:47.095931
2018-09-19T00:30:50
2018-09-19T00:30:50
149,368,626
0
0
null
null
null
null
UTF-8
Python
false
false
11,124
py
# -*- coding: utf-8 -*- """ Created on Wed Oct 11 13:29:50 2017 @author: Jay Monpara Student ID = 10360474 """ # Create Car Classs class Car(object): # implement the car object # define attributes def __init__(self): self.__colour = '' self.__make = '' self.__mileage...
[ "noreply@github.com" ]
noreply@github.com
1b70c88cf41112bf29d536e3f7b58334b7edd914
a8478d65c151b2f81edd19fec978a00d65c52904
/helpers/summaries.py
954711952e0c46e297a2b77cadf783995b476c57
[]
no_license
pkorus/neural-imaging
2d061f4e5b9e9e9320a3a988a3ffe8e2b5993f8b
c75a2b1deaa571d857f565e7bd68b2dde2d88733
refs/heads/master
2023-04-03T17:09:42.307185
2020-09-29T13:50:51
2020-09-29T13:50:51
169,649,534
156
28
null
2023-03-24T22:39:48
2019-02-07T22:01:09
Python
UTF-8
Python
false
false
1,621
py
# -*- coding: utf-8 -*- """ Helper functions for logging complex data in TF summaries. Adapted from Michael Gygli's snippets: https://gist.github.com/gyglim/1f8dfb1b5c82627ae3efcfbbadb9f514 """ import io import imageio import numpy as np import tensorflow as tf import matplotlib.pyplot as plt def log_image(thumbs):...
[ "pkorus@gmail.com" ]
pkorus@gmail.com
3d5ca3e81b309d799bafa57120c402ad3bbbaa20
ad16b0c0178e4543d0c44ad3d90f90c6beeb4f5a
/di2.py
cb2a72a47cbef1e402302ce534f3005b82c52464
[]
no_license
timmonspatrick/HemoDub
09cb61e8e33ee8b64c9e6011d4ae8679d07950d9
4e6cceb44456c498cc1d6d55f8369099d0d5d947
refs/heads/master
2021-04-27T09:34:40.935684
2018-05-31T08:29:04
2018-05-31T08:29:04
122,491,500
0
0
null
null
null
null
UTF-8
Python
false
false
3,278
py
# -*- coding: utf-8 -*- """ Created on Thu Dec 14 15:02:19 2017 @author: Patrick """ from __future__ import print_function import numpy as np from residue_distribution import alphabets conjoint_letters = ["A", "I", "Y", "H", "R", "D", "C"] aa_letters = ['A', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', 'M', 'N', 'P',...
[ "timmons.patrick@outlook.com" ]
timmons.patrick@outlook.com
0ab81c726d80bf1d1658e1f1c99ebed4c6c138c8
08ff5bfaca5eafae218453f1c0f39aab1ba8518a
/api/car/generation/views.py
508a143402dbeaff39ce717b50526d9453b33bf0
[]
no_license
bedilbek/django-cars
d3fdba2930a89f29d7868c2627470f1b774bc51a
a153e1815e6a7da08b5fd0298f2946a6a640251a
refs/heads/master
2023-04-03T05:30:23.879167
2021-03-27T23:44:46
2021-03-27T23:44:46
352,178,941
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView from api.car.generation.serializers import CarGenerationSerializer from apps.car.models import CarGeneration class CarGenerationCreateListView(ListCreateAPIView): queryset = CarGeneration.objects.all() serializer_class = CarG...
[ "bedilbek@gmail.com" ]
bedilbek@gmail.com
af0eeb760532c71bc8e67b27bae9e095c4a20a3c
b60604eb67ca61a3c39e05c28880f4896a861bf0
/.use/use/Context.py
ed6bb9fe973f783eb11a2ffcb4ce086329bc4882
[]
no_license
furious-luke/substar
a8b505d9a5fb9594b526311805c0686d7e628ccf
7dd6e22b280fcae548813aa7f965dba147f55ab2
refs/heads/master
2020-05-17T11:44:17.155442
2018-09-18T05:45:10
2018-09-18T05:45:10
10,882,696
0
0
null
null
null
null
UTF-8
Python
false
false
17,893
py
import sys, os, argparse, pickle from utils import getarg, load_class from .Use import Use from .Rule import * from .Resolver import Resolver from .Argument import Arguments from .Options import OptionDict from .File import File from .conv import to_list import logging ## ## Wraps a single build context. The context m...
[ "furious.luke@gmail.coim" ]
furious.luke@gmail.coim
994e1da186a59c4afb946b55202e6dd197d4bb6e
40f1e57f6183c944ce4e5c63a784c75f6a2c383a
/book/views.py
d3da437b2880826aaae5750f40b131eea895662b
[]
no_license
doremifasollasi/App_Library_Django_PythonOnlineMarathon
799ece0312913735fb6df9a0e4b2e5e5183d35a4
661f4ba11e7cae26257f64992605febad8f782e6
refs/heads/master
2023-03-27T00:38:01.788844
2021-03-25T19:34:08
2021-03-25T19:34:08
332,309,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,961
py
from django.shortcuts import render, redirect from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from author.models import Author from book.models import Book from book.forms import BookForm def book_listing_view(request): template_name = "books_listing.html" context = {} books = Bo...
[ "lena.lenova.2014@gmail.com" ]
lena.lenova.2014@gmail.com
9e47a121f146030bb57a04733eda6fd89bd415c2
512f48fdcfa78e322526cf47163110009b84bf73
/test/test_page_of_policy_asset.py
b94a86aae703c7f17bf5ff820a90730167232177
[ "MIT" ]
permissive
confluentinc/vm-console-client-python
9a0f540c0113acf68ee9dc914715bc255e4d99f4
ccbd944a0e0333c73e098b769fe4c82755d29874
refs/heads/master
2023-07-18T10:33:58.909287
2021-09-02T20:52:20
2021-09-02T20:52:20
402,559,283
0
0
MIT
2021-09-02T20:49:56
2021-09-02T20:49:56
null
UTF-8
Python
false
false
879
py
# coding: utf-8 """ Python InsightVM API Client OpenAPI spec version: 3 Contact: support@rapid7.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.models.page_of_policy_asset impo...
[ "zachary_youtz@rapid7.com" ]
zachary_youtz@rapid7.com
00689fb07bba19e8bcc94b435502b370b91e976a
884ba22eaf71108a34260775cfe391f815b09305
/Listings/Vibration/Vibration.py
810de35b40886dc963b2517dd1fbfbbc7c6e00d5
[]
no_license
MichaelPfnuer/Bachelorarbeit2
b24c04bb5410450d7fbc96aa53829dcb3647f8a7
bd94ef674f999dcdbd97dca7db0fd03839919095
refs/heads/master
2021-01-18T21:59:28.996458
2016-05-22T19:45:56
2016-05-22T19:45:56
55,440,813
0
0
null
null
null
null
UTF-8
Python
false
false
1,816
py
#!/usr/bin/python3 # *-* coding: utf-8 *-* import smbus import sys import os import time import math import mysql.connector from math import sqrt from time import sleep from smbus import SMBus # Verbindung zur Datenbank try: db = mysql.connector.connect(host="localhost", user="root", passwd="test123", db="RPI-Proje...
[ "Pfnuer.Michael@gmx.de" ]
Pfnuer.Michael@gmx.de
0763a3b468125e70161e9f26852330e08543d6df
eeed958ba2e37908ad168321a4171f2c31b950d4
/checkout/webhooks.py
bbd2c8890ede8458f97fd4edafd57b83b3bbac05
[]
no_license
Code-Institute-Submissions/ilearn-milestone
502406015cfaccf4c4769d8d665563009566beae
3ec9c39fb907469458b24b8ed0a73393dac60ea6
refs/heads/master
2022-12-09T01:21:00.022096
2020-09-13T14:08:46
2020-09-13T14:08:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,729
py
from django.conf import settings from django.http import HttpResponse from django.views.decorators.http import require_POST from django.views.decorators.csrf import csrf_exempt from checkout.webhook_handler import StripeWH_Handler import stripe @require_POST @csrf_exempt def webhook(request): """Listen for webh...
[ "patrycjatyra@protonmail.com" ]
patrycjatyra@protonmail.com
0848540b8896ca985df6dd125672c9e3cc236c75
8bce57dc995738e3e7866d147ca03558fb1ac61d
/cities.py
99a8081133a063983daca1942ba2baabcbed4b1f
[]
no_license
ruthielin/Python-Protects-Protesters
041b867b10a481e19dcbd77cd5732ad2749fd214
fa9af5fe03cc91dad82f5afdd66406933b933090
refs/heads/master
2022-11-16T08:35:37.767556
2020-06-26T15:39:27
2020-06-26T15:39:27
275,166,592
0
0
null
null
null
null
UTF-8
Python
false
false
3,883
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt def findCities(text): raw_protest = pd.read_csv('/Users/ruthielin/Downloads/(USE) BLM Protests 2020.csv', delimiter=',') protest_info = raw_protest.drop( ['Region', 'Country', 'Comments', 'Alias', 'Date Added', 'Batch', 'Mailing ...
[ "ruthielin@MacBook-Pro.local" ]
ruthielin@MacBook-Pro.local
bba35abf2ebddf253615fc81ce24cc5b96cb819e
3b2688160c1ee0cf600cd34b602863bf7bb61626
/lychrel/lychrel.py
70630527be587107f1bcfbc4694d76e2e4cb12a9
[]
no_license
agrrh/puzzles
a035759478c8bcc1782a690ff133721ebc6c87ea
49e5e68bec11bac13846246969a1a9b6b5af0d9e
refs/heads/master
2020-03-15T18:27:29.813892
2019-09-21T09:00:33
2019-09-21T09:00:33
132,283,842
0
0
null
null
null
null
UTF-8
Python
false
false
1,013
py
import sys def reverse(i): return int(str(i)[::-1]) def is_palyndrome(i): i = str(i) if len(i) < 2: return False if i == i[::-1]: return True return False def is_lychrel(a, iters): answer = True for i in range(0, iters): a = a + reverse(a) if is_palyndrome(...
[ "kovalev.kirill.a@gmail.com" ]
kovalev.kirill.a@gmail.com
b4405b4726afc74a45e48a1ffdee2d463bb10da1
880f8643d3d91630d3690ce7c08ef325f08e8dd0
/data/data-pipeline/etl/sources/housing_and_transportation/etl.py
bdbd3b7da4bfce74c5e4b9c93793c9b3fc168cd2
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
American-Forests/justice40-tool
8d524d2ff26c7bbf700dcecbf9427c79b5d4dc17
f9199ad1066e0f6eb8a0ce46ab49a49c15527675
refs/heads/main
2023-06-24T13:48:47.029472
2021-07-27T15:17:00
2021-07-27T15:17:00
388,510,763
0
0
NOASSERTION
2021-07-22T15:29:15
2021-07-22T15:29:14
null
UTF-8
Python
false
false
2,014
py
import pandas as pd from etl.base import ExtractTransformLoad from etl.sources.census.etl_utils import get_state_fips_codes from utils import get_module_logger, unzip_file_from_url logger = get_module_logger(__name__) class HousingTransportationETL(ExtractTransformLoad): def __init__(self): self.HOUSING...
[ "noreply@github.com" ]
noreply@github.com
009392fa88fca5c4415d4c2998cd8f009e01d753
37db38fe74c59553aebeadbb83b7c4ff616a0ab3
/loginRegistration/main/apps/first_app/views.py
9e37300c8f8e0ae7faab97c28e5855486f7b89a9
[]
no_license
voidnote/Django
9ae3cbf4c51a86ac9d485ed583d892c79ead9576
1d6cbcfdeecf998939e0a777fe6478ff7a66421b
refs/heads/master
2021-01-19T20:41:02.211223
2017-04-26T19:52:52
2017-04-26T19:52:52
88,532,684
1
0
null
null
null
null
UTF-8
Python
false
false
839
py
from django.shortcuts import render, redirect from .models import User from django.contrib import messages def index(request): return render(request, "first_app/index.html") def process(request, route): if request.method == "POST": # this brings in the value of response_to_views if route == "register": res...
[ "Voidnote@Istvans-MacBook-Pro.local" ]
Voidnote@Istvans-MacBook-Pro.local
c910f46408b89595150f8885af8900a36a3a2547
334d806536efd99ea358a5e71535f310d5c2b6d1
/eval_features/evaluate.py
eb6f8a36d82fcabf26099ecb89d59610e0c83716
[ "MIT" ]
permissive
ZZWENG/SimCLR
410b6a3895ea43bebfb51648169fb09ac4ca9c81
d2cee6e0c6d7ed4d12d5c6e3c05e75d0a18ff97b
refs/heads/master
2022-11-23T12:59:26.686185
2020-07-25T03:24:51
2020-07-25T03:24:51
263,138,643
0
0
MIT
2020-05-11T19:31:19
2020-05-11T19:31:18
null
UTF-8
Python
false
false
12,639
py
import json import os from collections import Counter import numpy as np import yaml from lvis import LVIS, LVISEval, LVISResults from sklearn.metrics import accuracy_score from tqdm import tqdm EVAL_NAME = 'evaluate_hyperbolic' # description of the evaluation run ANNOTATION_PATH = r'/scratch/users/zzweng/datasets/l...
[ "zzweng@sh02-ln04.stanford.edu" ]
zzweng@sh02-ln04.stanford.edu
b0ff73f88d46cc241440b294e9ac727f1962d808
7f8c7145a94548c8d755038dbfaa6b3494193805
/week 03/tasks_03/03_23_H_replace.py
86c40909df7ac67e5baf7e5510fed479c87b589a
[]
no_license
zotochev/VSHE
6df8fdfba4dc2c191c6e8e87309c32a306acd543
5754973fb9b8fdb2c97df51dbd84adb7750eb65e
refs/heads/master
2022-10-14T22:31:45.860817
2020-06-15T06:04:50
2020-06-15T06:04:50
255,147,812
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
s = str(input()) # s = 'In the hole in the ground there lived a hobbit' let = 'h' s_l = s.find(let) s_r = s.rfind(let) s_cut = s[s_l + 1:s_r] print(s[:s_l + 1], s_cut.replace(let, 'H'), s[s_r:], sep='')
[ "zotochev@gmail.com" ]
zotochev@gmail.com
93f00f64a3499f2739b654603d11c63bd28647f0
c36bd73ddbf668b25908df4ed2d4729d3ea792a7
/venv/lib/python3.5/site-packages/facebook_business/adobjects/favoriterequest.py
29354ce89e9dd9e997aa5312a28ef6b0f0f1c467
[]
no_license
Suraj-KD/AbsentiaVR_Task
1e236f88063b97666c8e188af7fddc0fd7ea3792
1de364e0464ac79cefc26077318021570993d713
refs/heads/master
2022-12-10T20:40:31.396380
2019-01-31T19:19:36
2019-01-31T19:19:36
168,398,946
0
0
null
2022-12-08T01:34:30
2019-01-30T19:08:22
Python
UTF-8
Python
false
false
5,371
py
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
[ "surajdubey302@gmail.com" ]
surajdubey302@gmail.com
20908a127031b46f4fa064cf545b7dd8c854f97e
79a197157045bd473ec2dcaab2d9a6e5679fad63
/web/add_db_to_server.py
1ecd381fb04edb980b0f34d8f701a5323ea992b7
[]
no_license
ductrix/ductrix
fc18529acbd1d89112c953061983aea5acf1ad33
843d4e82c06400605ae455724750a1a479501a86
refs/heads/master
2021-01-12T08:42:47.719246
2017-06-11T15:26:58
2017-06-11T15:26:58
93,338,096
1
1
null
null
null
null
UTF-8
Python
false
false
671
py
#!/usr/bin/env python def add_db_to_server(filename, task_dict): import yaml import sys with open(filename, 'r') as stream: try: x = yaml.load(stream) for y in x: if 'tasks' in y: if task_dict not in y['tasks']: y...
[ "ketul917@gmail.com" ]
ketul917@gmail.com
348eee0cfbcdd026e031eb04349a4f160573fbe5
d7514c77ad116f3c6e10fedea664635f8aa72aa9
/autohoppa.py
410ba174a50d7a06d8afe7debd6fdb89bf166651
[]
no_license
gonz4lex/autocsv
adf3e7f67bcab9e4c374b6d8454b0c12465bc61c
2314aa43ca3cf4fc9208816594626e42d6227580
refs/heads/master
2020-05-17T14:19:31.504569
2019-04-27T13:14:32
2019-04-27T13:14:32
183,762,187
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
import glob import pandas as pd import numpy as np import time df = pd.concat([pd.read_csv(f) for f in glob.glob('input\\idealista_csv_*.csv')], ignore_index = True) df.to_csv(".\\output\\FULL_Idealista_" + time.strftime("%Y%m%d%H%M") + ".csv", index = False, ...
[ "alejandrogcaules@gmail.com" ]
alejandrogcaules@gmail.com
77818d112e0755a75914c8d4ad817fa1f4223ce3
5a85c7d05dba635954060e57354be3dc91adb5be
/mysite/settings.py
241557bc0e8753c9ee83fa28623c71fbeee00662
[]
no_license
mrzout/my-first-blog
40ce0a613ab06587690c45ef96ea937f064a268d
c5a824195fcfc3b5a6746dd2c0ba163f999cbdcf
refs/heads/master
2021-01-23T01:55:42.520498
2017-03-29T09:53:24
2017-03-29T09:53:24
85,944,607
0
0
null
null
null
null
UTF-8
Python
false
false
2,705
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths i...
[ "mydjango@seznam.cz" ]
mydjango@seznam.cz
8b21ee515e1f5989ccec07a46bd1808df161cacf
525540289081b70293660db079e77dda9f9e27bc
/src/models/report_results.py
a4ee68cf354d2db95ff4f6555a96e875365b53d0
[]
no_license
gwarr3n/rice-elections
957ff104435ff0bfb446d02a025b47703882cb3d
d08b952a60c1c6a6d91735a38379f5dc8b5ffbcf
refs/heads/master
2021-01-21T03:24:47.684712
2014-09-12T21:38:08
2014-09-12T21:38:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,314
py
""" Script to report election results including ballots in detail to election admin. """ __author__ = 'Waseem Ahmad <waseem@rice.edu>' import logging import models import webapp2 from google.appengine.ext import db from google.appengine.api import mail from datetime import datetime def encode(string): return s...
[ "waseem@rice.edu" ]
waseem@rice.edu
bd5887f9e04e81cf3bde46327e5a97322234ae16
673989f7d80c670f61e052b9ae96d8ba733249b6
/elastisearch/customsearch/management/commands/dummy_data.py
2917f9296f11a0d327ad809711e29291de64ffed
[]
no_license
aradhyamathur/neuron
2770730c2eb9e85af920164b775f51363d764480
579398820b0f7f9bf4795109ea9c0b882d042ded
refs/heads/master
2021-01-19T04:25:27.816613
2016-06-15T13:37:31
2016-06-15T13:37:31
60,615,582
0
0
null
null
null
null
UTF-8
Python
false
false
2,606
py
from django.core.management.base import BaseCommand from model_mommy import mommy from customsearch.models import University, Course, Students import random import names class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('count', nargs=1, type=int) def handle(self, *arg...
[ "aradhya.mathur95@gmail.com" ]
aradhya.mathur95@gmail.com
9fe51257015eb11c9522b370cf90076a1e76c9e7
f121b358ed5fe1ca04f198b25241548e0b0529c3
/Fundamentals/find_characters.py
9efe3b9e40457bb11667d923780c027c46013004
[]
no_license
D40124880/Python-Django-Flask
cd172755d42b976b483c373af1177ac8640820a8
72798cd387ae0a35c312e506a6738fec587aa28b
refs/heads/master
2020-03-14T12:29:48.015850
2018-04-30T15:35:58
2018-04-30T15:35:58
131,613,074
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
def finding(char): new_list = [] word_list = ['hello', 'world', 'my', 'is', 'Anna'] for i in range(0, len(word_list)): if word_list[i].find(char) != -1: new_list.append(word_list[i]) print new_list finding('o')
[ "martinvelasquez95@gmail.com" ]
martinvelasquez95@gmail.com
8bfc1d303ae91a4c55a4b02d660321ea2e687e67
af98647c53e76af6bdc83f45c7541e81509ef496
/bin/pyhtmlizer
a100d4994ca7c68f9669f8c0af2cc8e1061102de
[]
no_license
didinium/propaganda
51bd78ab0eb61c123ac3c5586187763c6dbe73ed
5c67ff2efe406997b35e7634ac30add748dfb0f1
refs/heads/master
2021-01-19T19:40:43.615335
2017-09-12T13:47:33
2017-09-12T13:47:33
101,200,976
0
0
null
null
null
null
UTF-8
Python
false
false
243
#!/home/jonah/propaganda/bin/python3 # -*- coding: utf-8 -*- import re import sys from twisted.scripts.htmlizer import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "jonah.m.lubin@gmail.com" ]
jonah.m.lubin@gmail.com
cc1a5ef176a596963259804388aac10b605b5573
dc5614f1f2b9756f34aec408e4c3a0a8fff5b2c1
/inventory/pm0002/inventory.py
ce4064e4aa8d5c01442ff2d99c6d84b2651d4605
[]
no_license
idirze/monitoring
2f03cfe284173a9cf034775dd5b388b9ae4637da
69b5621804b1c27501766b9054786acd14f6b634
refs/heads/master
2021-10-10T04:40:22.672688
2019-06-05T22:28:46
2019-06-05T22:28:46
179,998,028
0
0
null
null
null
null
UTF-8
Python
false
false
5,039
py
#!/usr/bin/env python from ansible.utils.shlex import shlex_split from ansible.plugins.inventory.ini import InventoryModule import argparse import json import os import sys class MyInventoryModule(InventoryModule): def __init__(self): pass def msg(_type, text, exit=0): sys.stderr.write("%s: %s\n" ...
[ "idir@MacBook-Pro.local" ]
idir@MacBook-Pro.local
4ad4e40558e71f97f3cfa5d6e4c26054b056b911
47f3d5ec3f09fdf3bc98e7ca3aca104e12192b35
/backend/apps/services/services/helpers/id_generator.py
e0153b561982bf2dc4b905fcb60b7e4f69196147
[]
no_license
hackkikchak/backend
e10d2b5a20b951effb184721bfada5940dba7776
b6f7eb7e09ecaed7dcd4fcff3b66bc287032969e
refs/heads/main
2023-08-29T07:38:56.524945
2021-10-24T10:18:47
2021-10-24T10:18:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
import string import random def id_generator(size=4, chars=string.ascii_uppercase + string.digits) -> str: return "".join(random.choice(chars) for _ in range(size))
[ "german.serchaevk2.k2@yandex.ru" ]
german.serchaevk2.k2@yandex.ru
51e5419bc3fc9e7146ce6c6921343244eb2ad8c0
7cc1fb81109f5f6c6076fec53f4278fd49fbeb8a
/Project_L02_2571656_2571703_2571618/task3.py
779013e8f063e8956a4cf72b63b733da0b608794
[]
no_license
chiragbhuvaneshwara/StatisticalNaturalLanguageProcessing
b16a580e26027ed9981ba7d82e53564db8d21cd6
0bec67232e0ddb9b3e1c3e86db35c954411b7379
refs/heads/master
2020-05-02T12:27:30.854537
2019-03-27T09:15:22
2019-03-27T09:15:22
177,958,364
1
0
null
null
null
null
UTF-8
Python
false
false
44,806
py
""" Created on Sat Aug 11 11:03:57 2018 @author: Ayan Majumdar, Hui-Syuan Yeh, Chirag Bhuvaneshwara """ import sys, os, string from functools import wraps from itertools import chain, combinations def hamming(s,t): # Compute the Hamming distance between the strings s and t. return sum(1 for x,y i...
[ "noreply@github.com" ]
noreply@github.com
2925fa2f69c2fb1c25f99415fd40bb18e7b171b6
94f37d4433bb2c01d8b58eff4058c56b94275fe7
/tap_pipefy/__init__.py
20e7e6e11610a0162058c5b63cbc8c48e4f8ac8b
[ "Apache-2.0" ]
permissive
silvioangels/tap_pipefy
39ec2571d2181577634d94f434a8ce688ef8eb82
0509c1e260251eefe34c29e583681c92700d15ab
refs/heads/master
2020-12-04T18:21:54.020097
2018-02-07T21:26:50
2018-02-07T21:26:50
231,864,719
1
0
Apache-2.0
2020-01-05T04:00:02
2020-01-05T04:00:01
null
UTF-8
Python
false
false
18,460
py
import json import os.path import sys import pendulum import requests import singer from singer import Schema from singer import Transformer from singer import utils from singer.catalog import Catalog from singer.catalog import CatalogEntry REQUIRED_CONFIG_KEYS = ("organization_id personal_access_token").split() SE...
[ "pedromachados@gmail.com" ]
pedromachados@gmail.com
595f85eb3d0b0af18016525963506803b39bc9cc
6c24764f86548b306ad0cd7c5a0875715d7fc995
/GSOC/notebooks/Projects/CESIUM/czml_example.py
a84724801e36b8724045b9ee8aaa90620a7dec61
[]
no_license
epifanio/GSOC2015
7f770434eee6f60af3398b17c61b4d9e600ea315
2d4679e19123fd77853b868d29e683eb6fbd9e0e
refs/heads/master
2021-01-21T11:39:40.676885
2016-05-31T08:51:09
2016-05-31T08:51:09
47,000,782
2
0
null
null
null
null
UTF-8
Python
false
false
139,933
py
simple_czml = r""" [ { "id":"document", "version":"1.0" } , { "id": "InternationalSpaceStation", "position": { "referenceFrame": "INERTIAL", "epoch": "2012-05-02T12:00:00Z", "cartesian": [ 0.0, -6668447.2211117, 1201886.45913705, 146789.427467256, 60.0, -6711432.84684144, 919677.673492462, -...
[ "epiesasha@me.com" ]
epiesasha@me.com
d845e61077c007e32e1070ca2db96a61f442412f
9797e4c6bb00736e412d5314ae0de0a5d679bb6b
/www/cgi-bin/lecture04-query-database.py
baa8315e74690d09f7f46831d9db96292fde67b2
[]
no_license
MoazMansour/web-application-development
b0bd0f7aced07421baa4e558c27527a64d43df7f
1b6e14b3c6f978d55829409906ec6c6abfc692c6
refs/heads/master
2021-06-24T21:19:16.424363
2017-09-13T01:15:14
2017-09-13T01:15:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
#!/usr/bin/env python import cgitb import cgi import sqlite3 cgitb.enable() form = cgi.FieldStorage() print 'Content-Type: text/html' print # should use a query string like the following: # ?database_name=something.db&table_name=sometable database_name = form['database_name'].value table_name = form['table_name']...
[ "mobappdevguy@gmail.com" ]
mobappdevguy@gmail.com
2b60b6e1586ac9088f65b0036ba621ff584d7de2
1e4b180941fa5f42780ea6bc838c677a460e778a
/Python/DojoCardGame/Deck.py
7cd3265243b2eb16acc5cb9c602dd8a95695dfed
[]
no_license
Branaman/codingassignments
1913691a25b7804ce1fe61429418d2cc8b1d07bf
e92f8a1d59fa8231213ad85cc3880c2c7e69396d
refs/heads/master
2021-01-01T15:32:21.719806
2017-09-15T00:34:57
2017-09-15T00:34:57
97,637,134
1
1
null
null
null
null
UTF-8
Python
false
false
1,956
py
# notes: # bottom of the deck is index cards[0] class Deck(object): def __init__(self, name, player, max_deck_size = 50): # initiates the deck with a deck name, player associated with deck, max deck size, and current deck size. Also creates empty array for holding future cards. self.player = player ...
[ "Mbranaman89@gmail.com" ]
Mbranaman89@gmail.com
50517fbdac3b42830fdd7c672ac3e466dd603867
5d2752bc88f9545a231dac4a7d8ede18b5781f45
/user_local_bin/geom_fromFFTW2.py
cf8257850e02ba2b80fa83d14c22b400743ac68d
[]
no_license
airq/personalSetup
f77071b207de24f9c6467441e5a98f0ff1c7320f
08a488b4ef25ee5d0c286c23e3a164f15306f0a3
refs/heads/master
2021-06-04T21:26:44.210514
2016-07-30T11:13:35
2016-07-30T11:13:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,167
py
#!/usr/bin/env python # -*- coding: UTF-8 no BOM -*- ''' Author: Haiming Zhang Mail: hm.zhang@sjtu.edu.cn Created Time: 2016年05月28日 星期六 15时47分28秒 ''' import os,sys,math import numpy as np from optparse import OptionParser scriptName = os.path.splitext(os.path.basename(__file__))[0] #-----------------------------...
[ "hm.zhang@sjtu.edu.cn" ]
hm.zhang@sjtu.edu.cn
a5a67527ca645c09a5eda7d574e9c5751ba8d7c7
bcc04939aa70675c9be19c0bf4a9642877db46b1
/qa/admin.py
fb3490662c6887235e08bad516912b69be9dcd6b
[ "MIT" ]
permissive
zkeshtkar/gapbug
164398e2ddd8f952d5851eab19e34f9f84a080e1
eec5baf9b4346aef26bcb10e48ddcb358140d708
refs/heads/main
2023-06-20T07:39:50.084126
2021-07-16T13:31:10
2021-07-16T13:31:10
387,550,452
0
0
MIT
2021-07-19T17:53:20
2021-07-19T17:53:19
null
UTF-8
Python
false
false
187
py
from django.contrib import admin from .models import Question class QuestionAdmin(admin.ModelAdmin): list_display = ("title", "user") admin.site.register(Question, QuestionAdmin)
[ "mshirdel@gmail.com" ]
mshirdel@gmail.com
5430141589d84664f071764062b9b7a083b3272d
3fcdfbb73118f4bde9a1e0ed466974ab636332db
/chat/migrations/0002_chat_author.py
9f11a38d72788eebdfe42adba90079d0ca1f3f1d
[]
no_license
vnitikesh/My-Django-Forum-System
54e579e54893c9637e351f6d29dfa3db82cdd106
ea9804d3819946ea08b5b82bb43fe0bc27f331f5
refs/heads/master
2022-04-01T07:14:18.734263
2020-01-14T08:18:26
2020-01-14T08:18:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
# Generated by Django 2.2.6 on 2019-11-06 19:18 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), ('chat', '0001_initial'), ...
[ "natylaza89@gmail.com" ]
natylaza89@gmail.com
11ff9451998875442e730b5615886e0d750fc8ea
a28389177518f4fb8c05483290f3de88431a7281
/tdmilleranalytics_resume/migrations/0005_auto_20190314_0948.py
3c04d97d410e2a4ad5c211318d599321f1304077
[]
no_license
T-D-Miller/xxold-tdmilleranalytics-site
3e54a0281a2528a5cc33325efa430feb9dec1aff
9a0a20c55b67646b47e8ba97f0f3f0b73bca3869
refs/heads/master
2022-12-13T03:28:19.741313
2019-06-06T20:02:38
2019-06-06T20:02:38
179,912,524
0
0
null
2022-12-08T05:02:55
2019-04-07T03:12:58
JavaScript
UTF-8
Python
false
false
985
py
# Generated by Django 2.1.7 on 2019-03-14 14:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tdmilleranalytics_resume', '0004_auto_20190313_1813'), ] operations = [ migrations.AlterField( model_name='resumeitemlong', ...
[ "tyler@tylerdmilleranalytics.com" ]
tyler@tylerdmilleranalytics.com
3f470b04096926e7e4171c02c6a6de240584132d
d7462f06b6e3545ee8858f1ca222018e4339cc5f
/homeworkday6xuanke/core/school.py
86f5bf92cf895ad8d7d866afe64fca6e691d3dbc
[]
no_license
yyyhhhrrr/xuanke
578d411f2bb74b31bcc52961a1d04f2f7ce1f066
7acf7164dab035a4c2325508828a1d2237327f8b
refs/heads/master
2020-04-05T07:16:07.093813
2018-11-08T07:47:06
2018-11-08T07:47:06
156,663,676
0
0
null
null
null
null
UTF-8
Python
false
false
1,764
py
#!/usr/bin/env python # coding:utf-8 # Author:Yang from core import grade from core import teacher from core import course from bin import startxuanke import pickle class School(object): def __init__(self,name): self.name=name self.course_list=[] # 课程列表 self.teacher_list=[] # 讲师列表 se...
[ "562605133@qq.com" ]
562605133@qq.com
9afc51dda21c234a0964f5dfb1b560f92f4b6e92
99a76eeef280430dc914085542ca87d3849b24dc
/computor.py
02d522bb8229a40fd51202d37b2bbe8cbd335f50
[]
no_license
fabiogelbcke/computorv1
d9220072287849fe12d42ce86b4b8745c7cb5681
4f122de829405ec0c766aab57fd40225ad47fab3
refs/heads/master
2016-08-11T06:25:47.770001
2015-06-20T02:51:00
2015-06-20T02:51:00
36,998,767
0
1
null
null
null
null
UTF-8
Python
false
false
5,192
py
import sys import webbrowser def degree(coef): degree = 0 for deg, value in coef.items(): degree = int(deg) if int(deg) > degree else degree return degree def print_reduced(coef, degree): eqstr = "" for i in range(0, degree + 1): deg = str(i) if deg != "0": if ...
[ "dietbacon@Fabios-MacBook-Pro.local" ]
dietbacon@Fabios-MacBook-Pro.local
bf78b9687b611a404a1d1bd34b0142e445a80455
d817e99dd48ec8e8d8eb1cfb5393b984f6f5d033
/comment/migrations/0002_auto_20200903_0826.py
d31673a285dccec9cfdbbdfe68d296827d237d6a
[]
no_license
zhp821359122/typeidea-blog
6136efea0325325058807bf890390e2cd20a3a76
92ef5529ab54343a03e3c6295d20e30388e915bf
refs/heads/master
2022-12-15T19:56:37.979551
2020-09-07T01:02:12
2020-09-07T01:02:12
293,388,822
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-09-03 00:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comment', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "821359122@qq.com" ]
821359122@qq.com
1b961f70e65bde6e2cf6a2d5479f8a1db3b842ef
7ecc7092c70d28cfbc4229aca95267673f3b2b57
/quru/server/mq_client.py
cab3ad58929c75dac7fb68c377ee1f2f1f96f8ad
[ "MIT" ]
permissive
ShawnHan1993/quru
403bd6499a18901a02378eae82da73f828090107
6b103a54d8228e4e2d44b06cc068c60a44b02d67
refs/heads/main
2023-07-17T19:38:43.855085
2021-09-03T01:40:25
2021-09-03T14:07:11
400,223,744
0
0
null
null
null
null
UTF-8
Python
false
false
6,594
py
import asyncio import time import typing import aio_pika import pika import aiormq from ..quru_logger import logger from ..env import (BROADCAST_EXCHANGE_NAME, MAIN_EXCHANGE_NAME, MQ_HOST, MQ_PORT, MQ_RETRY, RABBITMQ_PASSWORD, RABBITMQ_USERNAME, RPC_EXCHANGE_NAME) class BaseMqC...
[ "shawnhan1029@gmail.com" ]
shawnhan1029@gmail.com
b6d065d760e42079503371393d1485e9837f70b4
15efb5ecc750918784e0ec793c307889e7dc6bce
/cob_undercarriage_ctrl/ros/test/initialization_test.py
6b88cc8ac6555f6227eda658258c1f6f1f2ceec0
[]
no_license
brudder/cob_driver
ffeb27c8a5a7549917eecf3c08d00ffc7c2e10bf
6628c42a192a4460504fc863565e73c7a9fa0416
refs/heads/master
2021-01-15T18:08:39.166564
2011-01-28T13:31:31
2011-01-28T13:31:31
1,190,304
0
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
#!/usr/bin/env python PACKAGE='cob_undercarriage_ctrl' import roslib; roslib.load_manifest(PACKAGE) import sys import rospy import unittest import time from nav_msgs.msg import * from cob_srvs.srv import * from pr2_controllers_msgs.msg import * class TestInititialization(unittest.TestCase): def __init__(self, *arg...
[ "alexander.bubeck@ipa.fraunhofer.de" ]
alexander.bubeck@ipa.fraunhofer.de
cf4ad83bcb4dce75c1c29929bdbe87edb51a6d8f
ad29da1796f7d9dbfddac9efd970564d67bdd5cf
/notify/settings.py
644920c808119962440435b354f8aa4c8ce8a053
[]
no_license
lucasdauto/projecto-notify-django
6a14e249f42cb0514ce5d4d50eb8e08af31346a2
d338081d2352a2cdc7da5873e3fc8ecc4a2f558c
refs/heads/master
2020-05-20T05:35:57.843636
2019-05-07T15:00:02
2019-05-07T15:00:02
185,410,087
0
0
null
null
null
null
UTF-8
Python
false
false
3,279
py
""" Django settings for notify project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os imp...
[ "lucasdauto79@gmail.com" ]
lucasdauto79@gmail.com
f62b92163ad2f1f39ac5e8060b7e9b2d3cfad26a
51ee02dabbee52bd93ce1b3e56f73e190ca76707
/Older Versions/Nqueenspart2(2.0).py
0ca9e8d8f235254decf314ff9cf5712874e095ff
[]
no_license
SaahilSingh25/Nqueens
8b1107681dc92235377967205985f9c488da46f1
09ad90e10ec3c618b3260eeea8e0a4862cc1a78c
refs/heads/main
2023-08-21T12:48:35.986299
2021-09-29T16:59:17
2021-09-29T16:59:17
408,264,919
0
0
null
null
null
null
UTF-8
Python
false
false
2,000
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 16 12:24:27 2020 @author: Saahil """ import random import time global cnt cnt = -1 size = 8 def test_solution(state): for var in range(len(state)): left = state[var] middle = state[var] right = state[var] for co...
[ "noreply@github.com" ]
noreply@github.com
cd054fc27c066b8c3068ebbbccaab31522e0da97
f4ba06aa535b4bf84d224c6818da10aebc91fab8
/NonLocalMeans.py
aec828bbf81f208cfb60269d9840b57d664f4d3c
[]
no_license
SeamusWhoriskey/ELEC301PROJ1
a42eb0b5f8d48e9a6016885d40369dd40e0af620
5ca373c8ce521e4b68551a923d3db027ae7d04d0
refs/heads/master
2023-01-24T03:50:06.217801
2020-12-07T00:28:33
2020-12-07T00:28:33
305,552,556
0
1
null
null
null
null
UTF-8
Python
false
false
5,733
py
# -*- coding: utf-8 -*- """301Project.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1tZLLH7iPrISvyCmKYFGRbCxuFboeMGYL """ import cv2 ## not all used, I will remove some later import numpy as np from skimage i...
[ "noreply@github.com" ]
noreply@github.com
6f7c6dd56427d9f11cab095e425a4b506ca1ac34
d1015dd9efb4032e06a1935c8a088987404743b3
/derivatives.py
91bee9faf515c21a2b448f931f39b6e5f44e507d
[ "MIT" ]
permissive
jpbreuer/2D-gravitational_lensing-CMB-with-nifty
ef7dc920175441e328a4bc8cf7c8acecf718a125
7e68f2de01fe68d51e71ec9ef33305fa84206203
refs/heads/master
2021-01-25T05:11:04.755305
2015-09-21T22:53:09
2015-09-21T22:53:09
33,773,452
1
0
null
null
null
null
UTF-8
Python
false
false
2,498
py
from vector_field import * about.hermitianize.off() def Nabla_discrete(k_space,s_space=None,kfield=None): """ This function returns the difference operator represented in Fourier space. """ if(about.hermitianize.status): print 'It is not recommended to calculate derivatives in...
[ "jeanpaul.breuer@gmail.com" ]
jeanpaul.breuer@gmail.com
30a264db13fc94a81b083c3d97f95ced31f5a639
e64c4eb10a4c0c71d0c24ee1225c36ef1afca6f8
/tests_scripts/srcs/globbing_sandbox.py
f6befb62fd51d33ca23fee4e11abfd36d0dd023d
[]
no_license
mdaoud93/42sh
ef7100f502066ae00a7eebe645aa65d34eef5f90
4fe3404e580647666ffeae825e084602a8389e14
refs/heads/master
2022-10-10T07:53:47.640783
2020-06-03T15:30:31
2020-06-03T15:30:31
269,125,138
1
0
null
null
null
null
UTF-8
Python
false
false
874
py
import os min_char = 33 max_char = 126 max_subdir = 3 max_len = 10 def touch(file): open(file, 'a').close() try : os.mkdir("./sandbox") except : pass os.chdir("./sandbox") for char in range(min_char, max_char + 1, 1): for len in range(1, max_len): if (char % 2 == 0): try : path = chr(char) * len ...
[ "marwadaoud1993@gmail.com" ]
marwadaoud1993@gmail.com
a6fb58c89014ee062dd4f0919c71670b7ccf61ec
444a9480bce2035565332d4d4654244c0b5cd47b
/research/audio/FastSpeech/src/dataset.py
e72e66213e867feab300003b59edf5352fb51bbb
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
5,247
py
# Copyright 2022 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...
[ "a.denisov@expasoft.tech" ]
a.denisov@expasoft.tech
d030f6a4eb9d8fb0e5b4685373965935a0687035
97942818ee9961ffc5ffd3999a0090a4c78dbded
/apps/rest/urls.py
e4c150ec8a9c3018eabe8b8ebefbc307e05e39ea
[]
no_license
DocketTodo/docket
2d1f1101acbecd01aa54cc74e3324f719a4c50ae
09207a3565f71a6441d31a106c28fb1965808fe8
refs/heads/master
2021-01-10T18:05:54.213277
2015-10-11T02:47:41
2015-10-11T02:47:41
44,021,871
1
0
null
2015-10-11T00:40:55
2015-10-10T18:02:18
Python
UTF-8
Python
false
false
383
py
from django.conf.urls import patterns, include, url from .views import RoomDetail, TimeSlotDetail, TimeSlotCreate urlpatterns = patterns('', url(r'rooms/room/(?P<pk>\d+)/?$', RoomDetail.as_view(), name='room-detail'), url(r'slots/slot/(?P<pk>\d+)/?$', TimeSlotDetail.as_view(), name='slot-detail'), url(r's...
[ "firedrake969@users.noreply.github.com" ]
firedrake969@users.noreply.github.com
2d7c95b9adc03370debcc3242e5f0acf53ab7a6f
020fbf1db497520abcb30cd3889cfe61c601723f
/practice/readmodclass.py
491a456b4862d0be7e5870f5afe2748e2fdea45c
[]
no_license
bluecrt/first-project
bc53a49ae23c3cc6beb0ede4d00d94e4ad568771
7f5f376adcaa0d48caf4540db6613f843d40e173
refs/heads/master
2023-06-21T19:16:46.644489
2021-07-22T13:13:15
2021-07-22T13:13:15
386,676,255
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
import classcars car = classcars.Cars('red', 'big') print('your car\'s color is:{},shape is:{},now you can drive it。'.format(car.color, car.shape))
[ "email" ]
email
502da6fc6705abdad5915b5c0601e0d1618f6031
fdda9b0b0dc6721212b6d6d6a1cf4fd422a609f7
/core/migrations/0009_franchise_address.py
4697cb8e212140bfccfae75e2eec61091c73225a
[]
no_license
sanyam1992000/CoviArmour
0a599b8688017c7e84a02ff5288600ab361ede5a
12f57ef4b4b0ca3d08e08779bde083511c403f24
refs/heads/master
2023-03-02T17:36:21.261487
2021-02-09T09:00:08
2021-02-09T09:00:08
288,245,139
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
# Generated by Django 2.2 on 2020-08-22 16:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0008_auto_20200822_1634'), ] operations = [ migrations.AddField( model_name='franchise', name='address', ...
[ "sanyam19092000@gmail.com" ]
sanyam19092000@gmail.com
01936368e6eccfa81284c68fe14ec28c64e46899
456433ac78b70cb8ae076ae166a85e349f181d7f
/systems/KURSSKLAD/KURSTERM/INCOMEDC/income.py
da1cc79d3b9404d80e97bace43769dfaef5fd48e
[]
no_license
shybkoi/WMS-Demo
854c1679b121c68323445b60f3992959f922be8d
2525559c4f56654acfbc21b41b3f5e40387b89e0
refs/heads/master
2021-01-23T01:51:20.074825
2017-03-23T11:51:18
2017-03-23T11:51:18
85,937,726
0
0
null
null
null
null
WINDOWS-1251
Python
false
false
18,623
py
# -*- coding: cp1251 -*- from systems.KURSSKLAD.KURSTERM.common import TCommonTerm #Import Templates from systems.KURSSKLAD.KURSTERM.INCOMEDC.templates.index import index from systems.KURSSKLAD.KURSTERM.INCOMEDC.templates.task import task from systems.KURSSKLAD.KURSTERM.INCOMEDC.templates.taskBL import taskBL from sys...
[ "s.shybkoi@gmail.com" ]
s.shybkoi@gmail.com
dff08b4a125ee0d409171d32cb0f3bafca3d87dc
541da414206ba4b6b3628e5e4e0f961b84c82fc0
/app.py
f62388b366e554c845bc5c5dceb7b477b0f8c4bb
[]
no_license
dev-vin/DockerTraining
7f8319c1a9487768d8a6dc4e7377fa4ef4f76641
cb9dd6ce4428a30000058badbcb5d47910b68020
refs/heads/master
2021-08-23T08:15:22.010762
2017-11-16T03:06:55
2017-11-16T03:06:55
112,993,619
0
0
null
2017-12-04T04:14:01
2017-12-04T04:14:01
null
UTF-8
Python
false
false
1,473
py
from flask import Flask, redirect, url_for, \ request, render_template, json from pymongo import MongoClient import pymongo import os import socket from bson import ObjectId class JSONEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, ObjectId): return str(o) retu...
[ "jan.ortiz@seer-technologies.com" ]
jan.ortiz@seer-technologies.com
0cdecd0af3dafb9d82746ec845df802d9645f53a
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/8/u0j.py
f3000c2754bb1143fdbc84d3add04b9d26cc4120
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
50d1f82d2ab546a923e1647d173675b9748de2d8
ee4a89546aa8b8782615babf296dbde1ec5a3796
/data_loader/data_processor.py
0e52b80a3e376f049cd62d093cc331420746f94b
[]
no_license
seefun/image_classification_pytorch
cd733e99f5c0bf572eaf5303e46a9e3ecbb346e2
1f77b5c1459260e7f0beab55671386fbaf8d753d
refs/heads/master
2020-04-09T16:49:39.484341
2019-04-23T04:25:41
2019-04-23T04:25:41
160,463,726
6
0
null
2018-12-05T05:05:52
2018-12-05T05:05:52
null
UTF-8
Python
false
false
1,561
py
# coding=utf-8 import random import numpy as np import cv2 import scipy.misc as misc from data_loader.data_augmentation import DataAugmenters ########################################################## # name: DataProcessor # breif: # # usage: ########################################################## class DataP...
[ "frotms@gmail.com" ]
frotms@gmail.com
1f7428185c225d62455a9d0c32657970c761a36e
e86b1293d6cff257c73af7e2d2cf611612060b3a
/FullConnect/testData.py
09a38ffa16eb7fb7e857ee6ccd5a119861fca6d1
[]
no_license
SagacitySucura/MyDeepLearning
07a62b65c9f65d592ec44560ea99ef5ae11eda07
fa6e0ddb6a9be21db574e356aa98d987b46ab6a6
refs/heads/master
2021-06-29T21:57:10.771605
2020-08-31T06:28:51
2020-08-31T06:28:51
128,864,308
0
0
null
null
null
null
UTF-8
Python
false
false
1,857
py
import tensorflow as tf import numpy as np import os import linecache rootdir="H:/deep_learning/ringAtListOne/deep_learning/allconnectnet/coord_data/" os.chdir(rootdir) def readData(filename,labellen,datalen): lines=linecache.getlines(filename) linecache.clearcache() new_label=[] new_data=[] for li...
[ "449292012@qq.com" ]
449292012@qq.com
9c8bc02f1176b102ce77e48503a404d5dfc1d3fe
ec9d241d1a6d7093dbf494533a30006a8c709cf7
/jeux.py
9d255414c6fa5084bfd237091b73e6a8c3de8e23
[]
no_license
AurianaJones/projet-scaping.github.io
def53c48b911be97af3a25f1f6c8bf181e430dc7
1a15a32b61b8d28c4a671fec14c7a5a21d78a235
refs/heads/master
2022-12-27T21:51:17.237541
2020-10-08T20:43:27
2020-10-08T20:43:27
289,226,477
1
0
null
2020-10-08T15:17:03
2020-08-21T09:07:46
HTML
UTF-8
Python
false
false
2,657
py
import sqlite3 from bs4 import BeautifulSoup import urllib.request class Jeux : game_id = 0 titre_precedent = "" inc = 0 def __init__(self, link, links) : Jeux.inc += 1 self.titre = "Null" self.genre = "Null" self.prix = "Null" self.plateforme = "Null" self.date_de_sortie = "Null" ...
[ "mygnyh@gmail.com" ]
mygnyh@gmail.com
34ccb9f1f888fc5c2bb2a301fdda507ba26958f9
fd034145a9d3f8688f0d3df67b72226a3f970f75
/autorop/call/__init__.py
b3b308144a89e4fa0b94da6be42bebb4778d0030
[ "MIT" ]
permissive
Licae/autorop
d69d0cef875b1096b8c03eca042f48eca700d716
5735073008f722fab00f3866ef4a05f04620593b
refs/heads/master
2023-06-07T09:22:56.226727
2021-06-29T09:59:20
2021-06-29T09:59:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
from autorop.call.Custom import Custom from autorop.call.SystemBinSh import SystemBinSh
[ "mariusz@skoneczko.com" ]
mariusz@skoneczko.com
41b4a201f793609880105e10e13dd3540537e786
75306c267bed7cec00157819c82919825018467a
/scripts/ipc/build.py
834e58e863a1751ff8b3601d243f45c7e5838666
[]
no_license
whimboo/mozmill-crowd
e928f8308e762aea00e934a5ed5db85f277e0728
918f59836baf6aa9746a33501de2675631e15eec
refs/heads/master
2016-09-06T00:30:13.281458
2015-01-19T14:40:27
2015-01-19T14:40:27
734,178
1
2
null
2015-01-19T15:14:05
2010-06-22T16:46:55
JavaScript
UTF-8
Python
false
false
4,477
py
#!/usr/bin/env python # ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozi...
[ "hskupin@mozilla.com" ]
hskupin@mozilla.com
5be6d61ffeb25a2b55ca73213e32c1a4e8805fbf
8df60f203f08f37aa8652abe2135dc693ecdce0b
/parameter_functions_v2.py
4d27ef12d359ae2fa5a5afba86af57780fd067f9
[]
no_license
dgergel/rasm-vic5-parameters
60116ec4f47724426e832a0c75cbd16c8f567adc
84f08fdf8f99ff7ce476f1d6a16dea7593feb095
refs/heads/master
2020-03-20T02:54:23.289549
2019-02-20T00:06:18
2019-02-20T00:06:18
137,115,922
0
0
null
null
null
null
UTF-8
Python
false
false
52,914
py
#!/bin/env python import xarray as xr import os import numpy as np import matplotlib.pyplot as plt import collections import warnings import pandas as pd from netCDF4 import default_fillvals from scipy.stats import hmean def is_soil_class(soil_class): ''' Takes input soil classification and checks to make s...
[ "dgergel@gmail.com" ]
dgergel@gmail.com
aa5c9fbb4b5b7cf3e55cda64514cbbf0576e3106
e718d7e8620777089749c03308c2efc885ad5f7e
/chapter-5/exercise-35/prefixcalc.py
60ec1f1667bf75eedf639cbae5fc4c3ac8586639
[]
no_license
quanglam2807/cs-370
8652aa8b32033c58eb02126f2e6d39e94b31cca2
dadf321c61c4f6f5752ca02d7cbffb4401897ac3
refs/heads/master
2020-05-05T06:41:01.610852
2019-05-16T22:32:41
2019-05-16T22:32:41
179,797,585
1
0
null
null
null
null
UTF-8
Python
false
false
54
py
print(5 * (6 + int(input("Please enter an number:"))))
[ "quang.lam2807@gmail.com" ]
quang.lam2807@gmail.com
958691096444cbd3d3c96fb700112e2199f368ca
e86851297175203451374021595659adbd516b59
/tools/convert2txt.py
eecab18170bcdafe344373ef87bedb7667c58484
[ "MIT" ]
permissive
stcolumbas/free-church-psalms
f0417d07af449300a5ada758dc95e153712b0e9e
0eee5faa19306a79d77a55019ff82fcba72fc9b4
refs/heads/master
2022-12-16T15:31:44.907547
2017-12-08T22:53:40
2017-12-08T22:53:40
28,723,518
2
0
null
2022-12-07T23:51:49
2015-01-02T19:23:24
Elm
UTF-8
Python
false
false
1,290
py
import os from utils import (load_scottish_psalter, load_sing_psalms, make_output_folder, remove_folder, remove_markup, zip_folder) def write_text_file(psalm, output_folder, fname): fname += ".txt" with open(os.path.join(output_folder, fname), 'w') as f: text = psalm['name'] + "\r\...
[ "montgomery.dean97@gmail.com" ]
montgomery.dean97@gmail.com
891767424910c6312d21ec2883cabb1ee174ed30
094a82883b0f4490dbca6c042e129faf0593d7bc
/thingflow/filters/timeout.py
714092327ac119541bf3e1f1efb166cdb5bf6395
[ "Apache-2.0" ]
permissive
kesking82/thingflow-python
904495aa370fb0fdef5e1eb162f0553a37bd7271
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
refs/heads/master
2020-04-21T13:05:57.615247
2019-02-28T09:59:13
2019-02-28T09:59:13
169,587,091
0
0
Apache-2.0
2019-02-07T14:44:45
2019-02-07T14:44:44
null
UTF-8
Python
false
false
4,506
py
# Copyright 2016 by MPI-SWS and Data-Ken Research. # Licensed under the Apache 2.0 License. """Timeout-related output things and filters. """ from thingflow.base import OutputThing, DirectOutputThingMixin, FunctionFilter,\ FatalError, filtermethod class Timeout(OutputThing, DirectOutputThing...
[ "jeff@data-ken.org" ]
jeff@data-ken.org
77e5def71acd3b0dcdf4810c1ea9c843471e3d0b
655999af4df619d586afd98bdf6e1324e6febaf7
/day16/day16.py
2949ff57bfe543c90d765fbcd3af96c2a9fb5e61
[]
no_license
matpl/advent-of-code-2016
031c28d37db1524757b086e140ef2e02129d87eb
1837a4d5a8909cc28aa81840d3d8c5242637f059
refs/heads/master
2020-06-13T06:12:07.061037
2016-12-25T06:28:10
2016-12-25T06:28:10
75,423,113
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
length = 35651584 input = '10001110011110000' def getchecksum(s): cs = '' for i in range(int(len(s) / 2)): if s[i*2] == s[i*2 + 1]: cs += '1' else: cs += '0' return cs def getresult(a): b = a b1 = b[::-1] c = '' for car in b1: if car == '0':...
[ "mat.plourde@gmail.com" ]
mat.plourde@gmail.com
afb169d7408292fe204cb398b5c00a3621df1feb
736c5539a633a2f2e7ff9b7d1ac47b50b10a4150
/app/create_db.py
326328078d03a73b3cc3385386e2590ac95ae7ce
[]
no_license
kaiznanji/IPrep
b278324a016fb7036f68b367784ce9ada6d7950c
a9cc469fd160d3686ae7e4759dbf76b1856ae94f
refs/heads/main
2023-02-20T01:11:56.577191
2021-01-24T03:08:08
2021-01-24T03:08:08
330,250,408
0
2
null
null
null
null
UTF-8
Python
false
false
3,857
py
# Import libraries import requests import bs4 as bs import pandas as pd import os # Creating Computer Science QA for Database def computerscience(): link = "https://www.indeed.com/career-advice/interviewing/computer-science-interview-questions" resp = requests.get(link) soup = bs.BeautifulSoup(resp.text, ...
[ "kaiznanji@gmail.com" ]
kaiznanji@gmail.com
3d66bd12fe5fc7c305ca6871a1859a747069dbaa
9e6564ecbe82a89bb61b0edaa1ece34508d118eb
/libraries/aws_tools/lambda_handler.py
38e8c25a9b9784e59a994e81e42e5dcbc1205595
[ "MIT" ]
permissive
richmahn/tx-manager
4cae2d68b31a7da1af50ab4da76fd86ebacf081a
a01f8c425c7f9634dea00e331fac7e20595f3aa5
refs/heads/do-not-use
2020-12-25T17:45:56.395142
2017-07-06T17:20:35
2017-07-06T17:20:35
68,339,644
0
0
null
2016-09-15T23:34:19
2016-09-15T23:34:19
null
UTF-8
Python
false
false
840
py
from __future__ import unicode_literals, print_function import json import boto3 import logging from boto3 import Session class LambdaHandler(object): def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, aws_region_name='us-west-2'): self.aws_access_key_id = aws_access_key_id sel...
[ "richmahn@users.noreply.github.com" ]
richmahn@users.noreply.github.com
34cb8837a6e24ab108866b6460dbaee7e37e959f
6a65d035658e03ecc3d5376b6d7cd659e86a464d
/OpenCV/drawOnMouseClick.py
0879950c6b029ce556272fcbbc5c0377182149eb
[]
no_license
torrezno/tutorialesPFC
0c0ede10ee67ac4a82d1bc35b3a3b45d96fe1ef0
e5644f07b73e21ce5b84f3d71732b6c125278d37
refs/heads/master
2020-04-18T06:34:49.977270
2019-01-24T07:56:04
2019-01-24T07:56:04
167,327,063
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
#drawOnMouseEvent import numpy as np import cv2 as cv #mouse callback def draw_circle(event,x,y,flags,param): if event == cv.EVENT_LBUTTONDOWN: cv.circle(img,(x,y),100,(255,0,0),-1) #Create a black image, a window and bind the function to window img = np.zeros((512,512,3), np.uint8) cv.namedWindow('image') cv.set...
[ "vicentelozano@gmail.com" ]
vicentelozano@gmail.com
60995d970bc68dc1ec94fb35ac1deb625a4a25b0
648f742d6db2ea4e97b83c99b6fc49abd59e9667
/common/vault/oas/models/v1_release.py
390e9e08ca27c8e6365b47a2aae883c73a864c3e
[]
no_license
jmiller-tm/replit
c56ce63718f6eb2d9b53bd09d3f7b3ef3496cb86
c8e6af3268c4ef8da66516154850919ea79055dc
refs/heads/main
2023-08-30T00:49:35.738089
2021-11-16T23:09:08
2021-11-16T23:09:08
428,809,777
0
0
null
null
null
null
UTF-8
Python
false
false
5,968
py
# coding: utf-8 """ vault/kernel/core_api/proto/v1/accounts/core_api_account_schedule_tags.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: version not set Generated by: https://github.com/swagger-api/...
[ "jmiller@jmiller-tm00769-mbp.nomad.thomac.net" ]
jmiller@jmiller-tm00769-mbp.nomad.thomac.net
54a72b00464ffc6843ab30fd6c80c0915e89705d
f18965ad57cdd6d89f25630a851c4487ac75b216
/cartoon/cartoon_client.py
ad8433bc210e7cabc6d31d44c53161a26a94c6d8
[]
no_license
Yodeman/iqube_projects
426c839627224465e73e33c46d607e370dcdf05e
efacc18ce3b397d7171df5f970986d1770483977
refs/heads/main
2023-07-29T22:46:09.675500
2021-09-21T10:30:38
2021-09-21T10:30:38
351,215,999
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
import requests, json, base64, io from PIL import Image addr = "https://paul-cartoon.herokuapp.com/grayscale" #addr = "http://localhost:8000/grayscale" content_type = "multipart/form-data" headers = {"content-type":content_type} files = {"file":("lydia.jpg", open("./my_imgs/lydia.jpg", "rb"))} response = r...
[ "noreply@github.com" ]
noreply@github.com
897de58d13bf05f061a944969efdd949a05fd250
70d3a0b9592d67627613806361996848cbdf6e81
/tribune/urls.py
743c5c2d51d89d1e34935298e5819d997537bf86
[]
no_license
markmurimi/moringa-tribune
38c85bfbde40b0f6540f9c0c33150f8d8cb2672e
51ced550760bfcf05c97889cbef5c891ed33c8e1
refs/heads/master
2020-03-15T11:07:25.408649
2018-05-18T05:25:23
2018-05-18T05:25:23
132,112,436
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
from django.conf.urls import url,include from django.contrib import admin from django.contrib.auth import views from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [ url(r'^api-token-auth/', obtain_auth_token), url(r'^admin/', admin.site.urls), url(r'',include('news.urls')), url...
[ "murimimg180@gmail.com" ]
murimimg180@gmail.com
47eae7e9402a1e51cec90777cc2b76fc0ae820db
a0217cfa1b1f2e2c8911e89eaa9390ca21911985
/CSVHandler.py
271d19857099e25d57b5a8716b5318114f881bc7
[]
no_license
danihaif/backend-project
6f9f83fc34e47be415a4acd1d7ad1b1d36ad5e6d
aa8967c0422dc0fa1f31e0c7c7a63c050d3ac50f
refs/heads/master
2021-01-19T17:30:24.472731
2017-08-22T13:16:44
2017-08-22T13:16:44
101,063,153
1
0
null
null
null
null
UTF-8
Python
false
false
986
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import csv import unicodedata Path_to_csv = r"C:\Users\yoav\Downloads\Ben_Yehuda - Sheet1.tsv" def get_author_year_from_csv(author): with open(Path_to_csv, 'r') as f: reader = csv.reader(f , dialect="excel-tab") i = 0 for row in reader...
[ "noreply@github.com" ]
noreply@github.com
f7326c3c9538ce7f2f460d9cfecf671ed7b43409
c62dc8b94bd1117cfa801720307b78e5269bc5ce
/ABC132/A/Python/Fifty-Fifty.py
7ae29353838463130b623b4153a0fdb59d59709a
[]
no_license
masaki4423/AtCoder
fd8a2adeebe16d451b4f5d46a7cf71f007b4343f
b1e41c98463b9d8ab8a3a42988c8bf47bbcb8a8b
refs/heads/master
2020-06-04T19:41:45.176153
2019-07-14T19:11:14
2019-07-14T19:11:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
S = input() dict_S = {} for s in S: if s not in dict_S: dict_S[s] = 1 else: dict_S[s] += 1 if len(dict_S) > 2: print("No") else: cnt = 0 for s in dict_S.values(): if s == 2: cnt += 1 if cnt == 2: print("Yes") else: print("No")
[ "kashiwabara356@gmail.com" ]
kashiwabara356@gmail.com
b579657c26d155b74c4d07b296b4298de3bb214c
bd0aa89f42eba40c1c14d81c3904f06df1dcbaa3
/plugins/TemplatePluginTestCase.py
08d6c671cbbf2d5fd24517c3a5001364f7e900c4
[ "BSD-3-Clause" ]
permissive
jokar/minion
61e2855d2dde496273bff7211d8c0b8b41ad6079
b33a31ca52fa898281a8991d793891691fae2a26
refs/heads/master
2020-04-10T12:21:16.910692
2012-10-01T20:49:29
2012-10-01T20:49:29
6,046,978
1
0
null
null
null
null
UTF-8
Python
false
false
2,721
py
''' Created on 24 Sep 2012 @author: test ''' import unittest from MinionPlugin import MinionPlugin from TemplatePlugin import TemplatePlugin class TemplatePluginTestCase(unittest.TestCase): def check_result(self, result, expected): if (result.get("status") != expected): self.fa...
[ "minion@ubuntu.(none)" ]
minion@ubuntu.(none)
24eec6af70636c91b4a73525876f8dd6d1baaa4a
d932716790743d0e2ae7db7218fa6d24f9bc85dc
/net/data/verify_certificate_chain_unittest/expired-root/generate-chains.py
93d5bb72522e7d46dc7a0d48bd93b24afe02747a
[ "BSD-3-Clause" ]
permissive
vade/chromium
c43f0c92fdede38e8a9b858abd4fd7c2bb679d9c
35c8a0b1c1a76210ae000a946a17d8979b7d81eb
refs/heads/Syphon
2023-02-28T00:10:11.977720
2017-05-24T16:38:21
2017-05-24T16:38:21
80,049,719
19
3
null
2017-05-24T19:05:34
2017-01-25T19:31:53
null
UTF-8
Python
false
false
1,185
py
#!/usr/bin/python # Copyright (c) 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Certificate chain with a root, intermediate and target. The root has a smaller validity range than the other certificates, making it...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
2157da06e88dcc1c72d934d70b8ba0ce03866db3
ad7d36061474df9dc51349b270b15f0829ed41d5
/wikihow.py
4cc0a1d933c7ca4c7a87a40f906a48b60512a24d
[]
no_license
AyushiBakshi/AbstractiveTextSummarizer
a29be21999095f17db3eca8ddf105dc915ad3a84
ce4aef54f2fc669ceec214af2262b04def1e2881
refs/heads/master
2023-04-09T18:06:57.753367
2021-04-19T07:10:08
2021-04-19T07:10:08
354,548,683
0
0
null
null
null
null
UTF-8
Python
false
false
7,210
py
from transformers import EncoderDecoderModel, BertTokenizerFast, Seq2SeqTrainer, TrainingArguments from datasets import load_dataset, load_metric import urllib.request import os if __name__ == '__main__': def map_to_encoder_decoder_inputs(batch): inputs = tokenizer(batch["text"], ...
[ "ayushibakshi16@gmail.com" ]
ayushibakshi16@gmail.com
0a846cfd6088e8cd659faee4934e1bd8e097a172
3d8ee0556e21cda020272ca958c1ea3c40bf648f
/130401_MultiLanguageChanging/PosMulti04_showSelectList_referToCase10.py
bce89870480eaf77d71614ddbaaf80c00480d02a
[]
no_license
nikoladang/POS_Indonesia
b60bf5c32d07c6aff065090cf5c8b5fede329d30
e06d5433af3480a5e215f980bbf263cbb374010d
refs/heads/master
2020-04-12T03:24:07.059745
2014-02-24T10:07:53
2014-02-24T10:07:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,782
py
#-*- coding: utf-8 -*- ##http://www.saltycrane.com/blog/2007/10/python-finditer-regular-expression/ """ Python version: 2.7 Purpose: posui:showSelectList 130506: apply (not k.endswith('0')) ignore blank line inside apply suffix 'MultiLang' Note: If can find staticValue but can not find appropriate key ...
[ "ducthinhdt@gmail.com" ]
ducthinhdt@gmail.com
8d612137010045cf7cfecd389f441a169bae4ceb
4e70653636fa70a8b7accef83d9d920bc0fe3a17
/DEN_run_modified.py
a5078849a5aff1d1cbc6ed1433971da37ba49113
[]
no_license
sirvan3tr/Axolotl_Algothon2018
2928466875c424301605c4278d2e5cb475ccc841
11a2295d26067ae01ff1b7e673fa646778f6f38d
refs/heads/master
2020-04-02T03:05:51.108255
2018-10-21T11:14:32
2018-10-21T11:14:32
153,946,039
0
0
null
null
null
null
UTF-8
Python
false
false
3,460
py
import os import tensorflow as tf import numpy as np import DEN import pandas as pd from tensorflow.examples.tutorials.mnist import input_data np.set_printoptions(threshold=np.nan) np.random.seed(1004) flags = tf.app.flags flags.DEFINE_integer("max_iter", 4300, "Epoch to train") flags.DEFINE_float("lr", 0.001, "Learin...
[ "mariano.etchart@gmail.com" ]
mariano.etchart@gmail.com
194a3289e7ab0effc75873cf8a0c55f7b2ca12f7
441219d1028f041840f01435ddbe792574427c2b
/main.py
fa6f709d5aae6b35ee0e160a80b84bf1318292fe
[]
no_license
Nazyli/DDP-Tugas-2-BankNF
e1195fde783b73856377878dc304abc2289f311f
437cc752ee340b3ebd5470160f650197a35e53c5
refs/heads/master
2023-02-17T16:13:35.051453
2021-01-14T16:27:36
2021-01-14T16:27:36
325,839,459
0
0
null
null
null
null
UTF-8
Python
false
false
5,504
py
import random import string import os from subprocess import call from prettytable import PrettyTable def clear(): _ = call('clear' if os.name == 'posix' else 'cls') def fungsi_file(namafile, operator, data=None): with open(namafile, operator) as file: if operator == 'a+' or operator == 'w+': ...
[ "evrynazyli@gmail.com" ]
evrynazyli@gmail.com
6636d4c67c33898aef365f99ff44045756b57de7
553cbf50ec41c01a5044209158f11dcd02c924fc
/practica_6/B.py
9ca49a0b39b0d4f73ffe900ba09885d8fdc592fd
[]
no_license
PakhnovaMaria/Pakhnova1sem
1eaa76f2cdcd8276d34fc157feddc48035d1a4c8
30720bb7881c794abe4ac73c5ba19e729d63a7f9
refs/heads/master
2021-04-26T14:31:53.387854
2017-03-27T17:59:55
2017-03-27T17:59:55
43,350,506
0
3
null
2015-10-17T08:14:29
2015-09-29T07:00:34
Python
UTF-8
Python
false
false
510
py
I = open('input.txt') bargain = int(I.readline()) coins = [int(x) for x in I.readline().split()] amount = 0 fives = 0 for coin in coins: if coin == 5: fives += 1 else: change = (coin - 5)//5 if fives > 0: if fives >= change: fives -= change ...
[ "andpago@gmail.com" ]
andpago@gmail.com
2d6331f2381b350d2161b5e9f38f4c5f0f6f3ecd
0fa9ef527aad73e5be67bbae9d6cf1dbebb00225
/occ_detection/train_IMG_GMM_RV.py
b03636c437ec9c74641399c74e318bfd3f6152fa
[]
no_license
zhicongqiu/code_in_dev
1f0c6adb6f910054adebe6c391d913a18a6e35b5
961dba584022c38e3753faf0b576b527ae1123f9
refs/heads/master
2021-01-09T21:55:55.487037
2015-12-16T15:04:14
2015-12-16T15:04:14
48,069,059
0
0
null
null
null
null
UTF-8
Python
false
false
3,451
py
import glob,os,sys import pickle import numpy as np import matplotlib.pyplot as plt from sklearn import mixture from skimage.feature import hog import json import cv2 from gmm_module import * save_crop_dir = 'Train_high_inference_wholeGMM/' resize_x = 300 resize_y = 150 #load a training file Vl = pickle.load(open('pi...
[ "zhichong.qiu@gmail.com" ]
zhichong.qiu@gmail.com
76cdb6dfccc2ed384bfad32b928caa9558191f83
9eee1566e436a883fa3bd0266c6a7375e34ab4d7
/notes/cli/commands/document/modify.py
14ee5e002dbbd79ebb3e9e1fe2bda613817eda8d
[]
no_license
gropax/qiq-django
aa87fa070bf2083aba9043ebc96c2287be2cf7e5
31f8c6ad717994bd9b37fcdde3fec8549be5aec1
refs/heads/master
2020-07-09T05:19:13.117991
2017-01-10T16:54:52
2017-01-10T16:54:52
65,904,082
0
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
import os from core.cli.command import Command, command from notes.cli.utils import Utils from notes.cli.commands.document import DocumentCommand @command('modify', DocumentCommand) class ModifyCommand(Command, Utils): aliases = ('mod',) def add_arguments(self, parser): parser.add_argument('name_or_i...
[ "maximedelaudrin@gmail.com" ]
maximedelaudrin@gmail.com
0d812a9eec50f538226c32230195c76651c4304b
826063802a2e714ca20296c6754fff08a324fe2d
/tests/test_units.py
f435789ef74b479b84f8a9a0e1d6760377bc6799
[]
no_license
shages/microblog_tutorial
fe2af5856c4e429684217752dc3a7d63b272eb70
d81545714a803abf43e0b926d42d3f83d11a0027
refs/heads/master
2021-01-13T03:44:49.553204
2017-01-23T02:22:44
2017-01-23T02:22:44
77,249,332
0
0
null
null
null
null
UTF-8
Python
false
false
5,386
py
"""Microblog unit tests.""" import pytest import decorator import os import sys import os.path sys.path.append( os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))) from datetime import datetime, timedelta from config import basedir from app import app, db from app.models import User, Post ...
[ "eronshagen@gmail.com" ]
eronshagen@gmail.com
a8f12a818bd905bf27433ceb1d88cd1adcb6fd03
bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd
/neekanee/job_scrapers/plugins/org/link/ecri.py
454de8cc4ab4aed3dae40d464a9b0baad832bcf6
[]
no_license
thayton/neekanee
0890dd5e5cf5bf855d4867ae02de6554291dc349
f2b2a13e584469d982f7cc20b49a9b19fed8942d
refs/heads/master
2021-03-27T11:10:07.633264
2018-07-13T14:19:30
2018-07-13T14:19:30
11,584,212
2
0
null
null
null
null
UTF-8
Python
false
false
1,543
py
import re, urlparse, urllib from neekanee.jobscrapers.jobscraper import JobScraper from neekanee.htmlparse.soupify import soupify, get_all_text from neekanee_solr.models import * COMPANY = { 'name': 'Economic Cycle Research Institute - ECRI', 'hq': 'Plymouth Meeting, PA', 'home_page_url': 'http://www.ec...
[ "thayton@neekanee.com" ]
thayton@neekanee.com
ff6d6ea05f4e56b835aa2096803e26a85ae8c0a6
0506ce6ef4f982a0ad5d3cf48859e7c65e07539b
/web_flask/6-number_odd_or_even.py
51261445f08eccd98308e128e2ef01ff68ade9ef
[]
no_license
jdrestre/AirBnB_clone_v2
cc42df617eb9e7c1dd194364c77cb27e166f0b42
7f12f84966ac54ca0d7ecc619c950db0cdd2a954
refs/heads/master
2021-05-25T22:08:40.847969
2020-04-23T17:44:49
2020-04-23T17:44:49
254,738,261
1
0
null
2020-04-10T21:18:41
2020-04-10T21:18:40
null
UTF-8
Python
false
false
2,546
py
#!/usr/bin/python3 """ Script that starts a Flask web application Your web application must be listening on 0.0.0.0, port 5000 Routes: /: display “Hello HBNB!” /hbnb: display “HBNB” /c/<text>: display “C ” followed by the value of the text variable (replace underscore _ symbols with a space ) /python/(<text>...
[ "jdrestre79@gmail.com" ]
jdrestre79@gmail.com
4c9961100c9dff7bb80813e4308e2270fa54207a
70ab37e0379292ccbe8d717b2e2dc190db6ff939
/src/RouteGenKCI.py
c19f0773614450f9a1e96f8241815c76ebbc51a4
[]
no_license
Zefty/FoodStuffs-Truck-Scheduling
1ef5d4616d6769070b115832db3241462e5b57ae
75bccd5a98cd3f49e9702fa206755c516b50b713
refs/heads/master
2022-12-14T19:23:02.923405
2020-09-08T23:34:16
2020-09-08T23:34:16
293,949,272
2
0
null
null
null
null
UTF-8
Python
false
false
14,099
py
#################################################################################### # # Import modules # #################################################################################### import numpy as np import pandas as pd from pulp import * import random from scipy.cluster.vq import kmeans2, whiten from sklearn...
[ "jaime.wu011@gmail.com" ]
jaime.wu011@gmail.com
ee5485a406a84015222484f56a780b6e480a68cd
37ba62db61fc4ec62634638763a984cbfbe40fe3
/day40/聊天/client1.py
774d118ed33968502dfa2d9a623bffb169cd56ad
[]
no_license
lt910702lt/python
ca2768aee91882c893a9bc6c1bdd1b455ebd511f
c6f13a1a9461b18df17205fccdc28f89854f316c
refs/heads/master
2020-05-09T22:54:22.587206
2019-09-17T09:02:53
2019-09-17T09:02:53
181,485,866
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
import socket import time sk = socket.socket() sk.connect(('127.0.0.1', 8080)) while True: sk.send(b'hi') ret = sk.recv(1024).decode('utf-8') print(ret) time.sleep(1) sk.close()
[ "1103631738@qq.com" ]
1103631738@qq.com
137aaaac652237395fb0e9189c1366f3659a43ad
497b1fd402abf9032a88a0fb84de4130bcf91282
/NewWordFinder/newwordfinder.py
514024b2f6180bd1713286108adc2f017ec4674d
[]
no_license
Amoxicillim/LinLP
4dd5bd8126c60122fec9b3657696179340221bcf
4b8045c1617043b6a9f6dcaa88a86da66358e122
refs/heads/master
2023-07-10T08:06:56.325770
2020-01-08T15:21:28
2020-01-08T15:21:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,710
py
import numpy as np import pandas as pd import re from numpy import log, min f = open('sentences.txt', 'r',encoding='utf-8') # 读取文章 s = f.read() # 读取为一个字符串 # 定义要去掉的标点字 drop_dict = [u',', u'\n', u'。', u'、', u':', u'(', u')', u'[', u']', u'.', u',', u' ', u'\u3000', u'”', u'“', u'?', u'?', u'!',...
[ "1160090532@qq.com" ]
1160090532@qq.com
f2921abb6806d16d0f7ddc14a97f9baeff9ea3f2
f0856e60a095ce99ec3497b3f27567803056ac60
/Dacon/01newstopic_4_StratifiedKFold.py
4133bad05dab0a9658e9397d51e417687e2a2d98
[]
no_license
hjuju/TF_Study-HAN
dcbac17ce8b8885f5fb7d7f554230c2948fda9ac
c0faf98380e7f220868ddf83a9aaacaa4ebd2c2a
refs/heads/main
2023-09-04T09:13:33.212258
2021-10-27T08:00:49
2021-10-27T08:00:49
384,371,952
1
0
null
null
null
null
UTF-8
Python
false
false
5,418
py
import numpy as np import re import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from icecream import ic from sklearn.metrics import accuracy_score,log_loss from sklearn.model_selection import StratifiedKFold import datetime import tensorflow as tf from tensorflow.keras import Sequential from ten...
[ "tkackeowjs@naver.com" ]
tkackeowjs@naver.com
34aaf37c131ec0c0f73be5aecbfa7dcd36471738
862d2222cdf8294ad787120f6c7e6ec31b8c7096
/puppy/puppy/spiders/doggy.py
bec18c467f4599516fa3fc78ee6019f8851e2103
[]
no_license
purpen/shine
bf0bd6cb7a989580bc36da6c44556a3a28ba7fe6
c73f90bf9b85030f966e7cbfa4040d30a47d412c
refs/heads/master
2021-01-20T14:16:09.112668
2017-05-08T04:16:33
2017-05-08T04:16:33
90,578,515
0
0
null
null
null
null
UTF-8
Python
false
false
5,889
py
# -*- coding: utf-8 -*- import re, datetime from urllib.parse import urlparse import scrapy from scrapy import Request from scrapy.linkextractors import LinkExtractor from scrapy.spiders import Rule from scrapy_redis.spiders import RedisCrawlSpider from scrapy_redis.utils import bytes_to_str from puppy.items import S...
[ "purpen.w@gmail.com" ]
purpen.w@gmail.com
8df2adc89262b9b679d981940baa317bea9767ff
6bce9c81ac71016766d4964ea95e479cb60f51c2
/utils/utils.py
7aca82085c93bef8e2c8d5414329dbe52cd01a43
[]
no_license
aadharna/UntouchableThunder
bde78e378c26ff063a801db20ddec85a0f1ee5e2
079a961c57f81e765b8fa6554b0a06bc23e6333a
refs/heads/master
2021-09-05T19:02:26.303993
2021-08-12T17:36:31
2021-08-12T17:36:31
199,691,817
18
2
null
2021-02-28T03:05:11
2019-07-30T16:47:49
Python
UTF-8
Python
false
false
1,604
py
import os import pickle import numpy as np from gym.spaces import Box, Discrete def save_obj(obj, folder, name): path = os.path.join(folder, name) + '.pkl' if os.path.exists(path): os.remove(path) with open(path, 'wb+') as f: pickle.dump(obj, f, pickle.HIGHEST_PROTOCOL) def load_obj(folder...
[ "adharna@fordham.edu" ]
adharna@fordham.edu
92d844654e8b33667526734cf0039cbac240a96b
3f21551d867d6eb280f9a2a2160edfe08de4e3fc
/main25.py
a1264e0b0beeeffc8c093e41a155d3998b2fc967
[]
no_license
wujpkimo/NTU0723UI
508e3c70d503ea8db8dedaa598c8adaf6a2eb612
f2931c244bbd462b91d7f8f54d75c7c34eaf0a3f
refs/heads/master
2023-06-30T02:13:00.578280
2021-08-02T06:35:43
2021-08-02T06:35:43
388,699,664
0
0
null
null
null
null
UTF-8
Python
false
false
764
py
from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class Rest1(Resource): def get(self): return {'name': "Mark", 'age': 46, 'job': 'instructor'} class Rest2(Resource): items = ['sample1', 'sample2'] def put(self, index): data =...
[ "wujpkimo@gmail.com" ]
wujpkimo@gmail.com
308c563f76e19aceed010d3587c7917ad4876a05
ccfe4eb1a0df72da1ffb35d082ce4eedcf3a55e0
/grade/views.py
63fda731f48957eefbc2fed69edd739dd1f5d9ec
[]
no_license
chydream/djangoDemo
a807a8f93f59dee4ecde031388a2cdb5172b3e84
94df813dcf3877a46dad572d5421e33862100a0d
refs/heads/master
2022-07-17T16:34:04.343259
2020-05-20T03:29:10
2020-05-20T03:29:10
258,780,831
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
from django.db.models import Sum, Max, Count from django.http import HttpResponse from django.shortcuts import render # Create your views here. from grade.models import Grade, Student def page_count(request): # num = Grade.objects.filter(student_name= '张三').aggregate(total=Sum('score')) # print(num) # ma...
[ "yong.chen@doone.com.cn" ]
yong.chen@doone.com.cn
5b6018cc0f91c4083786d06972647a8376121bd7
a6d4eff7d4faf23d6a0bc0f3f2738a3c4d4267fe
/conf/urls.py
eb7f666f5100324f261ad85daeb9338fda4294c4
[]
no_license
sayeda-khaled/fullstack-chat-app
680be934a68cf742d1b1b720bc61984594b282ad
23bb796e1647b28bf0348b154ae5c530b3d06148
refs/heads/main
2023-07-01T23:12:57.471423
2021-08-04T16:13:00
2021-08-04T16:13:00
378,192,593
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
"""conf URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "sayedakhaled@Sayedas-MacBook-Pro.local" ]
sayedakhaled@Sayedas-MacBook-Pro.local
a2e9ecc1e1b364984d2ae6af91f994c9009da707
c8442463988654eca96c6416a80fb81bb50ba729
/webserver/server.py
5319aff0e86461bdefca1a92af344fdfb9b21b14
[]
no_license
aframson/turn.pro
f0a4456162a12eae42d3946e1788a9c1ebe100e7
0522282e36ae2dcbf217e042e687d64f556d1d52
refs/heads/main
2023-05-04T13:29:10.231874
2021-05-19T16:57:04
2021-05-19T16:57:04
368,906,664
1
0
null
null
null
null
UTF-8
Python
false
false
218
py
from flask import Flask,render_template import os app = Flask(__name__) @app.route('/') def Todo(): return render_template('index.html') if __name__ == '__main__': app.run(debug = True)
[ "noreply@github.com" ]
noreply@github.com
a536fb3af76e08275de040121e3c605d680ac201
5f75ce091afce6902fe2ad7d500e979579861b30
/apps/story/tests/test_models.py
e21d49ed099d173fd09e926cf207a4ae915a0269
[]
no_license
patate-et-cornichon/patateetcornichon-api
c917eecb208a89a60c08bcd5ed7bf96e163c4f8d
617f6c990845d233efa64c9f0b309f5afef17590
refs/heads/develop
2022-12-14T02:58:48.724520
2019-08-10T21:21:52
2019-08-10T21:21:52
97,878,474
3
0
null
2022-12-08T05:47:41
2017-07-20T21:08:29
Python
UTF-8
Python
false
false
2,366
py
import os import pytest from django.core.files.uploadedfile import SimpleUploadedFile from django.forms import model_to_dict from django.utils.html import strip_tags from django.utils.text import Truncator from apps.account.models import User from apps.story.tests.factories import StoryFactory from ..models import S...
[ "me@kbarralon.com" ]
me@kbarralon.com
26c8a0b64e7d7cd923089885b32824ea3c70e05b
3d2f5c005bbf4b4194fc105b9c2492d2bd09109c
/dynamic_scraper/utils/processors.py
bd0c67b62fb18e5f462ab21b7c780165b1adcc79
[]
no_license
mtaziz/django-dynamic-scraper
e9a51a3b95a84767412df5edb9806dae5bdb69e1
87ae65ec97a405e03e1c2493637581bfe2545410
refs/heads/master
2021-01-22T01:43:55.587001
2016-01-07T09:43:51
2016-01-07T09:43:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,393
py
#Stage 2 Update (Python 3) from __future__ import unicode_literals from builtins import str import datetime from scrapy import log def string_strip(text, loader_context): if not isinstance(text, str): text = str(text) chars = loader_context.get('string_strip', ' \n\t\r') return text.strip(chars) ...
[ "Holger.Drewes@googlemail.com" ]
Holger.Drewes@googlemail.com