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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
748c60e91fc5cc74b95f5054423b643030571a96 | bd2dec1356593b427b46311e88cad58702ccc2e4 | /main.py | 2eca735650e5713712848256d57e85eb0a8a2817 | [] | no_license | rxw/csgo_matches | 7b3af8a09717e44a1a0f7ee9c2fe5790407489c4 | 8c0bc21a2d1a53dc5723cc76526ecd4a6d8b3bf5 | refs/heads/master | 2022-06-15T18:16:38.025499 | 2020-05-04T22:41:47 | 2020-05-04T22:41:47 | 260,381,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #!bin/python
import json
import requests
if __name__ == '__main__':
with open('creds.json', 'r') as f:
json_creds = f.read()
creds = json.loads(json_creds)
api_url = 'https://api.pandascore.co'
stats_url = '/csgo/matches'
r = requests.get(api_url + stats_url, params=creds)
print(r... | [
"tato@uribe.com.mx"
] | tato@uribe.com.mx |
11c395ef17817d7f1fad83e8372a60bc573b9489 | c1f6a9f37dc2852c7fcc5d996b242172b176775b | /plugins/general.py | 91fc4559af33c14573bd69fc13790b627139f79a | [] | no_license | rasperepodvipodvert/vk_page_cover | b883e03b8157237b80fe9551e58cb49f643a20ae | c7d7970f4c2adbcb99e5b2330cf896e150819d44 | refs/heads/master | 2020-03-29T18:37:35.659098 | 2018-09-27T10:48:26 | 2018-09-27T10:48:26 | 150,223,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def get_btc_cost(coin):
url = 'https://api.cryptonator.com/api/ticker/%s-usd' % coin
import urllib.request, json
data=[]
with urllib.request.urlopen(url) as url:
data = json.loads(url.read().decode())
return data['ticker']['price'] | [
"ivan@filatovz.ru"
] | ivan@filatovz.ru |
e0b6078e03d52085af1e4c60300dba7c10eeb40a | db29394afc70f72840497f5796b210382ce83541 | /tictacbot/tictactoe_bot.py | 6906a772497cc74a7e9f8934c96f48c3af98019e | [] | no_license | AFakeman/tictacbot | bd8e5d25f9eddff0bc938c776d0f4ca219f9ff13 | 28f350d91596ff3a5e24d7a09c69192883f5682b | refs/heads/master | 2021-01-17T07:30:44.388045 | 2017-03-11T22:53:32 | 2017-03-11T22:53:32 | 83,735,136 | 0 | 0 | null | 2017-03-11T20:15:08 | 2017-03-02T23:24:41 | Python | UTF-8 | Python | false | false | 2,147 | py | from .tictactoe_game import TicTacToe, inspect, xy
opposite = TicTacToe.opposite
def calculate_attr(lane, turn, field_size, at_price=2, def_price=3, reinforce_price=2):
if lane["_"] == 0:
return "atk", 0
if lane[opposite(turn)] == 0 and lane[turn] == 0: # We should attack!
return "atk", at_p... | [
"anton_suslov@me.com"
] | anton_suslov@me.com |
86289ab2c33ce91e7ef21b22dc256d3fb72b684d | 49ac20f39a1b35b54ae47c7cfc47203165b37e4e | /deepblue/06.03_yolov5_model/yolo_rewrite/test.py | a4322c84a9f06760caaee1f48db726f0c56d3b74 | [] | no_license | walkerwzy/walker_jupyter_lab | 30dedb2199534c166f5a315e2ed6cc7b54c5d548 | 626624100f4c3b19828755a773e1579e41ae38c8 | refs/heads/master | 2023-08-11T18:36:08.041160 | 2021-09-30T07:54:37 | 2021-09-30T07:54:37 | 371,611,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,080 | py | import os
import cv2
import json
import argparse
import data_provider
import dataset
import heads
import maptool
import models
import nn_utils
import sys_utils
import torch
import torch.nn as nn
import numpy as np
from torch.utils.data import DataLoader
from tqdm import tqdm
from sys_utils import _single_instance_lo... | [
"walker.wzy@gmail.com"
] | walker.wzy@gmail.com |
159d50b91a1bdd3c41155ba8242ed42980a94bda | 783382412a7cb93685d50069b041acbc06519ef3 | /utils/average.py | 0bec757eaa23685174dc5e5408db4a90a682485a | [] | no_license | scy99ycs/customAnime | 8a49e828a92b7f0b23f4b8bd03d61aa4e7324e79 | 37a2232229f6b620a1f8ea41efebab046fcc0057 | refs/heads/master | 2021-10-28T15:02:06.963470 | 2019-04-24T07:04:40 | 2019-04-24T07:04:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """
Average Tracker for training
"""
class AverageTracker:
"""
Average Tracker implementation for loss
"""
def __init__(self, name):
self._name = name
self.value = 0
self.n = 0
pass
def __call__(self):
return self.get_value()
def __... | [
"noreply@github.com"
] | scy99ycs.noreply@github.com |
69cd294a1199dd3224de74f4c1484c5f7a3cc684 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-6194.py | dff1f4eda2df9e68e045ed549fd8b7621d226b5d | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,757 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
d233c9f5599649fd4c199b8ab075c4f34ddd9e85 | 466574c2399c11c6c0aa11fda8bd5a9c80c05582 | /earthbeat.py | 68550468bbab46ce951be6c0646820708c0a1dda | [] | no_license | aborilov/Earthbeat | 167fdd76825508416514a9df9b35e521ddbb1d59 | d63a202a7f27972047929782854ce550f1e5dfa9 | refs/heads/master | 2021-01-01T20:35:28.158758 | 2013-11-15T13:25:40 | 2013-11-15T13:25:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,473 | py | import os
import urllib
import datetime
import logging
logging.getLogger().setLevel(logging.DEBUG)
from google.appengine.api import users
from google.appengine.ext import db
import jinja2
import webapp2
import counter
JINJA_ENVIRONMENT = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file... | [
"aborilov@gmail.com"
] | aborilov@gmail.com |
f7210d705131460adae2a46d876fa95f9dae8a85 | 434da792d4c3ebf1089cb17044c1715731c5e1e5 | /Base/BaseYaml.py | afa04397f842a9386838168abc980b29eb7bbbe4 | [] | no_license | testervic/AutoApp | d21bbb744ed542a1b8d1c9908ccce9be1bb935a9 | 1cdb5df3c268717beb9b746c5b0646606bfa6001 | refs/heads/master | 2020-09-29T18:11:08.646327 | 2019-12-23T08:55:55 | 2019-12-23T08:55:55 | 227,090,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | # -*- coding:utf-8 -*-
import yaml
from yaml.scanner import ScannerError
import os
def getYam(path):
try:
with open(path, encoding='utf-8') as f:
x = yaml.load(f, Loader=yaml.FullLoader)
return [True, x]
except FileNotFoundError:
print("==用例文件不存在==")
app = {'che... | [
"469858846@qq.com"
] | 469858846@qq.com |
8b4b265605947d75c547d6ce871b082b102f0527 | 1cb689e6fe6171b671f8ee89bda376026ad149d8 | /Heisenberg/xy_loss.py | ba6f0b387725eb94c72ed2b7f6355c1927785d39 | [] | no_license | BlazStojanovic/QptimalSampling | be66ad28cdee20057cdbc8e5b6468f9fb086b059 | 6bc98d0bf30dcbdfbb7cca84a9beb35e72fc7143 | refs/heads/main | 2023-07-17T09:34:22.140162 | 2021-08-20T10:04:35 | 2021-08-20T10:04:35 | 355,513,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11 | py | xxz_loss.py | [
"csc2006@csc20-laptop-06"
] | csc2006@csc20-laptop-06 |
8b1cb5d2f1d0e67df487661a59631b7b206cf622 | a2bf77957f205aebd49cdeac24278099d1fdaab6 | /tasks.py | 29f9927f8e6a3db3797efae499519ba52ad71a2e | [
"MIT"
] | permissive | gerardobort/luigi-slack | bf247ba079945ed5323445199f0768494201b00f | 25672f529eb1b81e0989b15edbcde26b72f835d2 | refs/heads/master | 2021-01-20T20:02:53.493878 | 2016-07-21T20:38:52 | 2016-07-21T20:38:52 | 63,797,798 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from __future__ import print_function
import json
import luigi
from luigi.format import UTF8
@luigi.Task.event_handler(luigi.Event.SUCCESS)
def celebrate_success(task):
"""Will be called directly after a successful execution
of `run` on any Task subclass (i.e. all luigi Tasks)
"""
print("YAY! :D")
... | [
"gerardo.bort@rga.com"
] | gerardo.bort@rga.com |
2841e95e5b631e7efb363c7224bbe1c0da796466 | 7133a0e900c2cd9b30f4f34aad80a2c1648d8cbc | /Activity4.py | 14526be810d690a8a218c012832fbd3d70a4350c | [] | no_license | Deepika-Purushan/Python_Activities | 671db6db37da3ebf5b5f4f1029882df54658eb5f | 54745f505c0112ff8c6f4fa6ae9631a330cacd66 | refs/heads/master | 2022-12-27T13:32:14.469587 | 2020-10-03T15:27:32 | 2020-10-03T15:27:32 | 293,711,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | """
Using Loops:
Enhance the previously written Rock-Paper-Scissors code so that it asks the user if they want to play another round.
If they say 'Yes', the game should begin again.
If they say 'No', the game should exit.
"""
# Get the users names
U1=input("Enter player1 Name: ")
U2=input("Enter p... | [
"noreply@github.com"
] | Deepika-Purushan.noreply@github.com |
a66564dda6b8d9dbd83ae9ed5fad79389511b718 | 0c25b0d44a9f9f669d16adee7ff879cf1245a700 | /config.py | d848b34673cc10b823407d9d2196c632fae5d714 | [
"MIT"
] | permissive | collector-m/best_voxelnet_ever | 720c2ee7a3ee68d0b0bbe2d9f5efa76cfa784347 | c175dfb777f9b37d4f4c331df737cc208946acde | refs/heads/master | 2022-01-26T04:20:29.252955 | 2019-07-09T11:53:09 | 2019-07-09T11:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,685 | py | #!/usr/bin/env python
# -*- coding:UTF-8 -*-
"""VoxelNet config system.
"""
import os
import os.path as osp
import numpy as np
from time import strftime, localtime
from easydict import EasyDict as edict
import math
__C = edict()
# Consumers can get config by:
# import config as cfg
cfg = __C
# for dataset dir
_... | [
"fschaeffler@gmx.de"
] | fschaeffler@gmx.de |
209038d26392ee257736b0dc27c13919c17ac550 | 0ae2bb21d7ca71a691e33cb044a0964d380adda2 | /Linkedin/LC139WrodBreak.py | b450b2041308a27de08b2a8551aa987cc89370d2 | [] | no_license | xwang322/Coding-Interview | 5d27ec92d6fcbb7b929dd98bb07c968c1e1b2a04 | ee5beb79038675ce73c6d147ba9249d9a5ca346a | refs/heads/master | 2020-03-10T08:18:34.980557 | 2018-06-24T03:37:12 | 2018-06-24T03:37:12 | 129,282,263 | 2 | 6 | null | 2018-04-19T19:31:24 | 2018-04-12T16:41:28 | Python | UTF-8 | Python | false | false | 307 | py | class Solution(object):
def wordBreak(self, s, wordDict):
dp = [False for i in range(len(s)+1)]
dp[0] = True
for i in range(1, len(dp)):
for j in range(i):
if s[j:i] in wordDict and dp[j]:
dp[i] = True
return dp[-1] | [
"noreply@github.com"
] | xwang322.noreply@github.com |
d05de92fbd33752bb64b60d6d4d79c1047be5ebe | acd6dd3a0eb2bfb2e8db59d4d2d2fde49b908138 | /depth-stream/ex5_rgbd_overlayed.py | 4a6e8f4a0ac05ed789a69bbea3a9ffa7d2e0e906 | [
"MIT"
] | permissive | jaykim9898/Pothole-Crack-Detection_MRCNN | 65aab6b42c5a8913ab46b1b07e69008613d5af83 | f25b4a6c55119d746f4a9bb1c3c14314b8be5501 | refs/heads/master | 2023-03-19T18:59:30.336108 | 2018-12-11T03:40:09 | 2018-12-11T03:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,231 | py | #!/usr/bin/env python
'''
Created on 19Jun2015
Stream rgb and depth video side-by-side using openni2 opencv-python (cv2).
RGB is overlayed on top on readable-depth. In addition, streams are aligned, mirror-corrected, and synchronized.
Requires the following libraries:
1. OpenNI-Linux-<Platform>-2.2 <Library and d... | [
"jerofad1992@gmail.com"
] | jerofad1992@gmail.com |
8152a7e29b7c4824b0d7872ace8893b23c1601e3 | 7334bd8a1d64662b13222916f4f9fa7565ac29c2 | /uliweb/contrib/objcache/__init__.py | be115be84dbb5796acd07603f6416025152862a8 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | nl0x7c2/uliweb | 9a1a021a80dc9b9b922df9f0ffb019a01ff6da7d | 1e48e216bce2b105d2fb5776cc3162c83df04fa8 | refs/heads/master | 2020-12-26T00:53:11.692556 | 2014-01-15T00:52:13 | 2014-01-15T00:52:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,623 | py | from uliweb import functions
from uliweb.utils.common import log, flat_list
def get_fields(tablename):
from uliweb import settings
tables = settings.get_var('OBJCACHE_TABLES')
if not tablename in tables:
return
return tables[tablename]
def get_id(engine, tablename, id):
return "... | [
"limodou@gmail.com"
] | limodou@gmail.com |
70c19f6c60566e5868ad044c2d17ad4a71f68c3b | 7b0d9a419adb0c2317ddcd496924d577cea8e370 | /accounts/views.py | 1bb00dd8fc5b783dcb4ed53f80f01dfd1ab89462 | [] | no_license | progmenEugene/Yowithpro | df186975b7a49208c5603b20a876e11cdc924d21 | 26b1fa8ed166feee699546b463dd4a38b3d39d81 | refs/heads/master | 2020-04-02T18:38:35.561621 | 2018-10-25T17:01:45 | 2018-10-25T17:01:45 | 154,707,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | from django.shortcuts import render
from django.shortcuts import render
from django import forms
# Create your views here.
from django.contrib.auth.forms import PasswordResetForm
from django.shortcuts import redirect
from django.views.generic import CreateView
from django.contrib import messages
from .forms import Reg... | [
"ecompx@gmail.com"
] | ecompx@gmail.com |
0f8f7522464a74d1b19a0325fe6df93394c0064f | ad8939b540fd50ca47df2b6c70d9548646dea7ad | /elevatorController.py | 4880381f07f02f3868e5a5e827ab22cda6bd326a | [] | no_license | MohitHasija/Elevator | 30c27efdedd8001c71f31db8bad6b22398e2e9c9 | a2158e40b4681faf53164915af0c37c98b392411 | refs/heads/master | 2021-03-28T04:43:57.404903 | 2020-03-16T23:52:47 | 2020-03-16T23:52:47 | 247,837,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | from copy import copy
class ElevatorController(object):
def __init__(self, elevator):
# An unordered set of floor numbers that have been requested
self.requested_floors = set()
# An ordered list of floors that have been visited
self.visited_floors = []
# Number of floors tr... | [
"noreply@github.com"
] | MohitHasija.noreply@github.com |
5c8a45629c42a37606e1aca5b46aa155f01e6fe9 | 73788c28a6c9742f0e7b4ee99ac4a7f854f40611 | /htdocs/plotting/auto/scripts100/p123.py | d4ec82a54a6e8952157960bce7110f06cf8fa756 | [] | no_license | nbackas/iem | b8c7a356c68865a66b808962e1f09460b74df73f | d22e6d7b1b94db3bb081fb08619f83fb5b6784b7 | refs/heads/master | 2020-12-31T03:04:22.144156 | 2016-03-21T19:09:16 | 2016-03-21T19:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,071 | py | import psycopg2
from pyiem.network import Table as NetworkTable
from pandas.io.sql import read_sql
import datetime
import numpy as np
def get_description():
""" Return a dict describing how to call this plotter """
d = dict()
d['data'] = True
d['report'] = True
d['description'] = """ """
d['ar... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
2d159e24ba80c94043bcb9a70bb40d4b96fdcecb | 249f85611a80ae84dcab037072918f9822335e29 | /venv/bin/pycodestyle | b4d483c96fdb2863f603194c4d145e09aa612b4e | [] | no_license | bharathjinka09/bharath-shop | 06b110c740fbb27b7e759b30c0ca1971dfb8b7be | 09683c1dbc2e9bc3b2795d2e53252e04b911069d | refs/heads/master | 2022-12-02T03:01:03.347749 | 2020-08-18T06:59:17 | 2020-08-18T06:59:17 | 288,379,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/mieone/Downloads/bharath-shop/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pycodestyle import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(_main())
| [
"bharathjinka09@gmail.com"
] | bharathjinka09@gmail.com | |
62b0191ac1f15c6d995aef12697f424b29a02230 | 33ce3289835670440bf1ae43ea11752c1fd50f1c | /examples/settings-sound-phone_ringtone.py | 03d9bc99214bcfc2fa39eda97648244896370354 | [
"Apache-2.0"
] | permissive | fknight3/AndroidViewClient | 66a1476dd2c5981bc24f2e76fa77f0e2a619cc60 | 2bb7d970153ef5b3c97a11cd13695bce473b0053 | refs/heads/master | 2020-03-30T20:53:57.024955 | 2018-10-04T17:30:02 | 2018-10-04T17:30:02 | 151,608,962 | 0 | 0 | Apache-2.0 | 2018-10-04T17:17:26 | 2018-10-04T17:17:26 | null | UTF-8 | Python | false | false | 2,034 | py | #! /usr/bin/env python
'''
Copyright (C) 2012 Diego Torres Milano
Created on Sep 8, 2012
@author: diego
@see: http://code.google.com/p/android/issues/detail?id=36544
'''
import re
import sys
import os
# This must be imported before MonkeyRunner and MonkeyDevice,
# otherwise the import fails.
# PyDev sets PYTHONPA... | [
"info@bojanpotocnik.com"
] | info@bojanpotocnik.com |
428db1642996487e7b9b0f6c10ead23b07ea7d2f | 64cd7a8be396ff3f9d4c1284d495ca5fc3bd30b8 | /gae/handlers/registrations.py | d6d16dbd04916c304150edad22f156ecf3647bdc | [] | no_license | andrefreitas/learning | 19aadb4842030e739c8daa9dc7fc1a77aa66649e | 44bdca0b5c71b2813b6aa4c3cfcf3ff11a7cb5d1 | refs/heads/master | 2020-05-30T14:45:05.219696 | 2015-09-24T22:04:30 | 2015-09-24T22:04:30 | 34,902,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import webapp2
from models import *
from views import template
class RegistrationsHandler(webapp2.RequestHandler):
def post(self):
name = self.request.get('name')
email = self.request.get('email')
course = self.request.get('course')
r = Registration(name=name, email=email, course=... | [
"p.andrefreitas@gmail.com"
] | p.andrefreitas@gmail.com |
b72f0285fc8fa50ebaee4beadd95c015d4f60e27 | 895d1a33771c7b2d8678d585ad3964173542a251 | /combined_dataset/combined_dataset.py | 891a6932875a3ddf626c320037d53489d11f2489 | [] | no_license | StrangeCloud9/NameDis | f905dab2fc919c4eed44d4c1591bd6d17593c33b | ec50586f4d88c423ddbaf1c4f3bb7d2d94c30d4b | refs/heads/master | 2021-01-23T08:49:06.184932 | 2017-09-06T08:47:58 | 2017-09-06T08:47:58 | 102,555,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,606 | py | # coding:utf-8
import os
from lxml import html
import re
import pymysql as MySQLdb
import random
conn = MySQLdb.connect(host='202.120.36.29', port=6033, user='groupleader', passwd='onlyleaders', db='mag-new-160205',
charset="utf8")
cursor = conn.cursor()
class Paper:
def __init__(self, pap... | [
"326902993@qq.com"
] | 326902993@qq.com |
e84a546a9eb69ba590b9d78efab3999ecec10f66 | 743305c980318628b80b972fd467fe099379988c | /Modulos/Academica/views.py | ed05b65fe5ade8d9ebb03c42af1e6fe82318bad9 | [] | no_license | Johang74/Gestion-Universidad-Basico | 7ff02a8b083feca989630c8ce2e1b835bb797936 | d63b68dad0962c419aeadd50cc542003424a7487 | refs/heads/master | 2022-11-17T07:12:33.551184 | 2020-07-18T17:58:20 | 2020-07-18T17:58:20 | 280,685,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.shortcuts import render
# Create your views here.
def formulario(request):
return render(request, 'formulario.html')
def contactar(request):
pass
| [
"johang0297@gmail.com"
] | johang0297@gmail.com |
b069607cd616397c9afb35f5f17d3d06dbaa218e | 4d8d1b72b531073265d5697a07a019ce55f70547 | /restore_model.py | 38ac66e5a67c9a21c6811eb4c0eed3a9b718f388 | [] | no_license | yjy0625/pix2pix-tf | 75feb18b917c1fe108412b4476f2193c15fc3cec | 79073ff8ed4c2d0b803746eae4d497523e66ebf1 | refs/heads/master | 2020-03-28T08:53:08.619814 | 2019-02-06T18:40:28 | 2019-02-06T18:40:28 | 147,996,323 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | import tensorflow as tf
import tensorflow.contrib.slim as slim
import os
def get_restorer(FLAGS):
checkpoint_dir_path = os.path.join('./', FLAGS.checkpoint_dir, FLAGS.version)
checkpoint_path = tf.train.latest_checkpoint(checkpoint_dir_path)
restorer = None
if checkpoint_path != None:
if FLAGS.... | [
"jingyuny@usc.edu"
] | jingyuny@usc.edu |
d6d8f63f4cda415d7c624e8325d5a901be794395 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03399/s953862554.py | bc9df3aeb190f77d1e5da24f3410b5437cd2a8a6 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | def main():
A = int(input())
B = int(input())
C = int(input())
D = int(input())
print(min(A, B)+min(C, D))
if __name__ == "__main__":
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d09fd5269e5e9a371ba79ad2612ea62ed9b72c02 | 0abb9d8b66e110b1439ea53fc63ef482465fef71 | /dbmgr/migrations/0004_auto_20180206_1513.py | cf9e3cd2e3d8616a5011bfb5741135716fc9b9c3 | [] | no_license | sohjunjie/ntu-ureca-us-stock-prediction | 6bfea7adefabf6a6a60d952675ec2e6f6b361fe5 | 4caa6acd94560b15a632374b116c4e4109e7fded | refs/heads/master | 2020-03-27T21:35:41.155542 | 2018-09-03T06:19:57 | 2018-09-03T06:19:57 | 147,159,695 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-02-06 15:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dbmgr', '0003_newspaperfeed'),
]
operations = [
migrations.AlterField(
... | [
"junjie.soh93@gmail.com"
] | junjie.soh93@gmail.com |
0b1452ebc0f8f166f42bd1488e7d2622af0c014c | b1984d708438c465b2f4a4be09a2ba8861d8e042 | /test.py | 54ad6a894b7e2ffa1cdf3d6a3b9912eaba7a778c | [] | no_license | marktsai0316/tests | 176878cc4dca49324e0e5f5ba04da96f1518cec0 | 65d80564e1565efb197543010a591ac747b8427a | refs/heads/master | 2023-04-21T05:24:12.903376 | 2019-06-05T21:19:25 | 2019-06-05T21:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | #!/usr/bin/python
import time
from ctypes import *
from operator import itemgetter
page_size = 4096
eviction_len= 8*1024*1024
probe_len = 8192 * page_size # assure every of the 256 accessed addresses gets an own page
c_lines = 12 # count cache lies
s_lines = 64 # size per cache line
c_sets = 8192 # count cache sets
... | [
"mame8282@googlemail.com"
] | mame8282@googlemail.com |
f3ab5d2b31cba0edb5e33649760867797e54a5f0 | 05c15f476044624acaf137390bd28c60ae886aa1 | /socialdistance.py | 7efd773238059330157451e78a315b63616231d0 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | vineet019/social-distance | d55bada7890017178c96f522af9f4c4f8acea98b | 7b24da1712e0335c4e51520023fa1ec5af6c66f9 | refs/heads/master | 2022-12-16T04:33:04.694168 | 2020-09-24T01:52:36 | 2020-09-24T01:52:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,553 | py | """
Copyright (C) 2020 Intel Corporation
SPDX-License-Identifier: BSD-3-Clause
"""
import json
from collections import OrderedDict
from itertools import combinations
import cv2
import os
from libs.draw import Draw
from libs.geodist import social_distance, get_crop
from libs.geometric import get_polygon, get_point, g... | [
"mateo.guzman@intel.com"
] | mateo.guzman@intel.com |
82122190857142b5874736d7b35ee3e46af75abd | 1421d61938dafd86bf8195d0e24acb454e10ddb4 | /env/bin/easy_install | 84515a2c52d9864d43279b66c3975d52ed18078c | [
"MIT"
] | permissive | EitanAugust/bme590hrm | 61cd9df1a37347ef545f4430fae907b2e5856b7b | c8be75c44e124ee8a25d4cf0e1a17f739a8b5a58 | refs/heads/master | 2021-01-25T10:49:39.899559 | 2018-03-02T03:50:50 | 2018-03-02T03:50:50 | 123,371,359 | 0 | 0 | null | 2018-03-02T03:50:51 | 2018-03-01T02:34:02 | Python | UTF-8 | Python | false | false | 287 | #!/Users/eitanaugust/Documents/BME_590_Python/bme590hrm/env/bin/python3
# -*- 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())
| [
"eitanaugust@Eitans-MacBook-Pro.local"
] | eitanaugust@Eitans-MacBook-Pro.local | |
e9b6db9a20f3e7de962bd3db279279e0f855907b | d9b59a931808a33703f80dee957f2fcbb19c9691 | /blackout_data/time_between.py | 3c091067dcf641de1fa7f3464495af66c27945e2 | [] | no_license | mahdifirouzi/Cascade | 8cfa6f9d06a1428a4385046814e9e640404d648f | f75e97bcc34ecd1f57bbc0bb1b33e44d313aab8a | refs/heads/master | 2023-03-18T17:38:46.820688 | 2011-09-06T21:03:18 | 2011-09-06T21:03:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | #!/usr/bin/python
import csv_reader
import sys, os
import datetime
import numpy
reader = csv_reader.Reader(sys.argv[1])
data = reader.get_columns(['year','month','day','Northeast'])
#data = reader.exclude_on(data,[3])
days_between = []
for i in range(len(data)-1):
event = datetime.date(int(data[i,0]),int(data[i,... | [
"aavardaro@gmail.com"
] | aavardaro@gmail.com |
80c34a1e44e07c68d76c231b58ed93ad3b7d7d09 | 12cad3e1f1ee44f1d74c3843c821fbe44c59c353 | /example.py | fa265995ed1b757bc941c981d6ea6e57ef0ace14 | [] | no_license | DarrylEgbertNangoi-GitHub/CourseraIntroduction | a9d5bccb94e927ca8e20230517d2eb9560da7747 | d780266fee3d07cd79d77a4cf62e1c95bd640779 | refs/heads/main | 2023-03-19T01:49:10.986096 | 2021-03-08T09:52:47 | 2021-03-08T09:52:47 | 345,601,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py |
def git_opeation():
print("I am adding example.py file to the remote repository.")
git_opeation()
| [
"darryl.nangoi@binus.ac.id"
] | darryl.nangoi@binus.ac.id |
4b9a9e21bf5314a39049967c13d1cf3f98b46bc5 | a6d2e07eea20f63579d6cd31044d26c7f786b8e4 | /lib/model/train_val.py | e547fdaf8bb316d5deead1842c64c910020fb862 | [] | no_license | gaobb/CASD | 4b0d882d4d7e12d3e8cef7f6842da6e226bc4c3d | 9e45a282992a9411b1790f5009353716cb649626 | refs/heads/master | 2023-08-22T07:44:57.510863 | 2021-10-19T03:06:59 | 2021-10-19T03:06:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,513 | py | # --------------------------------------------------------
# Tensorflow Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Xinlei Chen and Zheqi He
# --------------------------------------------------------
from __future__ import absolute_import
from __future__ import division
from __f... | [
"huangzy666666@gmail.com"
] | huangzy666666@gmail.com |
76289dc29e23594f8f88518fc2be3110d6f1fd27 | 6f2d0c4e5f89d163241b8aa32b8ab8cf030ac59f | /sma/migrations/0002_attendance_grade_mentor_school_session_schedule_student_student_group_mentor_assignment.py | 43747906e0891bdef54fb5dfa8e56fa0d4f7e76c | [] | no_license | johnpgarza/omk-oldest | cc4f1578b19ee7c40ac1757608b8c20b25f34842 | 2992bbc12a0f1e31243db9e8bded75d46ec208eb | refs/heads/master | 2023-08-19T08:48:22.017632 | 2020-04-26T01:00:38 | 2020-04-26T01:00:38 | 258,906,307 | 0 | 0 | null | 2021-09-22T18:55:37 | 2020-04-26T00:52:29 | JavaScript | UTF-8 | Python | false | false | 6,475 | py | # Generated by Django 3.0.4 on 2020-03-20 04:28
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('sma', '0001_initial'),
]
operations = [
migrations.CreateModel(
na... | [
"jgarza@unomaha.edu"
] | jgarza@unomaha.edu |
f5584a8dbc7c3d9effdab81e3e631e40c0e4f0f0 | 586aba25a13b90a21c90949fad303f8499cee42f | /model/positional_encoding.py | 28f7b714267d2324960ead55848c7b940ff984c6 | [] | no_license | leejaeyong7/tc-nerf | c95301370eb41158f110bb0bc00760f52273708a | 49bd2cf7afd6f69278a1fc9a7b2bada2351f86ca | refs/heads/main | 2023-03-28T04:11:59.694524 | 2021-04-01T03:48:41 | 2021-04-01T03:48:41 | 309,032,701 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | import torch
from torch import nn
class PositionalEncoding(nn.Module):
def __init__(self, N_freqs, logscale=True):
"""
Defines a function that embeds x to (x, sin(2^k x), cos(2^k x), ...)
in_channels: number of input channels (3 for both xyz and direction)
"""
super(Position... | [
"leejaeyong7@gmail.com"
] | leejaeyong7@gmail.com |
e68d468cc348fa28a58ca4b6567a053ae7440b3c | bdf574f292aa1617d6591cc58ba19ceb27a517be | /Instagram menteri.py | de9ff2c21417f9d354f7c634a7bccfbbfcfc1435 | [] | no_license | digilab-cfds/Profiling_Menteri_2019 | ddcd9a2d21524dfd2c91cc2b2db1b8c1d0e6b20b | 9190242a98eae27cc78a64de4cda9b81328cc4d2 | refs/heads/master | 2020-09-08T12:08:29.816908 | 2019-11-12T04:23:03 | 2019-11-12T04:23:03 | 221,129,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | #%%
#Login Instagram
from InstagramAPI import InstagramAPI
api = InstagramAPI("username", "password")
if (api.login()):
#api.getSelfUserFeed()
print("Login succes!")
else:
print("Can't login!")
#%%
listNama = ['mohmahfudmd', 'airlanggahartarto','muhadjir_effendy'
,'luhut_binsar_pandjaitan','p... | [
"noreply@github.com"
] | digilab-cfds.noreply@github.com |
66d24fc1b4e5f725e474f09fb23c79522bd46f9a | eb8d4c754ca229b83af47b3b9fe4488ffff6d4a6 | /estrutura-de-repeticao/exercicio21.py | 809b25edcd4e3b42617012296539bd9cf10a878c | [
"MIT"
] | permissive | diegolinkk/exercicios-python-brasil | 1e5e712e057e9819b8c14b1aa1c40fb94d6e31a1 | 3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5 | refs/heads/main | 2023-07-15T09:54:36.309310 | 2021-08-15T00:12:18 | 2021-08-15T00:12:18 | 358,438,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #Faça um programa que peça um número inteiro e determine se ele é ou não um número primo.
# Um número primo é aquele que é divisível somente por ele mesmo e por 1.
numero = int(input("Digite um número: "))
divisor = numero
contador_divisoes_inteiras = 0
while divisor >=1:
if (numero % divisor) == 0:
cont... | [
"diegolinkk@gmail.com"
] | diegolinkk@gmail.com |
8912a74e600a883095b5af30146b2029ad3057ed | 6b20e6a11842cf2f2624ec4f0387fab5305b4a09 | /Nave.py | c4842d0e1577ffd99422f8ee1426c1bdb34a7bc9 | [
"Apache-2.0"
] | permissive | Albertojserr/Mi-Primer-Ejercicio-POO | 3c14adbc19dcb4f6d039d301d2a12ce966141b96 | 3de8df95be8cd9894ea68c225822b1f9d4be6423 | refs/heads/main | 2023-08-27T19:27:22.451102 | 2021-10-29T14:52:50 | 2021-10-29T14:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | from Guerrero import Guerrero
from Marciano import Marciano
from Terricola import Terricola
class Nave():
def __init__(self, warrior_type, name="Millenium Falcon", crew=1):
if(not isinstance(crew,int)):
raise TypeError("crew is the number of warriors and should be an int")
elif(crew < ... | [
"alberto.j.serrano@gmail.com"
] | alberto.j.serrano@gmail.com |
c6698562cc25684f53c90e7da85446bb439283a9 | 2ea49bfaa6bc1b9301b025c5b2ca6fde7e5bb9df | /contributions/mattia.penati/python/Data Structures/2016-09-13.py | 78ee8b992e510f221264d582a1fae6cf11e8a12f | [] | no_license | 0x8801/commit | 18f25a9449f162ee92945b42b93700e12fd4fd77 | e7692808585bc7e9726f61f7f6baf43dc83e28ac | refs/heads/master | 2021-10-13T08:04:48.200662 | 2016-12-20T01:59:47 | 2016-12-20T01:59:47 | 76,935,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | Best way to implement a simple `queue`
`Module`s everywhere!
Special attributes of objects and classes
Get the most of `int`s
Get the most of `float`s | [
"mattia.penati@gmail.com"
] | mattia.penati@gmail.com |
8ae147a4aa7b33753aea023f8e8f2d064f2e8ae8 | aa196fe070c406ba2c1751081b9afccecb1abd5a | /src/04_CollectionGeneratorFromItemSets.py | efc7420c96eb2dcf62976975d1b8b41a8ad7e1d5 | [] | no_license | iii-dch/dataset | 929f54285febfe7399b2ff1368da5efb7b4a0b4e | ebc6bf924ccb33780d55caa61a91f7db0754c4e2 | refs/heads/master | 2021-06-22T23:39:34.907627 | 2021-04-27T01:47:11 | 2021-04-27T01:47:11 | 175,349,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,669 | py | import sys
import json
import argparse
import requests
import os
import glob
import yaml
import shutil
import datetime
from classes.downloader import Downloader
manifest_path = "../docs/iiif/collection"
Downloader.initDir(manifest_path)
f = open("settings.yml", "r+")
settings = yaml.load(f)
prefix = settings["githu... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
bf97ef06b952d115433a1b4263db21b5ebfb4b54 | d056699ecbe8bcebf4ce63c7d590b7cb9eff6331 | /old/policy.py | 8b81fee7be775f47a04dbf2b39425032a9108a19 | [
"MIT"
] | permissive | QuMuLab/tempopem | 66258eefb194fee0969530c8618d6de0bc08aa3e | 1d578d9fb6b3bc87295527b152f142fe9dcd8546 | refs/heads/master | 2021-05-22T17:40:51.131378 | 2020-04-04T15:02:29 | 2020-04-04T15:02:29 | 253,025,451 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,344 | py |
import networkx as nx
NODE_COUNT = 0
class PolicyNode(object):
def __init__(self):
global NODE_COUNT
NODE_COUNT += 1
self.high = None
self.low = None
self.fluent = None
self.action = None
self.parents = []
self.hash_val = None
self.score = N... | [
"christian.muise@gmail.com"
] | christian.muise@gmail.com |
4914ad00a676e04f4ad6a79cb4558ee4d81d7cf5 | a61136759e6af85ca4b0a5c3e0de5885bca50406 | /IndividualOptions/BarrierOptions/BarrierKnockInCallPut4.py | 7f00e14186191835be9f0a4eb069eb87a14338d8 | [] | no_license | JorisVlaar/F4E-Project-Part-2-Group-29 | c626436ce0f557cda17377ea8b8d33f54935ff1b | 7c2d28e770ab89ed8371f2c97839ba966cb7a253 | refs/heads/main | 2023-09-02T08:15:45.385603 | 2021-11-02T11:56:30 | 2021-11-02T11:56:30 | 416,730,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,130 | py | # A Program to find the value of an EU Call option using the binomial tree method
from Tool import findStockPrices as fsp
import math
def find_values(prices, PExercise, option):
if option == "Call":
for i in range(len(prices)):
prices[i] = max(0, prices[i] - PExercise)
elif option == "Put"... | [
"j.f.vlaar@student.utwente.nl"
] | j.f.vlaar@student.utwente.nl |
a86c159050ee04f45dbaea716accb29cd8f21b10 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631572862566400_0/Python/Yaksha/C.py | 42b9cbfef65ada5bb000995cbdc1565d9b560d9e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py |
def solveEndedLoops(endedLoops):
longestList = 0
reverseEndedLoops = [x[::-1] for x in endedLoops]
for (index, item) in enumerate(endedLoops):
if len(item) > longestList:
longestList = len(item)
for (index2, item2) in enumerate(reverseEndedLoops):
if inde... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
d2bd8e2345dc2cf48c72ef12d9b46d5b9429970c | 50c7d7f94263b250bba1ded2b247925ff4e28cf8 | /server/marsHandler.py | b96b6048794c4275cb2580e66a13e9bfd1ffe581 | [
"MIT"
] | permissive | jmaggio14/goddard | 8bce241ed19b27249b3707f98784bbf13c90d0ea | f34755c9fbd982b2965d9b23685df0f21ebaff08 | refs/heads/master | 2021-01-12T13:25:32.669157 | 2016-09-25T18:43:23 | 2016-09-25T18:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | # Copyright (c) 2016, Jeffrey Maggio and Joseph Bartelmo
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, ... | [
"joebartelmo@gmail.com"
] | joebartelmo@gmail.com |
604a43b12f74c9ec9bf3bce3255baee25371282e | d445c40666165b0fea9b7cb00de882b5aaa7882a | /src/py/wxyz_core/src/wxyz/core/widget_json.py | cb607e01ded9e0ce61065d5b17a69e59b9b01c42 | [
"BSD-3-Clause"
] | permissive | nrbgt/wxyz | 9e5d995b4eb76ddbdd459940ecefe6d5a5c326d3 | 663cf6593f4c0ca12f7b94b61e34c0a8d3cbcdfd | refs/heads/master | 2023-05-13T07:55:19.518188 | 2020-02-23T02:07:17 | 2020-02-23T02:07:17 | 296,402,747 | 1 | 0 | BSD-3-Clause | 2020-09-17T17:56:30 | 2020-09-17T17:56:29 | null | UTF-8 | Python | false | false | 1,454 | py | """ Widgets for working with JSON
"""
# pylint: disable=no-self-use
import json
import jsonpointer
import jsonschema
from .base import Fn, T, W
@W.register
class JSON(Fn):
""" A JSON parsing functional widget
"""
_model_name = T.Unicode("JSONModel").tag(sync=True)
value = T.Union(
[T.Dict(... | [
"nick.bollweg@gmail.com"
] | nick.bollweg@gmail.com |
c1aaf6c50d07538695d2394c07416afb1c37b478 | 44ff65fdce9ba204bbc1673c2bec1cc46e70bda5 | /projeto/dimensoes/migrations/0001_initial.py | c2c840d1fcaf8141e410eff1c5508d32a38bb974 | [] | no_license | leopesi/pool_budget | 4c0c7ac7b718bacc6312585d3519497ac9c641d9 | 30e81e07a91659a16e84cd04eff20ea4e6a9c6dd | refs/heads/main | 2022-12-13T08:54:50.762224 | 2022-03-22T00:56:16 | 2022-03-22T00:56:16 | 249,777,827 | 1 | 0 | null | 2022-12-08T03:52:48 | 2020-03-24T17:47:39 | Python | UTF-8 | Python | false | false | 3,597 | py | # Generated by Django 4.0.3 on 2022-03-22 00:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"leopesi@yahoo.com.br"
] | leopesi@yahoo.com.br |
fb77ea07cc1f0e776b2b58f3e6ea4ece9b9419b9 | 6afa0b5bc5c50ed4d90800a7eae118976f47d9f7 | /lib/core/engines/censys.py | 0d731cd7f784d2438bda73d08c19472683a81a64 | [] | no_license | qq431169079/webHunter | 7efccb39cc4e91d8eae2e25ded0a24c3084bab92 | bc3cbed64ef71b6fac4c209797c222c8768f4723 | refs/heads/master | 2020-04-24T22:37:09.512532 | 2016-01-18T04:21:57 | 2016-01-18T04:21:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | #!/usr/bin/env python
# coding: utf-8
import re
import urlparse
import thirdparty.requests as requests
from lib.core.engines import Engine
from lib.core.engines import EngineError
from lib.core.engines import EngineConnectionError
from lib.utils.agents import random_user_agent
from lib.utils.common import dict2query... | [
"rickchen.vip@gmail.com"
] | rickchen.vip@gmail.com |
afa1946040cf0c093e0c91e5c89128b08e964dd3 | ac62bd27af62efb8d8310a71016532d9b9177e54 | /new_project.py | 1375c03b01eb07afd5a0b68b8cf87cfa1bd233c8 | [
"Zlib"
] | permissive | lilingfeng-2016/glfm | fcd840da07fdcaa6141d3d0f28b78a1c24b53e8d | 3b62129e519eba758cc42e3da08ec12ff214a70a | refs/heads/master | 2021-01-11T18:45:06.292753 | 2017-01-15T21:21:43 | 2017-01-15T21:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,099 | py | #!/usr/bin/python
import getpass, os, re, shutil, sys
print ""
print "Create a new GLFM project"
print ""
#
# Gets a line of input. The input is stripped of spaces.
# If the input is empty, default_value is returned
#
def get_input(prompt, default_value):
value = raw_input(prompt + " [" + default_value + "]: ")
... | [
"brackeen@gmail.com"
] | brackeen@gmail.com |
c6156546305358f3903c211d335238a40cae8906 | 19c4de6bfbd8536aeb323b52fa54d9b73a0efe5f | /for.py | 191ae0a262fcc8a252b1dac8c44825be9989bbe2 | [] | no_license | GiovanniSinosini/cycle_condictions | a39e51ada7931342e51200a2adc3268506d7cc94 | 7ee645668e8f376a8570d9a90a7d253cbe021ecc | refs/heads/master | 2021-02-08T05:52:10.505497 | 2020-03-01T08:54:03 | 2020-03-01T08:54:03 | 244,116,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | def main():
# Read number
'''
print("Calculate the multiplication table of a number")
numero = 0
while numero <=0:
numero = int(input("Enter number: "))
if numero <= 0:
print ("Error: Number must be greather than zero!")
for i in range(1, 11):
res = numero ... | [
"carvalho.sino@gmail.com"
] | carvalho.sino@gmail.com |
b3eadaa9fcf766d67cddeb553303e33ebfc63f42 | b696b2e86ba95f2922383c8e7cf59aa6939e2196 | /polls/models.py | a9494fae6072be3fa41db3e82b1fa2c74834b5c5 | [] | no_license | Ihsara/form_example_django | 14756d7a7b0ad2de5dd0b0b815c45c27e7fce334 | bce7d454e142a1c1f10600251ccc95488f3035ff | refs/heads/master | 2020-05-03T12:43:40.524198 | 2019-03-31T02:52:06 | 2019-03-31T02:52:06 | 178,634,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
class Choice(models.Model):
question ... | [
"longchau21@gmail.com"
] | longchau21@gmail.com |
840c1e455245c805ebe1b93b7d10959995f0bd81 | d030630f6579d836243b794c6769af0452e03f22 | /Notes/Workshop_0/Exercise - Number Guessing Game.py | f277f0fbccb3776e503cc5cafc4dfc6fd5dc57fd | [] | no_license | LinesKing/System-Optimisation-Machine-Learning-ELEN90088_2021_SM1 | 6625de1d99f7d4cdc25ced6346aa4f59f0e9c59e | f7c65df658e7fe66c63d4ed35071ff13ad2b6a5f | refs/heads/main | 2023-06-25T03:22:20.503772 | 2021-07-29T02:20:53 | 2021-07-29T02:20:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | import random
target = random.random()
print("target= {}".format(target))
max = 1 # initial maximum
min = 0 # initial minimum
guess = (max + min)/2 # First guess
count = 0 # guessing times
bias = abs(target - guess) # guessing bias
tolerance = 1.0e-06 # The number depending on a solver's stopping criteria.
while bias... | [
"lineslk97@gmail.com"
] | lineslk97@gmail.com |
245bea7ae2c8f01f18c4cbc04c206d1ac32509b4 | f7b935819a37b944ae160cad3faba042c477196b | /movie/admin.py | e2f054cef92f7722f9218de2691fcc2c44ef3bdf | [] | no_license | greyfivenine/cinemasite | d98e7d6a4ff41002c4dc7add92301a23fe0354b5 | bf1ae48d48c26d5eb7bf2db4e993642ac42d2376 | refs/heads/master | 2020-05-23T22:37:34.771285 | 2019-05-16T09:21:15 | 2019-05-16T09:21:15 | 186,977,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | from django.contrib import admin
from .models import Movie, About, Comment, Schedule, Place
from .forms import AdminScheduleForm
# Register your models here.
class CommentFilter(admin.SimpleListFilter):
title = 'Фильм'
parameter_name = 'movie_slug'
def lookups(self, request, model_admin):
movies ... | [
"mustakimov.99@gmail.com"
] | mustakimov.99@gmail.com |
1f44c10841bb3f121b2f3a9f454497acd09bae7b | e1d7a04507712e69408a7ae1ec33061bd4c691db | /venv/Lib/site-packages/pvlib/pvsystem.py | 8a20e5fdeff9c954edd7dbbb4611731e94ac306b | [] | no_license | Mervolt/pp | 5d0d70e6e70004284816cae37eac038332a892fe | ce0371c79183af8bb3856671aad5b55a81380b4c | refs/heads/master | 2023-06-25T19:17:27.756515 | 2021-07-31T23:04:10 | 2021-07-31T23:04:10 | 363,100,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85,009 | py | """
The ``pvsystem`` module contains functions for modeling the output and
performance of PV modules and inverters.
"""
from collections import OrderedDict
import io
import os
from urllib.request import urlopen
import warnings
import numpy as np
import pandas as pd
from pvlib._deprecation import deprecated
from pvli... | [
"michal.makson@gmail.com"
] | michal.makson@gmail.com |
a3b8b46b4b69ec5c3b46327d35360b5edb9e3ffd | 62097bc035fed6ea64d9fb8ff6e6d58795c57ec7 | /src/auth/VKAuth.py | b6cb4b93f7e117a1556d9bb3afdbf90dfd0abd56 | [] | no_license | BeTripTeam/People-Analytics | 4791135f21bb85771915488cc960e9f8392ac9aa | 2c8d45aa33b213e2c8b03563ba28adf801287812 | refs/heads/master | 2020-03-19T03:15:21.046661 | 2018-06-01T13:28:14 | 2018-06-01T13:28:14 | 135,710,198 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import vk
from src.exceptions.VKException import VKException
from src.models.API.API import API
from .Auth import Auth
class VKAuth(Auth):
#access_token = '87cc1a32e7af1bb84adefc1e0f01570f6d08930c538a486b9d888cd0ff1910302c827e20284647e18cc61'
_api = None
def __init__(self, access_token):
... | [
"marikoreneva@gmail.com"
] | marikoreneva@gmail.com |
8f6336395a7599af5c616dc9ee4a969eb7482bc5 | cabe3a25370bb72873b5809f1bb80ede77364599 | /python-playground/datastructures/queues/list_queue.py | 25206bca14d231485d515fb98fa7b3342b815564 | [] | no_license | therachelbentley/algorithms | 2ae69ab1ca8465b9a04194e23f6ebdbf529866d0 | 977fd4cb2a54bfda54fb9d47a3dcde42c41610f5 | refs/heads/master | 2023-05-26T10:07:09.036451 | 2020-05-10T17:29:50 | 2020-05-10T17:29:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py |
class ListQueue(object):
def __init__(self):
self.queue = []
def enqueue(self, data):
self.queue.insert(0, data)
def dequeue(self):
return self.queue.pop()
def size(self):
return len(self.queue)
| [
"racheljohnson457@gmail.com"
] | racheljohnson457@gmail.com |
0a6f6613ff3d2c925ed735b41fffa3feb7223515 | 8c7fed8a53524014d703070fbd2aa2ba44e02d1b | /lesson1.6_step8.py | 8e9cfeb9d937a39a52068feb9d990dd345232408 | [] | no_license | Pahab91/stepik-auto-tests-course | f1aff22c48c38326b02f909719be8bf23d2d1ce2 | 17440048266a4b357baa1eeb4fafcf040300ee71 | refs/heads/main | 2023-03-07T01:57:28.909166 | 2021-02-20T01:33:49 | 2021-02-20T01:33:49 | 340,496,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | from selenium import webdriver
import time
try:
link = "http://suninjuly.github.io/registration1.html"
browser = webdriver.Chrome()
browser.get(link)
input1 = browser.find_element_by_css_selector(".first_block .form-group.first_class input")
input1.send_keys("Frodo")
input2 = browser.find_elem... | [
"Pahab91@gmail.com"
] | Pahab91@gmail.com |
d6682fdff9794853d254ffcae829dc761088a489 | 8eaab995c998e904e9748e60d667fff2c540641a | /addition/makevocab.py | f7b50fc5f14f5adda981b9a820b7034caa8c0a67 | [] | no_license | araki214/Script_for_master | 9b14088eb739fd2cc270fffcd7ea0ac54d667196 | faa910b0ffa98559bbaac3de7b925597036aca43 | refs/heads/master | 2023-03-01T15:27:13.101330 | 2021-02-09T19:36:51 | 2021-02-09T19:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | import sys
vocab={}
databefore=sys.argv[1]
dataafter=sys.argv[2]
maximum=64000
with open(databefore,'r') as f:
for line in f:
line=line.split()
for i in line:
vocab[i]=vocab.get(i,0)+1
count=0
with open(dataafter,'w') as g:
g.write("[PAD]\n")
g.write("[UNK]\n")
g.write("[CLS]\n")
g.write("[SEP]\n")
g.writ... | [
"xakari2000@yahoo.co.jp"
] | xakari2000@yahoo.co.jp |
577797b5cdeb4682623d63ae93e5352f0efc77d5 | 64ca4584e459bc1890853f824d48b2a5fbb09632 | /IMDB/IMDB.py | 493dcdc7b7f4d4fcaf555e97fac2c7d62b1f4ac2 | [] | no_license | Gozzah/Python | 24a4d8e20c68362cd220c8bdaf4fc835d9fc3c02 | fecab54a116c956409fd47f3faac7d1483fb8dda | refs/heads/master | 2021-04-27T20:40:09.241636 | 2018-04-25T13:35:23 | 2018-04-25T13:35:23 | 122,384,268 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | import pandas as pd
content = pd.read_csv('https://datasets.imdbws.com/title.basics.tsv.gz', sep='\t', header=0)
df = content[content['titleType'] == 'movie']
most_movies = df['startYear'].value_counts()
print(most_movies)
#2. Which year was most series ended?
dfSeries = content[content['titleType']... | [
"noreply@github.com"
] | Gozzah.noreply@github.com |
a691834806912611ff6db8d6b038048e8daf5cdb | d1b80aa1bb58313bf851ac51873ff5ddef85368e | /oop3.py | f2ff8c8a5cc417ebbf8d73057629a5ec3ea34f27 | [] | no_license | KojoAning/PYHTON_PRACTICE | 1680ac06e09a8c34c36a89fdcec9507adbe97c6e | 397ce7feb61a857b90989243a7f78591a58f8ca0 | refs/heads/master | 2023-02-27T04:44:47.459776 | 2021-01-31T18:23:44 | 2021-01-31T18:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | class Employee():
no_of_leave= 8
def __init__(self,aname , asaalary, arole): # init func. don't requires no calling
self.name = aname
self.salary = asaalary
self.role = arole
def printditails(self):
return f"name is {self.rohan} and salary is {self.salary} and role is {se... | [
"srinathshrestha9890@gmail.com"
] | srinathshrestha9890@gmail.com |
2cdbc070027cc4df0fe09f2577e29effb7d73d7c | a5bfd76ec633a49bc20669aa77ce773f97430151 | /BLE_preprocessing_3.py | 4db5a7e5ae8e38e848d4375fe865cf4b60369e46 | [
"MIT"
] | permissive | alhomayani/Oversampling_BLE_fingerprints | 8d6f3c2c774c9139ef84a7f4c1559be626e71ea8 | 080ec37072dfa44f73ced3f202e16fa0007bacba | refs/heads/main | 2023-07-05T02:44:20.222386 | 2021-08-30T01:28:26 | 2021-08-30T01:28:26 | 375,171,546 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | import pandas as pd
import os
result = pd.DataFrame()
os.chdir('C:/Users/uf11/Desktop/BLE_dataset/preprocessing/preprocessing_2')
for phone in range(1):
for slot in range(6):
df_temp = pd.read_csv('phone_'+str(phone+3)+'_slot_'+str(slot+1)+'_scaled.csv', index_col=[0])
print(len(df_temp))
... | [
"noreply@github.com"
] | alhomayani.noreply@github.com |
08b479d74c044be6254dfbac91e991e192c4ed1b | 75a2ad10d18aea735eaf3e859eb3988d94e9c36a | /CodeUp/기초 100제/6090_종합.py | 3c59df0144218df4100f715ba24348f87e32ab8c | [] | no_license | sbtiffanykim/problem-solving | d2679b0405f9c2397d7af780721066bfbd812e32 | 10a6ec90d29c9126f56c9be2ee696ce30ca30bd5 | refs/heads/master | 2023-04-25T18:26:56.511663 | 2021-06-10T12:30:13 | 2021-06-10T12:30:13 | 360,552,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | """
#6090: 수 나열하기 3
"""
a, m, d, n = map(int, input().split())
for i in range(1, n):
a = a * (m) + d
print(a)
| [
"sbtiffanykim@gmail.com"
] | sbtiffanykim@gmail.com |
5cdf1cb88588211b536518f30fdbc77cc70d5712 | 07123806119496981cccf1ca577de7ddc7b59146 | /COP4531/coinchangemin.py | f3e997a09c3bd30c81ee96f542c5205ff6e5fc7e | [] | no_license | wcwagner/Algorithms | 02482be2d5eab79cbc12ae3f78acb16883139ab0 | 10fcae69231f873d68e92b54035ca7fa6a20a359 | refs/heads/master | 2020-05-22T01:21:57.168199 | 2016-12-10T21:24:50 | 2016-12-10T21:24:50 | 60,459,776 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | def coin_change_min(N, S):
"""
Minimum amount of coins needed to make N
"""
# dp[i] is minimum coins needed to make amount i
dp = [0] * (N + 1)
for curr_amt in range(1, N+1):
min_val = float("inf")
for coin_val in S:
if curr_amt >= coin_val:
num_ways ... | [
"wcw13@my.fsu.edu"
] | wcw13@my.fsu.edu |
837e94badfe7f215ca75ba23dc83e7f45993c8ef | 8803bbced7e91c80d29753a3d1cb3bb478a13961 | /app/session/urls.py | 8d7877d2b5cb0f3353eb2f8a8f10854e058becf6 | [] | no_license | jiggum/CS496_Project3 | e8981ef59f7bf7be20431f175df7fc8c2f44833e | afef8670cfca1d87a960cddd57a127b263d4bab0 | refs/heads/master | 2021-01-21T02:01:53.898184 | 2016-07-14T01:58:15 | 2016-07-14T01:58:15 | 63,216,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | """null URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"0s.dongmin@gmail.com"
] | 0s.dongmin@gmail.com |
2b8227feb761065cb5bbc4d63f58e5982e62e35b | 0e586424141e41891dc58b95ddb25fff472f2002 | /acros/apps/generator/magic.py | e863fbad2eed021378d27b67c786b940987b4bc2 | [] | no_license | nicorellius/acrosite | facb682e95dc4847f1af3ba6f742abc64d038dd5 | c64832a78738f57cdad1b7a07b81279342cdff75 | refs/heads/master | 2022-12-04T16:50:23.564543 | 2020-02-26T00:16:39 | 2020-02-26T00:16:39 | 25,777,397 | 2 | 0 | null | 2022-11-22T00:34:05 | 2014-10-26T15:07:33 | Python | UTF-8 | Python | false | false | 3,083 | py | import unittest
import operator
import nltk
def first_letter(word):
return word[0]
def get_formats(word):
"""
Uses word length to determine useful pos structure.
For example, given the word 'Fun', returns a list
of three parts of speech because 'Fun' has three letters or
several lists s... | [
"nicorellius@gmail.com"
] | nicorellius@gmail.com |
31233364461835df2c43081144994282f4ec6fb9 | 1af44bdcbc3c15d3f6e436a7924dfd45f504ab3a | /01.jump to python/02.Data Science/4. Visualization/282_matplotlib_basic_histogram.py | 1a6596ad54616f6c7081fcc544fd649f78d2ef6a | [] | no_license | wql7654/bigdata_exam | f57c8b475690cbc5978009dbf8008bedff602e2a | c07ee711bb84407428ba31165185b9607b6825e8 | refs/heads/master | 2023-04-07T00:50:59.563714 | 2021-05-25T02:46:43 | 2021-05-25T02:46:43 | 180,915,985 | 0 | 0 | null | 2023-03-25T01:08:09 | 2019-04-12T02:36:08 | Jupyter Notebook | UTF-8 | Python | false | false | 723 | py | import numpy as np
import matplotlib.pyplot as plt
plt.style.use('ggplot')
mu1, mu2, sigma = 100, 130, 15
x1 = mu1 + sigma*np.random.randn(10000)
x2 = mu2 + sigma*np.random.randn(10000)
fig = plt.figure()
ax1 = fig.add_subplot(1,1,1)
n, bins, patches = ax1.hist(x1, bins=50, normed=False, color='darkgreen')
... | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
5259e96e8c7daf9bb2b22b369534042c3cb434cf | 31b51aeb96000318df21351b2ef6cb55f7c269c2 | /HiNT/corelib.py | 99d11739955e91cefcf71310c01c8bcf9d3bd653 | [
"Artistic-1.0-Perl",
"MIT"
] | permissive | suwangbio/HiNT | a26062f6c39929803a4aded5465743768a81b8c5 | 99f0aa91d10c5fccabcbd56035f6e3125650a720 | refs/heads/master | 2022-04-08T23:13:25.344196 | 2020-02-17T22:22:13 | 2020-02-17T22:22:13 | 240,967,519 | 0 | 0 | NOASSERTION | 2020-02-16T21:19:00 | 2020-02-16T21:18:59 | null | UTF-8 | Python | false | false | 355 | py | # print current time and information on screen
import subprocess
from subprocess import call as subpcall
import sys, os, time
import logging
error = logging.critical # function alias
warn = logging.warning
def Info(infoStr):
print("[%s] %s" %(time.strftime('%H:%M:%S'), infoStr))
def run_cmd(command):
... | [
"1210070_suwang@tongji.edu.cn"
] | 1210070_suwang@tongji.edu.cn |
c56605a1ff97ce5490fd9b73b12308ef4cae495d | 50608ac21fb2124a8b73ba5299e947d8a3be142b | /simulation/python/inversion_v2.1_selvhenfall_xisquared-plotting.py | 341f45fbec143208b4c69d91f144315092346064 | [] | no_license | jorgenem/master | 88e71bc935af9cf23585d3b2ec191bc4e01f6c00 | 7e898f747d21ad13c205c16b1e89d41fa9ac1a7e | refs/heads/master | 2020-05-20T12:34:14.786285 | 2015-06-04T23:26:22 | 2015-06-04T23:26:22 | 25,069,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,093 | py | #import stuff
import numpy as np
import matplotlib.pyplot as plt
from math import pi
import scipy.optimize as sciopt
np.random.seed(2) # set seed for reproducibility
# ====== define useful functions ========
def proj(v,u):
# projects v onto u
if np.linalg.norm(u) > 0:
return np.dot(u,np.transpose(v))/float(... | [
"j.e.midtbo@fys.uio.no"
] | j.e.midtbo@fys.uio.no |
de88552d5cb42be220489857bedbf80a50e4b048 | d442aa2dd41cc8f046d1c44fd80c069689c8ac01 | /django_cloud_tasks/views.py | 5a91d722bce60a45bcc3b6101ecd14ce060c1913 | [
"Apache-2.0"
] | permissive | guilhermearaujo/django-cloud-tasks | 27593d616937184bf708318da074f2017e85e25f | 946712258a23a00062d071031c40553946ebfe6a | refs/heads/main | 2023-02-03T16:43:32.990856 | 2020-12-18T19:04:07 | 2020-12-18T19:04:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | import base64
import json
from typing import Dict
from django.apps import apps
from django.http import HttpResponse
from django.views.generic import View
class GoogleCloudTaskView(View):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.tasks = self._get_available_tasks()
def _ge... | [
"joao@daher.dev"
] | joao@daher.dev |
18c4535268b877c0562c99cbc76515ee37ca383d | 9c9d08fd1821a3183bf5640a969cf96464ca748f | /migrations/versions/b165aaa7dbae_.py | 64fb4b757f0b956cf7f9ad1887fb1b4b27de4da6 | [] | no_license | pengjinfu/blog-1 | f102a0d5cf20dfd8a6d0293ebadbaf44da0c42ef | 01025a3d311505331d20a8caf2c66143c781af15 | refs/heads/master | 2020-06-26T13:08:10.891939 | 2017-06-22T09:18:31 | 2017-06-22T09:18:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | """empty message
Revision ID: b165aaa7dbae
Revises: 24cd77a2728d
Create Date: 2017-03-18 16:17:25.670714
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b165aaa7dbae'
down_revision = '24cd77a2728d'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"1782964880@qq.com"
] | 1782964880@qq.com |
7f3bff7b12d76bdaf22d047eafd52e5a2dcf4f36 | 3c898b1aec7009110c63504d5a56e31914625d1b | /acrylamid/filters/rstx_code.py | a777d9886f403dcd1875f77ad78ddad7f3ac51cf | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | MagicSword/acrylamid | e294b151ed6305f37fc5a5fdd4f1f0fb999a22f7 | 6f34bc5fb2175af1103aec7a910ef48a6842de03 | refs/heads/master | 2021-01-16T21:30:58.564719 | 2012-06-22T16:00:50 | 2012-06-22T16:45:38 | 4,817,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | # -*- encoding: utf-8 -*-
#
# Copyright: (c) 2010-2012 by Rafael Goncalves Martins
# License: GPL-2, see https://hg.rafaelmartins.eng.br/blohg/file/tip/LICENSE for more details.
from docutils import nodes
from docutils.parsers.rst import Directive
match = 'code'
class Code(Directive):
"""reStructuredText direct... | [
"info@posativ.org"
] | info@posativ.org |
052e51ffcec636fa0d7bb9772bc936bb1e455464 | 686054d9b42c0c679dbbfb495e3daf7eafa6ca90 | /import/method_V1/asc_to_csv.py | eabed0b9c55e0d0dbe6de3eff11799b157580fee | [] | no_license | danielzhou/Rainflux | 8d66d63d65f0481647383c2c7704aca1b249e3bb | d3ceb68ba3967a37fc877bd4acd1ebae6e333076 | refs/heads/master | 2020-09-29T15:13:22.744967 | 2020-03-07T08:14:53 | 2020-03-07T08:14:53 | 227,060,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | # -*- coding:utf-8 -*-
# Tools: PyCharm 2018.2
# Author: DING YI
___date__ = '2018/12/4 2:57'
import numpy as np
import pandas as pd
import time
import os
# 获取文件的创建时间
def get_FileCreateTime(filePath):
t = os.path.getctime(filePath)
return t
# 计时开始
# start = time.clock()
# 获取文件创建时间的时间戳
... | [
"1358304569@qq.com"
] | 1358304569@qq.com |
691b52ef9217d81a10cc5e6df8a8e390660b4769 | 7bd150f13b92010ae3d2b852ed291d8e71f57199 | /analytics/util.py | 32a75c382bc4db8e2fefe276509f41aa4a0f17a0 | [
"MIT"
] | permissive | SidSachdev/CurrentLocationAPI | 5438374ffc9d555a56294bfec427ea8e95ec9247 | cc2c8b9e7381c289a29ebd2a59a135847eb9a957 | refs/heads/master | 2022-09-06T18:46:31.357310 | 2020-06-02T04:54:44 | 2020-06-02T04:54:44 | 268,671,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | import logging
from fuzzywuzzy import fuzz
from models.merchant import Merchant
from constants import Threshold
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger("analytics.util.py")
def get_matching_merchants(sess, request_id, user_id, visits, search_string):
"""
A util function that uses ... | [
"noreply@github.com"
] | SidSachdev.noreply@github.com |
b590e1016cb64dc5b3b45457027b0c553b39280f | 55e28e35db5bf6a844df3fb47080500b115a893e | /day11/s5.py | dc0aa1f8cdc6fd1556254c9900278c56cc2c6fc2 | [] | no_license | pylarva/Python | 5743ffa4a69db42b642d51b62f9e9b69ddbc1a72 | 71b484950e6dbdcf708726a68a3386d0d6ddc07f | refs/heads/master | 2020-04-19T09:11:11.195393 | 2017-11-16T07:32:59 | 2017-11-16T07:32:59 | 67,507,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:pylarva
# bolg:www.lichengbing.com
import threading
def func(i, e):
print(i)
e.wait()
print(i + 100)
event = threading.Event()
for i in range(10):
t = threading.Thread(target=func, args=(i, event,))
t.start()
event.clear()
inp = input('>>... | [
"1326126359@qq.com"
] | 1326126359@qq.com |
105aa9c86cfe3ecb2b1fe883e6274b5107f93133 | 2ecc0fb80a7ab46612800803db06e3538a50a396 | /DP/jump-game-ii.py | 16cc57c67f6a4b925df22d4334adcb0b9dbb49ac | [] | no_license | vishaalgc/codes | f3da924694120c9da199e4dfdd73481774bb149b | 4c8a8b6197adfaaafd744ded3a50580d517fc9f1 | refs/heads/main | 2023-06-24T20:02:48.843869 | 2021-07-20T14:27:34 | 2021-07-20T14:27:34 | 378,338,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | class Solution:
def jump(self, nums):
n = len(nums)
dp = [2**31]*n
dp[0] = 0
for i in range(n):
end = nums[i]+i
for j in range(end,i,-1):
if j < n:
if dp[j] > dp[i]+1:
dp[j] = dp[i]+... | [
"vishaalgc@gmail.com"
] | vishaalgc@gmail.com |
e5d6607fa91db255527d43aac41b23164fa6348e | b3f60d85f75a538282dfabb2b4afa6fe9ecfb19a | /Xitami/xitamiexploit.py | 0069df7a4507cb9c549d70176549935f82aef2be | [] | no_license | ironspideytrip/OSCE-Prep-Zero-day-practice | 34ecf47e22cb1fb92d13cf04444e93c962cfb03f | 4ff52ede0a74728f34f40950727870ecefb155af | refs/heads/master | 2022-12-04T06:06:36.668936 | 2020-08-30T08:10:13 | 2020-08-30T08:10:13 | 280,714,382 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #Need to update
import socket
import sys
host = "10.0.2.15"
port = 80
#B2 96 45 00(seh)
crash ="A" *72 + "\x7B\x46\x86\x7C"+ "\xcc\xcc\xcc\xcc" +"C" * (188-80) +"\xcc\xcc\xcc\xcc" +"\xB2\x96\x45"
req = "GET / HTTP/1.1\r\n"
req += "Host: 192.168.1.201\r\n"
req += "User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Ge... | [
"noreply@github.com"
] | ironspideytrip.noreply@github.com |
d619b9bfa01b6d2f8ba0985ab9d544101708f35d | 54d508cb6f02bd21190aac5af1899f3f589e961a | /experiments/IMRT/aeft.py | 5b464dc6dcd981d9023d6027cd553410657a171e | [] | no_license | tqbwqing/DrThesis | 27bef38853a089aab2712512cde26ea3d8edb05e | 233b727d4332301b29d7cbd7012e2bdbc7a15fdd | refs/heads/master | 2020-09-15T02:47:34.741544 | 2019-05-28T08:23:22 | 2019-05-28T08:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,303 | py | # Neue AEFT-Version (26.05.17)
# Letztes Update 31.05.2017
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division
from psychopy import locale_setup, gui, visual, core, data, event, logging, sound
import numpy as np
import os
import threading
import sys
# declaration of ... | [
"teresa.wenhart@gmx.de"
] | teresa.wenhart@gmx.de |
d528cdacfede880f9f14ff74d6e95b3e9fe79d18 | 074f3ae0feba35fdf7e5e1b671780c4bb5d39d90 | /students/models.py | 85b8f6959f016110dae948326bfd703fef9840d7 | [] | no_license | aakhvostov/django_hw_8_testing | 4a41589687db8ab64ffafe74085d72cdcd32722c | a8dec38a5f50b597943aed73c48c34df324b8b59 | refs/heads/master | 2023-04-03T02:21:47.539951 | 2021-03-23T09:27:15 | 2021-03-23T09:27:15 | 350,651,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from django.db import models
class Student(models.Model):
name = models.TextField()
birth_date = models.DateField(
null=True,
)
class Course(models.Model):
name = models.TextField()
students = models.ManyToManyField(
Student,
blank=True,
related_name="course"
... | [
"skitol@yandex.ru"
] | skitol@yandex.ru |
6a4c42fa1139ad611c0cb192a9f35f255cbaeada | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayMarketingToolFengdieEditorGetResponse.py | 400d69ff0b9e34578ec8dd0953f905e881f4d2fb | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 936 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.FengdieEditorGetRespModel import FengdieEditorGetRespModel
class AlipayMarketingToolFengdieEditorGetResponse(AlipayResponse):
def __init__(self):
super(A... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
d393d84a2956744022939b557c3179418b5c3398 | e02180b0000c9c0ed14e950c30429f405965371f | /NewAgeLiberty/wsgi.py | 2a1b115e515e93c38d41bba2edbbef7443f24d46 | [
"MIT"
] | permissive | NAL0/Dja | cecb164fbf06babcde4bbe1ede11a89c760ad260 | ed763d787a751fc6e63df6c6fd35f6ad28de0e08 | refs/heads/master | 2020-03-29T01:33:12.598304 | 2019-01-28T21:42:01 | 2019-01-28T21:42:01 | 149,394,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for NewAgeLiberty 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/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"nosocks94@gmail.com"
] | nosocks94@gmail.com |
c86e0865e0c26603c4194fb711017a9166f58fe9 | cf5ceed90310006a4543d976882c85bc701efab3 | /crawley/http/request.py | 2ee8051481215e854868f1e700e2e775c4a43f2f | [] | no_license | hammadk373/crawley | 698b1aff51267a78f5e9f18d78f43e1dd69d75bd | f7522cfa0446b523b93e8056991f9d10e9754ff0 | refs/heads/master | 2021-01-18T06:52:07.753729 | 2011-10-28T02:37:00 | 2011-10-28T02:37:00 | 2,663,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | import time
import random
from eventlet.green import urllib2
from cookies import CookieHandler
from crawley.config import REQUEST_TIMEOUT, MOZILLA_USER_AGENT
class Request(object):
"""
Custom request object
"""
def __init__(self, url, cookie_handler=None):
if cookie_ha... | [
"jmg.utn@gmail.com"
] | jmg.utn@gmail.com |
ca4ff9f942bf417f6de624872efe568d0c0f4458 | f469071d593df865e3c3b676655250d48b9b6b9e | /Search_engine/urls.py | 03c696a505a37d0da73482b3af55e4a17f9c11bd | [] | no_license | jayednahain/eComarce_django | af1ba704458a07290bbe4c291d71ce7c8c84edcf | 8941349a5bdd9fdc55e3787b6adbdc31a4c57aab | refs/heads/main | 2023-08-19T02:47:09.578771 | 2021-09-26T12:37:39 | 2021-09-26T12:37:39 | 391,820,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py |
from django.urls import path
from Search_engine import views
urlpatterns = [
#class based veiw
path('',views.CB_Search_ProductListview.as_view(),name='search_link'),
]
| [
"jayednahian@yahoo.com"
] | jayednahian@yahoo.com |
769b940e5bcb345108cf45b4661ec78f939a45e2 | 467fdc6993ba8b1393faac58a804367465c016c9 | /tests/common/test_model_utils.py | 674fd32975dcb541ef7d60dbaed32b8050962619 | [
"Apache-2.0"
] | permissive | codeaudit/DeCLUTR | b8d8043a49cfecd20da93f66c07ff26652ff61f8 | 94d63e1b1978896c3446a7a4f85f6adfc454a088 | refs/heads/master | 2023-03-25T06:04:20.269495 | 2021-03-26T16:48:57 | 2021-03-26T16:48:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | from copy import deepcopy
import torch
from allennlp.data import TextFieldTensors
from hypothesis import given, settings
from hypothesis.strategies import integers
from declutr.common.model_utils import unpack_batch
class TestModelUtils:
@settings(deadline=None)
@given(
batch_size=integers(min_value... | [
"johnmgiorgi@gmail.com"
] | johnmgiorgi@gmail.com |
e957298594705e73339598471ace2f9e583a6de7 | 703deed0b0076c405e9f71dd6a9e8d38748d5233 | /ex28format.py | 0ae6b0b3c89ba352af0a00b11063987472f849fc | [] | no_license | GuilhermeBeco/Python1 | 043d2075a6e3d76ae8e8215ce99ab79d8ce41a61 | 1a30bb75f4d8e4cbd22137b77296065cd4ea2f1d | refs/heads/master | 2020-04-08T19:11:35.714415 | 2019-04-11T09:50:16 | 2019-04-11T09:50:16 | 159,644,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | def main():
vezes=int(input("Qual o numero que pretende fazer a tabuada: "))
for counter in range(1,10):
res=counter*vezes
print("{0:^4} * {0^:2} = {1:^4}".format(vezes,counter,res))
| [
"guilhermebeco1999@gmail.com"
] | guilhermebeco1999@gmail.com |
729c18ab3486454879df76cfbfa6752853d1f752 | da424570955152f345b0e6b2ba53ab237168a88c | /dl_animals.py | 6d76b28929290092439b1342a35f4d9885a3a93f | [] | no_license | Holographic-Sol/crawl_wallpapers_craft | 5baf532e8f87306e50e50b2088eb02303552c116 | da0abfd142bc9205106f3ec234e64e02b2eb5bc8 | refs/heads/master | 2022-01-16T09:13:31.153235 | 2019-07-24T13:57:50 | 2019-07-24T13:57:50 | 198,302,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,912 | py | import os
import requests
from bs4 import BeautifulSoup
import distutils.dir_util
import urllib.request
chosen_res = '1920x1080.jpg'
download_location = '../crawler_bot_wallparscraft_download/animals/'
if os.path.exists(download_location):
print('download location:', download_location)
elif not os.path.e... | [
"noreply@github.com"
] | Holographic-Sol.noreply@github.com |
3ddefa654204ee814e07e0388f148ed0822a75c6 | cef0d939d347ba997a8582c98d2e0ae5d869a41f | /bootleg/urls.py | 330b1ba87c0cc30b6632a6b52ad10c1384d0e618 | [] | no_license | caodac/ncats_bootleg_access | 5e2c629b4891d9f3ed81ee412ac6bfed064c4ac6 | 29391f2ac6886e5b9721693f6e95b6c116cd8e6e | refs/heads/master | 2022-10-03T23:35:35.747774 | 2020-06-08T03:41:09 | 2020-06-08T03:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | from django.urls import path, reverse
from . import views
urlpatterns = [
path(r'', views.home, name='bootleg-home'),
# authentication views
path(r'signin', views.sign_in, name='bootleg-signin'),
path(r'signout', views.sign_out, name='bootleg-signout'),
path(r'callback', views.callback, name='boot... | [
"caodac@gmail.com"
] | caodac@gmail.com |
7252cc8f913a94a2033b958de05b74e2e420e3c6 | 83ee2f4b88746ffd86479f54061cac56521cf7cc | /examples/plugin_example/plugin.py | 38a784d6fbc8bb9e4a0c32121ec134d6317cf844 | [
"MIT"
] | permissive | r2en/pysen | 0ae0231e3cf902585151ab0488845634bf2de7a4 | be7666856cf99f07fc77c9d5fc0a9385498505e6 | refs/heads/main | 2023-03-29T10:22:36.408476 | 2021-04-03T00:53:59 | 2021-04-03T00:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | import dataclasses
import pathlib
import subprocess
from typing import DefaultDict, List, Sequence
import dacite
from pysen.command import CommandBase
from pysen.component import ComponentBase, RunOptions
from pysen.path import change_dir
from pysen.plugin import PluginBase
from pysen.pyproject_model import Config, P... | [
"igarashi@preferred.jp"
] | igarashi@preferred.jp |
908c0b939a94bf22827f916a648c080ee523b568 | 8eea6dc3e55a28dd956c794a98a06d989966a5f2 | /socialmedia/views.py | 4e8406b5c4326358206320bf412e4e95d2cc3c40 | [] | no_license | m-sounak/Sociefy | c4440e5811345ba2164ba0bd67f4d9fef8d9e26c | ebb08a9add286145ee050aac339fb137914ad97e | refs/heads/master | 2023-02-18T00:40:50.648913 | 2021-01-19T10:30:08 | 2021-01-19T10:30:08 | 330,941,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.views.generic import TemplateView
class TestPage(TemplateView):
template_name = 'test.html'
class ThanksPage(TemplateView):
template_name = 'thanks.html'
class HomePage(TemplateView):
template_name = 'index.html' | [
"sounakmajumder472@gmail.com"
] | sounakmajumder472@gmail.com |
e57f5fe36e1e98cfe8da5db57b7a967875c6d373 | 90b0b959da8adee5825efa12b212e5e76ba4837f | /GAN/GAN.py | 8565d8b1655ff4e6eaf2926468df5ba3d6e1482c | [] | no_license | madhureelatha/GAN-vs-VAE-Performance-Analysis | 6ec1e95ee29cf1b5d5786cadb01ae17986087fbc | 47909dff0688838ed7f9e24b11997e62f09c3ca2 | refs/heads/master | 2023-01-23T21:39:00.717079 | 2020-12-13T04:51:46 | 2020-12-13T04:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,591 | py | # -*- coding: utf-8 -*-
"""Allam.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1DYWUkFxQyrRpphg8a-zlnVlPV43nAn1U
"""
import pydot
from keras.datasets import mnist
from keras.layers import Input, Dense, Reshape, Flatten, Dropout
from keras.layer... | [
"kurchetinagaganeshsing@gmail.com"
] | kurchetinagaganeshsing@gmail.com |
54fc4b571d0a019cf447302ece1dbbcbd640f3f2 | c075d28fe2f947b62cdc6b824a9619b3da249a9b | /Message.py | e6570ebddb157dcd34c40f70651f5fd8608fe182 | [] | no_license | ahiaplee/REST_API | 274554df54ebb8f40e089ddbd6e3e4a35715e217 | d873893a434652b889d1db3a7d0b4b10d82b2488 | refs/heads/master | 2023-07-11T14:50:27.429509 | 2021-08-23T09:33:17 | 2021-08-23T09:33:17 | 398,561,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | """ Helper function to construct message of object
"""
def Message(success, msg, data = None):
return {
"success" : success,
"message" : str(msg),
"data" : None if data is None else (data)
}
| [
"anghiaplee@gmail.com"
] | anghiaplee@gmail.com |
d2551746212128238ed588764eaf2295cdb5161e | e4831f5a12c5b96473dd1717d1c4f194d7eef211 | /jax/experimental/jax_to_tf/tests/savedmodel_test.py | b52ddf209cf57e43650933bf1893c17ba9f9c151 | [
"Apache-2.0"
] | permissive | qiuminxu/jax | 9fe52053d49f83638a1a85325e8bb99f3143f1f5 | 563b65e8c505cfdbf0184dd55f40319e286137fd | refs/heads/master | 2023-01-31T06:23:52.743231 | 2020-06-08T22:11:49 | 2020-06-08T22:11:49 | 270,889,360 | 0 | 0 | NOASSERTION | 2020-06-09T03:00:17 | 2020-06-09T03:00:16 | null | UTF-8 | Python | false | false | 1,559 | 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | qiuminxu.noreply@github.com |
6af69148a5b1b6b792f560886f4ce0b71ad1b082 | d557289b9836dd1a426f15f0a463439b98dadaa3 | /mergeArraySort.py | cd3e3acd8d3274061443b2958c29f2ba70769fd0 | [] | no_license | SmartChandru/GUVI-code-kata | dced9cd3fa37ee0e89eb2a0c79899744e353eb0a | 01c136d72236c968f98f608eb10606cd5fdf5d26 | refs/heads/master | 2020-07-11T05:54:43.508259 | 2019-12-08T11:24:17 | 2019-12-08T11:24:17 | 204,460,960 | 1 | 0 | null | 2019-09-05T11:41:05 | 2019-08-26T11:27:06 | Python | UTF-8 | Python | false | false | 249 | py | n= int(input())
a=[]
m=0
for i in range(n):
b = list(map(int,input().split()))
a.extend(b)
m += len(b)
#print(a,m)
for i in range(0,m-1):
for j in range(i+1,m):
if a[i]>a[j]:
a[i], a[j] = a[j], a[i]
for i in a:
print(i,end=" ")
| [
"noreply@github.com"
] | SmartChandru.noreply@github.com |
a1f12ca70ae451570ddc939d19e4b36b84558e06 | 6c2ddf52efccdfa15ce073da0e74d3352d5108c4 | /idact/detail/config/validation/validate_scratch.py | b7e377e1a140ad61d79142b999a2e7a703c9e2ef | [
"MIT"
] | permissive | intdata-bsc/idact | 4bff248e644629b7ec634b282d790c305fc6703d | 54cb65a711c145351e205970c27c83e6393cccf5 | refs/heads/develop | 2020-05-17T20:33:52.890970 | 2019-12-26T00:03:58 | 2019-12-26T00:03:58 | 183,949,088 | 0 | 0 | MIT | 2019-12-26T00:03:59 | 2019-04-28T19:18:58 | Python | UTF-8 | Python | false | false | 1,284 | py | """This module contains a function for validating a scratch config entry."""
import re
from idact.detail.config.validation.validation_error_message import \
validation_error_message
VALID_SCRATCH_DESCRIPTION = 'Non-empty absolute path, or environment' \
' variable name.'
VALID_SCRATC... | [
"matt.garstka@gmail.com"
] | matt.garstka@gmail.com |
4a5ece018daaf2a028be2d2641cdeba80fe55294 | 483003faa1de6b564b601addbe4c27642b6abb9b | /app/core/migrations/0004_ingredient.py | f5e6218c5327eb8b9972e60caeff229f553c78fd | [
"MIT"
] | permissive | AncientDemagogue/recipe-app-api | b177ecb273ee1cd026244711dc0cf5d0f09c9c41 | 908a7d16b9ff3ae031760d7752ea3392a4030c94 | refs/heads/master | 2020-09-07T02:39:23.967655 | 2019-11-19T09:05:48 | 2019-11-19T09:05:48 | 220,632,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # Generated by Django 2.1.14 on 2019-11-13 13:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0003_tag'),
]
operations = [
migrations.CreateModel(
... | [
"domagojbakota@gmail.com"
] | domagojbakota@gmail.com |
b025b0483c8f7cb1cb518a99a5f5b1114bcfa738 | 64647c6dffa78246cb0ef80091c2a1461d100e1f | /pomdp_problems/util.py | 27a06e4cff5114d31f240a92985c802a33b4597a | [
"MIT"
] | permissive | Semanti1/pomdp_findit | 28543519dbc30f864d15b9c682470e14483732c6 | b96c1c06aab4b485fa005654cf6438ff63718083 | refs/heads/main | 2023-07-20T20:18:34.632833 | 2021-09-02T15:58:49 | 2021-09-02T15:58:49 | 397,013,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,786 | py | import matplotlib.pyplot as plt
from matplotlib.collections import PolyCollection
import numpy as np
import matplotlib.lines as lines
import math
# Convenient color utilities
def rgb_to_hex(rgb):
return "#%02x%02x%02x" % (rgb[0], rgb[1], rgb[2])
def hex_to_rgb(hx):
"""hx is a string, begins with #.... | [
"renia.basu1@gmail.com"
] | renia.basu1@gmail.com |
1b8c780b7f5c7f81ba7923dd10aed1db62b4fc37 | 3385e4c8bd568d72e891ebcb3914f42bdd844e7d | /learndjango/myapp/urls.py | fd2fd618e8de8ab00092cfe1693f4c722cef5554 | [] | no_license | elay-maharramli/Learn-Django | 832518952167e4d0f28888cb31170e45973cb7b9 | d1b9f28c848e49d306408c70f294f26b7394d26a | refs/heads/master | 2022-05-29T00:37:19.666525 | 2020-04-26T05:59:41 | 2020-04-26T05:59:41 | 258,520,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py |
from django.urls import path
from . import views
urlpatterns = [
path('', views.contact),
]
| [
"36122259+Maharramli@users.noreply.github.com"
] | 36122259+Maharramli@users.noreply.github.com |
bd148516b05561d6e3d1ad496de909ab866d8ba6 | 29ec35b43d4eb15c603df3efa90f14cc0467b403 | /utility/utils.py | a43237c9d50352074ee1fdc198251276cb57f6a4 | [] | no_license | zhongyr/CPSC852-arp-defender | 92f906637928b4c05da178e3c4f4269f850e2916 | 1e529fc90401ea70fc341a2d20ec51544949d763 | refs/heads/master | 2020-09-14T03:46:42.785333 | 2019-12-04T08:44:07 | 2019-12-04T08:44:07 | 223,007,537 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | # -*- encoding: utf-8 -*-
import netifaces
import binascii
import socket
from os import system
def get_iface_info(iface_):
"""
get interface information
:param iface_: name of interface
:return: dict object including mac address and ip address
"""
info = netifaces.ifaddresses(iface_)
mac_a... | [
"yang_hanjie@163.com"
] | yang_hanjie@163.com |
cdb7f1b397956cb5a6c3293cce165a43df74e120 | 3e4b8fe54f11bf36f3615c21fdc1dca0ed00fe72 | /month04/spider/day01/job/01_job.py | 78867664d1c5536f2df7e72e0fcae9e195b7f49b | [] | no_license | leinian85/year2019 | 30d66b1b209915301273f3c367bea224b1f449a4 | 2f573fa1c410e9db692bce65d445d0543fe39503 | refs/heads/master | 2020-06-21T20:06:34.220046 | 2019-11-04T06:37:02 | 2019-11-04T06:37:02 | 197,541,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import re
import hashlib
html = '''
<div class="animal">
<p class="name">
<a title="Tiger"></a>
</p>
<p class="content">
Two tigers two tigers run fast
</p>
</div>
<div class="animal">
<p class="name">
<a title="Rabbit"></a>
</p>
<p class="content">
Small white rabbit white and wh... | [
"42737521@qq.com"
] | 42737521@qq.com |
bba070b319caee484ed5feee463a97aa3994144a | 60f6d5804522e7b3ba75a989afe683456d9fa6cf | /manage.py | 016e52226f066271d834ee762b0d7b0d3f2d613c | [] | no_license | minzey/jogging-tracker | b773aa4ddbee3912592fd86534b310d19cd67874 | fe2d8da65ed5812e3752f5c03873016e4fbd49e9 | refs/heads/master | 2023-07-08T16:12:51.847514 | 2021-08-09T14:11:07 | 2021-08-09T14:11:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fitness_project.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"swati.13103444@gmail.com"
] | swati.13103444@gmail.com |
f931dd724fcf84d43040507097344a26d4c52a9c | 08edc5ed6c15f5c379aeb4c8505dfa28f008c337 | /app/whwn/migrations/0025_auto__del_field_team_point__add_field_team_latitude__add_field_team_lo.py | 38ecdb4a44e1da15902f5a9b76e925d223c3f80e | [] | no_license | wehaveweneed/whwn-dep | 0795ccd55e837493bf345306a7ae4c7a919ebe8a | 2535c1fe1ae76a36f24a1c3b32b76f72fc59b49d | refs/heads/master | 2021-01-01T18:55:26.662249 | 2013-08-27T05:58:49 | 2013-08-27T05:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,657 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Team.point'
# db.delete_column('whwn_team', 'point')
# Adding field 'Team.latitud... | [
"wes.vetter@gmail.com"
] | wes.vetter@gmail.com |
653a3160557c7d216ad359311443175691103686 | 56ba98873ad995551d00a87a7eea6f705dc52e34 | /prom7.py | df50f206cca6c70e91532f0ad33f805533b45f95 | [] | no_license | xaviermaxd/python_semana8 | b4fae081b784fc656d3292b73c6b50b50f6abfba | 1b81e4fec9884619d1d987d131af4e314ce3bd0c | refs/heads/main | 2023-08-24T08:15:48.986623 | 2021-10-21T01:53:10 | 2021-10-21T01:53:10 | 419,546,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | div = 0
n = int(input("ingrese un numero : "))
while div <= n:
div += 1
if n % div == 0 :
print(div) | [
"xavier.mamani@tecsup.edu.pe"
] | xavier.mamani@tecsup.edu.pe |
3f070fc5fe457fc3dc932efd097817205702346b | b2a0db27a57236a9f2f19a0004decf83fd3cdb10 | /headertextscreen.py | bfcefe8d4a582055a2c7f0bd216c861cb4c35027 | [] | no_license | ajveitch/mqd | 0180bbe824d0e5eb1a2cb287194dc5ee9dc8f8db | dc1f9ff627eadb2fbd18e439119f6cc1a1e2328d | refs/heads/main | 2023-07-29T15:34:55.464996 | 2021-09-11T15:47:16 | 2021-09-11T15:47:16 | 403,755,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | from ui import *
from playercontroller import *
from gamerunner import NullState
class HeaderTextScreen(NullState):
def __init__(self, audio, nextState, player, waitTime = 0):
self.nextState = nextState
self.startButton = -1
self.player = player
self.big = Text(96, (255, 192, 0))
... | [
"ajv-github@erkle.org"
] | ajv-github@erkle.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.