blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b20ab0b23ca75e102d3f7c1bd8017bf3ac1b485 | 22dcbf9595c28279b681caac26e43113ce75de5c | /automl/cloud-client/import_dataset_test.py | 35d23edc7e8fc745ed598a895c037a49b9cc7f90 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jerry-enebeli/python-docs-samples | 2e61672e9819405733c94ef824ba0b0f92b3e930 | 0d78724126ce25dd6203cfd2ee3467b88e5c27b9 | refs/heads/master | 2022-12-12T18:05:16.899492 | 2020-09-01T22:35:40 | 2020-09-01T22:35:40 | 292,189,370 | 1 | 0 | Apache-2.0 | 2020-09-02T05:39:23 | 2020-09-02T05:39:22 | null | UTF-8 | Python | false | false | 1,497 | py | # Copyright 2020 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, s... | [
"noreply@github.com"
] | jerry-enebeli.noreply@github.com |
d5829bec6fa9c5cee52ea9965d6461ac7b09ae03 | b9aabb13870b3707609fd2ea117870c2ad40c14b | /src/train/candle_accl_trn_02_from_scratch.py | ba6158c445418add3d902997fb9e7c37e495eea4 | [] | no_license | adpartin/pilot1 | d88d2af7d15df68780ab2f82169897a9c388a2fd | c99f32052fab0de210fd200b43194b19088dc3a7 | refs/heads/master | 2023-04-14T22:30:33.339975 | 2023-04-10T23:36:34 | 2023-04-10T23:36:34 | 160,101,290 | 1 | 0 | null | 2022-12-08T02:59:53 | 2018-12-02T22:10:10 | Jupyter Notebook | UTF-8 | Python | false | false | 7,571 | py | from __future__ import print_function, division
import warnings
warnings.filterwarnings('ignore')
# from comet_ml import Experiment
import os
import sys
from pathlib import Path
import argparse
import datetime
from time import time
from pprint import pprint
from glob import glob
import sklearn
import numpy as np
im... | [
"apartin@lambda-quad.cels.anl.gov"
] | apartin@lambda-quad.cels.anl.gov |
5954efaab0e577db693e12d13b5b277dff8f5fa3 | 836d1dc6545e60caffc7bb557e1584311a53d131 | /dice_ml/dice.py | 144523439fc7f8be305c5c0825ef4ce5d504c9c1 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | shyamalschandra/DiCE | 223f6be0c6435f9b08a4522501a0b2a6b47bd3ed | 1fcc1c927bcafb10ce1d68a11a1b070daeeacd1e | refs/heads/master | 2021-05-20T10:51:03.646302 | 2020-03-28T18:27:15 | 2020-03-28T18:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | """Module pointing to different implementations of DiCE based on different frameworks such as Tensorflow or PyTorch."""
import tensorflow as tf
class Dice:
"""An interface class to different DiCE implementations."""
def __init__(self, data_interface, model_interface):
"""Init method
... | [
"raam.arvind93@gmail.com"
] | raam.arvind93@gmail.com |
603a486b8c2ae434c0dd625d965053eee0423d48 | ba02e8e461d47069ce6ae016b605cf65d32e19d3 | /chat.py | b7da85cce7904e33ce4ec81e3bde1e581dca99da | [
"MIT"
] | permissive | Heroadn/AwesomeChat | 6c1508b4bd71019e543553ecec0315f107c5ffc8 | 8215913eb2131494806ab5df5b2af17b0e2ab04d | refs/heads/master | 2020-07-05T08:45:55.011399 | 2019-07-21T00:53:08 | 2019-07-21T00:53:08 | 202,595,168 | 1 | 0 | null | 2019-08-15T18:52:42 | 2019-08-15T18:52:41 | null | UTF-8 | Python | false | false | 118 | py | import sys
reload(sys)
sys.setdefaultencoding("utf-8")
from app import app
if __name__ == "__main__":
app.run()
| [
"thiago@desenvolvedor.tech"
] | thiago@desenvolvedor.tech |
c3184ea5650eb177afb8206df2c615c1d7a52517 | 99e88a8c8b7f252ccbc5a694392cd0f1220e6b8c | /make_random.py | 27fd517556d7ef9c5382a551cef12975b4c83ea5 | [] | no_license | nitishjain2007/Author_Verification | 6a143a7dff11b8b78d22c82cd5c8f095bb54c23f | c13d40c10488e6c99df5423beb155fad9f792b4e | refs/heads/master | 2021-01-10T05:44:04.312269 | 2016-03-01T22:55:17 | 2016-03-01T22:55:17 | 52,915,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | import os, sys
import random
import shutil
import sys
reload(sys)
path = os.getcwd()
data_file = path + "/Data/Dataset/data.txt"
label_file = path + "/Data/Dataset/lables.txt"
data = [line.rstrip('\n') for line in open(data_file)]
labels = [line.rstrip('\n') for line in open(label_file)]
os.mkdir(path + "/Data/Dataset/... | [
"nitishjain2007@gmail.com"
] | nitishjain2007@gmail.com |
186adaf55008fdd7e7913aaa6ec5e5ff32402a20 | 70d5ac89833250f642737cfd52c2e5977ada94f7 | /Servidor/Flaskr/src/flaskr.py | 9c6b424ef1d63676629cb7a1f8ca86594fcb90e1 | [] | no_license | Plozano94/CupulaCiclope | 7b41d3fd0fe3e938a6aba104dcb9b64475d39229 | 4e22ee70210916881950bc7010e75819a21a31f8 | refs/heads/master | 2020-04-15T15:21:39.600058 | 2017-03-28T09:20:14 | 2017-03-28T09:20:14 | 46,656,430 | 0 | 1 | null | 2017-03-28T08:26:34 | 2015-11-22T10:53:50 | Python | UTF-8 | Python | false | false | 8,292 | py | #! /usr/bin/env python
# all the imports
import servidorConf as sc
import threading
import sqlite3
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash, Response
from contextlib import closing
import serial
import subprocess
import os,sys
from functions import system
impor... | [
"plozano94@gmail.com"
] | plozano94@gmail.com |
7210089d7186b085a99cad32a2ccc8dd3638694f | 03fd908d77eb4f02316ba7fb2f851f7317bba1cd | /upload/models.py | 374f87a62b5e061ab3e8bcd6a9f30d5d039abdc9 | [] | no_license | amalmajeed/miniproject-Unfinished | 110406297104766d96c421a2d5846839187bc451 | 826ea030f06fb302c62ef1fac751fff3464b5c7d | refs/heads/master | 2021-01-18T03:24:58.624529 | 2016-03-25T16:25:53 | 2016-03-25T16:25:53 | 54,554,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | from __future__ import unicode_literals
from django.db import models
class stud(models.Model):
name=models.CharField(max_length=200)
course=models.CharField(max_length=200)
branch=models.CharField(max_length=200)
admno=models.CharField(max_length=200,unique=True)
validtill=models.DateField()
dateofbirth=m... | [
"amalmajeed7@gmail.com"
] | amalmajeed7@gmail.com |
4b64459424dc5911815eba2ab4a4c279f47f53b4 | 5d8414fcdc20acb352077d081bfddfe00b0e0829 | /Implementation/command_line/insert_new_deliveryStock.py | ec1b6bfbb4518a1491b0332205d9cd06fbbe8e3c | [] | no_license | 31062/COMP4Coursework | 652c32b34cc22d965261cbe58ef7e549f3ac6537 | 7b974f717a57b2e66eec0fd59e0c0ff940f9ab86 | refs/heads/master | 2021-01-22T13:31:47.558926 | 2015-04-29T09:28:18 | 2015-04-29T09:28:18 | 24,451,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | import sqlite3
def insert_deliverystock_data(values):
#open/create new database
with sqlite3.connect("pub_stock.db") as db:
#make the cursor
cursor = db.cursor()
#create sql
sql = """insert into DeliveryStock(DeliveryID,StockID) values(?,?)"""
cursor.execute(sql... | [
"31062@longroad.ac.uk"
] | 31062@longroad.ac.uk |
886d0997531024402470f77c621befe7e97b1e63 | c64d6d1fce81212965b1df7d4f4d4e72f218243e | /dot.py | 4b4b054e57b178f594ca931bb299f515610ea5a3 | [] | no_license | saipoojavr/saipoojacodekata | 384b0aa19f29c8b66f9498ebfbdf162cda4ddc97 | 3e38f1f06c4348f4262f654526c86d64e6893029 | refs/heads/master | 2020-05-23T01:01:54.615085 | 2019-12-06T15:29:54 | 2019-12-06T15:29:54 | 186,580,757 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | astr=str(input())
print(astr+'.') | [
"noreply@github.com"
] | saipoojavr.noreply@github.com |
3cbcf3f2726f69789da88a8cad54a19b8a78d701 | 5dd95ea351025267628c17ec11429e7e5b92d431 | /ksp_mission_logger/settings.py | 68f63c458512e4d98414d1ff46241bdb30bdf0d7 | [
"MIT"
] | permissive | DeepSpace2/ksp-mission-logger | d2e35d7d4f951f55f84f45ecfd2dbeef50a46f23 | ab5ce4fc4fd81d7fb69b9a1c3a3cad23949387df | refs/heads/master | 2020-12-31T04:42:30.653607 | 2016-05-13T11:20:53 | 2016-05-13T11:20:53 | 58,260,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | """
Django settings for ksp_mission_logger project.
Generated by 'django-admin startproject' using Django 1.9.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
i... | [
"deepspace2@users.noreply.github.com"
] | deepspace2@users.noreply.github.com |
231dea914b42c030f614204b1d325eac9b984313 | 9271eb221f162963b2898474b002141b69146f7c | /tor/base/DieRollResult.py | 78b607258328856df8a148bdf9d4d25779e2f7e1 | [] | no_license | MathiasGartner/TOR | 15215d487ba39da9f0add7281dfe6e32ee296e2a | 040b3a5280d59965d98b97fee1719e519cbef2fd | refs/heads/master | 2023-06-24T00:38:49.649247 | 2023-06-19T20:17:43 | 2023-06-19T20:17:43 | 254,355,284 | 0 | 0 | null | 2020-04-15T08:42:21 | 2020-04-09T11:41:22 | Python | UTF-8 | Python | false | false | 381 | py |
import json
class DieRollResult:
def __init__(self, found=False, result=-1, position=None):
self.found = found
self.result = result
self.position = position
def __str__(self):
return "<DieRollResult: (found={}, result={}, position={})>".format(self.found, self.result, self.pos... | [
"mathiasgartner@gmx.at"
] | mathiasgartner@gmx.at |
a2c934ac353581957bb68e20d41fd2e838ccd25e | f6fe194c520fcfe8f99d1e452988e47a1ec30525 | /venv/bin/pip | 200de81d5f7a1ab0fa2053a6f72ce38a3df66257 | [] | no_license | zupeiza/flask-blog | ce2056a0e0d4026b56e458cbfa12025cf951a3d4 | 9735c5caae438ddaa2715bd34b074eb179da7919 | refs/heads/master | 2016-08-08T17:38:51.907346 | 2016-03-21T12:47:14 | 2016-03-21T12:47:14 | 54,382,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | #!/home/zupe/ZuPy/flask-blog/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zupeiza@gmail.com"
] | zupeiza@gmail.com | |
99d2820ce15d04ac923852d6a481ebf37cd75680 | 145991b6ba5ff52d3f519ad262233804a61068f3 | /transformer/pre_warm.py | 8cd2a82936d7864edf65cb568652bd4d10245653 | [] | no_license | FuPeiJiang/summarization | 21a99703d3a89589863d297ffb6f748deb862d25 | d3afd14bf257ccbff2fae2077e8df87e706de4c1 | refs/heads/master | 2023-02-19T20:24:29.701764 | 2021-01-17T14:52:20 | 2021-01-17T14:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | import torch
from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("sshleifer/distilbart-cnn-12-6")
summarization_model = AutoModelForSeq2SeqLM.from_pretrained("sshleifer/distilbart-cnn-12-6")
ner_model = AutoModelForTokenClass... | [
"j.zhao2k19@gmail.com"
] | j.zhao2k19@gmail.com |
ca6c8528b0f01a18a40ee1adcd9ade945136db6d | 4ff4d0a84eb3a63e5a7b685119c87aed4ac2382f | /lab/lab01/lab01.py | 43a167abf3504d62e27f1212a1a0107367dbf523 | [
"Apache-2.0"
] | permissive | MessiahChen/CS61A | 7743b99ceee98ea10c93d84ac47cbb46b39e7951 | 2552a08086323561dbb0d13a9550b7ccbebb6fc7 | refs/heads/master | 2020-08-23T00:17:47.863013 | 2020-07-25T13:56:56 | 2020-07-25T13:56:56 | 216,504,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | """Lab 1: Expressions and Control Structures"""
def both_positive(x, y):
"""Returns True if both x and y are positive.
>>> both_positive(-1, 1)
False
>>> both_positive(1, 1)
True
"""
return x>0 and y > 0 # You can replace this line!
def sum_digits(n):
"""Sum all the digits of n.
... | [
"361733357@qq.com"
] | 361733357@qq.com |
4045d9c0e8eb149d14cb7dfaee23209a400ff120 | ea2abf208442ef99603c80ce3fd3b479606f9547 | /cm/register_cm.py | 0ff6d759f18b9c66ca78a48ee960ea93eae00798 | [
"Apache-2.0"
] | permissive | HotMaps/renovation_scenarios | e8aabddd72313121926c8551237a4e55047fe825 | 6860897227ee74f3e76c81ab7932937a259b8044 | refs/heads/master | 2022-05-02T03:27:51.207929 | 2019-01-16T14:00:36 | 2019-01-16T14:00:36 | 175,600,348 | 0 | 0 | NOASSERTION | 2021-03-29T18:59:17 | 2019-03-14T10:33:05 | Python | UTF-8 | Python | false | false | 1,001 | py | #!/usr/bin/env python
import logging
import json
import time
from app.api_v1.transactions import register
LOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -30s %(funcName) '
'-35s %(lineno) -5d: %(message)s')
LOGGER = logging.getLogger(__name__)
def start_runner():
def start_loop():
... | [
"lesly.houndole@crem.ch"
] | lesly.houndole@crem.ch |
e658bf448865024182e1f4fcc107da7498d979d6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_sponging.py | 3002cc59058a485eaef0fe654fc8482c1eaff6ca | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
#calss header
class _SPONGING():
def __init__(self,):
self.name = "SPONGING"
self.definitions = sponge
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['sponge']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
eb5007714d3e169fc67ff7de612d97edbdde15ae | ca805265bbc8d9b3f5ccb8dd343524843fc0f776 | /scaling/commands/bench_results_processer.py | d94add1e14ef3dfdd535d410b4a504c6f1e7200a | [] | no_license | alenzhao/QIIME-Scaling | 8dc7b4b99da404c016e59e48197b8f938df1cf14 | 29408a3a0ff2a74039f78a04fff831dabb23fa1a | refs/heads/master | 2021-01-12T10:46:22.961035 | 2016-06-18T16:56:48 | 2016-06-18T16:56:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | #!/usr/bin/env python
from __future__ import division
__author__ = "Jose Antonio Navas Molina"
__copyright__ = "Copyright 2013, The QIIME Scaling Project"
__credits__ = ["Jose Antonio Navas Molina"]
__license__ = "BSD"
__version__ = "0.0.2-dev"
__maintainer__ = "Jose Antonio Navas Molina"
__email__ = "josenavasmolina@... | [
"josenavasmolina@gmail.com"
] | josenavasmolina@gmail.com |
0d3e7da7d35dc0e85ff5002ba1b008ceca4e07f2 | d489eb7998aa09e17ce8d8aef085a65f799e6a02 | /lib/modules/powershell/situational_awareness/network/powerview/share_finder.py | b7eb7430bb04ecd40ca90099bbefd0f114040073 | [
"MIT"
] | permissive | fengjixuchui/invader | d36078bbef3d740f95930d9896b2d7dd7227474c | 68153dafbe25e7bb821c8545952d0cc15ae35a3e | refs/heads/master | 2020-07-21T19:45:10.479388 | 2019-09-26T11:32:38 | 2019-09-26T11:32:38 | 206,958,809 | 2 | 1 | MIT | 2019-09-26T11:32:39 | 2019-09-07T11:32:17 | PowerShell | UTF-8 | Python | false | false | 6,300 | py | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Find-DomainShare',
'Author': ['@harmj0y'],
'Description': ('Finds shares on machines in the domain. Part of PowerView.'),
'Background' : True,
... | [
"noreply@github.com"
] | fengjixuchui.noreply@github.com |
f771c890fb42345b62e32a574e8cb81ebefa1c40 | 75d921f808ef53a5f1c6165ee6298001cbc36c68 | /src/settings.py | c85d82ac097c53ed08b10d8e2f2940a6ee2ccecf | [] | no_license | shiv-konar/NeoTicketinSystem | 7181694de0cb49add1f18605c4b96c1e6ec7600a | 8b5b748f457cfaf104b78adc48bcead544f81369 | refs/heads/master | 2021-01-19T03:35:32.099376 | 2016-07-11T22:20:55 | 2016-07-11T22:20:55 | 63,106,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | """
Django settings for src project.
Generated by 'django-admin startproject' using Django 1.9.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# Bui... | [
"Balajipadmavati1"
] | Balajipadmavati1 |
fa1ad882fd1595df3715ec3227356ed30c4c6017 | fc212767c6c838360b62a3dcd8030a1dfcbf62fc | /muddery/utils/quest_handler.py | 7d19069f731f83b3001d9318edf55756332a4a5f | [
"BSD-3-Clause"
] | permissive | caibingcheng/muddery | 24d6eba76358621736e6a3d66333361239c35472 | dcbf55f4e1c18a2c69576fd0edcec4699c1519b9 | refs/heads/master | 2021-05-19T09:49:19.319735 | 2020-03-29T03:55:51 | 2020-03-29T03:55:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,984 | py | """
QuestHandler handles a character's quests.
"""
from django.conf import settings
from django.apps import apps
from django.core.exceptions import ObjectDoesNotExist
from evennia.utils import logger
from muddery.utils.builder import build_object
from muddery.statements.statement_handler import STATEMENT_HANDLER
from ... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
05fd07e5476139a62cfe20d31ba439fe918bee15 | 157e8683eaf13aa904f84243292f5d3dc4ba4360 | /Python_by_Example_Challenges/challenges_80to87.py | 6fb749914f7e1028b1bb9f49b79f471e74708754 | [] | no_license | MaryBobs/python | 0b5b45ec9ab21e786eba897f5a1b887adbb7f404 | 4cfaa6871ec87478c85cd105029282cb056c28c3 | refs/heads/master | 2020-12-02T23:26:45.926119 | 2020-01-06T09:30:44 | 2020-01-06T09:30:44 | 231,151,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | ###080
##name = input("Enter your first name: ")
##print("Your first name is:",len(name),"characters long")
##surname = input("Enter your surname: ")
##print("Your surname is",len(surname),"characters long")
##fullname = name + " " + surname
##print("Your name:",fullname,"is",len(fullname),"characters long")
##
###081
... | [
"55357115+MaryBobs@users.noreply.github.com"
] | 55357115+MaryBobs@users.noreply.github.com |
93fb0eda0e72cecb65b7c8b4f7243a07cc3e3fdd | 639ed2d085bb4e7545ee5b87292205e6539a5e4b | /patient/models.py | db751a3a5090aa50d9f950e0a9929ea4288fab81 | [] | no_license | Ntonsite/crud-django | 71d5adf329f4ce71bfea8fc3c649527db74e1b3f | 01edeca5858cb76e6445e7d6561cf0d4906e1c95 | refs/heads/master | 2022-12-13T02:57:25.972807 | 2020-09-09T07:12:38 | 2020-09-09T07:12:38 | 293,169,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Patient(models.Model):
patientName = models.CharField(max_length=100, default='patientName')
address = models.CharField(max_length=100, default='sample')
age = models.CharField(max_length... | [
"mwamlimantonsite@gmail.com"
] | mwamlimantonsite@gmail.com |
4e20a61a6a684ff2060af7de95bbd5e9ab90b192 | f7a3a997b18a4d96497cdbd4a95c15e6d14fb1c8 | /htc/__init__.py | c1b18b627082cea851e7c596c61459183ef27f75 | [
"MIT"
] | permissive | IMSY-DKFZ/htc | 758f6bde332326aeca0e95b3aa1835c29a0b1962 | c73eeaf785c5cd74ec62022e70c94cece7d1eb80 | refs/heads/main | 2023-08-17T08:18:34.837275 | 2023-08-02T08:56:37 | 2023-08-02T08:56:37 | 495,827,768 | 14 | 4 | NOASSERTION | 2023-09-11T05:14:03 | 2022-05-24T13:08:29 | Jupyter Notebook | UTF-8 | Python | false | false | 12,901 | py | # SPDX-FileCopyrightText: 2022 Division of Intelligent Medical Systems, DKFZ
# SPDX-License-Identifier: MIT
import importlib
import sys
from typing import TYPE_CHECKING
from lazy_imports import LazyImporter
# Cannot be imported lazily because they would be misinterpreted as a module by LazyImporter
from htc.settings... | [
"j.sellner@dkfz-heidelberg.de"
] | j.sellner@dkfz-heidelberg.de |
7d5a843b7ccd6ec857e04b021fd7d03a8f19f117 | aa51504503fc039f504b3421003e36ac974cacea | /3. HTTP Protocol Exploit/http_system_inspection.py | ae5b4524ecde7f00528577ebe25170ec095cb4e7 | [] | no_license | gasbugs/PySchool01-PythonHackingProgramming | 25701e6e4dc2d8ca8ca67d982cbaffc85dc95869 | 8bd71ce0701e8c01bd03f76a6ffae41dac849427 | refs/heads/master | 2021-08-24T06:30:55.026890 | 2017-12-08T11:44:17 | 2017-12-08T11:44:17 | 113,568,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import requests, copy
host = "http://172.30.1.8"
uri = "/changeuser.ghp"
org_headers = {
"User-Agent" : "Mozilla/4.0",
"Host" : host.split("://")[1],
"Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language" : "en-us",
"Accept-Encoding" : "gzip, deflate",
... | [
"isc0304@naver.com"
] | isc0304@naver.com |
73fccea44018f9ce0bbec825b01759800db7f0c4 | 8d5f3ec2d50f1cb7d694a1016105bcf37b3dc829 | /bearladder.py | a9f2c165e12fddeff8595b7d3a007f4bb6a52ca0 | [] | no_license | SushantSriv/CODECHEF_python-codes | acbbabb33d1481d32f3b70b517927631703fa43f | a4524356e8d19ba1206e1688f9e307c7d462c213 | refs/heads/master | 2021-09-21T15:32:42.777321 | 2018-08-28T15:33:49 | 2018-08-28T15:33:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | for i in range(int(input())):
a,b=list(map(int,input().split(" ")))
if(a%2==1 and a<b):
if(abs(b-a)==1 or abs(b-a)==2):
print("YES")
else:
print("NO")
elif(a%2==0):
if(abs(b-a)==2 or b==a-1):
print("YES")
else:
print(... | [
"noreply@github.com"
] | SushantSriv.noreply@github.com |
6e8855e96569e6e5c38f9d5ad1ce4910d477b9c4 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/models/_models_py3.py | 4007eb90a0326a819655f715f93c6d9bbbc685cf | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 206,121 | py | # coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
96c76ae94d06dfc58e6363603425d800499d1a75 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/ml/azure-ai-ml/azure/ai/ml/identity/_internal/pipeline.py | 66a31affbd4140ddaf931c75a2cb7069bbb5a312 | [
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",
"ODbL-1.0",
"GPL-3.0-only",
"Z... | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 2,585 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from azure.ai.ml._user_agent import USER_AGENT
from azure.core.configuration import Configuration
from azure.core.pipeline import Pipeline
... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
9b09e3f842d2de8df5974a6f1edd7a94e2d5200f | 460405d5666b79c088c9a473b3be4d85d1950fe1 | /accounts/migrations/0003_auto_20201101_2302.py | bebd60e8388330614edd6adfbd97578f548a338e | [] | no_license | TaPPa45/fillbooks | 236d08d1caf08adf02116166acf41ac3967c7a36 | 68f6af413e4569ec57ea625aa8af0d07d067f9b0 | refs/heads/main | 2023-01-11T02:49:31.134859 | 2020-11-15T16:07:40 | 2020-11-15T16:07:40 | 381,718,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 2.2.12 on 2020-11-01 20:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_auto_20201011_1633'),
]
operations = [
migrations.AlterField(
model_name='branch',
name='balance',... | [
"dimadev@dimankab1.fvds.ru"
] | dimadev@dimankab1.fvds.ru |
dd228ee5b5c345d7ead8c12e93e2c65210cece10 | da1465fa5b0dd06d2674a50b908ac6eb65ac07b4 | /formapi/tests/calls.py | aa5bd9f8038c336ac7e3621ba133fa94c0290934 | [
"MIT"
] | permissive | hannseman/django-formapi | b135577547d315a6530608397a74b60a2c7c1aa1 | 610ea55f4525f47a89ffb5114bb98fa740546da0 | refs/heads/master | 2021-01-17T22:30:21.113740 | 2015-04-29T15:02:22 | 2015-04-29T15:02:22 | 11,033,872 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,867 | py | from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.utils.translation import ugettext as _
from formapi import calls
from formapi.api import API
class AuthenticateUserCall(calls.APICall):
"""
Authenticate a user
"""
username = f... | [
"hannes@5monkeys.se"
] | hannes@5monkeys.se |
1202d3042e2eaac961b709774bc2bb25241c57a9 | 8b5950752c10ae00c90a0aab50190640ab4bd946 | /pyramid_restful/routers.py | 2f5f7f191ec3afc32437bdba26e690f6d7387a56 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sjschmidt44/pyramid-restful-framework | 18aae207e56db4baca13c2ffdb88b01e66a3949a | d0098a947474223a99b595c4002993cc9c12c837 | refs/heads/master | 2020-03-18T13:10:21.350297 | 2018-05-24T20:29:06 | 2018-05-24T20:29:06 | 134,765,135 | 0 | 0 | null | 2018-05-24T20:26:31 | 2018-05-24T20:26:30 | null | UTF-8 | Python | false | false | 7,602 | py | import itertools
from collections import namedtuple
from .exceptions import ImproperlyConfigured
__all__ = ['ViewSetRouter']
Route = namedtuple('Route', ['url', 'mapping', 'name', 'initkwargs'])
DynamicDetailRoute = namedtuple('DynamicDetailRoute', ['url', 'name', 'initkwargs'])
DynamicListRoute = namedtuple('Dynam... | [
"danpoland84@gmail.com"
] | danpoland84@gmail.com |
b950cea9bfca52f532a55cad63ebec8f1f7c442b | fed7697f8be852f836240215ae732fdeb85bde6f | /poems/info_origin.py | 562203198a21feaebd23f137799aeaa8d13571cc | [] | no_license | luckyBoy93/bar_poem | 1243c45f4448e94746f5d14717ae10a37d94dfa5 | 0dc533383a1c45771a6016d2235c9afc387be37a | refs/heads/master | 2020-01-23T21:18:03.661921 | 2016-11-23T10:50:54 | 2016-11-23T10:50:54 | 74,567,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | # -*- encoding: utf-8 -*-
import pymysql
import re
conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='', db='bar_poem3', charset='utf8', autocommit=True)
curDB = conn.cursor()
cursor = conn.cursor(pymysql.cursors.DictCursor)
curDB.execute("SET NAMES utf8")
def get_stop(tt):
m = re.search("(\... | [
"matveysodboev@gmal.com"
] | matveysodboev@gmal.com |
0337df5b789db070f38e4d2cd0d34058d82bcc49 | bfd61850148f08700f7b1b11e054603256c73d78 | /quick/__init__.py | a32a659853fcfc32e8b50140b8d11f5be89c923a | [] | no_license | zero-miao/alg_sort | d1e41aa39bda34356405032d400427315220e630 | 21a721f89f63822afd08b40a1af77a7e10dc0599 | refs/heads/master | 2020-07-13T15:32:10.286540 | 2019-08-29T07:34:31 | 2019-08-29T07:34:31 | 205,106,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | def quick_sort_recursive(lst, start=0, end=None):
""" 快速排序
时间复杂度:
最优: n*log(n), 假设其每次一分为 2(j 在正中间), T(n) = 2*T(n/2)+n => T(n) = n + 2*n/2 +...+ log(n)*n/log(n) = n*log(n)
最差: n^2, 假设每次仅减少一个(j 在最边上), T(n) = T(n-1) + n => T(n) = n + n-1 +...+ 1 = n^2
比较次数:
最优: n*log(n), 每次循环的时候, 循环长度就... | [
"ao.mei@gaeamobile.com"
] | ao.mei@gaeamobile.com |
b88b3654f353b709ae058fa2b3a9941510b100dd | edbf1231cd8f6dded5c405a63711b9645b8031f2 | /venv/Scripts/pdf2txt.py | 2b1804fa48c4e4fa18cbd60cb246625962f8d0c7 | [] | no_license | c0mmand3r3/DataScience | 45e24138aaf23cb77176a9f91044f23798dcf4da | cda4d5aabff038a9f288a7f18e4302ee6b8356ab | refs/heads/master | 2020-04-10T00:39:05.637051 | 2019-02-15T10:00:26 | 2019-02-15T10:00:26 | 160,691,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,060 | py | #!C:\Users\DELL\PycharmProjects\DataScience\venv\Scripts\python.exe
"""
Converts PDF text content (though not images containing text) to plain text, html, xml or "tags".
"""
import argparse
import logging
import six
import sys
import pdfminer.settings
pdfminer.settings.STRICT = False
import pdfminer.high_level
import ... | [
"anishbasnetworld@gmail.com"
] | anishbasnetworld@gmail.com |
f98a8e3d28124d57f3295b6d5e9ff8b8bded75ed | a7c02348f6312eda84b8100b17a136279dcb5246 | /ecommerce/migrations/0009_auto_20201117_0616.py | ec00d61f4929cb5ad8a2198bc177e9d7724f5f1b | [] | no_license | Emmanuel-Aggrey/ecom | 87538d61d99b2db0a55d62cd108b57dc0d514154 | ffbc9436763f1c4f271a75bfb983507dfd6564ee | refs/heads/master | 2023-02-02T01:15:21.266305 | 2020-12-21T14:02:21 | 2020-12-21T14:02:21 | 297,808,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 2.2.10 on 2020-11-17 06:16
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ecommerce', '0008_auto_20200929_0055'),
]
operations = [
migrations.AlterField(
model_name='product',
... | [
"aggrey.en@gmail.com"
] | aggrey.en@gmail.com |
e1a369dc2579d3d7f7b2687df356ca92d408e5ca | 6699b8944b71e86725fdc17bb5f9cd69e254b4eb | /leetcode/1448.count-good-nodes-in-binary-tree/solution.py | 93c087524ccb57bbc8d3bb206aa6f474859f9b57 | [] | no_license | jadesym/interview | 6099e663090408f548b4f4b0b17ae90bb60a7d46 | 5b6eecedfa1c7e496bcfe852e2d3896e993ff16e | refs/heads/main | 2023-01-07T21:56:59.063542 | 2022-12-30T20:13:34 | 2022-12-30T20:13:34 | 41,118,644 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def goodNodes(self, root: TreeNode) -> int:
startMax = -(10 ** 5)
return self.dfs(root, star... | [
"kfu@kfu-mn1.linkedin.biz"
] | kfu@kfu-mn1.linkedin.biz |
a653ca06c4441385d27dfd1f9ef0fa271a74121a | 0c06a49909784c060db3522d3ab26e18429ae685 | /003-discrete_sine_transform.py | 20f7bf697f17e3ce6f312f48bfce2392223e36d5 | [] | no_license | TheBlueChameleon/Py_Advanced_Codes | 5ba97cc24de409a4ad6c80df6949cab7b4eb9df3 | 98247be007cbfcb9f6ea2a7e2d905cf4e0aeb3ec | refs/heads/main | 2023-06-09T16:15:52.852921 | 2021-06-19T08:49:14 | 2021-06-19T08:49:14 | 338,657,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | import scipy
import numpy as np
import matplotlib.pyplot as plt
N = 6280
P = 4
X = np.linspace(0, P * np.pi, N)
Y = np.sin(np.pi * X) + .3 * np.sin(5 * np.pi * X)
A = scipy.fft.dst(Y, norm="ortho")
W = [k / (P * np.pi) for k in range(len(A))]
spectrumLimit = 30
fig = plt.figure( figsize=(5, 10) )
drw = fig.add_subp... | [
"stefan_hartinger@gmx.de"
] | stefan_hartinger@gmx.de |
c336eb20b02286f93156c8da834136555aee0286 | 60eeca91a261eedb35f866645fe037e40f9a0ee7 | /test_case/pb2/equity/equityservice_pb2_grpc.py | 74ee7571beebe88b1cbc809b45dea4a14b69e557 | [] | no_license | jiaheqi/python-api-test | ca09b31bc92fbd1df97850c53700a461f50909e1 | 6c4204579f59dbfaa2659dc76a302d9e286112d5 | refs/heads/master | 2020-06-21T04:40:22.482546 | 2019-07-24T10:03:26 | 2019-07-24T10:03:26 | 197,346,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,424 | py | # -*- coding: UTF-8 -*-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import equityservice_pb2 as equityservice__pb2
class EquityServiceStub(object):
"""
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.open = c... | [
"jiaheqi@hualala.com"
] | jiaheqi@hualala.com |
38590fcb54bc8781c91f196e3e5517bfe2b08f66 | 8039fd72bc4d7a7fc89ded9d63b47f020e9d95a5 | /app/core/management/commands/wait_for_db.py | 7add791e22ad05de1029347de5eb7839ecafc151 | [
"MIT"
] | permissive | vturbin/recipe-app-api | 543b5439f73299c3db12638c18df51adcc740108 | edec6371863ea7bd3aec95f6472fa66e0db5386b | refs/heads/main | 2023-01-16T06:55:29.750405 | 2020-11-22T17:06:21 | 2020-11-22T17:06:21 | 307,793,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | import time
from django.db import connections
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand
class Command(BaseCommand):
"""Django command to pause execution until database is available"""
def handle(self, *args, **options):
self.stdout.write('Waitin... | [
"v.turbins@smart-iot.solutions"
] | v.turbins@smart-iot.solutions |
cecdcb7982425da46c4c32df796eb8ef8076c3f2 | e098e0498f61d0d9345b8ef711de7a43c423f2d9 | /app.py | 505ae03f82981ebceb9083341cae7fafd8ea6959 | [] | no_license | byronvickers/tapioca | e24fc07ea908a9b7fef2f04e59d71e2b304bd933 | e73f9d64e9cd5982b80ae20d64df6f53b3ab4662 | refs/heads/master | 2020-07-30T10:16:56.967964 | 2016-11-13T17:26:50 | 2016-11-13T17:26:50 | 73,630,993 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,531 | py | # tmux attach
# pip install flask
# export FLASK_APP=app.py
# flask run --host=0.0.0.0
from flask import Flask, request, redirect, url_for, render_template, send_from_directory
import shutil, subprocess, logging
from itertools import product
from werkzeug.utils import secure_filename
import os, urllib
import requests
... | [
"ubuntu@ip-172-31-45-111.ec2.internal"
] | ubuntu@ip-172-31-45-111.ec2.internal |
f0bd5de1ea650b98a69f891dccd5526b09bff57e | bd47051178c9971321dd223ffdac84847db1bda7 | /PrisDilem/PrisDilemmaupdated.py | fb76c381818d1f876defe41f0c70883d816c6fc9 | [] | no_license | AriFleischer13/CSC15-Python | 184973f09ae26c1ec7e28f04488874728aaabff4 | 0c744da91d429b3010e10d738a373c5fb3e78562 | refs/heads/master | 2020-04-16T21:58:03.663602 | 2019-01-20T02:56:18 | 2019-01-20T02:56:18 | 165,947,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,980 | py | from random import choice
import itertools
Defect = 0
Cooperate = 1
class Agent:
def __init__(self, name, strategy):
self.name = name
self.strategy = strategy
self.history = {} # a dict, key is another agent, value is a list of events where self interacted with another agent
self.tot... | [
"AriFleischer@Aris-MBP.fios-router.home"
] | AriFleischer@Aris-MBP.fios-router.home |
d3482bafbf83b25f3fc0815b98edbcb28c6babe8 | 1b13710d7b3e6ba59cd8fd52e8ad5a3d1432f497 | /test_case.py | fa1b60812a11abe5c45a0f803437f35008871e9a | [] | no_license | tvandort/tdd-p2 | dca59a4db5d5962bd9f9ee6915fc787996a505e1 | 6df5edf76a293ce5ae7911e84dc317997a3f929d | refs/heads/master | 2020-03-09T14:22:59.655166 | 2018-04-12T21:56:28 | 2018-04-12T21:56:28 | 128,833,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from test_result import TestResult
class TestCase:
def __init__(self, name):
self.name= name
def setUp(self):
pass
def tearDown(self):
pass
def run(self, result):
result.testStarted()
self.setUp()
try:
method = getattr(self, self.name)
... | [
"tvandort1@gmail.com"
] | tvandort1@gmail.com |
a0c8019736191cb3518c16db5aba3dd3c2efbe96 | f5ff90dbd999c52d2885efc2fa6d1c35a7380d28 | /Python Modules/Palindrome.py | 89eb5d49d6881477a9d823539daa35f44e6b3105 | [
"MIT"
] | permissive | MysticSaiyan/MITx-6.00.1x | 5b36249a4962b43539e04d0b2bcb55928a238e9c | 5b8e972399670f43fe25994cac7fa6a35a403b4f | refs/heads/master | 2021-08-20T08:47:20.733248 | 2017-11-28T16:45:40 | 2017-11-28T16:45:40 | 111,674,624 | 0 | 0 | null | 2017-11-22T12:03:11 | 2017-11-22T11:15:50 | Python | UTF-8 | Python | false | false | 369 | py | def isPalindrome(s):
def toChars(s):
s = s.lower()
ans = ''
for c in s:
if c in 'abcdefghijklmnopqrstuvwxyz':
ans = ans + c
return ans
def isPal(s):
if len(s) <= 1:
return True
else:
return s[0] == s[-1... | [
"pragz111@gmail.com"
] | pragz111@gmail.com |
a98c79f72d9b23ba1ca4450b0123d1e96e092bd4 | 70d7d4d8168233a0ab12fb5708412dd01c4487fe | /__str___ and __repr__/__str__test.py | 89ba75a1d73d11ab927a3a2c234f20b853da4b5a | [] | no_license | spetum/python_practice | 312134eadeb18ae8ffa5b592f1f7e9781c613efb | bccfbd2123dc866719f00603ccdbadc2b1920b67 | refs/heads/master | 2020-07-01T18:41:29.900282 | 2020-01-18T16:27:49 | 2020-01-18T16:27:49 | 201,259,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | class Car:
def __init__(self, color, mileage):
self.color = color
self.mileage = mileage
def __str__ (self):
return f'Color of car is {self.color} and has {self.mileage} miles.'.format(slef=self)
if __name__ == '__main__' :
my_car = Car('red', 3213)
print(my_car)
| [
"aesthetictask@hotmail.com"
] | aesthetictask@hotmail.com |
4c2902a924d3a9a14d643a543c10bb7afec70217 | e043f008aaec14e006051c7609748729a78bef90 | /tests/test_falconparser.py | e56ce14595d4071e3f0f9eb1c42050f17872770b | [
"MIT"
] | permissive | DamianHeard/webargs | 723f38789ae4be61247da2a94ab590e11c808da7 | 4bba0bb4ca7bef3d0c53fab8f9af632e9653b2ed | refs/heads/dev | 2021-01-18T00:25:58.792302 | 2015-11-09T02:07:52 | 2015-11-09T02:07:52 | 45,103,859 | 0 | 0 | null | 2015-10-28T10:05:39 | 2015-10-28T10:05:39 | null | UTF-8 | Python | false | false | 4,147 | py | # -*- coding: utf-8 -*-
import json
import pytest
import falcon
import webtest
from webargs import fields
from webargs.falconparser import parser, use_args, use_kwargs
def use_args_hook(args, context_key='args', **kwargs):
def hook(req, resp, params):
parsed_args = parser.parse(args, req=req, **kwargs)
... | [
"sloria1@gmail.com"
] | sloria1@gmail.com |
761272cafba7280e0e789a461deda19ce8598416 | f088119d9068c00fa66cacb1be844481239dc451 | /p13.py | aa2291cb82f75d5f7de07b90cc3d3200797d0422 | [] | no_license | thamilarasi43/thamilarasi | 7c9ba952d418ea0d2ccdcd70b10d3eacf46899b5 | 027bcd6f91164e3368f6633b4c79cd1a635a5300 | refs/heads/master | 2020-03-09T12:20:57.263416 | 2018-04-28T14:08:03 | 2018-04-28T14:08:03 | 128,783,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | n1=int(input("enter n"))
q=int(input("enter q"))
l=[]
l1=[]
for i in range(n1):
a=int(input("enter n val"))
l.append(a)
for j in range(q):
c=0
u=int(input())
v=int(input())
for i in range(u,v):
l1.append(l)
print(min(l))
| [
"noreply@github.com"
] | thamilarasi43.noreply@github.com |
35647717123a5bdd87ee9cecc764d41973a71528 | d04126f6572398d715c048800b1ad4b0e0c35d32 | /classifier.py | 221300947a7c1a4f1bd56c41ec7f76e05345cc7a | [] | no_license | ArisPapangelis/Food-intake-toolbox | 1fc63aac3dc2ac881ddd38eb9eeab746dcd8021a | 8ccfa90b1f2096b27491318332583f7ce0212889 | refs/heads/main | 2023-03-16T08:47:24.517738 | 2021-03-05T01:56:10 | 2021-03-05T01:56:10 | 335,093,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,240 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 6 17:38:11 2021
@author: Aris Papangelis
Script to train a supervised learning classifier
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn import preprocessing
from sklearn.model_selection import train_tes... | [
"36777816+ArisPapangelis@users.noreply.github.com"
] | 36777816+ArisPapangelis@users.noreply.github.com |
1ec0b0fa3ca62cec709674e27863288278930c91 | 2cc18381baf1cb13cd7cb2b20f9241b81775cf66 | /join.py | 91276675dcb26a09bb1c3aef11ed4f65d22baaa0 | [] | no_license | liza3641/PokemonGameClient | 226dafe51f5621770eb3ed2d7b4a6b3a4d5be0be | 0567c4ae469f5d2290374d1c300ab52bf6cd4ac0 | refs/heads/main | 2023-02-01T05:00:52.242579 | 2020-12-17T16:26:51 | 2020-12-17T16:26:51 | 318,370,820 | 0 | 0 | null | 2020-12-04T01:44:22 | 2020-12-04T01:44:21 | null | UTF-8 | Python | false | false | 3,856 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
from tkinter import *
import client_server
import random
import os
def join_main():
root = Toplevel()
root.title("JOIN") # 제목
root.geometry("640x480") # 가로 x 세로
root.resizable(0, 0) # 크기 변경 불가
currunt_path = os.path.dirname(__file__) # 현재 파일의 위치 반환
... | [
"dhtkdals1972@naver.com"
] | dhtkdals1972@naver.com |
f118e5471d0b71f954e6bd4e04a5883209a3e328 | 2466d0c361562f51169dd2b101cf2abd4fb4197f | /210127_test.py | 1ebc6541e933f1e8210068cb455d27b02f2d7546 | [] | no_license | SayaTakeuchi1010/refl1d | 360cff173eae87ae635e105cadc0b4ab05a618bb | f10762ce2d16ac6d2baa4a31b6e64505cbadf28c | refs/heads/master | 2023-05-01T13:19:58.707811 | 2021-05-21T22:46:19 | 2021-05-21T22:46:19 | 363,268,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | from refl1d.names import*
from numpy import mod, exp, arange, linspace
import math
Probe.view = 'log' #log plot
data_file_n ='C:/Users/saya6/Documents/NCNR/test/TiOx_2.3_trunc.refl'
instrument = NCNR.XRay(wavelength=1.54, Tlo = 1.4975, slits_at_Tlo=0.01, slits_above = 0.01)
probe = instrument.load('C:/Users/saya6/Docum... | [
"saya.takeuchi@nist.gov"
] | saya.takeuchi@nist.gov |
dfdcee5ef26549aad4dbd730b609c6310f235a99 | a3f3bcec45c6d27922aeb2f53b3d971be6da0aff | /list4.py | 27d29e38320f0bb6c7b1c4fdfb151a7912f224b8 | [] | no_license | arunshenoy99/python-assignments | 2a323b3d00a33b7bf8f7d859e1b26c749b2bd740 | 490da07a19ea233206d75e12a4b7ce31fe53a018 | refs/heads/master | 2022-04-17T09:48:58.514781 | 2020-04-07T19:48:37 | 2020-04-07T19:48:37 | 252,694,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # Python | Ways to find length of list
def length_normal(my_list):
count = 0
for el in my_list:
count += 1
return count
def length_fun(my_list):
return len(my_list)
my_list = ['1', '2', '3', '4']
print('Using normal method:{}'.format(length_normal(my_list)))
print('Using len function:{}'.fo... | [
"devarunshenoy99@gmail.com"
] | devarunshenoy99@gmail.com |
9146fd25e657112193413c9c94cfc2f46fec9414 | 110d75e6936c551c38668856656bcae7e9af5d08 | /evstats.py | 3c8abd781f935d6167796c3a82cbbf8c979640b7 | [
"MIT"
] | permissive | claireshort4/OEvent | fe463f60114ba44788dfa8d838e69bbdd3b0561a | 51cc9b4dab7e96160a31b9b451cf9c32bd014271 | refs/heads/master | 2023-03-22T15:40:41.228570 | 2021-03-12T21:07:25 | 2021-03-12T21:07:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import numpy as np
# get coefficient of variation squared; (< 1 means rhythmic; 1=Poisson, > 1 for bursty)
def getCV2 (isi): return (np.std(isi)/np.mean(isi))**2
# get local variation
# < 1 for regular/rhythmic, == 1 for Poisson, > 1 for bursty
# based on Shinomoto et al 2005
def getLV (isi):
s = 0.0
if len(isi) ... | [
"samnemo@gmail.com"
] | samnemo@gmail.com |
89d3186396baa0f5e7a3782aa285ac0dbd56d027 | 9a1a0b47b59e55e3f2043ad32d5d58455e69425d | /0708/repeticiones/ej113.py | 896abdd0ecd8dce9430c5332c13b4b92e6b06d17 | [] | no_license | piranna/asi-iesenlaces | dcabc0213791c04a8b6b4ccb850d5bda78292ae1 | cf35cbea732065e09a58604a93538a9b9dca875f | refs/heads/master | 2016-08-06T05:09:44.270637 | 2008-06-15T09:00:27 | 2008-06-15T09:00:27 | 32,416,588 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 397 | py | # -*- coding: cp1252 -*-
"""
$Id$
Ej 113
Pide un texto que no tenga mayúsculas. Si hay una letra mayúscula,
vuelve a pedir el texto
"""
texto = raw_input("Introduce una frase toda en minúsculas: ")
while not texto.islower():
# vuelve a pedir el texto si hay alguna mayúscula
texto = raw_input("Introd... | [
"morillas@f86dea77-7e2e-0410-97ea-a74e350978e6"
] | morillas@f86dea77-7e2e-0410-97ea-a74e350978e6 |
95ab244bbb47dafcd216738b20b3b9c82b00e6b3 | 5c33148acbdaeeae2e0570519e3009e96bca117c | /CAPANXIN/wsgi.py | 0c39949c23235cff917b85096da8c2decfc60865 | [] | no_license | Raisony/CAPAN | 875e04ed930fd74edd56173da2d424e3d80eed03 | bae76d3cd9907c6c57e6458d258b8aea2094295f | refs/heads/master | 2022-12-08T04:33:11.324775 | 2020-08-20T03:54:11 | 2020-08-20T03:54:11 | 288,899,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for CAPANXIN project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"s753242357@gmail.com"
] | s753242357@gmail.com |
a1bc023ef9ad5e453512141f2085d35f378c1e41 | 8d598fa67ea31b067f61df7553e5588e05ea1102 | /test2.py | 7f31567030e01354db450eab20b6bb62894654c7 | [] | no_license | pin034/olimpiada2020.py | 5f40dab54be0610edd14af0ea398d21abe76d1d7 | 81bee86b9142ff50fa188f5a693ea486ee2cb18d | refs/heads/master | 2023-03-04T11:41:41.548540 | 2021-02-17T08:39:25 | 2021-02-17T08:39:25 | 294,321,816 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | f = int(input())
e = int(input())
e = e+1
a = 0
b = 0
for x in range(f,e):
if x % 2 == 0:
a = a + x
else:
b = b + x
a = a - b
print (a)
| [
"noreply@github.com"
] | pin034.noreply@github.com |
cb012bebcabc0aebf3e733ef8ecfb058ae9b1ceb | fbe58a32edf598edb66afb1af7a54a174f590d5c | /Intro_Problems/fibonacci_last_digit.py | ab9eb977bf6767204ecf5f2188cf6ae6ba481316 | [] | no_license | viritaromero/Algo-and-DS | f70a8e6a02109a722f03c75208819bbd73693cb7 | be2edefc179811b1fa62395797a4447e7df3a70d | refs/heads/master | 2020-04-19T08:45:01.694996 | 2017-01-22T02:41:01 | 2017-01-22T02:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # Uses python3
import sys
def get_fibonacci_last_digit_naive(n):
fibs = [0,1]
for i in range(2,n+1):
fibs.append(fibs[-1]%10 + fibs[-2]%10)
# if n <= 1:
# return n
#
# previous = 0
# current = 1
#
# for _ in range(n - 1):
# previous, current = current, previous... | [
"chaitanyadeva96@gmail.com"
] | chaitanyadeva96@gmail.com |
e0da5bd6190656653922935822c614334e58cb44 | 24f693c58ed674bc2bade68ccfc5b77ffecbb566 | /django/api/desarrollo/selenium/prueba.py | 7165f5dc838b626135c64093e8857710f5b0323b | [] | no_license | vazquezjav/Tesis_Final | e63c1a6ca72e3702ce4f4d32831540e83ff960a7 | b8e90e9177a01af90ca84d9599a80915f403d219 | refs/heads/main | 2023-06-28T17:22:55.691632 | 2021-07-29T16:25:22 | 2021-07-29T16:25:22 | 390,783,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from selenium import webdriver
from selenium.webdriver.firefox.options import Options
firefoxOptions = Options()
firefoxOptions.add_argument("-headless")
browser = webdriver.Firefox(executable_path="./geckodriver", options=firefoxOptions)
browser.get('https://www.linuxhint.com')
print('Title: %s' % browser.title)
br... | [
"vazquezjavie079@gmail.com"
] | vazquezjavie079@gmail.com |
8e55286d2adba619b99dc413e3201836767bb789 | a88a99fb3f754649db06ad86d22b5cb0d2d1e19c | /scholariumat/users/migrations/0005_auto_20181125_1759.py | 37e390c09b8e19e06e7d8ed6a47ff1bf93ab1a89 | [
"MIT"
] | permissive | valuehack/scholariumat | 91ec59647948759d917ce7077d06b0aa9618c807 | 47c13f3429b95b9ad5ca59b45cf971895260bb5c | refs/heads/master | 2022-12-07T22:20:23.967854 | 2020-04-09T22:05:52 | 2020-04-09T22:05:52 | 135,466,121 | 0 | 3 | MIT | 2022-12-06T18:38:22 | 2018-05-30T15:55:14 | JavaScript | UTF-8 | Python | false | false | 540 | py | # Generated by Django 2.0.9 on 2018-11-25 16:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_auto_20181120_1929'),
]
operations = [
migrations.RenameField(
model_name='profile',
old_name='name',
... | [
"merlin.buczek@gmail.com"
] | merlin.buczek@gmail.com |
b88c2230726043ad25102eb261b604d25df27d52 | dddf1118b82661df9e7d68ce041279ab45586532 | /net_api.py | 0645e0bea4304512a5e67c80acfee4003e7807d3 | [] | no_license | lemonsina/thirteenwater | 9bfad638f92a57fdd44127afb0b5ca013f75656e | 1d52e20d3c72c7dca2166d4a85d2e1a40c52b84c | refs/heads/master | 2022-02-28T04:20:28.425214 | 2019-10-14T19:20:26 | 2019-10-14T19:20:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | import requests
import cards_division
url='https://api.shisanshui.rtxux.xyz'
cards_list = []
max_list = []
def sign_in(username,password):
global url
payload={"username":username,"password":password}
headers={'content-type': "application/json"}
r=requests.post(url+'/auth/login',json=payload,headers=hea... | [
"747265828@qq.com"
] | 747265828@qq.com |
4c8bbdc6300f6fd0f97b2e3c2f51225dda51a45d | 172f123d63f2472568cf7989ba136e548f4da5e4 | /AppofML_ITP449/Code_repo/hw1_files/HW1_Q4_Jhaveri_Shantanu.py | d93ad651775315358b06dc417481f9e2249ddceb | [] | no_license | ShantanuJhaveri/LM-Intro_ML | 1a14b78b4afee3653910247c66b645ccf3742c14 | 6edc57d8e5af426cf0d8e7796afb06569084c691 | refs/heads/master | 2023-03-14T03:41:02.176288 | 2021-03-10T03:35:44 | 2021-03-10T03:35:44 | 314,376,420 | 1 | 0 | null | 2020-12-02T09:52:46 | 2020-11-19T21:40:09 | Python | UTF-8 | Python | false | false | 810 | py | # Shantanu Jhaveri
# ITP 449 Fall 2020
# HW1
# Question 4
# Write a program that prompts the user to enter a loan amount, annual interest rate, and number of
# years for a car loan. Then it prints the monthly payment amount.
loanAmount = float(input("ENTER A LOAN AMOUNT: "))
i = float(input("ENTER AN ANNUAL INTEREST ... | [
"sj06434@usc.edu"
] | sj06434@usc.edu |
de3b15f73a895866ee623c91bf321c778e86a9cd | 50a2e22c8af5bc9adc9320c754177341e223e996 | /findTree.py | 7acd9206deb80796bfbee0390c536af590d711d7 | [] | no_license | cuibjut/binary_tree | d7572026bcc3cd3890ce2d1534d929c0019b6de7 | 8f21e350314b7b1f9ef585836a73091e92b2d55d | refs/heads/master | 2020-04-10T16:39:53.209424 | 2018-12-10T09:49:56 | 2018-12-10T09:49:56 | 161,151,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | """
1.根据前序,中序遍历二叉树的顺序求后序遍历二叉树顺序
2.根据后序,中序遍历二叉树的顺序求前序遍历二叉树顺序
"""
def find_last_tree(prelist, midlist, lastlist):
"""
首先写出递归的终止条件及边界条件
:param prelist: 先序遍历树的list
:param midlist: 中序遍历树的list
:param lastlist: 后序遍历树的list
:return: 通过先序和后序遍历返回树的后序遍历结果
"""
if len(prelist) == 0: # 判断边界
... | [
"tizi@ibantang.com"
] | tizi@ibantang.com |
e42024f8c39e22cdf45b7337bb35c1eb1b5507ec | c8d494d3d47660500537d0214050772e975befda | /tools/get_item_img.py | 243c35e23d47b6e95d656806ea672ae1ce77933e | [] | no_license | ragnarok-online-japan/itemsearch-nextjs | 76f91a8b81d9395877295078f2f45cf5df3037b2 | 0025a33226a15dbbbf038291bd3541506b3e6452 | refs/heads/main | 2023-05-11T03:40:26.624590 | 2021-05-25T03:44:19 | 2021-05-25T03:44:19 | 323,914,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | py | #!/usr/bin/env python3
# pip3 install pyquery aiohttp Pillow
import argparse
import json
import os
import io
import traceback
import urllib.request, urllib.parse, urllib.error
from PIL import Image, ImageDraw, ImageFont
parser = argparse.ArgumentParser(description='')
parser.add_argument('--import-items',
... | [
"h-mineta@0nyx.net"
] | h-mineta@0nyx.net |
a2156bc789a1d722ae16fc02c3016a476e85d470 | 41a4ef26cf3b4710dfa6fe3f1e88a935bb909654 | /utils/logger.py | 5a8cecd51025f9a4557d25d6b86232b0ad7b72a8 | [] | no_license | little-alexandra/attention_ocr | c6c0846342f947bbb8697f99e02cdd5ce2c276c2 | 475273573ae02efe1c7c1ba3905939580d26876e | refs/heads/master | 2020-11-30T10:01:52.232714 | 2019-12-18T09:35:08 | 2019-12-18T09:35:08 | 230,371,558 | 1 | 0 | null | 2019-12-27T04:13:46 | 2019-12-27T04:13:45 | null | UTF-8 | Python | false | false | 1,463 | py | import logging
import time
import os
from logging import handlers
import datetime
import tensorflow as tf
debug=True
def _p(tensor,msg):
if (debug):
dt = datetime.datetime.now().strftime('TF_DEBUG: %m-%d %H:%M:%S: ')
msg = dt + msg
return tf.Print(tensor, [tensor], msg,summarize= 100)
... | [
"piginzoo@gmail.com"
] | piginzoo@gmail.com |
ca03e41429a459b4cc726e31ae18f1e3d4294e70 | dbdcc72fcf99fc2f47fd8d30742bf758a62d784f | /FULLERTON_FR_BILLING.py | 66b9db088df7b7a0ff789c314e18f47d2e7fe1f0 | [] | no_license | mohaksehgal/CODES | 35ae14ec9ea772cfc96dad7826435db57eb71b47 | 7674649bf8421871a69d411ecfd1f3a35eed96a9 | refs/heads/main | 2023-06-05T22:47:54.903498 | 2021-06-23T04:45:37 | 2021-06-23T04:45:37 | 379,480,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,247 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 9 11:27:47 2021
@author: rishi
"""
import pandas as pd
import numpy as np
A=pd.read_excel(r"/Users/mohaksehgal/Documents/Work/Billing/FULLERTON/JUN 21/MASTER_FILE_FULLERTON_FR.xlsx")
P=pd.read_excel(r'/Users/mohaksehgal/Documents/Work/MIS/FULLER... | [
"noreply@github.com"
] | mohaksehgal.noreply@github.com |
0d7f2e1ee9666fac5950797ec00593729a0849b8 | d3190984762e07cfab6a0fef38bc2755f7832114 | /functions/dshop_processing_func.py | 86a1e5fff172560da46923644aab1d3b0a7c2bf5 | [] | no_license | Rommagcom/final_project | 47be6891b02677b12068873b0da77c5873c17a0f | c248108dec1ced3dbd74c65d32ec47d8fdd38cd7 | refs/heads/master | 2023-07-15T03:08:50.396055 | 2021-08-24T19:28:34 | 2021-08-24T19:28:34 | 399,523,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | import psycopg2
import logging
import os
from datetime import datetime
import requests
import json
from hdfs import InsecureClient
from airflow.hooks.base_hook import BaseHook
import pyspark
from pyspark.sql import SparkSession
def load_from_db(table, **context):
execution_date = context['execution_date']
fo... | [
"roman.ivanitskiy@airastana.com"
] | roman.ivanitskiy@airastana.com |
18e134dac00b481624b17bd208a6bde059b3e038 | ed6df70a3b07e2e584e62adaf8efc60760d8d5c0 | /main.py | 64e7935c99ff55dc2673bd74e6ee6cf1ed4a398a | [] | no_license | madeo17/tic-tac-toe | 92221206ad8d01e20bafc678b3399a9e34b8df6a | 04d269544f5c8f0fe50c99ed424933b232c8eb16 | refs/heads/master | 2020-03-27T18:31:10.326697 | 2018-08-31T19:17:15 | 2018-08-31T19:17:15 | 146,927,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,450 | py | #! python3
# Tic Tac Toe game - my first project
import os
import random
def display_board(board):
os.system('cls')
print('| | | |')
print(f'| {board[7]} | {board[8]} | {board[9]} |')
print('| | | |')
print('-------------')
print('| | | |')
print(f'| {board[4]} | {board... | [
"matemalec@gmail.com"
] | matemalec@gmail.com |
399b47e046b7c3c4f711e023be033fbbff5c8369 | b7b35320158115f1aeb4c86ab69fca0d6081c5fa | /ThePosts/posts/migrations/0001_initial.py | 7ab3ef0c9576274bf8de77ee3c63be9b012e0507 | [] | no_license | osmarsalesjr/PPI | 0c7d1d1d79ca00c739fb6877b317f8837d5a6b1d | 57e939adeaf66d849c72c7e4f48501d9e9e3db66 | refs/heads/master | 2020-04-17T16:18:52.175841 | 2019-03-03T17:30:53 | 2019-03-03T17:30:53 | 166,735,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # Generated by Django 2.1.5 on 2019-02-10 02:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', mode... | [
"noreply@github.com"
] | osmarsalesjr.noreply@github.com |
03f2beccf2929eaf7844b8fcfdfdbb117ecae76c | 957ff175ffedc1cfafd43ebe20f64f83cc55325f | /heritagesites/SELECT ca.country_area_name, hs.site_name.py | 56d3d62ccfbd1f2743aead41ee3e32fa96811754 | [] | no_license | chenyipeng1/heritagesites | d12621a17d1a337e7beee0546065006246d78ed6 | 740262646c193c42eb6612e17843ac534798426f | refs/heads/master | 2020-04-06T08:31:35.066478 | 2018-11-20T01:48:51 | 2018-11-20T01:48:51 | 157,307,055 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | SELECT rg.region_name, srg.sub_region_name,ca.country_area_name, hs.site_name, hsc.category_name
FROM heritage_site hs
LEFT JOIN heritage_site_jurisdiction hsj
ON hs.heritage_site_id = hsj.heritage_site_id
LEFT JOIN country_area ca
ON hsj.country_area_id = ca.country_area_id
LEFT JOIN region rg
ON ca.region_id =... | [
"chenyipeng@chendeMacBook-Pro.local"
] | chenyipeng@chendeMacBook-Pro.local |
aa586b92e81d84b242d0d337f70ca4cbca0dcb8a | 1e1ae51914c9338f33096d85e4d2edfb4fbf835d | /make_check_list.py | 6989ad6fdc7f385acd78d9b3e5ef8638216531a9 | [
"Apache-2.0"
] | permissive | clinfo/2021_Patients_Transport | b4c98ebb1d292acf116b01c77a602a3a1e80c5f9 | 4f14cd0b1350eca98dfbe9d4ae530fda34759811 | refs/heads/main | 2023-02-27T23:04:54.906983 | 2021-02-12T07:40:30 | 2021-02-12T07:40:30 | 336,447,946 | 0 | 1 | Apache-2.0 | 2021-02-10T09:04:43 | 2021-02-06T03:37:24 | Python | UTF-8 | Python | false | false | 6,074 | py | #!/usr/bin/env python
# coding: utf-8
import numpy as np
import pandas as pd
import glob
filnames = glob.glob('data_transport/u_*')
filnames.sort()
dates = [filname.split('.')[-2].split('_')[-1] for filname in filnames]
gammas = [filname.split('.')[-2].split('_')[-2] for filname in filnames]
opt_types = [filname.s... | [
"rokitaniplus1@gmail.com"
] | rokitaniplus1@gmail.com |
1d8305e331e32d08f428a20307d75df6b5b6bb80 | 3ff6932fb2b356bca95c4ae6794ac85d838c958c | /source_pytorch/predict.py | 48c0844421b8cf0622cd438308e5e7bd7584de5b | [] | no_license | gkuzivam/plagiarism-detector | 9f9a9da2f4ca10fe4072f9f6a44c012b8e399a4a | 23091368788aebff549ffa23d002b4d2e044db4c | refs/heads/master | 2020-07-03T06:04:10.592992 | 2019-08-11T20:55:59 | 2019-08-11T20:55:59 | 201,812,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,574 | py | # import libraries
import os
import numpy as np
import torch
from six import BytesIO
# import model from model.py, by name
#from source_pytorch import model
from source_pytorch.model import BinaryClassifier
# default content type is numpy array
NP_CONTENT_TYPE = 'application/x-npy'
# Provided model load function
de... | [
"noreply@github.com"
] | gkuzivam.noreply@github.com |
c31079b9c2e363ef5429989d70f5beee59451d4c | f4e9a1950e629f1de65842c2522b856417ea10cf | /Python/addNumbers.py | 32adb196801ef1e6e757384340e2ccfc590d43ef | [] | no_license | TimmyYung/TheRightCodes | 687d972658b993e620b4d9fe255d459d886a47d7 | 322eb0542c176c4178f3a240e422461b94e6f2ad | refs/heads/gh-pages | 2023-02-04T10:47:08.635052 | 2020-12-22T20:21:43 | 2020-12-22T20:21:43 | 149,155,435 | 0 | 0 | null | 2020-03-25T05:03:36 | 2018-09-17T16:31:36 | HTML | UTF-8 | Python | false | false | 118 | py | def sum_to(number):
total = 0
for n in range(number+1):
total += n
return total
print(sum_to(10)) | [
"592619@pdsb.net"
] | 592619@pdsb.net |
41d5b59f249d61ce0e7c3a1265c87df046d697a5 | 4a940f0b685540f7013a2a3ce2893fd51aafdd2c | /Week3/suffix_array_long/suffix_array_long.py | d098cceec74ee0914ece2d6e31458c9ea1fcb97c | [] | no_license | QilinGu/String | 11028223847f962cc0ba7a630dcb5c87c4fa4eb4 | 46efcdc35e5ebe47025bb1f9743ad80b41b360ca | refs/heads/master | 2021-01-11T17:43:22.171353 | 2016-09-10T10:25:56 | 2016-09-10T10:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | # python3
import sys
def sort_characters(text):
order = [None for i in range(len(text))]
alpha = len(set(text))
my_hash = {}
for i, each in enumerate(sorted(set(text))):
my_hash[each] = i
count = [0 for i in range(alpha)]
for i in range(0, len(text)):
count[my_hash[text[i]]] += 1
for j in rang... | [
"arsen.khadikov@gmail.com"
] | arsen.khadikov@gmail.com |
221d5cafd65cefa2f79d23099f66c2284256273a | 443a42433948d7003e200705cd27271f4b3e1029 | /posts/models.py | 30b08868f5572c61a1e3e4577dea12ddcf244f6a | [] | no_license | alejo5248/platzigram | fc86902b4f908bc54176df5a6fa4cf931c6c8730 | efd8239c675d3aedc286cdead7a1e4acd0ea1b03 | refs/heads/master | 2020-04-14T18:41:02.350774 | 2019-01-10T16:49:11 | 2019-01-10T16:49:11 | 164,029,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py |
from django.db import models
from django.contrib.auth.models import User
class Post(models.Model):
user=models.ForeignKey(User, on_delete=models.CASCADE)
perfil=models.ForeignKey('usuarios.Perfil', on_delete=models.CASCADE)
titulo=models.CharField(max_length=50)
foto=models.ImageField(upload_to='posts/images')
... | [
"alejandro_hurtado@utp.edu.co"
] | alejandro_hurtado@utp.edu.co |
046b6856d4a0ebc36013df65d5ad55797e818c35 | ba9394bd4f5845ab8e3fcdb7e7dfe18c41c4c8d1 | /core/main/run_group_test.py | ae0c696888b7f2e07330c844cd3933bf5975ad8e | [] | no_license | ZongweiBai/rest-test-tools | b050992aaffa2431bcee06c82e405fdfe50ab5f7 | dd096b5a06c2cc2962c5f6be9f85867b2623293c | refs/heads/master | 2022-11-28T04:36:10.836360 | 2020-08-04T09:16:20 | 2020-08-04T09:16:20 | 282,186,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | # coding:utf-8
import os
import sys
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)
from core.util.request_http import RequestHttp
from core.data.get_data import GetData
from core.util.common_assert import CommonUtil
import json
from core.data.depen... | [
"jonezw@163.com"
] | jonezw@163.com |
2495228312f4bfdd2e648407cb25f51a82d29143 | 812a1c54d03c0542e05f3a55d6caaf2b5723cf5c | /rango/wrango/templatetags/rango_template_tags.py | 2500599ca11ff18088fd9e653f89fa4335a34de0 | [] | no_license | tabithalee/rango2 | 4b407ec8453ef398c96a95c4a9ec66d4ecb83214 | 42542351b6cf0381fe9b6e4c56f4634a1fa6f2dc | refs/heads/master | 2021-01-11T16:39:22.087221 | 2017-02-10T17:12:25 | 2017-02-10T17:12:25 | 80,132,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django import template
from wrango.models import Category
register = template.Library()
@register.inclusion_tag('rango/cats.html')
def get_category_list(cat=None):
return {'cats': Category.objects.all(), 'act_cat': cat}
| [
"2295373l@student.gla.ac.uk"
] | 2295373l@student.gla.ac.uk |
5b1d5b593511fa873e79c2f510b7c882a1ce7bc0 | f0b5f7e7a1737b79210300085d366ec8870a361f | /dynamic_porgramming/dynamic_programming_8-2_fibo_recursive.py | d10253229f7843ae5f69bdfa70aba50e9de038c2 | [] | no_license | cksrb1616/Algorithm_past_papers | 135f2143f466bd38f1b770de16fe88eeb086c1df | 193b3e41165c577d944b6e60f0c255141882170f | refs/heads/master | 2023-04-02T21:31:28.194694 | 2021-03-29T16:26:40 | 2021-03-29T16:26:40 | 201,218,237 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | #Using memoization
#Top_down method : 작은 문제들이 모두 해결되었을 때 큰 문제가 해결됨
#Bottom_up mehtod : 작은 문제를 하나씩 해결해 나가면 먼저 해결된 문제를 활용해 다음 문제를 차례로 해결
#Dynamic -> Bottom Up
d = [0]*100
def fibo(x):
if x == 1 or x == 2:
return 1
if d[x] != 0:
return d[x]
d[x] = fibo(x-1) + fibo(x-2)
return d[x]
print... | [
"53897355+cksrb1616@users.noreply.github.com"
] | 53897355+cksrb1616@users.noreply.github.com |
499384826def0b608af69a4bac123283fadb6546 | b6a160bc968e2c90fd4623312044a1a3093e3659 | /google-python-exercises/basic/string2.py | cb5b0147fc1e4cc051c9e088b67f2e44c3775af8 | [
"Apache-2.0"
] | permissive | bminor21/PythonProjects | 82a2a4ccef64598c81514bcc5c27ce44b5a55531 | b8c3ed637e0b239e2bb942ba461a625a14eb8755 | refs/heads/master | 2022-01-06T17:15:04.430726 | 2019-06-14T00:02:58 | 2019-06-14T00:02:58 | 109,908,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | #!/usr/bin/python2.4 -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Additional basic string exercises
# D. verbing
# Given a string, if its length is a... | [
"brett.minor21@gmail.com"
] | brett.minor21@gmail.com |
9e3769ed23384bf504e6dc9a8a92c51ee8651186 | d5ad13232e3f1ced55f6956bc4cbda87925c8085 | /cc_mcc_seq/coverage/coverage_stat/1_coverage_stat.py | 495a50838e4e7cb74a40295b588b592c6c6f5ef4 | [] | no_license | arvin580/SIBS | c0ba9a8a41f59cb333517c286f7d80300b9501a2 | 0cc2378bf62359ec068336ea4de16d081d0f58a4 | refs/heads/master | 2021-01-23T21:57:35.658443 | 2015-04-09T23:11:34 | 2015-04-09T23:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | chr=['chr1','chr2','chr3','chr4','chr5','chr6','chr7','chr8','chr9','chr10','chr11','chr12','chr13','chr14','chr15','chr16','chr17','chr18','chr19','chr20','chr21','chr22','chrX','chrY']
for sample in range(3,13) :
for ch in chr :
inFile=open('../fudan1.coverage')
list1=list()
for line in ... | [
"sunhanice@gmail.com"
] | sunhanice@gmail.com |
f6dd0869441d5a356d50e7e10e961dee504deb0e | 46734ec336f502dc3d69e31428bacb9cef222a70 | /examples/bq_file_load_benchmark/load_benchmark_tools/benchmark_load_table.py | cee84591f2ea51e813d6e1c94db979c177d7a5b4 | [
"Apache-2.0"
] | permissive | tims/professional-services | 93ef3d3083d73991d4faba2c40a8ab4ea550cca8 | 8c610e259217ad83dbbceeb388aa1da828d1343b | refs/heads/master | 2020-12-07T20:01:07.550995 | 2020-02-03T07:43:31 | 2020-02-03T07:43:31 | 232,788,171 | 0 | 0 | Apache-2.0 | 2020-01-09T10:58:05 | 2020-01-09T10:58:04 | null | UTF-8 | Python | false | false | 10,178 | py | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"jferriero@google.com"
] | jferriero@google.com |
b0378dcfcc5c4214352f38c63a94baff4b9218a4 | f88c89842dc78ac228d4ca800f655ea88032ea07 | /week12/db.py | c97c265a56d95625e6935256fad749a5119fc645 | [] | no_license | hpmalinova/Hack-Bulgaria | a210ae717c83503053eef4762aedef57891fb4b5 | 8e1ee0247f2411f4729435a117fde417d474fffc | refs/heads/master | 2021-09-28T06:08:29.820826 | 2020-07-31T12:10:05 | 2020-07-31T12:10:05 | 248,812,505 | 0 | 0 | null | 2021-09-22T19:06:33 | 2020-03-20T17:19:10 | Python | UTF-8 | Python | false | false | 940 | py | from sqlalchemy import (Column, Integer, String, CheckConstraint)
from contextlib import contextmanager
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
DB_NAME = 'urls.db'
engine = create_engine(f"sqlite:///{DB_NAME}")
Base = declara... | [
"hpmalinova@github.com"
] | hpmalinova@github.com |
4e2ef96ae7a28d25546c82eb854eb6d1494f7b18 | 99c3315d8d5fe7df02cee16c8dcac049d707aba2 | /server.py | a68702fc985e324fd4e9a341c5ab745bdb2b178c | [] | no_license | trianasuanjaya/utsrekayasaprotokol | db77851d452a6553966a40b890390d4489279911 | 0f36df8e301faffa9896a2618885c49277419b0f | refs/heads/master | 2020-07-29T04:23:23.823261 | 2016-11-14T08:37:34 | 2016-11-14T08:37:34 | 73,682,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | import socket
import time;
import datetime
s=socket.socket()
host = socket.gethostname()
port = 12345
s.bind ((host,port))
s.listen(5)
while True:
c,addr = s.accept()
print ('daftar Printah') ,c.recv(1024)
print ('dari'), addr
localtime = time.localtime(time.time())
dt = datetime.datetime(*localtim... | [
"noreply@github.com"
] | trianasuanjaya.noreply@github.com |
2f0c21da46fc0a27a43c211905c51a9b98e78cad | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/resources/types/campaign_criterion_simulation.py | b270fa50fac0d5f5919e4dcac9d75a76b8179a43 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,103 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
c9edfa92fd006a044a73cfaee57dbbd855d2ee83 | a35cc0e669a6a19307640b04ce6354e758dc83b6 | /src/test/resources/integration_tests/python/basic_integration_test.py | 4a4f8578475d63cf8f37cddf9ee9482793693d24 | [
"Apache-2.0"
] | permissive | weisong44/vertx-device-mediation | 10929f42cf9f276ba9f92047e04c0be856ac4ff9 | 23a7605f875309a40c34b86fe09445569e80725b | refs/heads/master | 2021-01-20T09:01:21.747160 | 2014-06-01T06:29:02 | 2014-06-01T06:29:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | # Simple integration test which shows tests deploying other verticles, using the Vert.x API etc
from org.vertx.testtools import VertxAssert
import vertx_tests
from core.event_bus import EventBus
import vertx
# The test methods must begin with "test"
def test_http():
# Create an HTTP server which just sends back O... | [
"weisong44@gmail.com"
] | weisong44@gmail.com |
0d559cf6aa2322ca323012ec31353caa7d42bdbe | 24e0d8e58b5b8ec000e8e9069d57508fffae9687 | /mihirfybsc1234.py | fc018795ec68af435289de073aa33b228371dfc7 | [] | no_license | black-organisation/python | 7eb368b0a4b4ede09aac27392d65f75236aebd8e | 0979a18fab5209b7a47efd49a1a850c6ee380f62 | refs/heads/master | 2020-07-11T21:28:31.104714 | 2019-08-27T07:59:24 | 2019-08-27T07:59:24 | 204,647,368 | 0 | 2 | null | 2019-08-27T14:18:25 | 2019-08-27T07:37:54 | Python | UTF-8 | Python | false | false | 19 | py | x=5
print(type(x))
| [
"noreply@github.com"
] | black-organisation.noreply@github.com |
e424b7999c84e1af9ea13099de164c0a69ff51db | 062e82e410b2e7fa7c7beca2e3f1961c56976990 | /widrow-Hoff.py | 35ca66bb0d952d452f40ce277a6b59ced17874e7 | [] | no_license | SilentFlame/Machine-Learning | 1483b780fb7d5c0c1bc6d3a2ddabafc242b8e680 | 6296f66935a5b162a1c1d9a3581b97edb790fb81 | refs/heads/master | 2021-01-12T13:31:59.195427 | 2017-10-31T08:50:24 | 2017-10-31T08:50:24 | 69,379,120 | 12 | 19 | null | 2017-10-31T15:28:40 | 2016-09-27T16:58:30 | Python | UTF-8 | Python | false | false | 3,052 | py | import matplotlib.pyplot as plt
from math import sqrt
d1=[(1,2,7), (1,8,1), (1,7,5), (1,6,3), (1,7,8), (1,5,9), (1,4,5)]
d2=[(-1,-4,-2), (-1,1,1), (-1,-1,-3), (-1,-3,2), (-1,-5,-3.25), (-1,-2,-4), (-1,-7,-1)]
dataset = [(1,2,7), (1,8,1), (1,7,5), (1,6,3), (1,7,8), (1,5,9), (1,4,5), (-1,-4,-2), (-1,1,1), (-1,-1,-3), (... | [
"noreply@github.com"
] | SilentFlame.noreply@github.com |
3d70ab16d2c568cd1c582f59087249c3ee44045e | 509c3aeded2b8a5abf3e536cd3283d97c67a93d9 | /Web/WebProgramming/server.py | 122568483a763ba300ab6f90882dfdb926fb5463 | [] | no_license | Kimmirikwa/bc-13-Inventory_Management | 6849bfdbbbcb857bcf895e2fb9fa89674d52e3b7 | 1dd100ce1a5c4f09b509487f74d82cd5c90d50e7 | refs/heads/master | 2020-06-13T16:19:53.838733 | 2016-12-06T14:45:40 | 2016-12-06T14:45:40 | 75,712,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | from functools import wraps
from flask import Flask, url_for, request, render_template, Response
#method to carry out the authentication
app = Flask(__name__)
@app.route("/")
def sign_in():
pass
@app.route("/addasset", methods=["GET","POST"])
def add_asset():
pass
@app.route("/addusers")
def add_users():
... | [
"kimrodrikwa@gmail.com"
] | kimrodrikwa@gmail.com |
1a502113ddd4d449192d3e358b9feb2ec0648093 | 89a147200171fc044d333c54a967211cb8bf4df5 | /revjo/_cli.py | 57815a2163c4b9fd1f4fd4f4ff2fc3b1a60db8d0 | [
"MIT"
] | permissive | wtnb75/revjo | fa70d907edfd2c753c8929b623ee44470e967a1e | 02c9bd258dea5f24519e67decd2eb97c3f4bd9aa | refs/heads/main | 2023-03-30T21:38:34.657664 | 2021-03-30T13:18:31 | 2021-03-30T13:18:31 | 351,506,019 | 0 | 0 | MIT | 2021-03-30T13:18:32 | 2021-03-25T16:36:19 | Python | UTF-8 | Python | false | false | 1,358 | py | import sys
import json
import functools
from logging import getLogger, basicConfig, INFO, DEBUG
import click
from .version import VERSION
from .revjo import convert
log = getLogger(__name__)
@click.version_option(version=VERSION, prog_name="revjo")
@click.group(invoke_without_command=True)
@click.pass_context
def cl... | [
"noreply@github.com"
] | wtnb75.noreply@github.com |
f7ca419508798f1929999e5cb30894c192fb6861 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/70/usersdata/164/36211/submittedfiles/impedimento.py | d16709d5193363df8e0a3b6b23963d9cbe92b2b9 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
L=int(input('Digite a posição de L: '))
R=int(input('Digite a posição de R: '))
D=int(input('Digite a posição de D: '))
if (R>50) and (L<R) and (R>D):
print('S')
else:
print('N') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a4aa0917081417465a81c6bdb13eed8cd38f6553 | ffba2f65351e14e89b7c195c0767587367f22fda | /venv/bin/easy_install-2.7 | 71b48de2aa2bb3f2791931a97955761f306a9858 | [] | no_license | vitor-araujo/FlaskSimpleBlog | 8e4eba054017dbf4f909047165562a1a07d152c5 | d6f9b7b73efe54b4d62c104ae14a675a2502ff39 | refs/heads/master | 2021-09-01T04:13:04.278745 | 2017-12-24T17:40:03 | 2017-12-24T17:40:03 | 115,278,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | 7 | #!/home/vitor/flaskblog/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"araujo.vitorgabriel@gmail.com"
] | araujo.vitorgabriel@gmail.com |
729eee46f82bfd3f50b8d900822724398481b416 | 4fe3be1c30b2af5077cda4721d697c5c366bf3c9 | /tuples_are_immutable.py | 8f5253fb5d400abbb711dfe76043e90af9502a15 | [] | no_license | boiidae/py4me | 4ae3cd9dfd6e38fe34673dabfa43af2e6cff8a82 | 7012d954cb1fa713b49f6d07cd9a1133443eb410 | refs/heads/master | 2023-03-18T20:29:47.158557 | 2021-03-04T16:19:03 | 2021-03-04T16:19:03 | 344,109,190 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | # Unlike a list, once you create a tuple, you cannot alter its contents - similar to a string
x = [9, 8, 7]
x[2] = 6
print(x)
| [
"jamesbenjaminhanson@gmail.com"
] | jamesbenjaminhanson@gmail.com |
5756879bd7614530d66100e9e2ff74d43a089301 | 850d12238e47b1acebaf826eae70ac718409db9e | /web/articles/tests/factories.py | a58eacbdb6f012926236a735120046bc7fe25385 | [] | no_license | ictkovalenko/django-market-search-pytest | 3dd2cb50902d645054e99cffad4f57cdbec6ffad | ed005a506db644f5d6b4c777ed3d0c01c9aedba7 | refs/heads/master | 2020-04-13T12:25:07.682770 | 2018-12-26T17:12:30 | 2018-12-26T17:12:30 | 163,201,294 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import factory.faker
from django.utils.text import slugify
from web.articles.models import Article, Category
class CategoryFactory(factory.django.DjangoModelFactory):
class Meta:
model = Category
title = factory.Faker('word')
slug = factory.LazyAttribute(lambda x: slugify(x.title))
class Artic... | [
"ict.kovalenko@gmail.com"
] | ict.kovalenko@gmail.com |
d65dde81234a1074d1507888f217ad2b8470b0b0 | f302716a8a088279775e23df6daf80d8524aec24 | /tools/railCipher.py | bc77ec3604fa9f40be11735496b9adf02fe04172 | [] | no_license | omemishra/shellterlabsCTF | e1aa83faeb283d0bcea4b9dc5f1a1f69eff9e243 | d13731040cb21f31f85fc6b03dfccf4b3055f509 | refs/heads/master | 2020-05-05T07:39:38.747873 | 2019-03-31T17:13:47 | 2019-03-31T17:13:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | #!/usr/bin/env python2
#
# rail fence cipher implementation with optional offset feature
#
# for educational use only! (rail fence cipher is a very weak cipher.)
#
import sys
def printFence(fence):
for rail in range(len(fence)):
print ''.join(fence[rail])
def encryptFence(plain, rails, off... | [
"noreply@github.com"
] | omemishra.noreply@github.com |
85753b6d1cda8557c0dbee11136ee9f97f11e8be | 2e3f847fda2370f1062ceb0c5c0bd5edb8b7e6a9 | /consumer.py | 3506e526f8c8d47c64854fbf395c9093f938f8f8 | [] | no_license | CheHaoKang/Kafka | 65b41fa9a4b43b35ba461bf11dfa5aa0d2566153 | c409aa6658e404e7a0be514458ddacaec6b7b619 | refs/heads/master | 2020-04-09T21:48:27.390795 | 2018-12-06T03:25:37 | 2018-12-06T03:25:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from kafka import KafkaConsumer
consumer = KafkaConsumer("test", bootstrap_servers=["localhost:9092"])
for message in consumer:
print(message)
| [
"cywang@blueplanet.com.tw"
] | cywang@blueplanet.com.tw |
1db7145016e10f8994357be4b75ac8b745805ec2 | bdaf214a6fc12d426f4edea860d12ca8222d3872 | /grafica/basic_shapes.py | 62abb1bfa797e4d875a505da45ef2ed8c6396fa9 | [] | no_license | Frocoa/PoolParty | 79c5dfca2836996e17652acd0cc53a06750f75cf | 34cc4d197c4c48f355ed18668b0d58d402f60a2f | refs/heads/main | 2023-06-24T01:29:35.191776 | 2021-07-27T00:43:32 | 2021-07-27T00:43:32 | 387,316,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,871 | py |
# coding=utf-8
"""Vertices and indices for a variety of simple shapes"""
import math
__author__ = "Daniel Calderon"
__license__ = "MIT"
# A simple class container to store vertices and indices that define a shape
class Shape:
def __init__(self, vertices, indices, textureFileName=None):
self.vertices = v... | [
"Frocoa@gmail.com"
] | Frocoa@gmail.com |
14702de94ce9640e0715dfc9cb602737d182fc45 | 2d0585b6f2a5d832d71f0a19d2839671491da1d2 | /uniques.py | 98c42563c70ba5f354505d4c1f938072946e01cc | [] | no_license | oguzhanozdmr/uniquesTxtFile | 2237918e3f4323d303133fca5eb0f5a0b31a7796 | ca217de3b7e336982b19cf1c892f1a44bb241958 | refs/heads/master | 2023-03-20T06:08:52.444896 | 2021-03-13T07:44:00 | 2021-03-13T07:44:00 | 347,272,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,870 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: ademoguzhanozdemir
"""
import sys
import os
import re
__params = {"-infile": None,
"-outfile": None,
"-sort": False,
"-deleteblank": False,
"-casesensitive": True}
__required_params = {"-infile": True,
... | [
"ademoguzhanozdmr@gmail.com"
] | ademoguzhanozdmr@gmail.com |
cd75e6a6f0237942d457b0bc7d92531f8d7e6677 | 6f57bd46d35bf3c1e834afb1adb695b6b2db2f1a | /venv/bin/pip3 | a5689898a7192795d87cb7f2feec0a66a261fad8 | [] | no_license | shwethabm/Disaster-management-app | c8da45ae59a72940fb31888c5789a6f6cbbf93aa | f317bd51b566ba01568c12d4db914c8944cea895 | refs/heads/master | 2020-08-05T18:16:19.362955 | 2019-10-23T14:34:35 | 2019-10-23T14:34:35 | 212,649,496 | 0 | 0 | null | 2019-10-03T18:31:31 | 2019-10-03T18:24:17 | null | UTF-8 | Python | false | false | 399 | #!/home/acer/PycharmProject/disapp/venv/bin/python
# 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.argv[0])
sys.ex... | [
"shwethabmenon23@gmail.com"
] | shwethabmenon23@gmail.com | |
7baed9c81d6e313c044b08471fd6269eabb744b5 | 1be53e96561e9323852ffcd04d42021a60ac4f4e | /delete_old_messages.py | 17d7d254fa5726bd5ab2f77e7bbd69f113783017 | [] | no_license | mek97/gmail_helper | 530576f11c39e4c09422472f439d447f09ca07a3 | 09653ed46c7dafb5c16e8fc5ca4e25e4dbba8edc | refs/heads/main | 2023-05-15T17:29:46.141342 | 2021-02-17T14:32:23 | 2021-02-17T14:32:23 | 339,748,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,640 | py | from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
import time
# If modifying these scopes, delete the file token.pickle.
SCOPES = ['https://mail.google.... | [
"mehul.k1997@gmail.com"
] | mehul.k1997@gmail.com |
f1bdea1ca514039345f8ed87d738ee50d65e70be | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/ccp/format/ansig/sequenceIO.py | c11cb240aad4a5e8c13d21ebc8b1168fd7d87865 | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 5,597 | py | """
======================COPYRIGHT/LICENSE START==========================
sequenceIO.py: I/O for Ansig sequence files
Copyright (C) 2005-2009 Wim Vranken (European Bioinformatics Institute)
=======================================================================
This library is free software; you can redistribute ... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
1d8778f5d2e829da8c0a559c96e3babbd8a2c453 | 127f8b43991d2674477b1cf28ea15124dac3877c | /venv/Scripts/django-admin.py | b504545d6b529de530dbe27d4b146c9f44dbd328 | [] | no_license | petrovdanil20/Angl2.0 | 1a89f297f11833ed53ec0fb627b2d682d782c3f8 | c5efa1c9d01ea09016ef6e607ff24c0ece865597 | refs/heads/master | 2023-08-14T09:34:57.944280 | 2020-05-28T12:34:49 | 2020-05-28T12:34:49 | 267,581,284 | 0 | 0 | null | 2021-09-22T19:06:37 | 2020-05-28T12:15:28 | Python | UTF-8 | Python | false | false | 158 | py | #!C:\AcademicWritingProject\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"dpetrov@edu.hse.ru"
] | dpetrov@edu.hse.ru |
024f84553a9236e5be76e600a7b4b5b301bf7e7d | 131c0b883c53430fa57042f59469c7a032704dd8 | /venv/Scripts/jp.py | a22dfb2455b6fb43d79b84c9e97c15c8ea5961df | [] | no_license | gilchristc/flask_weather_app | 7f4379e35f4967e6dadd98ad7c30b245e67ffb7a | e009b5469f7a44b8cabb2f39d6967b806694ed9c | refs/heads/main | 2023-02-09T23:05:51.145819 | 2020-12-21T19:46:36 | 2020-12-21T19:46:36 | 322,373,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | #!c:\users\chesmere\documents\projects\flask_weather_app\venv\scripts\python.exe
import sys
import json
import argparse
from pprint import pformat
import jmespath
from jmespath import exceptions
def main():
parser = argparse.ArgumentParser()
parser.add_argument('expression')
parser.add_argument('-f', '-... | [
"57827322+gilchristc@users.noreply.github.com"
] | 57827322+gilchristc@users.noreply.github.com |
a9dcfe05f4c4e478e4587c722f15febc52961ea1 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_welded.py | 9d8c71c76ac244c69252e3e58618cb575c8c845f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py |
#calss header
class _WELDED():
def __init__(self,):
self.name = "WELDED"
self.definitions = weld
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['weld']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3e436904f0f2dde6f5b4715e4ef0bab9ee10fb76 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/43.py | 066bc53d2e703644911d495cf32ef62e7768e710 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # Time: O((logn)^2)
# Space: O(logn)
def tidy_numbers():
digits = map(int, list(raw_input().strip()))
for i in reversed(xrange(1, len(digits))):
if digits[i] == 0 or digits[i] < digits[i-1]:
for j in xrange(i, len(digits)):
digits[j] = 9
for j in reversed(xrange... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.