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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90f47ef7ae4c651ca9ff4a3a3a44c38f3c6ef035 | 847c49e79aa0f967d2ee41e759ab2a4c0cca0f53 | /src/TriProjectile.py | 57a471748bf85b9fbbb5a5178742df4d1ee6bac5 | [] | no_license | lukeg101/G51FSE-Pygame-Project | f77a9f9e0169167e306f360879c96eb286770be0 | 15f6ccd7c609ab8fbf4371ec87407e1f802f7849 | refs/heads/master | 2020-04-19T19:21:58.751937 | 2015-01-05T18:41:12 | 2015-01-05T18:41:12 | 17,424,074 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | #import game modules
import sys, pygame
from pygame.sprite import Sprite
from pygame.locals import *
"""class that defines and characterises projectile objects within the game"""
class TriProjectile(Sprite):
#need to do different types of object and strength
#initialises projectile object upon invocation
... | [
"lukegeeson@googlemail.com"
] | lukegeeson@googlemail.com |
3d0676ba2f791a63793876a7f9cac6d72829b2f7 | f845225329fa9750c838bf511fed3beb48cc86af | /accounts/migrations/0024_auto_20190104_1910.py | 548b1c2d5d7579453106f5fb740c98f2b35c2c4a | [] | no_license | Fabricourt/btre_project- | ac8c2b84cc8b7f4f5368a204dc23b378d488b356 | 13defd495ba309ac31550d22ad7d6306638f91eb | refs/heads/master | 2020-04-15T11:03:05.980170 | 2019-01-08T11:16:56 | 2019-01-08T11:16:56 | 164,611,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Generated by Django 2.1.4 on 2019-01-04 16:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0023_dashboard_title'),
]
operations = [
migrations.AlterField(
model_name='dashboard',
name='title',
... | [
"mfalme2030@gmail.com"
] | mfalme2030@gmail.com |
07626bcccc8172b3f4f025086395a71babd6ebd0 | 799691e93da6cc46c43a588ea7861b250bffb1ff | /learning/base_2/hui_diao_def.py | 205c2f558dd32037706dd1373268974ef8c36234 | [] | no_license | fayzoro/some_spiders_to_test | 73b442e92a19d78b90cbaf1f33eda7cdefb02212 | 2630c90160c52e43894e763000bd40cea21e3009 | refs/heads/master | 2020-07-29T17:49:37.414094 | 2020-02-22T08:38:16 | 2020-02-22T08:38:16 | 209,908,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : hui_diao_def.py
@Contact : 625711951@qq.com
@License : (C)Copyright 2019-2020, Zyf-FT
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2019/10/17 20:59 zyfei 1.0 None
'''
imp... | [
"zhangyafei.912@163.com"
] | zhangyafei.912@163.com |
343338241b0c67481daef30911f6bfbb1e96bed9 | 120120e2f7ed014dac87cceb55a49a11344aea0c | /roles/custom_module/module_utils/ibm_ss_filesystem_utils.py | b6f6ca50cc4dbd75feebcf6298c7adeeeedc40a2 | [
"Apache-2.0"
] | permissive | Perf-Org-5KRepos/ibm-spectrum-scale-install-infra | 4d9ba3e04b6bae1681de0b8062b872e092513c58 | 6c070b41985b5fe0549ed88813a29a9d96df8480 | refs/heads/master | 2022-11-09T22:08:27.028901 | 2020-06-26T03:04:09 | 2020-06-26T03:04:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,703 | py | #!/usr/bin/python
#
# Copyright 2020 IBM Corporation
# and other contributors as indicated by the @author tags.
#
# 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/li... | [
"mutmuthi@in.ibm.com"
] | mutmuthi@in.ibm.com |
1fbd2d7dfc262d86cd8d617fb1e95b5ed1256ea5 | c0ec756aa1b9fc3e4a22fef689fa218c2ce05919 | /utils/tools.py | 1e3d4127852ddca3f234ebd080bfddc65027b857 | [] | no_license | daniel-pimenta-cc/GetComicsDownloader | b813b05f96d3af50a8f3a4d916f72fa1391c009a | 36735a1c3ebc4f7c48b4bb012a43e1c6e1359289 | refs/heads/master | 2020-05-17T10:13:03.089358 | 2019-04-26T15:23:17 | 2019-04-26T15:23:17 | 183,651,840 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | #!/usr/bin/python3
# -*-coding:utf-8 -*-
defs = {'KB': 1024, 'MB': 1024**2, 'GB': 1024**3, 'TB': 1024**4}
# Convert to bytes
def convert2bytes(size):
parts = size.split()
size = parts[0]
unit = parts[1]
return int(size)*defs[unit]
# Convert with corret unit
def bytes_2_human_readable(number_of_byte... | [
"42495364+daniel-pimenta-cc@users.noreply.github.com"
] | 42495364+daniel-pimenta-cc@users.noreply.github.com |
8fed4efecd80e64f21bbf26c0c885974ca96acdf | 65a6fde208f3a00a4d26158a4e8cfdd53e21f8c7 | /Standard feature descriptors in pyhon/humoment.py | e949a2fea3c78e18d1f3fba8a8bb5f071ebf7379 | [] | no_license | rishabh26malik/Matlab-and-image-processing | ef9d66784e8bf89b6df163847cf83e3c9dabefba | 954f18eeeb5988d64fe708ab2d631be5296c9f85 | refs/heads/master | 2021-07-10T08:12:59.061454 | 2020-08-24T10:10:53 | 2020-08-24T10:10:53 | 191,395,400 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | import cv2
import os, os.path
import csv
'''
image = cv2.imread("img.jpg")
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
x=cv2.HuMoments(cv2.moments(image)).flatten()
print(x)
'''
imageDir = "/home/rishabh/PREVIOUS HOME/CODES_descriptors/brain_tumour/qwerty" #specify your path here
image_path_list = []
valid_image... | [
"noreply@github.com"
] | noreply@github.com |
1960f27aab4a6e04b44d42cae1957586f552c1e4 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/battle_control/requests/__init__.py | cb82e19a0f4681639e117250b900737bead761e8 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 491 | py | # 2015.11.18 11:52:01 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/battle_control/requests/__init__.py
from gui.battle_control.requests.AvatarRequestsController import AvatarRequestsController
__all__ = ['AvatarRequestsController']
# okay decompyling c:\Users\PC\wotsources\files\originals\res\scr... | [
"info@webium.sk"
] | info@webium.sk |
f5b5956712c08622e982068a84f0eeadb005ccbd | 4a36526cdf4c8ec199fc597055a396d42dd364c2 | /node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build/config.gypi | bac4dedf3d7a0f7732bfeccc38c0ed2190dba4bf | [
"MIT"
] | permissive | alanayoub/watchr | 0a216a297cab777b421d4d1a5e4120307e364490 | c44dc75596a4ddbce8f1c814f6aeeddc713d20c9 | refs/heads/master | 2021-01-18T00:29:04.066117 | 2015-09-30T19:12:37 | 2015-09-30T19:12:37 | 15,404,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 47,
"host_arch": "x64",
"node_install_npm": ... | [
"alanayoub@gmail.com"
] | alanayoub@gmail.com |
dcfbcd9b0e036f17bbc310e385f9a7d9f2753846 | 251f05c594b2a1c3b34a5aeebf1ca6212f8d7ffb | /python/customcircle.py | 2a31d4a155ba875de675e2fd764142dbd671e3fc | [] | no_license | Zahidsqldba07/code_repo-ML | c86ff3c54c38b1c7667f1d4957375f6c2f4dbea8 | 72e7931a7239e4ea372a35330c3f0763e0ba1c43 | refs/heads/master | 2023-03-16T03:14:30.278736 | 2019-11-08T20:11:54 | 2019-11-08T20:11:54 | 513,224,923 | 1 | 0 | null | 2022-07-12T16:59:33 | 2022-07-12T16:59:32 | null | UTF-8 | Python | false | false | 1,182 | py | class circle:
def __init__(self, center=(0,0), radius=1):
if radius < 0:
raise ValueError("negative radius")
self.center = center
self.radius = radius
def get_radius(self):
return self.radius
def get_center(self):
return self.center
... | [
"57429294+Gurtejkaur@users.noreply.github.com"
] | 57429294+Gurtejkaur@users.noreply.github.com |
4829979e77f32635a97c9321a5dd8bd5767ac20e | 8ad01ae1a148bdb5c4d597dec5c62053346dc30a | /python/lib/utils/peltierOp.py | 6ec62f82b7022388f70a7e1e7f8c98991ea75c95 | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | NXP/tpmp_ctrl | baac374caf2caca8a7993ba3ae98b5e4aceae527 | a1e9097b931f706ef922dba1497e00ba6fa63bc8 | refs/heads/master | 2023-02-21T01:47:27.807770 | 2020-10-14T13:33:19 | 2020-10-15T09:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | #!/usr/bin/env python
# Copyright 2019 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Author: Jerome NEANNE
# Mail: jerome.neanne@nxp.com
# description: wrapper for Peltier control
import sys
sys.path.insert(0, '../../') #ToDo: cleanup: move or remove this file
import basicSerialAuto
def setPeltierImmediate(term... | [
"philippe.mazet@nxp.com"
] | philippe.mazet@nxp.com |
936982e0bea573b7f271241524b520589ff59504 | 401c5d1a67005388e9f4e55eff4110b9be2027c2 | /Login.py | e12aa13ee42cecc1b9ce7c00f8880594564e62f5 | [] | no_license | lucasarieiv/Login_Cadastro | c98bb07c04d5bd2b5c67b9f53d11fea37eaafcfa | 3c6f4bb3cf681fd77b77f829faa9dd91acec5cfe | refs/heads/master | 2021-04-25T16:26:36.364474 | 2018-03-03T05:29:12 | 2018-03-03T05:29:12 | 121,457,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | from Cadastro import *
import os
def resPass():
print('Digite 1- Para Fazer Login') #Printa Esse texto
print('Digite 2- Para Cadastrar')
print('Digite 3- Para Sair')
resp = input() #Essa Linha ta uma entrada
return resp
while True:
resp = resPass()
if resp == '1':
print('Bem Vindo ... | [
"tiomedianope@gmail.com"
] | tiomedianope@gmail.com |
b7d28915d0260bdbaa5ecdcd90430b17255444b9 | 9f8aad9802e385dfb8d176f4f954c92d88a78f66 | /PythonPandas/panda_operations.py | b5dac97325b369c39e370c8554b4b4b6de808642 | [] | no_license | Khokavim/Python-Advanced | 8b33def089cb18c6b381cc91afed533dc8dc8ad9 | 977ca26ed410969098a1e034750276d99f628ceb | refs/heads/master | 2020-04-08T16:57:18.203355 | 2018-12-04T22:37:45 | 2018-12-04T22:37:45 | 159,543,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,458 | py | #Pandas library helps with importing datasets , working with series, dataframes
import pandas as pd
import numpy_operations as np
from pandas import Series, DataFrame
# Series and Data Frame are two data structures available in python
series_a = Series([5,4,3,2,1])# a simple series
print(series_a) # A series ... | [
"meshachm126@gmail.com"
] | meshachm126@gmail.com |
6fcde301144499017298a0827f87196955b720fb | ead9783ed4ed47d252e756c5b1efe72395d6a194 | /prg1.py | ba5d84501a0be9e29445e8d7eaf324677a8902ae | [] | no_license | gunjanbansal9512/mca2ndSem | 17e7682dcb6fb652794843e2aad8263f1f24a4c7 | a07e49735d61f38b240774f2de2bc79abd29b6f4 | refs/heads/master | 2020-03-17T07:34:00.180887 | 2018-06-10T14:00:39 | 2018-06-10T14:00:39 | 133,403,539 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # Write a program to sum all the elements from n1 to n2 where n1 and n2 are positive number
n1=int(input("Enter the vslue of n1"))
n2=int(input("Enter the value of n2"))
sum=0
if(n1<n2):
for i in range(n1,n2+1):
sum=sum+i
else:
for i in range(n2,n1+1):
sum=sum+1
print("Sum of numbers between n1... | [
"noreply@github.com"
] | noreply@github.com |
caf97bdb7a408cc4436da1c23a0ce726f007618f | afb1906e4226b6ecdced2dbf47b84d206d9bad34 | /16.guessing_game.py | 079e77563a0f8ed2171d0dca00b98979543fa85d | [] | no_license | raysonkong/python_mike_dane_tutorial | 7554dd0295039125366681fad031f459db7696f2 | 9a9b4ac760ae4a56a90ec6d22a170ace9e246632 | refs/heads/master | 2022-11-07T14:09:26.192882 | 2020-06-23T07:29:05 | 2020-06-23T07:29:05 | 269,577,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # 2:20:15
# Guessing Game
secret_word = "giraffe"
guess = ""
guess_count = 0
guess_limit = 3
out_of_guesses = False
while guess != secret_word and not(out_of_guesses):
if guess_count < guess_limit:
guess = input("Make a guess: ")
guess_count += 1
else:
out_of_guesses = True
if not(o... | [
"kong.rayson@gmail.com"
] | kong.rayson@gmail.com |
5de412aa9b80c0176b662be5d7ca07b97f2ce4fc | 1c83416f15e38fa67eb5ffc7582a40489e8bb452 | /zmq/zmq_client.py | 92aa1f4d940f12c4463959c85eb6099460644509 | [] | no_license | DisabledStudy/Python | 2f6696ae290efd42cb14a37cdde1187f4f8ca7ed | c02249d84b3c4de7e68274fe36631aa005e0d3fc | refs/heads/master | 2020-04-14T00:27:30.944082 | 2018-12-29T19:19:59 | 2018-12-29T19:20:35 | 163,533,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import zmq
host = '127.0.0.1'
port = 6789
context = zmq.Context()
client = context.socket(zmq.REQ)
client.connect("tcp://%s:%s" % (host, port))
for num in range(1, 6):
request_str = "message #%s" % num
request_bytes = request_str.encode('utf-8')
client.send(request_bytes)
reply_bytes = client.recv()
... | [
"dmitry.belous89@gmail.com"
] | dmitry.belous89@gmail.com |
5f54a5d873a44447c0c7928baedb8afbf35fa3f9 | 8b37108a288433f362311408d885a30c3e1b77ef | /bin/pip3 | 9d0727633e26fa51c61244e5eac86cf33b2f4810 | [] | no_license | dfab646/frec | 7950529dd38230c1df698aa9ec2a80f2e52c315d | fdb150129a1dc8b381b126f955a274b2058b0287 | refs/heads/main | 2023-08-29T18:48:30.903316 | 2021-11-14T02:37:01 | 2021-11-14T02:37:01 | 427,786,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | #!/Users/x/d3v/frec/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"help@google.com"
] | help@google.com | |
030305ab4f62d57c7c891748c1539069d222cb70 | 35b5f50626d33b17f38f311e9d5fc6b727d25765 | /gui/kivy/uix/dialogs/invoices.py | 8904edf6fbc412e1c895baa64e3ebd02c67d15b9 | [
"MIT"
] | permissive | bitcoinpostquantum/electrumpq | 7fcf5a3fbda2b05f033340ba61fc23e46997f5ed | dbbc2a493aff904923cd8112fc5bb07802df272c | refs/heads/master | 2020-04-10T10:09:24.239700 | 2018-12-29T09:49:58 | 2018-12-29T09:49:58 | 160,957,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,810 | py | from kivy.app import App
from kivy.factory import Factory
from kivy.properties import ObjectProperty
from kivy.lang import Builder
from decimal import Decimal
Builder.load_string('''
<InvoicesLabel@Label>
#color: .305, .309, .309, 1
text_size: self.width, None
halign: 'left'
valign: 'top'
<InvoiceItem... | [
"code@bitcoinpq.org"
] | code@bitcoinpq.org |
0e1d3724fe43681c39b138b97a5645c3c11755d4 | a5a27a8a901786d7f05f2cc5d9d67eade7d9cc65 | /main.py | c1e01892fec33d15434ce471f111fac9019b8858 | [] | no_license | 120BPM/EthereumtoUSDpy | e417bd947e707c02a0bc043d772f87fef1f9b903 | 57018671212fd89027a8a5b937870ff021341e1f | refs/heads/master | 2020-03-28T20:55:47.341765 | 2017-07-26T15:14:11 | 2017-07-26T15:14:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import requests
from pylab import show
from bs4 import BeautifulSoup
res = requests.get('https://www.coingecko.com/zh-tw/%E5%8C%AF%E7%8E%87%E5%9C%96/%E4%BB%A5%E5%A4%AA%E5%9D%8A/usd/30%E5%A4%A9')
soup = BeautifulSoup(res.text, 'html.parser')
data_prices = soup.select('#coin_30d_historical_price_chart')[0].prettif... | [
"noreply@github.com"
] | noreply@github.com |
13f357a7fd6b81224cd374d8f27073af42d95e2c | d23661e49d16736ce8f669b4439c7209a02ca858 | /sentiment/sentiment_analyzer.py | ea53b3d3652d3b7a4b7f9948a96945f2c7190ec5 | [] | no_license | jinghul/viral | 2585dcc1dc89239d35066a84cd601d4cab548a42 | 56a3b42fbb40b27b6b8049f57ad075223268b292 | refs/heads/master | 2020-05-01T04:06:27.666247 | 2019-04-09T05:28:57 | 2019-04-09T05:28:57 | 177,264,795 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,928 | py | # coding: utf-8
# Author: Lizi Liao, Liangming Pan, originaly by C.J. Hutto
# For license information, see LICENSE.TXT
"""
If you use the VADER sentiment analysis tools, please cite:
Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for
Sentiment Analysis of Social Media Text. Eighth Internati... | [
"jinghul@bu.edu"
] | jinghul@bu.edu |
4e1ffae035fb68c5edc85446876eba2211d053af | 1edc64938d4587200ad6ffba3f3c433a265d5a12 | /custom_components/aarlo/pyaarlo/media.py | 8f4991430732b69ff315abfa19ebf1cc5a7c49aa | [] | no_license | collse/Home-AssistantConfig | ebf32a18ee96822ab1b80d8f58e92073c282d3d4 | e4a1bc6ee3c470619e4169ac903b88f5dad3b6a8 | refs/heads/master | 2021-01-21T20:56:08.155545 | 2019-09-07T02:29:58 | 2019-09-07T02:29:58 | 93,457,549 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,547 | py |
import time
import threading
from datetime import datetime
from datetime import timedelta
from custom_components.aarlo.pyaarlo.constant import ( LIBRARY_URL,
PRELOAD_DAYS )
from custom_components.aarlo.pyaarlo.util import ( arlotime_strftime,
arlotime_to_date... | [
"notinuse@protonmail.com"
] | notinuse@protonmail.com |
be66682ef42b97624bb2b639bd3491ff3da7dcce | 7aa32138511354d0d741b438b43aeaf7ed603575 | /7_24/338_CountingBits.py | 48e7f75cafef32e0275aa05dccc3f93d85fface9 | [] | no_license | chuxuanyu/LeetCode-Exercise | ceadd5c583373095cc06b545d6cec6c952d89707 | 557013db92275f0de51417dbb8c2f341744b00f9 | refs/heads/master | 2020-03-23T20:29:33.783184 | 2018-08-23T21:52:49 | 2018-08-23T21:52:49 | 142,044,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 23 20:24:37 2018
@author: chuxuan
"""
# My Own Idea
def countBits(num):
results = [0 for i in range(num+1)]
for i in range (num+1):
n = i
while n:
results[i] = results[i] + (n & 1)
n >>= 1
return r... | [
"noreply@github.com"
] | noreply@github.com |
58932b4dc96f982643c975264b7b86881c0a7c4a | 7d95c1b8fb9f1bce96fd1dbdb014e7beaddcf819 | /calculadora09.py | f4c21361fa1ae558f92cc39f53d5d32c73750136 | [] | no_license | jchigne/trabajo | d7d4302dc019a9a2312ab4f697e850993a9d5f88 | 1ffa85ce6a6ca0e5d4c59d9963cbece8923e4b51 | refs/heads/master | 2020-09-06T23:18:55.093179 | 2019-11-09T03:36:59 | 2019-11-09T03:36:59 | 220,586,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #Calculadora nro9
#Esta calculadora realiza el area del paralelepepedo
#Declaracion de datos
base_mayos,base_menos,altura3,area_paralelepipedo=0,0,0,0
#calculadora
area_mayor=13
area_menor=5
altura3=10
area_paralelepipedo=(area_mayor*area_menor+altura3)
verificador=(area_paralelepipedo==75)
#mostrar datos
print("are... | [
"56941409+jchigne@users.noreply.github.com"
] | 56941409+jchigne@users.noreply.github.com |
4c6a2c954bebd5078dc10063e20a25bd877fe635 | cc5f81c5cc6c3e7398cc4a664293bd491c13d85c | /primestring.py | 4a3d8a9a05ec4b26d74e128f00fc7d8445eab280 | [] | no_license | erroronline1/hello-world | 8b0785173b524809d4ced8f4b7c90438e726c74e | db90401f61c482a72f7a4d1407ac5e7080fb118c | refs/heads/master | 2021-07-14T18:29:42.458605 | 2020-05-31T12:36:24 | 2020-05-31T12:41:01 | 155,249,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | """check if string is prime as in
aaaa !prime
abab !prime
abcd prime"""
i=input('type in string to check if prime: ')
data={}
for chunk in range(2,len(i)+1):
if not len(i)%chunk:
pos=0
data[chunk]=[]
for step in range(1,chunk+1):
rchunk=i[pos:pos+len(i)//chunk]
if rchunk not in data[chunk]:
data[chunk... | [
"noreply@github.com"
] | noreply@github.com |
d30429aba0c826c9eadd5e4d10f1e213d7fb8d61 | e385e61f1805561707360c559b8b09126c00119e | /bin/getAllHosts.py | ce6b76a86f75f4e8e5cb7826e5430bcb25d3a00f | [] | no_license | jpdborgna/faraday | 3371c66621c1abe2f40c0d9cf28fff443108cb24 | 388c0950e6057cebbd4ecd332d9023c6b120249b | refs/heads/master | 2021-01-15T12:25:44.735655 | 2014-02-12T23:49:09 | 2014-02-12T23:49:09 | 16,785,217 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Faraday Penetration Test IDE - Community Version
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/)
See the file 'doc/LICENSE' for the license information
'''
for host in api.__model_controller.getAllHosts():
for i in host.getAllInterfaces():
... | [
"famato@infobytesec.com"
] | famato@infobytesec.com |
191a25f5bd2a7feea63c12ff7b88fbacdc52c55d | 1ccfcaccec18b2e2c512b931fe1473eaf59905ec | /Models/Database/sequenceRepository.py | d9b4892bb164d10d32d2ff11950816beeb41af80 | [] | no_license | rafalfelczynski/dna-alignment | 7be055f855f7b1bfd601c4b36694f940a0d9701f | deb556630793d57132be0d39fd212eeb113404de | refs/heads/main | 2023-02-17T12:08:10.272197 | 2021-01-19T09:51:19 | 2021-01-19T09:51:19 | 317,194,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from typing import List
from Models.sequence import Sequence
from Models.isequenceProvider import ISequenceProvider
class SequenceRepository:
def __init__(self, provider: ISequenceProvider):
self._provier = provider
def writeSeq(self, seq: Sequence) -> bool:
return self._provier.write(seq)
... | [
"zbyroslaw20@wp.pl"
] | zbyroslaw20@wp.pl |
c06a27359bd3e04103be8d2ab7bd1255946485aa | bf5d402d5031e1c145ad03594fc1903aa77f3e32 | /pro65.py | 9b2ca9f6a776d68cc0c11306b629d80d221936b7 | [] | no_license | uthraa98/guvi-probls | dbc876532304784ecc036a3399c4713d8bc607a7 | f914fff383ec80f1b766da1dc2ae0a38164e5577 | refs/heads/master | 2020-06-19T21:46:13.309608 | 2019-08-11T05:56:00 | 2019-08-11T05:56:00 | 196,885,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | a=list(map(int,input().split()))
b=list(map(int,input().split()))
c=list(map(int,input().split()))
if c==[12]:
print("5")
if c==[14]:
print("3")
if c==[7]:
print("Bon Appetit")
| [
"noreply@github.com"
] | noreply@github.com |
69c75e1d29b8db52457b3b1cbde8c44693463577 | ed3737f5be6df551b284e906131ff4b24b3fb709 | /virtual/bin/mako-render | 4c518c61ea1885c16f380c0a9b30e779bf894caa | [
"MIT"
] | permissive | OscarMugendi/Farmers-Forum | 7ebdc896ef90a4b73978513cccbc6f29d85843dd | da685eb5a22a166269bfd7db834e8bbbfb623d03 | refs/heads/main | 2023-07-17T14:22:44.190198 | 2021-08-27T10:59:37 | 2021-08-27T10:59:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/oscar/Documents/GitHub/Farmers-Forum/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from mako.cmd import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"87582596+OscarMugendi@users.noreply.github.com"
] | 87582596+OscarMugendi@users.noreply.github.com | |
8fe5aa22134f70dbb384f33de26b3fdf30d07a0b | c0bc2f5a221c9782b07e119462ca2d66826b7c8b | /foods/models.py | 0292af6e7aa3b8d721d11cc0bde1474a71e06b3d | [] | no_license | dfrogoso/capstone | 660fe3afdd2ac1a80c0da6ea214f9157839f8fa0 | 9b1aa2478f9cd0b070dcbee33a0a3d8c92dd8e9c | refs/heads/master | 2020-07-28T00:24:49.178785 | 2019-09-20T08:22:02 | 2019-09-20T08:22:02 | 209,254,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from django.db import models
from django.contrib.auth.models import User
class Food(models.Model):
title = models.CharField(max_length=40)
description = models.TextField()
image = models.ImageField(upload_to='images/')
price = models.IntegerField(blank=False)
posted_by = models.ForeignKey(User, on... | [
"idominick19@gmail.com"
] | idominick19@gmail.com |
d671f49d5bf51d6b819c2844d458b42b7ada6c94 | 17cad1d357380875243b804ffd13882f1a7d61a8 | /0x0B-python-input_output/2-read_lines.py | f33d4e7521358ff0ab260754b7aa8efa81a6ae2c | [] | no_license | Abdou-Hidoussi/holbertonschool-higher_level_programming | 9a0c0714b63ccd9823798adb51eb4f395ab375dc | 1dd37cc5f848d1f37884e6ffbe9598eae8c4f30e | refs/heads/master | 2023-03-05T00:02:25.283646 | 2021-02-18T20:42:26 | 2021-02-18T20:42:26 | 291,713,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | #!/usr/bin/python3
"""
task 2
"""
def read_lines(filename="", nb_lines=0):
"""read line function"""
with open(filename, encoding="utf-8") as f:
if nb_lines <= 0:
print(f.read(), end="")
return
for i in range(nb_lines):
print(f.readline(), end="")
| [
"hidoussiabdou5@gmail.com"
] | hidoussiabdou5@gmail.com |
d6ceab4c096c9e82c76db78bbc3bef40daa0f911 | 1edb6f6a32fa379dca9ab77dfb17b4e3f2c04615 | /python_2_ATM/ATM.py | 3cd24fa20717cd5192506cdbc0e9d738fd4d0e54 | [] | no_license | catoolashora/solvedatbook | 1843212fc57c1e42b1fa1b8296e7723e157234c4 | 06c91f56cae3158a3159bc73ff861eed1b038f7a | refs/heads/master | 2020-04-14T12:11:54.336216 | 2019-01-17T15:47:01 | 2019-01-17T15:47:01 | 163,833,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | data_filename = "data"
clients_information_file = open(data_filename, "r")
clients_information = clients_information_file.readlines()
parsed_client_information = []
clients = {}
for client in clients_information:
parsed_client_information = client.split(" ")[:4]
clients[parsed_client_information[0]] = pa... | [
"Nir@Snow"
] | Nir@Snow |
8418c74bdd2827a64a4ac6dba6f17b18624e030e | 19e65fe29bf8104c397b5cf4731d20a6a8985219 | /assignments/src/arXivRetriever.py | ba4597ebc235261471e876b2e8065c53575a122d | [] | no_license | sailik1991/SocialMediaAnalysis | 405508ca0dd4df0bbb62af4ef4e8f7a9e37b2fbf | 497cda8b795da6ec02ca73c0bea3c66c0f82ecae | refs/heads/master | 2021-07-10T14:36:02.833410 | 2017-10-14T22:15:53 | 2017-10-14T22:15:53 | 103,697,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | """
A python program to create and store coauthorship graphs of publised ArXiv papers.
Author: Sailik Sengupta
"""
from graph_tool.all import *
from pylab import *
import arxivscraper
import matplotlib
import datetime
import pandas
import sys
def plot_degrees(graph, date_from):
hist = vertex_hist(graph, deg="tota... | [
"ssengu15@asu.edu"
] | ssengu15@asu.edu |
2e2d7e53843980f61f392bff1427b2dbcbdf7af2 | b62f3c45adda3ff7e273759c976216201dea8dc2 | /randomData.py | e6d35d03398cd10f29dbfe8130bfbe9c39c7958e | [] | no_license | jyosoman/FaultSim | 48bf9d1a0069c6aabd6558167a0f49446d800843 | 324696a2d7f01bfd96102ff4a042a2c05cc9bee9 | refs/heads/master | 2020-05-24T04:24:33.519986 | 2017-05-19T14:56:22 | 2017-05-19T14:56:22 | 84,820,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | import random
def randInt():
rnum= random.uniform(0,1)
return rnum*(2<<32)
for i in range(1000000):
print long(randInt()),long(randInt())
| [
"jyothish.soman@gmail.com"
] | jyothish.soman@gmail.com |
1c76e72cd8addfb1c576f4225f82d9d5ad24d572 | f64f8a8827219371236f0e2ad3d5220ec1825cb2 | /bux/_commands/_losers.py | 32efa4c463b6d14b31e50be4b8aa634548f350b3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | orsinium-labs/bux | 2b1c0c19aa06d480a90386cdda66af855a746f32 | fbb5727b759719f15ec38dd4bf00e493690854b4 | refs/heads/master | 2023-07-12T19:35:14.768488 | 2021-08-30T11:19:03 | 2021-08-30T11:19:03 | 389,935,936 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from argparse import ArgumentParser
import bux
from ._base import Command, register
@register
class Losers(Command):
name = 'losers'
@staticmethod
def init_parser(parser: ArgumentParser) -> None:
parser.add_argument('--token', required=True)
def run(self) -> int:
api = bux.UserAPI(... | [
"mail@orsinium.dev"
] | mail@orsinium.dev |
2d6930ba280dc1e2664d7861215842da9bd42981 | 376f534e75765719b33f61da9bc27d082f4ab580 | /Chapter 5 codes/csvinventory | 2bf3164ac890e96637476758d9007d82f1a04828 | [] | no_license | joonp/ansible_book | 45c3f3354fb205b2dba7795c4e1469fca26b33a5 | c3ecb8f5009d12a86f866c725dd600b985d926a9 | refs/heads/master | 2021-01-23T01:07:15.464649 | 2017-09-05T03:39:57 | 2017-09-05T03:39:57 | 102,430,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import csv
import json
def getlist(csvfile):
# Init local variables
glist = dict()
rowcount = 0
# Iterate over all the rows
for row in csvfile:
# Throw away the header (Row 0)
if rowcount != 0:
# Get the values o... | [
"jame@p.com"
] | jame@p.com | |
26f7ad05e80fdca110523b238fc32b0116198fe1 | a8ebaf383288403106c2c9f2bd8d3eebb53df094 | /migrations/versions/f32336cc5e99_.py | fc6a7dcfd2c928776f3dff145bd45b11b47b3f9b | [
"MIT"
] | permissive | adyouri/lafza | 3dadfc5b4254956151b426a177d5e56b0ce846e6 | 3aa8409153c2d6b8cfc548ca950c6680e6f91a01 | refs/heads/master | 2021-10-19T08:34:36.143144 | 2019-02-19T15:37:34 | 2019-02-19T15:37:34 | 125,109,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | """empty message
Revision ID: f32336cc5e99
Revises: 4354b8fb64b7
Create Date: 2018-06-25 20:08:54.146982
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'f32336cc5e99'
down_revision = '4354b8fb64b7'
branch_labels = None... | [
"raryat@gmail.com"
] | raryat@gmail.com |
a3424567b9fa99285159c49090adb9b95af34148 | c0fd1c6c8b12785fb594dc9f12d2b73478a10f69 | /pjt06/pjt06_movie/settings.py | f053b645cd915b3e93bd30b2fa0003bbca0e657c | [] | no_license | joohongkim1/PJT-1 | fe5c564f346df3830ba1129c6f75ce1b0b32f153 | b36f7f7561497045ad53e7a32a7a580abf615a60 | refs/heads/master | 2020-08-19T20:33:42.435771 | 2019-10-18T05:51:12 | 2019-10-18T05:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | """
Django settings for pjt06_movie project.
Generated by 'django-admin startproject' using Django 2.2.6.
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 o... | [
"haajeesoo@gmail.com"
] | haajeesoo@gmail.com |
fa8c29d56f13ea0617e83c87a99644ad33ef1a28 | 56ea966ee1219810355c44997cb547d1f22828b2 | /test.py | 3f3624d6935ee57cae50ed2165dbcc02dbd141c7 | [] | no_license | Dadodadolontong/banold | b52a4cc400e4bc54318424e752c9b56b8bbd3099 | 0a7dbfa442fe58ab68a30177383833146550a84c | refs/heads/master | 2022-01-09T06:57:50.108244 | 2018-04-23T15:05:48 | 2018-04-23T15:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import frappe
import erpnext
def submit():
i = 0
for si in frappe.get_all("Sales Invoice", filters=[["docstatus","=",0],["posting_date",">=","2017-01-01"]]):
si = frappe.get_doc("Sales Invoice", si.name)
i += 1
try:
si.submit()
print "{0} {1} Ok".format(i,si.name)
... | [
"cahyadi.suwindra@gmail.com"
] | cahyadi.suwindra@gmail.com |
a06ebf0b2e70f7edd07d4d1201d5f5e3bdf3e7ee | 614bb41a47ac1517bf4bffad245b9844d3d0584e | /manage/manage.py | 4ac87624d60331358d8476e4c4c95ef6d237478a | [] | no_license | jnzs1836/stock-dealing-system | 109b6c565cf78757122f072f8f9a842c1a177c15 | da5ca832f3fb2863671245a673b52d9ac1ef2e16 | refs/heads/master | 2020-03-21T14:07:03.978867 | 2018-06-25T19:18:46 | 2018-06-25T19:18:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,672 | py | from flask import Flask, jsonify, request, render_template
from itsdangerous import URLSafeTimedSerializer, BadSignature, SignatureExpired
from flask_sqlalchemy import SQLAlchemy
import json
import time
import datetime
# from main import db
# from trading.order import change_stock_status, get_buy_sell_items, get_stoc... | [
"wuguandejn@gmail.com"
] | wuguandejn@gmail.com |
397ddeaeef002ff5fe08436da499fb1acc87c3dd | 2875c1108d5e658b2cf8afff22f72c06054b02a5 | /project/hackathone/shop/models.py | f92695825c2c6851c5bfd696c32294c0745c0826 | [] | no_license | peanutyumyum/LOTTE_Calendar | 9da0896306610779d0c55b04cf6f78985e9cc111 | 965687cecdffe2ee292acb0b6cba5965f7d98770 | refs/heads/main | 2023-01-03T05:51:42.271412 | 2020-10-26T03:23:39 | 2020-10-26T03:23:39 | 302,361,164 | 1 | 5 | null | 2020-10-25T10:17:30 | 2020-10-08T14:07:04 | Python | UTF-8 | Python | false | false | 1,461 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=250, unique=True)
slug = models.SlugField(max_length=250, unique=True)
description = models.TextField(blank=True)
image = models.ImageField(upload_to=... | [
"4294psy@naver.com"
] | 4294psy@naver.com |
f8de2d3ec7ab10bb09fe805c6e7428d259ba7457 | 5dfca79fe1de186b240caa9c3cf24c5565431bef | /Blink.py | 2516838a8ba66611fb0a12b73ebf0375286a19f9 | [] | no_license | ed-choi/Game | fa0ab929b33fffde89adc8acff4386fccc9f0ad7 | ca984014e07ac8de208a78114df976332fa10b3f | refs/heads/master | 2016-09-06T13:03:24.024787 | 2013-10-13T01:22:50 | 2013-10-13T01:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | import sfml as sf
class Entity(sf.Drawable):
def __init__(self):
sf.Drawable.__init__(self)
self._transformable = sf.Transformable()
self.shape = sf.RectangleShape()
def draw(self, target, states):
states.transform.combine(self._transformable.transform)
target.draw(body)
target.draw(clothes)
def ge... | [
"edward.choi805@gmail.com"
] | edward.choi805@gmail.com |
7d0b0da4756155d0590d0f4e129b6b3710cfc484 | 0d8d53d073f43edaf79ac51759a2ca0fdda5b289 | /catkin_ws/build/my_robot/catkin_generated/pkg.installspace.context.pc.py | d11546171322cc2d28b7046752c09f86cb91407c | [] | no_license | eogiesoba/RSE_Where_Am_I | c45783b9fdca9df17212ac9da4ad84883d200469 | 6484236b206f92e53680af5c132e8bf044df64ea | refs/heads/master | 2020-05-02T01:31:48.713215 | 2019-03-31T03:04:58 | 2019-03-31T03:04:58 | 177,687,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "my_robot"
PROJECT_SPACE_DIR = "/home/... | [
"eogiesoba@gmail.com"
] | eogiesoba@gmail.com |
73ea9b5b72d472a84e080415378c392f17ac413d | 34c84dc28ca8c62594ba74facc6cef4eacb2aad9 | /examples/liquid-argon/utils.py | 672f312f191d433c0811262db1d2a9b8692c8079 | [] | no_license | choderalab/automatic-equilibration-detection | f4102407db312402b30dceb1cee0ea0e698e46b1 | 9b5f096cd8e309bc1158f9eed5d8fd41f78312cc | refs/heads/master | 2021-01-17T15:15:38.786759 | 2016-12-24T06:12:32 | 2016-12-24T06:12:32 | 19,412,535 | 15 | 9 | null | 2016-12-24T06:12:33 | 2014-05-03T21:28:09 | TeX | UTF-8 | Python | false | false | 4,937 | py | #!/usr/bin/env python
"""
Run a simulation of liquid argon at constant pressure.
"""
import os, os.path, copy
import netCDF4
from simtk import openmm, unit
from simtk.openmm import app
from openmmtools import testsystems, integrators
def minimize(system, positions):
"""
Minimize the specified testsystem.
... | [
"choderaj@mskcc.org"
] | choderaj@mskcc.org |
efd87e3bca2effcd0c4b04504efd8b08335b2d97 | 1abcf3266a234694cd8484f500891de58d45f818 | /admin/adminListFlights.py | ce7a56a6898fd06444d4b5c59dabf6f6f525a6f4 | [] | no_license | vishvanata/rtLog | ca414094d2370132ec5625ae4314f698694a2a4d | 2d0d8984241a8d7c3762c3cd50e0422978347dea | refs/heads/main | 2023-03-05T02:20:48.714374 | 2021-02-02T02:59:05 | 2021-02-02T02:59:05 | 334,457,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # Vishva Natarajan
#List all unmanned vehicle
#returns status code 100 for NO Records Found.
from flask import Flask, json, Response
from flask_jsonpify import jsonify
from flask_restful import Resource,reqparse
from sqlalchemy import create_engine
class adminListFlights(Resource):
def __init__(self,**kwargs):... | [
"noreply@github.com"
] | noreply@github.com |
6080a62944e22b2f2c402fe35787e022157e5b5c | e28c0398d5f4de0efdf3a3c4c0609f193bc8e3aa | /tmweixin/api/decorators.py | 5197516af9ac2acd2b20c3a61a1f8914db78710b | [] | no_license | zhongkunchen/tmweixin | 9f3ef3770f7e966e349a312bdbd22ed52b4ce2de | a54c082b0a893fb096401fa22c267674109e8538 | refs/heads/master | 2021-01-10T01:44:24.823143 | 2015-11-25T09:04:29 | 2015-11-25T09:04:29 | 46,848,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | #!coding: utf-8
__author__ = 'zkchen'
from base import SimpleApi, CacheResultApi
def pull_api(api_url, data_key, api_klass=None, **kwargs):
"""
装饰器,用于把一个类实例方法变成pull型api方法
"""
if api_klass is None:
api_klass = SimpleApi
api = api_klass(api_url=api_url, data_key=data_key, **kwargs)
def ... | [
"zkchen@zkchendeMacBook-Pro.local"
] | zkchen@zkchendeMacBook-Pro.local |
9dc37b68f4227ac27a89f55d261f0f2d58db064d | 53f2a72afe6b638b2beea94f5514be8ab3921ee4 | /reg/migrations/0006_auto_20170719_1646.py | 4189816eda6d02e0667fc4bc2aa42ba6d00f9c8b | [] | no_license | bipinkh/FSUelectionManagementSystem | 576336f2fbff46e137bd7ff76fe8df17c19fd9a9 | 013ac5f7f7475656876b471a52704d76f1d13d2b | refs/heads/master | 2021-01-01T15:49:00.204030 | 2018-07-07T17:25:56 | 2018-07-07T17:25:56 | 97,708,797 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-19 11:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reg', '0005_auto_20170719_1636'),
]
operations = [
migrations.AlterField(
... | [
"bipinkh91@gmail.com"
] | bipinkh91@gmail.com |
2e1a11b5368de0858e255c37da6f4b4233a5b330 | 478e188c5109686fbd1b1cc529842c4a00263077 | /Session5/test8.py | 64c809dee126ce76fdb10fa74533da488207e71d | [] | no_license | apri-me/python_class00 | c48a28dc28f24dbba5def448d195dd6da85dbe6c | 99d97e9abfb1e1ad9b9c22a5a1a0b511872fe02e | refs/heads/master | 2023-05-29T09:03:19.135841 | 2021-06-16T20:59:52 | 2021-06-16T20:59:52 | 342,352,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | my_dict = {
'name': 'alireza',
'last name': 'afroozi',
'face': {
'hair color': 'Brown',
'eye color': 'Blue'
} ,
'friends': ['sina', 'vahid', 'amir', 'erfan'] ,
}
# my_dict['year'] = 1399
# my_dict['class'] = 'A101'
# my_dict['religion'] = 'Islam'
my_dict.update( {'name': 'ali', 'ye... | [
"the.aprime2020@gmail.com"
] | the.aprime2020@gmail.com |
d614fc69982e90bef74703c3499141f522d4c0e0 | 3c619a14c087f889e007c5b7e9415037d4c63992 | /tensorflow/contrib/distribute/python/collective_all_reduce_strategy_test.py | bba0bce9f2e2c4b231c9dc4a2705c476ab091d50 | [
"Apache-2.0"
] | permissive | WangLing20150722/tensorflow | 896b49796b6a4b658c89877704e5fcd86076892e | f1f1336aef572eb2073c9a488f8408b6404a700b | refs/heads/master | 2020-04-20T04:26:36.320082 | 2019-02-01T02:01:25 | 2019-02-01T02:01:34 | 168,627,573 | 1 | 0 | Apache-2.0 | 2019-02-01T02:05:23 | 2019-02-01T02:05:22 | null | UTF-8 | Python | false | false | 20,537 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
8a694374ab5ab30d8a2be86fa9ae8f05d8ed4afe | d64f4e4c2ba479a8339b3517183ac1086c3a4fd7 | /venv/Scripts/django-admin.py | 41558f663821ce43a846c1fd5baaab8a06be93cd | [
"MIT"
] | permissive | cforcross/databases_medium | a56b76323bccd73d48d42b76776a8e3fffd02211 | 7f9ae1e462b7a02db7d303a8a353598e3b5aceed | refs/heads/main | 2023-03-31T10:41:39.892490 | 2021-04-05T10:50:59 | 2021-04-05T10:50:59 | 354,692,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | #!d:\medium\databases\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecated in... | [
"ntsendifor@gmail.com"
] | ntsendifor@gmail.com |
f7fef6c0fbd648e0907bd9109c9e8d61b8d6b5ea | 42a43ce3e25d69efcedc17001d113f7f592191f3 | /src/normal_cells_conb/lstm_cn_sep.py | 812d2a36b75e449412832a0833465d7253091e8b | [
"Apache-2.0"
] | permissive | Jakexxh/lstm_normalizations | 99744d38753f375c2db24b7b99fa7261ebcae1aa | a39c2798550b56a81882b718c73da121435b4322 | refs/heads/master | 2021-03-27T16:05:49.187131 | 2019-02-03T07:46:08 | 2019-02-03T07:46:08 | 109,641,676 | 1 | 0 | null | 2017-11-17T06:39:14 | 2017-11-06T03:11:46 | Python | UTF-8 | Python | false | false | 6,199 | py | import tensorflow as tf
import numpy as np
# import time
from tensorflow.python.ops.rnn_cell import RNNCell, LSTMStateTuple
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import array_ops
from tensorflow.python.util import nest
from tensorflow.python.ops import variable_scope as vs
from tensorfl... | [
"jakewill@qq.com"
] | jakewill@qq.com |
4649092af7c99f1f913f1b6305e81c3ad84e7b26 | 2b4af8810511b5f1ed47fdf5662753b9b4af76b8 | /corehq/apps/case_search/migrations/0004_auto_20170518_2018.py | 90b4ceefdfb27e1e0f3dd0893ad81a5dd1d8a782 | [] | no_license | DeckOfPandas/commcare-wddcp | 55bde89197ec5bc4a4b53d327ec6a811aec0d752 | 810d2e09d3890e3d0d70178745da5924c1db767b | refs/heads/dimagi | 2020-12-02T19:19:53.992796 | 2017-06-30T15:18:16 | 2017-07-05T12:23:26 | 96,325,707 | 1 | 0 | null | 2017-07-05T14:02:49 | 2017-07-05T14:02:49 | null | UTF-8 | Python | false | false | 1,843 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-18 20:18
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('case_search', '0003_casesearch... | [
"proteusvacuum@gmail.com"
] | proteusvacuum@gmail.com |
08ccdac741d436ab5e27c2fc379b6c2255343efc | 73515ef9cb8d5217bbbf85da11eaf945f303a88d | /venv/Scripts/pip3-script.py | 41921217fe67a1f7f3bf305f585fd84dd1b4ded5 | [] | no_license | zarruk/my-first-blog | 882dc3810a01dd47def5f992507e35001e3d49c1 | 77877fc630801564c5be3de85f28338ad669b36a | refs/heads/master | 2020-04-17T16:12:29.862254 | 2019-01-21T01:41:15 | 2019-01-21T01:41:15 | 166,731,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!C:\Users\szarruk\djangogirls\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sy... | [
"szarruk@hotmail.com"
] | szarruk@hotmail.com |
0b89c273933090f2847d0f904b8a5b5753190783 | b79c94aac2368fcfe5ec1d4ead7f6a7084d1fe19 | /script/nrg/process_routes.py | f6fd77956ae0c72300fb3000bfcc6fc00bebd9fd | [] | no_license | jonstjohn/Climb-Spotter | 2f1eeae897e5420dd15fd7848c3ccb0c3c15484a | 5eec750f66a63a541099c526bb2f9d675098e599 | refs/heads/master | 2020-03-27T03:40:53.002382 | 2014-02-09T04:59:30 | 2014-02-09T04:59:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | import csv, sys
sys.path.append('/home/jonstjohn/climbspotter/dev/code')
from model import Area, Route
from dbModel import DbArea
import db
f = open('/home/jonstjohn/climbspotter/dev/data/route.txt', 'r')
import re
area_lookup = {}
route_pages = {}
max_page = 1
session = db.csdb.session
# Parse file
p = re.compi... | [
"jonstjohn@gmail.com"
] | jonstjohn@gmail.com |
e76376d0d332a1f8cd16367b148f06b9022ba13b | d65128e38be0243f279e0d72ef85e7d3c5e116ca | /base/site-packages/django/db/models/sql/compiler.py | 2a5abdfa217d68efa5ee1eeb553a13fc89e89164 | [
"Apache-2.0"
] | permissive | ZxwZero/fastor | 19bfc568f9a68f1447c2e049428330ade02d451d | dd9e299e250362802032d1984801bed249e36d8d | refs/heads/master | 2021-06-26T06:40:38.555211 | 2021-06-09T02:05:38 | 2021-06-09T02:05:38 | 229,753,500 | 1 | 1 | Apache-2.0 | 2019-12-23T12:59:25 | 2019-12-23T12:59:24 | null | UTF-8 | Python | false | false | 50,329 | py | import datetime
from django.conf import settings
from django.core.exceptions import FieldError
from django.db.backends.util import truncate_name
from django.db.models.constants import LOOKUP_SEP
from django.db.models.query_utils import select_related_descend, QueryWrapper
from django.db.models.sql.constants import (SI... | [
"edisonlz@163.com"
] | edisonlz@163.com |
989e083986e3aa86a4f9adc4374a6107b1e2010d | cb6b6ee58dbee4604058a3e44142d0ffb7906ba8 | /pypif/obj/common/__init__.py | 7fef72a853f1162fbd7c9a5cb446b86be6fdfaaf | [] | no_license | nad2000/pypif | a3991dab9bf3e0c558a2891b301c3dec494096a6 | dc9923792f91c53ac649b403620a387e1d86cb83 | refs/heads/master | 2020-04-07T07:43:57.980477 | 2016-01-13T21:54:58 | 2016-01-13T21:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from id import Id
from instrument import Instrument
from license import License
from method import Method
from name import Name
from pages import Pages
from person import Person
from process_step import ProcessStep
from property import Property
from reference import Reference
from scalar import Scalar
from software imp... | [
"kyle@citrine.io"
] | kyle@citrine.io |
1bcb4661e824eb62e799bf34da49651df50f914b | 066395d7991fb1b1fdf09ef3d6dc6d0a15421590 | /data_collection_processing/preprocess-nostem.py | d079cbcef5976cedc145344c067f4c745af218a4 | [] | no_license | taojin1992/Automated-confirmation-of-protein-function-annotation-using-NLP | cf57beb2e66cec335c49fe3a586e992e65ff5014 | 4d51899b83d9478b4df5145dc266c1c8e4ad7fba | refs/heads/master | 2021-07-13T07:19:45.845437 | 2021-02-19T18:24:28 | 2021-02-19T18:24:28 | 237,134,224 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | ''' text preprocessing pipeline'''
''' Links:
https://stackoverflow.com/questions/8009882/how-to-read-a-large-file-line-by-line-in-python
https://machinelearningmastery.com/clean-text-machine-learning-python/
https://stackoverflow.com/questions/14301056/concatenating-lists-in-python-3
https://stackoverflow.com/question... | [
"noreply@github.com"
] | noreply@github.com |
17c2f3c89f14097acdd060fbfc80357877b1e2f6 | 9d2d9bd58f2daaa9a78c5a5c440a0a5c2b307f28 | /iterator/pancakeMenuIterator.py | 5466ba8363d6e7200cc46f3e3b9e4ded55350cf1 | [] | no_license | dRoje/design-patterns-python | 183c5063b19fb11b5152f21c863fe71e249dd94d | 4eb0438434a33c1b70c22c13f2f9c602a479d7e7 | refs/heads/master | 2021-07-20T12:04:59.368214 | 2017-10-30T09:33:31 | 2017-10-30T09:33:31 | 105,116,358 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from iterator import Iterator
from menuItem import MenuItem
from typing import List
class PancakeMenuIterator(Iterator):
def __init__(self, items):
# type: (List(MenuItem)) -> None
assert isinstance(items, list)
self.items = items
self.position = 0
def next(self):
menu... | [
"duje.roje@include.hr"
] | duje.roje@include.hr |
a8de5acec73280780ad78ec48bcbd2682e922e37 | f65ceefa94fef770b091566f9c6876efb25f84e3 | /structure_ex/structure_test.py | 280cc28e239c7b03913d16604c6b10e51e3dc01c | [
"BSD-2-Clause"
] | permissive | mpentek/pyKratos | df98402673f56799d8546dacc145b90da63f8a74 | 40da2c8632bdf3215b54c3324bfe58a212a9c6c7 | refs/heads/master | 2020-08-29T09:42:17.450745 | 2019-11-27T09:23:03 | 2019-11-27T09:23:03 | 217,996,491 | 0 | 0 | BSD-2-Clause | 2019-10-28T08:12:52 | 2019-10-28T08:12:51 | null | UTF-8 | Python | false | false | 2,796 | py | from __future__ import print_function, absolute_import, division
import sys
sys.path.append("..")
print(sys.path)
from numpy import *
from pyKratos import *
# add variables to be allocated from the list in variables.py
solution_step_variables = [
DISPLACEMENT_X,
DISPLACEMENT_Y,
VELOCITY_X,
VELOCITY_Y... | [
"rrossi@cimne.upc.edu"
] | rrossi@cimne.upc.edu |
36171b70c039e3c0d5bbc34dc72349b52a130598 | 0da42e858276eff153999acf3c9abfa0c1a847f4 | /HackerRank/30_Days_of_coding_Day12_Inheritance.py | d4d4643211c8a03e4905d38c866e8e6b2ba88da0 | [
"MIT"
] | permissive | utkarshrutgers/tech-interview-prep | 0efbe5a5c531259db957928f69370d48c681ca22 | f1cb747cab2d0930d8d69d860806991ea09e3e78 | refs/heads/master | 2020-04-22T02:33:47.292090 | 2019-03-21T12:27:12 | 2019-03-21T12:27:12 | 170,054,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | class Person:
def __init__(self, firstName, lastName, idNumber):
self.firstName = firstName
self.lastName = lastName
self.idNumber = idNumber
def printPerson(self):
print("Name:", self.lastName + ",", self.firstName)
print("ID:", self.idNumber)
class Student(Person):
# Class Constructor
#
... | [
"noreply@github.com"
] | noreply@github.com |
06b73b205e1b8bcfe3abcb46015a46db42931544 | 74cf86509c669799a3a7ed4b7982d59dde695230 | /pilot_paper_code/plotting_code/plotVel_vs_b.py | a97e15c7083695a8923df0db809d5dd2efab34ad | [] | no_license | frenchd24/pilot_paper | e77103ec4873758474f9020c76a8dad86fc6519c | a8d9191f9e435e02a8f6acfbd85ede32bdfd405d | refs/heads/master | 2020-05-20T06:54:13.266061 | 2019-05-07T17:08:42 | 2019-05-07T17:08:42 | 185,438,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,499 | py | #!/usr/bin/env python
'''
By David French (frenchd@astro.wisc.edu)
$Id: plotVel_vs_b.py, v 1.1 04/21/2016
Plot the velocity and velocity difference as a function of dopplar b-parameter
- (03/02/2016)
v1.1: remake plots with v_hel instead of vcorr (4/21/16)
'''
import sys
import os
import csv
from pylab... | [
"frenchd24@gmail.com"
] | frenchd24@gmail.com |
22b0dd663c07ff294d1a3fe025edea0bcad273d5 | f63e0d8bf6322f1e7361153f42fdc22dd360adb1 | /publishconf.py | 2a6871be81fc2745039ed3250e348850d658b0ec | [] | no_license | missfall/lnmp100.github.io | c9c0658460c3ba8be1a5646c23d3cdef38b27b26 | 24150f076f2d333808871b106a73474ad2541def | refs/heads/master | 2021-05-28T20:05:25.735844 | 2015-03-30T06:27:16 | 2015-03-30T06:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
SITEURL = 'http://www.lnmp100.com'
RELATIVE_URLS = False... | [
"quanlongwang@gmail.com"
] | quanlongwang@gmail.com |
02a5188a89737dca40113ba69cfee3a1d86f8993 | aa2a8eb6aad4aa9336f122ec171ebfc6e5b9d79c | /Milestone 4/stock_analysis.py | 8ac6bbca4fb8411ca9be2d1d5fdfc4bcba2677e4 | [] | no_license | hafiz-hussin/hafiz-hussin | d0afea52cbae26858ee5bb8d718562f50eaf112e | 8886d6ce3ff4b456339939b316a89ba1efb483d0 | refs/heads/master | 2020-05-30T15:51:33.929216 | 2019-06-02T10:31:48 | 2019-06-02T10:31:48 | 189,830,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,948 | py | # Libraries
import pandas as pd
import numpy as np
import fbprophet
from pytrends.request import TrendReq
import pandas_datareader as wb
import matplotlib.pyplot as plt
import matplotlib
# Main class for data analysis
class Stocker():
# Initialization requires a ticker symbol
def __init__(self, ticker):
... | [
"hafiz.hussin@terang.asia"
] | hafiz.hussin@terang.asia |
4efbe7d283a9b37489197ba6622c3df79b4585f0 | 4d10a701a6821a031a3546d94d1ce20bd0a0dccc | /functional_tests/test_simple_list_creation.py | 7bf0dc839bbc654b880a5bae930da5b88061d2a2 | [] | no_license | MagdaZawora/superlists_TDD | 202465ddb3d9563b5e5725f70cfd127ba70048ae | 28e08c1780e5d1c6d6747e111889bf945ec57a8a | refs/heads/master | 2021-09-06T07:10:19.324324 | 2018-02-03T16:10:24 | 2018-02-03T16:10:24 | 109,604,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,110 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from .base import FunctionalTest
class NewVisitorTest(FunctionalTest):
def test_can_start_a_list_for_one_user(self):
# Edith has heard about a cool new online to-do app. She goes
# to check out its homepage
self... | [
"magda.zawora@gmail.com"
] | magda.zawora@gmail.com |
63c7535e6182eb98cb9fd6c4f332242264692c4b | 6a3b57dd72c26e7c2e6091a20bc30706531736c3 | /test/test_dpr_retriever.py | 685ef191bd575082aa89d8c2e191848a839e7095 | [
"Apache-2.0"
] | permissive | karimjp/haystack | 3e3ef89e214064fc286804c0a5f6302c3e9a1f3c | d8154939fc2fdb436c8964de39f265e21da1fadf | refs/heads/master | 2023-01-31T12:47:28.286748 | 2020-12-11T11:10:24 | 2020-12-11T11:10:24 | 285,337,374 | 0 | 0 | Apache-2.0 | 2020-08-05T16:38:45 | 2020-08-05T15:53:33 | null | UTF-8 | Python | false | false | 6,156 | py | import pytest
import time
import numpy as np
from haystack import Document
from haystack.retriever.dense import DensePassageRetriever
from transformers import DPRContextEncoderTokenizerFast, DPRQuestionEncoderTokenizerFast
@pytest.mark.slow
@pytest.mark.elasticsearch
@pytest.mark.parametrize("document_store", ["elas... | [
"noreply@github.com"
] | noreply@github.com |
8439b12a9a6954d37d74fc8c38bdef508d8b454a | 18b7bb4447c901d5f5f3b50dd61228f837aaed1e | /booking/migrations/0006_auto_20200729_1334.py | 34ab198b17bf5b6224fdb75a9f88b9ee30237345 | [] | no_license | sauravrawat710/Hotel-Booking-System | 3916697dba17867c4a75a449e428ebda43127ac1 | a1ea6f4c9c7d4751af2b9eac22632769ef81ce90 | refs/heads/master | 2022-11-26T17:47:15.633562 | 2020-08-03T11:10:02 | 2020-08-03T11:10:02 | 284,477,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # Generated by Django 3.0.8 on 2020-07-29 13:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('booking', '0005_auto_20200729_1326'),
]
operations = [
migrations.AddField(
model_name='booking',
name='no_of_guest'... | [
"sauravrawat710@gmail.com"
] | sauravrawat710@gmail.com |
998b3ea5732626bacdf6df8072694eda9201a22b | 6479133bb2455410f01863c79a8927b32d9750aa | /FacebookDexter/Engine/Algorithms/FacebookRecommendationEnhancer/FacebookRecommendationEnhancerBase.py | 0ac19855872439393dc2f02706994658a9bcee7d | [] | no_license | jssellars/aniket_filed | 3e46f78ad8d8670def8708fc6a502be5382c02b1 | 17b93889c6945db15ed8b57147def2ae89a07de5 | refs/heads/master | 2023-06-05T00:58:48.674151 | 2021-06-23T07:56:21 | 2021-06-23T07:56:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,939 | py | import typing
from FacebookDexter.Engine.Algorithms.FacebookRecommendationEnhancer.FacebookRecommendation import \
FacebookRecommendation
from FacebookDexter.Engine.Algorithms.FacebookRecommendationEnhancer.FacebookRecommendationEnhancerBuilder import \
FacebookRecommendationEnhancerBuilder
from FacebookDexter... | [
"Bogdan@filed.com"
] | Bogdan@filed.com |
c34b53a78f9de5ad48b31a02be0b21f78801fa49 | 3b65087d82450f7c1a9a97c9936c16aecaa7ca2a | /processView.py | c0e52f165d972c3c9800ed83c12717fd1e10e5b0 | [] | no_license | adrielk/lsst-optimizations | 340af80b93a6b0926f4d13ce3c3b5f9899e58300 | 94b1654aa28e5feab1d9547a14f8d6ed05a81595 | refs/heads/master | 2023-02-02T05:33:43.155664 | 2020-12-22T19:18:05 | 2020-12-22T19:18:05 | 277,023,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | #Displaying exposure using lsst pipelines
import lsst.daf.persistence as dafPersist
import lsst.afw.display as afwDisplay
butler = dafPersist.Butler(inputs='/home/adriel/DATA/rerun/processCcdOutputs')
data = butler.queryMetadata('calexp', ['visit', 'ccd'], dataId={'filter': 'HSC-R'})
print(data)
calexp = butler.get('c... | [
"theadrielkim@gmail.com"
] | theadrielkim@gmail.com |
f3cd6766d23f03656ef3274d07cce9ea1489c132 | 350ecc8259bcad075bd376423335bb41cc8a533e | /classic_strategy1.py | 50460f25736ecc5fcf66524f4c162073165d5ca1 | [] | no_license | CodedQuen/python_begin | 39da66ecc4a77b94a5afbbf0900727c8156b85e1 | 1433c319b5d85520c50aee00dd4b6f21a7e6366a | refs/heads/master | 2022-06-10T10:30:28.807874 | 2020-04-25T03:34:03 | 2020-04-25T03:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,457 | py | # classic_strategy.py
# Strategy pattern -- classic implementation
"""
# BEGIN CLASSIC_STRATEGY_TESTS
>>> joe = Customer('John Doe', 0) # <1>
>>> ann = Customer('Ann Smith', 1100)
>>> cart = [LineItem('banana', 4, .5), # <2>
... LineItem('apple', 10, 1.5),
... LineItem(... | [
"noreply@github.com"
] | noreply@github.com |
f4d4477c62a9b7c90942fce44f0792f8b0c019a1 | c3a84a07539c33040376f2c1e140b1a1041f719e | /wagtail-stubs/admin/views/tags.pyi | 55025030a9dcc5f24d36277a1b5c72bd7e56c396 | [] | no_license | tm-kn/tmp-wagtail-stubs | cc1a4434b7142cb91bf42efb7daad006c4a7dbf4 | 23ac96406610b87b2e7751bc18f0ccd27f17eb44 | refs/heads/master | 2023-01-20T14:41:33.962460 | 2020-11-30T23:15:38 | 2020-11-30T23:15:38 | 317,332,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | pyi | from typing import Any, Optional
def autocomplete(request: Any, app_name: Optional[Any] = ..., model_name: Optional[Any] = ...): ...
| [
"hi@tmkn.org"
] | hi@tmkn.org |
a7d6eceeedbe70b1919e25b13485bd581c001891 | d4eb1003ff7a5bea5d9bbaebed87604c0022caff | /app/views.py | 0a5eb573e65395487efa981dd929900fc89934b7 | [
"Apache-2.0"
] | permissive | VarfoloNikita/dou-jobs-bot | b1e20ba0f2a44d1d37117ced68280bf0473f0782 | 15b263f18fbdda09628a39152b915e3b262b22e7 | refs/heads/master | 2022-12-10T12:59:20.938207 | 2019-12-01T19:54:43 | 2019-12-01T19:54:43 | 221,633,363 | 0 | 0 | Apache-2.0 | 2022-12-08T06:53:48 | 2019-11-14T07:04:24 | Python | UTF-8 | Python | false | false | 1,929 | py | import csv
import io
from typing import Dict, List, Any
from flask import make_response
from app import app, db
from app.models import UserChat, Subscription, City, Position, Stat
DataDict = Dict[str, Any]
def _make_csv(items: List[DataDict]):
names = list(key for key in items[0])
si = io.StringIO()
... | [
"hyzyla@MacBook-Pro-Olena.local"
] | hyzyla@MacBook-Pro-Olena.local |
e0b9a8251d2bf82dc6d619fb9b85385bc66f859b | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Shapely_numpy/source/numpy/ma/tests/test_subclassing.py | 8198c9d3593680cf24b925019336e88936468742 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 13,251 | py | # pylint: disable-msg=W0611, W0612, W0511,R0201
"""Tests suite for MaskedArray & subclassing.
:author: Pierre Gerard-Marchant
:contact: pierregm_at_uga_dot_edu
:version: $Id: test_subclassing.py 3473 2007-10-29 15:18:13Z jarrod.millman $
"""
from __future__ import division, absolute_import, print_function
import num... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
9971b0a591eaafdfd1e53858b527b36c943bf934 | e52aade8f4c8eba26eeb9e57f3555a7a32959bfa | /postWRF/postWRF/clicker.py | b003f800dff7387e8f886071cb1ce523677f3bbe | [] | no_license | qingu/WEM | 9769e70f7181f51f9703842c9f416b21f9090549 | 966e36ae85b9b7529b6b6d50e2a26e3cc0685e5f | refs/heads/master | 2021-01-18T19:35:12.253468 | 2014-11-05T00:50:35 | 2014-11-05T00:50:35 | 21,061,913 | 0 | 1 | null | 2014-11-05T00:50:37 | 2014-06-21T06:17:24 | Python | UTF-8 | Python | false | false | 4,990 | py | import matplotlib as M
M.use('gtkagg')
import matplotlib.pyplot as plt
import numpy as N
import collections
import pdb
# from figure import Figure
import colourtables as ct
from scales import Scales
from figure import Figure
from defaults import Defaults
class Clicker(Figure):
# def __init__(self,config,wrfout,a... | [
"john.rob.lawson@googlemail.com"
] | john.rob.lawson@googlemail.com |
21dc53bea9ea91e2d721d330497d4b35fae7d207 | 5ac952d2f0754d184ffc74ee7cac947524df5b84 | /main.py | 287116f8f93df9e548413ea7b3ffb5119e01d41a | [] | no_license | Goodguyr/App1 | 8f3dc1fb0f0fce0423c7af04fb091bc38f3a4067 | 2874c163d694c701f7f0c50e6c36efe982143ea4 | refs/heads/master | 2020-09-01T12:53:09.635129 | 2019-11-24T19:10:24 | 2019-11-24T19:10:24 | 218,962,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from bottle import route, run, static_file
import json
import csv
import transport
@route("/")
def root():
return static_file("index.html", "./")
@route("/index.js")
def index():
return static_file("index.js", "./")
@route("/routes/riga")
def data():
return transport.getStopData("riga_bus_13_a-b")
run(... | [
"rrigachov@gmail.com"
] | rrigachov@gmail.com |
2155e9730a7adb5594c0a9c0e5138143f70e3f0e | f8cf0f8d3ca1784b59fff380b99c4fa4da225389 | /ceshi/configparser/test.py | 4369761d2860981c381117b763a2d97b2035bd9f | [] | no_license | loveguan/mysite | 6f3c10c9bd1780a6a3c789c03ef66a10b186da92 | 7217b0e111626af0e6afddd0bc405705cf9641ca | refs/heads/master | 2021-01-01T20:49:45.367058 | 2018-02-05T14:19:42 | 2018-02-05T14:19:42 | 98,939,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: JOJ
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited.
@contact: zhouguanjie@qq.com
@software: JOJ
@file: test.py
@time: 2017/12/14 15:42
@desc: 建立配置文件
'''
import configparser
config=configparser.ConfigParser()
config["DEFAU... | [
"zhouguanjie@qq.com"
] | zhouguanjie@qq.com |
642f0d8d9baa31d95a3efe1954b85816c6b5d713 | 1d2635683558694d8f7d68ede9e42f0fd0a45364 | /resources/user.py | 94ef007b80933fe4941ba85c2473c1660c14883c | [] | no_license | soringherghisan/REST-API-FLASK_1 | 91d10d57584186fdc15d774d69431e476ff0fc99 | 4fd4ace5e3ee43877e4b147517a1ae7afcfc953b | refs/heads/master | 2023-04-09T03:30:21.474031 | 2021-04-22T13:14:28 | 2021-04-22T13:14:28 | 290,774,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | """
- User class
- rather than using a dict, he chose to store info in an Obj.
"""
import sqlite3
from flask_restful import Resource, reqparse
from models.UserModel import UserModel
# resource we use to sign up
class UserRegister(Resource):
# reqparse
parser = reqparse.RequestParser()
parser.add_ar... | [
"sorin.gherghisan@gmail.com"
] | sorin.gherghisan@gmail.com |
020965ab409130059e4fb9e1e3a6cf4d39e75232 | 864755f7d733351b205e460ec54a5f6d13050037 | /devilry/devilry_settings/views.py | 602dd5a1b02bebe44232137c80586840865b0340 | [] | permissive | aless80/devilry-django | 27fc14b7bb7356f5f9d168e435a84e7bb43a682a | 416c262e75170d5662542f15e2d7fecf5ab84730 | refs/heads/master | 2020-05-20T12:22:09.255393 | 2019-05-19T21:06:57 | 2019-05-19T21:06:57 | 185,568,847 | 0 | 0 | BSD-3-Clause | 2019-05-08T08:53:52 | 2019-05-08T08:53:51 | null | UTF-8 | Python | false | false | 753 | py | from django.http import HttpResponse
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
@login_required
def missing_setting(request, setting):
message = """
You have been redirected to this view because your local Devilry system ... | [
"post@espenak.net"
] | post@espenak.net |
a4fb633f599399ee7f4beb516ef6db7c3aa01107 | 99be8a0186e74031e34a7cb8a12348ece12c004f | /pecan_model2/controllers/root.py | 8f6e58def822e2b9d3d6b589cb811a5c61da99de | [] | no_license | bspeng922/pecan_model2 | 1e535e7e1eee1156f3847ce12f86128efe425c21 | 86cad2b9d4076952a5832bb1693535237a24f3aa | refs/heads/master | 2020-06-18T09:00:38.574844 | 2016-12-01T01:20:52 | 2016-12-01T01:20:52 | 75,148,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | import pecan
from pecan import conf
from pecan import expose, redirect
from webob.exc import status_map
from pecan_model2.model import Session, MetaData
from pecan_model2.model.user import User
class RootController(object):
@expose(generic=True, template='json')
def index(self):
query = Session.query... | [
"pystack@yahoo.com"
] | pystack@yahoo.com |
67cf9ed24ac96ff7d986f537d288202f3754ba59 | 1f885b2ade4eeb4e438b851c95c97a189104d75d | /FaceSwap-master/pytorch_stylegan_encoder/InterFaceGAN/models/pggan_tf_official/config.py | 65b1947e385b2d6f84121bbed17b72927221bc3d | [
"MIT"
] | permissive | CSID-DGU/2020-1-OSSP1-ninetynine-2 | 267cc077163865f64df4832f5b33f6570a1fffb2 | b1824254882eeea0ee44e4e60896b72c51ef1d2c | refs/heads/master | 2022-11-06T19:21:47.756150 | 2020-06-29T08:27:24 | 2020-06-29T08:27:24 | 261,089,766 | 1 | 3 | NOASSERTION | 2020-06-27T20:46:59 | 2020-05-04T05:39:00 | Python | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:27f886a21c94d3f4888c7ce341c3c2f7d0002ea43a7cdc8a004ecd3de711e97d
size 12894
| [
"kluiop1@naver.com"
] | kluiop1@naver.com |
0005f97867cc1338b16608be7f85429094de61d8 | 9a3532ec5a4079b20902f61c79f6264b21341e30 | /venv/bin/easy_install | 18a08ede3cdc470487ff8471c8a572093dacbd94 | [] | no_license | fareniuk/django_webapp | e02d98d2785116e20091386d358a236b06d3edb4 | e22c0d76dd46d5da989826f43a9bc3289652c82b | refs/heads/master | 2022-05-20T03:18:02.864443 | 2019-07-07T00:41:16 | 2019-07-07T00:41:16 | 195,595,006 | 0 | 0 | null | 2022-04-22T21:51:29 | 2019-07-07T00:41:32 | Python | UTF-8 | Python | false | false | 438 | #!/home/frank/cursor/django_homework/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"fareniuk@gmail.com"
] | fareniuk@gmail.com | |
95a5575a9d0d210d3b7be2c99aeb587c9f0a2c40 | d809fcb6e854f5ff740ac36e528fe1020dda1e9b | /soal 5.py | 110fd279989ed846d39124cefe494e88dfa469c2 | [] | no_license | aowenb/Purwadhika-Excercise | befa5baa2a4c62e5d86bff6795da115f52549ae1 | d837611dc036bed4b2990d4680a6c40e692991f6 | refs/heads/main | 2023-03-25T21:44:19.511376 | 2021-03-16T13:03:29 | 2021-03-16T13:03:29 | 348,348,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | x = input('masukkan sebuah kalimat : ')
print('kalimat original : ',x)
def counter(x):
up = []
low = []
for i in x[::1]:
if i.isupper() == True:
up.append(i)
else:
low.append(i)
for i in low:
if i == ' ':
low.remove(' ')
return len(up), le... | [
"noreply@github.com"
] | noreply@github.com |
6f15e3cd583c011bb562a0b53d54bb954df4bb24 | 473507d7540ad1ee5ae2670ac18ace05cd50f6fa | /Math/excel_sheet_column_number.py | 51d65533812a517cb65c1ea1328ec16f33f05486 | [] | no_license | JunctionChao/LeetCode | 4558c9d053f4a4d003903d08fade9fd93e6d9658 | 10daf38e673e69922f4be7eadf4054810da8ae13 | refs/heads/master | 2023-02-04T06:59:35.833078 | 2020-12-18T14:32:03 | 2020-12-18T14:32:03 | 322,617,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Date : 2019-09-19
# Author : Yuanbo Zhao (chaojunction@gmail.com)
def titleToNumber(s: str) -> int:
i = 0
result = 0
for char in s[::-1]:
r = ord(char) - ord('A') + 1
result += r * 26**i
i += 1
return result
if __name__ == '... | [
"1429004361@qq.com"
] | 1429004361@qq.com |
bfcb215c0101de32ac489a06f3f9e7b05e29115f | 8c1885dfe0f9a39daab9f27de3a31ad1b1801b21 | /md/exercise/code/001.py | 30a727c910a6d46bc3e4b91662710c91dbd99070 | [] | no_license | liushilive/github_exercise_python | 291d54a5a6e3b456be0a9a90c68bd6e7e0ec46f8 | 15ada378bff5d7d2ca8a4f4599ebb795d41f2cce | refs/heads/master | 2022-02-25T21:06:01.224379 | 2022-02-11T06:33:23 | 2022-02-11T06:33:23 | 129,377,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | n = 0
for i in range(1, 5):
for j in range(1, 5):
for k in range(1, 5):
if (i != k) and (i != j) and (j != k):
print(i, j, k)
n += 1
print(f"共计 {n} 个")
| [
"liushilive@outlook.com"
] | liushilive@outlook.com |
8c378658557793793b299b3e94f3a31b04471d85 | 313869ac13ee6cfdaf2de5cb76adf3dec981513f | /venv/Lib/site-packages/pandas/tests/frame/test_api.py | 811391dbf141f1dda7989b8bb7ea694ea5b41081 | [] | no_license | praful-pra1/Machine-Learning-GMCA | c4a5a4fa49b17bd0461d17b40dc169970ee2acde | f93dcf2b8557be4c57ea99f4e8a3756140d2ba6c | refs/heads/master | 2022-12-25T01:09:08.318614 | 2020-10-04T04:57:45 | 2020-10-04T04:57:45 | 301,042,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,820 | py | from copy import deepcopy
import datetime
import inspect
import pydoc
import numpy as np
import pytest
from pandas.compat import PY37
from pandas.util._test_decorators import async_mark, skip_if_no
import pandas as pd
from pandas import Categorical, DataFrame, Series, compat, date_range, timedelta_range
... | [
"prafulpar"
] | prafulpar |
1c7921e51af31f20cdd9cbfec6e84a050a21e794 | 7704614dd6513f755e3086e3becad56a9f188900 | /lab7.1.py | 26058b5e2f204bec1ad562d7d09a42f542533aaa | [] | no_license | Zettroke/python-labs-bmstu-2019-2020 | e5c45aa61ed8ca9f16f2bf8151bbfda6b530e0c0 | db30e3f6afdfdb56b0ccbf88f810a4a70a20fd24 | refs/heads/master | 2021-01-05T05:12:55.106920 | 2020-03-01T20:26:43 | 2020-03-01T20:26:43 | 240,892,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | def test_num(n):
if len(n) == 0:
return False
negative = int(n[0] == '-' or n[0] == '+')
dot = n.find('.')
e = n.find('e')
frac_part = ''
exp_part = ''
if dot != -1:
whole_part = n[negative:dot]
elif e != -1:
whole_part = n[negative:e]
else:
whole_par... | [
"skorostnoy2000@yandex.ru"
] | skorostnoy2000@yandex.ru |
1a1cc50bf9147c51fabd346d295ef62ae3f18ec9 | 49c4e72854f9fce728825b00d9c3ecc7935d3f84 | /python3/standalone/unit-tests/my-project/myproject/test/test_called_with_patch.py | b8a4b29beb4cf8113a0ebd2021b4c8a81fb8f3d5 | [
"MIT"
] | permissive | queirozfcom/python-sandbox | 84f722e8ef54333abf3e60384a6d50826ec7650d | 2938cabd0f3d09b32e6b373f2434fd566eb97ae7 | refs/heads/master | 2023-07-06T04:51:41.000596 | 2023-06-25T19:19:02 | 2023-06-25T19:19:02 | 92,540,278 | 47 | 55 | MIT | 2023-02-15T17:18:39 | 2017-05-26T18:59:32 | Jupyter Notebook | UTF-8 | Python | false | false | 396 | py | from unittest.mock import patch
from myproject.main import function_e
def test_called_with_patch():
with patch("myproject.main.complex_function_with_params", return_value=None) as patched_function:
# function_e converts the params to upper case and
# calls another function with those
func... | [
"queirozfcom@gmail.com"
] | queirozfcom@gmail.com |
af5f43307328796d5cd12345995d18c2208c0a79 | fe6fca33a2282bf0f1c741a790dc2c0aa7600160 | /ML/LinearRegression.py | 857152d7ba2a1045e8298baf6bfa1733acc0f79e | [] | no_license | timwford/machine-learning | b94957e32f9b5a73009c6bc1a4098f2a45a5ad22 | 51db628df235bcdc613d37855661985261ade66a | refs/heads/master | 2023-01-18T20:50:41.233099 | 2020-11-27T20:07:30 | 2020-11-27T20:07:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | import numpy as np
from math import sqrt
class LinearRegression:
def __init__(self):
self._slope = 0
self._intercept = 0
self._interval = 0
def _get_mean(self, arr):
"""
Calculates the mean of the array given
:param arr: The given array
:return: Mean
... | [
"koppril7@gmail.com"
] | koppril7@gmail.com |
270c0eef5fa8ee1de76ff4ec9862c25ec062786c | 3cfe9dbabdac02f21e95d8fd0f0c6a4ea7180165 | /raifhack_ds/model.py | bd604c311fedbc897a7c2a87ea4377d6ac03e9f3 | [] | no_license | ldevyataykina/raifhack | 79f0140bb73829d9665bf121bf51dfbaa80fbb08 | 43a9a79ddc2741217a4103aaf3c0ac42ca915d90 | refs/heads/main | 2023-08-23T19:10:15.574210 | 2021-09-26T10:14:29 | 2021-09-26T10:14:29 | 410,026,494 | 0 | 1 | null | 2021-09-26T10:14:29 | 2021-09-24T16:10:24 | Python | UTF-8 | Python | false | false | 6,229 | py | import typing
import pickle
import pandas as pd
import numpy as np
import logging
from lightgbm import LGBMRegressor
from sklearn.compose import ColumnTransformer
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import OneHotEncoder, StandardScaler, OrdinalEncoder
from sklearn.exceptions import NotFit... | [
"elena.devyataykina@devyataykina-mb.local"
] | elena.devyataykina@devyataykina-mb.local |
e311f1544fe57c14dbef2be0c389ae2ac85d18a8 | 355f9781b025ef21815d87b61276da39c89c4c46 | /globalmaptiles.py | 30b48d68927fe1d771efc1d1af1fb82fede20bf2 | [
"MIT"
] | permissive | gijs/tile-grab | 5861a7aad9671a91193c368f1bbfc2e6aeb67f00 | 6622c8f36c7c92e87df274ed41b4980727abd963 | refs/heads/master | 2021-01-14T12:02:51.567384 | 2014-04-30T09:34:56 | 2014-04-30T09:34:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,949 | py | #!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a sim... | [
"bill@geomusings.com"
] | bill@geomusings.com |
2d2d82fa1762970898dd62432f0c936f151ec6d9 | f16a2c9bff6f29715b32d79397798a03f649f25b | /blog/apps/articles/admin.py | e2c2bda0373ce7f76ddcb8e72cbb979c5cca1772 | [] | no_license | hsyao/django-blog | 2279a9ebe10837733f83127a0c21f536a1ab9ff5 | 940b04e7f35ce17cefc72ff1e2e297e07056439d | refs/heads/master | 2020-04-18T01:05:39.773176 | 2019-02-15T03:33:37 | 2019-02-15T03:33:37 | 167,105,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from django.contrib import admin
# Register your models here.
from django.contrib.admin import ModelAdmin
from articles.models import Article, Comment, Category, Tag
admin.site.site_header = "博客后台管理系统"
admin.site.site_title = "BMS"
admin.site.index_title = '欢迎使用BMS'
class ArticleInfoAdmnin(ModelAdmin):
list_per... | [
"784078345@qq.com"
] | 784078345@qq.com |
4d2f0d2d4ca9497e547201b052c68f244f1836f0 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/units/format/__init__.py | bad82f9313aa459bb138f442ee33f3d00bf7bc45 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 1,864 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
A collection of different unit formats.
"""
# This is pretty atrocious, but it will prevent a circular import for those
# formatters that need access to the units.core module An entry for it should
# exist in sys.modules since astropy.units.core imp... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
bb15f4a2be885270cef4e62640a269481b8a03d3 | 8da4a294cd72d36f1f890148b859eee88fe270ac | /dev/local/data/external.py | 1b49501bc88cbb32b8c1f668d3ef04f8e21d4687 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | neerajshukla1911/fastai_dev | 3bf323e80d5594fb4bc543fe73de553e036b2ec2 | 768a5dac135a0f2ea91bc645ba279d3b1c5fd649 | refs/heads/master | 2020-07-16T00:47:11.761475 | 2019-09-01T14:10:32 | 2019-09-01T14:10:32 | 205,684,686 | 0 | 0 | Apache-2.0 | 2019-09-01T14:04:13 | 2019-09-01T14:04:12 | null | UTF-8 | Python | false | false | 8,016 | py | #AUTOGENERATED! DO NOT EDIT! File to edit: dev/04_data_external.ipynb (unless otherwise specified).
__all__ = ['download_url', 'URLs', 'get_path', 'ConfigKey', 'download_data', 'untar_data']
from ..imports import *
from ..test import *
from ..core import *
def download_url(url, dest, overwrite=False, pbar=None, show... | [
"sylvain.gugger@gmail.com"
] | sylvain.gugger@gmail.com |
5b450a1b2b66c9b67d26496fb76f7af28ff62da1 | fda52a68a6799dcdd11b4938e4b4e7129ff35eb0 | /No8_atoi.py | 0cd9623eebbff7044d101de52811726212f33caa | [] | no_license | Airstudy/DailyCoding | be1c5b54564e4a75d0fe88f69c14fa070a0962c6 | ca23b169ae747b377edb47a9933dad48ae5af9f9 | refs/heads/master | 2022-12-07T14:46:32.613210 | 2020-09-09T14:20:07 | 2020-09-09T14:20:07 | 274,598,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
dst_s = 0
re_num1 = re.compile('^\s*-{0,1}\d+') # ' -234'
re_num2 = re.compile('^\s*\+{0,1}\d+') # ' +234'
num_dict = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4,
... | [
"noreply@github.com"
] | noreply@github.com |
2889507a6b265ca236e63b711c4c4ea824e2a77d | 56a390eeb33f7f2b52b1ae2668f31c96309b58fd | /irregular_contest/CODEFES_2018_B/b.py | c7b625791db958fcdf26aba9f7f356aae6cdee03 | [] | no_license | uni745e/AtCoder_answers | e578ac3fd12536a6902a0150b48b30f661a0d539 | 5faabebc249a52ed8a41abd59fb4a3f505a696c1 | refs/heads/master | 2020-03-23T17:00:18.630413 | 2018-11-04T15:56:27 | 2018-11-04T15:56:27 | 141,837,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # coding:utf-8
import sys
from operator import itemgetter
input = sys.stdin.readline
INF = float('inf')
def inpl(): return list(map(int, input().split()))
N, X = inpl()
AB = [inpl() for _ in range(N)]
AB.sort(key=itemgetter(1))
AB[-1][0] += X
ans = 0
for a, b in AB:
ans += a * b
print(ans)
| [
"uni745e@gmail.com"
] | uni745e@gmail.com |
01643797342d76c59587dbdf1b32b88f809a09da | e6c8a31020595c59d5f680eeade6dc08789eb1a1 | /oonav.py | addd5c587ce61269b1b776372833760736f20b0e | [] | no_license | nmacgreg/tankDriving | 92244a4213a5c3445026c8dd3d2dedeb1931e6d4 | c54cb6c4896fd1a5edea47d97bf17f72152c5730 | refs/heads/master | 2021-01-10T06:23:24.524666 | 2017-03-26T02:27:42 | 2017-03-26T02:27:42 | 54,276,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #!/usr/bin/python
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
import sys
import time
from navControl import navControl
# Enable verbose debug logging if -v is passed as a parameter. This may require attention, within the context of a class...
if len(sys.argv) == 2 and sys.argv[1].lower() == '-v':
loggin... | [
"neil.macgregor@ualberta.ca"
] | neil.macgregor@ualberta.ca |
bb9fa8236399987f6814680af95a20481f9fc3d4 | 67b7e6d2c08f08403ec086c510622be48b8d26d8 | /src/test/tinc/tincrepo/mpp/gpdb/tests/queries/basic/exttab/errlog/sql/datagen_first_errors.py | d83f25a62ae3d2681a21b0d929f720f87afcdc31 | [
"Apache-2.0",
"PostgreSQL",
"LicenseRef-scancode-rsa-md4",
"OLDAP-2.8",
"HPND-sell-variant",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"Zlib",
"LicenseRef-scancode-zeusbench",
"LicenseRef-scancode-mit-modification-obligations",
"OpenSSL",
"MIT",
"LicenseRef-scancode-other-copyleft",
"bzip2-1.0.6"... | permissive | sshyran/gpdb | 41012411d22b0294204dfb0fe67a1f4c8d1ecaf6 | 2d065ecdd2b5535cb42474f17a0ee6592b4e6837 | refs/heads/master | 2023-04-09T14:05:44.030212 | 2016-11-12T08:33:33 | 2016-11-12T08:34:36 | 73,544,159 | 0 | 0 | Apache-2.0 | 2023-04-04T00:30:10 | 2016-11-12T09:43:54 | PLpgSQL | UTF-8 | Python | false | false | 1,166 | py | """
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | [
"jyih@pivotal.io"
] | jyih@pivotal.io |
cefc15375b41de5ad4a360e0ff5eb458b1fa12fa | ad8566dace0e4ab4b419b1bb5bc055b095adce72 | /ics/tests/test_adjustment_history.py | f98ab601210cc551c864ed8e1fd23b386b2effaf | [] | no_license | mayanb/wafflecone | 6c844c4c908f7c9b8e41d0d42faeefbfa8b9573e | fcd45a3b745232e52af3bdffa3fab25f13c7464d | refs/heads/staging | 2022-12-14T03:34:14.618001 | 2018-09-26T21:35:52 | 2018-09-26T21:35:52 | 74,408,398 | 1 | 0 | null | 2022-12-08T00:46:05 | 2016-11-21T21:40:59 | Python | UTF-8 | Python | false | false | 6,191 | py | from ics.models import *
from django.urls import reverse
from rest_framework.test import APITestCase
from ics.tests.factories import ProcessTypeFactory, ProductTypeFactory, TaskFactory, AdjustmentFactory, ItemFactory, \
TeamFactory, IngredientFactory, TaskIngredientFactory
import datetime
import mock
from django.utils... | [
"steven@usepolymer.com"
] | steven@usepolymer.com |
a521964d8e8464d965b9154d8ced63e65c5d7094 | d27af9d58b91b8cd998ac0eb87d980d304ff0670 | /Beginner-Contest/ABC111/ABC111_B.py | 32201fad3a3c038e022bedc7f8262a0eb6645da9 | [] | no_license | mongesan/Atcoder-m0_ngesan-py | 29dd79daab149003ffc8b6b6bad5fa2e7daa9646 | 6654af034d4ff4cece1be04c2c8b756976d99a4b | refs/heads/master | 2023-08-20T19:50:04.547025 | 2021-10-27T12:24:51 | 2021-10-27T12:24:51 | 258,486,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9 | py | #ABC111_B | [
"syun1.mongesan@gmail.com"
] | syun1.mongesan@gmail.com |
c5b55207d0682d5dfcdd7c0805bd25beaf18f333 | 21b236e6ba200124875a9ffa72e37d3c32808de4 | /project_01/project_01/urls.py | 952e33a9b8937251a0effaf83c8ab793bb1fb367 | [] | no_license | Shrisan2/University_Database | ecdb2c4fcc11edbea53ce581a7f530a1fbe39e22 | a7ef62ce373bd02466c0308ae6c965a2ca9f7b81 | refs/heads/master | 2023-07-27T12:32:06.136309 | 2021-05-04T19:47:44 | 2021-05-04T19:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | """project_01 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"Shrisan2@live.com"
] | Shrisan2@live.com |
ed62a79b73da4aa69a2a575f9dffa67ad8d30e7a | ee13295fb6aeb432a713a79c3167f8fe67b7f4d8 | /images/models.py | 9bf6f87ea8aa3cdf6ee347904a02d377fb757baf | [] | no_license | jodth07/SOCH-API | 029e404c1328a92215808e627040e711498bc0fe | dd758b85d888c7898f2b4105ea0812fcd903c259 | refs/heads/master | 2021-10-09T08:47:30.657585 | 2018-12-24T18:21:02 | 2018-12-24T18:21:02 | 96,623,946 | 0 | 0 | null | 2018-11-29T01:39:05 | 2017-07-08T14:29:35 | Python | UTF-8 | Python | false | false | 917 | py | # images.models
from django.db import models
from rest_framework import serializers
from datetime import datetime
# from drf_base64.fields import Base64ImageField
class Image(models.Model):
image = models.ImageField(blank=True, null=True)
name = models.CharField(max_length=200)
added = models.DateTimeFi... | [
"yashiro@MacBook-Pro.local"
] | yashiro@MacBook-Pro.local |
f4ca03a62d456d71512e91dac4bb948dbf26c62a | 3bd992a53dced0d9bd6be00d0d8b7d3ee04e9ac9 | /appprincipal/instituicao/migrations/0005_auto_20201209_1605.py | 5671af61cf4db6a93ac206d81f191b4f9770d1f8 | [] | no_license | Netovoski/eng_software | f8eadfe3726021d9884f2ad24f285fa7195eaa94 | 8567051aa3ff918a8fdfec3a30fab3b1ea779d15 | refs/heads/main | 2023-01-29T22:01:50.723105 | 2020-12-14T21:28:20 | 2020-12-14T21:28:20 | 316,643,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | # Generated by Django 3.0.6 on 2020-12-09 19:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instituicao', '0004_auto_20201209_0848'),
]
operations = [
migrations.CreateModel(
name='Inst_Parc',
fields=[
... | [
"netovoski@gmail.com"
] | netovoski@gmail.com |
a0924adb3c7da96cb655447e56114e94b508ac22 | b68c92fe89b701297f76054b0f284df5466eb698 | /Other/Companies/Microsoft/BenchmarkMatching.py | a00910c36d86cd8e47e303768e50f53753c80cee | [] | no_license | makrandp/python-practice | 32381a8c589f9b499ab6bde8184a847b066112f8 | 60218fd79248bf8138158811e6e1b03261fb38fa | refs/heads/master | 2023-03-27T18:11:56.066535 | 2021-03-28T04:02:00 | 2021-03-28T04:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,409 | py | '''
Programming challenge description:
We say a portfolio matches the benchmark when the number of shares of each asset in the portfolio matches the number of shares of each asset in the benchmark. Your question is to write a program that determines the transactions necessary to make a portfolio match a benchmark.
A p... | [
"awalexweber99@gmail.com"
] | awalexweber99@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.