blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4fbbeabbd46e4a86d74f7198a8f67b6784e9927b | bffc0b61e630f3710be2b1dff5d6685ffc91a2c6 | /src/ulazni_paketi/models.py | 743d93d7c276069d87bf0da341912ee72e29512c | [] | no_license | VjekoRezic/Django_evidencija_PiU | 1457728f126f1d6b81e554e96e440c72f072cd39 | c166b89c250edb68432197a7f9d7355a2d3beec3 | refs/heads/main | 2023-08-26T18:20:16.858185 | 2021-10-29T14:44:20 | 2021-10-29T14:44:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.db import models
class UlazniPaket(models.Model):
paket=models.CharField(max_length=50)
kvantiteta=models.IntegerField()
| [
"vjekogmf@gmail.com"
] | vjekogmf@gmail.com |
edfd6e489f61d204d3c8ed859133fe1cad841109 | 90d9dbd9b797463129b8c812e3fbcd07cc0034a0 | /6.shell.py | 9c0857f20c24442b2242930d1cf71d26858c0c99 | [] | no_license | iconigto/pp2021 | 7851f5fc966b72a3683a24b31a08924b497ea2d8 | f9e332464ba73bcb0cf24408e5858164fb62bf03 | refs/heads/master | 2023-04-21T07:26:01.940585 | 2021-05-10T06:17:03 | 2021-05-10T06:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | import subprocess
while True:
cmd = input('shell> ')
if cmd == 'exit':
break
print(subprocess.getoutput(cmd))
| [
"dqhieu.2016@gmail.com"
] | dqhieu.2016@gmail.com |
37d8bc549df4636bad8bb5f07474e436ca70a23a | dc839f40260b83de429f7e0aed3b9fbb5a37e8ac | /product/views.py | cfc4617a1bb44558e4f27453c4c37afdcd98db4c | [] | no_license | pantipanth/DjangoEcommerce | b779d030ea2e5dfa856c40ffbeedb62bc755f8c2 | 8037b0872bc22d8a892ebdfae89da55aee804305 | refs/heads/master | 2023-04-30T02:28:05.338992 | 2019-07-11T02:44:03 | 2019-07-11T02:44:03 | 196,309,575 | 0 | 0 | null | 2023-04-21T20:33:33 | 2019-07-11T02:57:46 | JavaScript | UTF-8 | Python | false | false | 336 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import Product
# Create your views here.
# def index(request):
# return HttpResponse("Product page here")
def index(request):
# product =
products = Product.objects.all()
return render(request, 'index.html', {'produc... | [
"Pantira.Pa@BDMS.CO.TH"
] | Pantira.Pa@BDMS.CO.TH |
536b01c341cc34f6df3f9ff4e98ec00bea9c79d7 | 49d6f5f50407b6adbb79e5a4124fbe99934a4e32 | /myapp/availability.py | 002c88b9dd59879febfea6670e3f8ac6dc273fb8 | [] | no_license | KritiDiyaliSunar/Hotelbooking | 8c6e2da6af6d71b7ea33a2e3e061774e65c3d899 | e00e65567b535648aac9678017d2a340160b380d | refs/heads/main | 2023-04-29T22:47:27.701169 | 2021-05-15T18:31:00 | 2021-05-15T18:31:00 | 355,771,545 | 0 | 2 | null | 2021-05-03T12:20:20 | 2021-04-08T05:13:34 | HTML | UTF-8 | Python | false | false | 394 | py | import datetime
from .models import Room, Booking
def check_availability(room, checkin, checkout):
avail_list = []
booking_list = Booking.objects.filter(room=room)
for booking in booking_list:
if booking.checkin > checkout or booking.checkout < checkin:
avail_list.append(True)
... | [
"poohk2250@gmail.com"
] | poohk2250@gmail.com |
6a2d97297852933c5f4a971f9e2e750365d16931 | 3a88ccc2835e4a88c93d3401926b4ce991b61168 | /run_parallax.py | a18d2ebeef0fec16048d09cbfb46a9b439cd3bfa | [] | no_license | Shiner11/bd18f-Noori2 | adf779f441fac2e1b22e8df535bb7f5983121ea1 | df4221e406cc714c85cac54ac448276c6f8847f1 | refs/heads/master | 2020-04-10T11:45:02.645773 | 2018-12-09T08:37:04 | 2018-12-09T08:37:04 | 161,001,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | """
Example command for running this script:
python run_parallax.py --max_steps=10
Example command for examining the checkpoint file:
python <PARALLAX_HOME>/tensorflow/tensorflow/python/tools/inspect_checkpoint.py --file_name=parallax_ckpt/model.ckpt-0 --tensor_name=conv1/kernel
"""
import os
import time
import tenso... | [
"noreply@github.com"
] | Shiner11.noreply@github.com |
03651903aaf208efde97db1ad6a0aa745cc4d917 | 270dd0fdc2bd8f2842cfc525ee016ced787ce916 | /main.py | 98dc9675d1ec390da169a55aa4ba7a9287d5a897 | [] | no_license | ekanshpurwar/SpaceInvader-game | 29d002f2e202c024e7b2168448fc37bfc7d5f50c | c90859270b873858a9a7dc8b0ba895ed965ac622 | refs/heads/main | 2023-02-14T20:26:00.305719 | 2021-01-12T06:30:08 | 2021-01-12T06:30:08 | 328,892,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,618 | py | import pygame
import random
import math
from pygame import mixer
# Press control + alt+ l to format python code properly
'''Anything happening inside the game window is known as event'''
# Initialize game
pygame.init()
# Create the screen
screen = pygame.display.set_mode((800, 600))
# Loading image fo... | [
"noreply@github.com"
] | ekanshpurwar.noreply@github.com |
7cf276926f662a3e7edbcdfcd8677e9e17844f59 | c7933b505b9d23b9ed5326aeed52a1a80de12208 | /account/models.py | 43c6f84178014a019c81088668e750960f42e3e8 | [] | no_license | Bektur756/pyshop_cloud | 0a5c376cf52f052d59624c61c68b08e847481087 | 2275bb7b729df97eec52363a582fe635251f0d67 | refs/heads/master | 2023-07-11T04:52:50.908010 | 2021-08-25T13:50:49 | 2021-08-25T13:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
from django.core.mail import send_mail
from django.db import models
# Create your models here.
from django.utils.crypto import get_random_string
class UserManager(BaseUserManager):
def _create(self, email, password, **extra_fields):
... | [
"bektur756@gmail.com"
] | bektur756@gmail.com |
8728e365e7d7eb7024f6524d63406cd1993322f7 | 4b1d977acfde9354685157e02459c016c041421d | /tests/test_molecules.py | 88a58a7272d50cddca1b5caf2d88a8175dd2b880 | [] | no_license | fujiisoup/pyspectra | f6c50d929e992ab6064ef978a4de0c0647ff3d4b | 152bf37dee7e9eeabf42d24496566022d00d31ec | refs/heads/master | 2023-07-25T08:23:13.637233 | 2023-07-05T16:32:30 | 2023-07-05T16:32:30 | 246,492,492 | 3 | 0 | null | 2023-07-05T16:32:32 | 2020-03-11T06:28:08 | Python | UTF-8 | Python | false | false | 2,363 | py | import numpy as np
from pyspectra import molecules, units, refractive_index, data
def test_level():
# fulcher
constants = data.diatomic_molecules("H2").sel(state="X 1Σg 1sσ2")
for key in constants:
print(key, constants[key].item())
upper = molecules.level("H2", "d 3Πu 3pπ", 0, 1)
lower = ... | [
"fujiisoup@gmail.com"
] | fujiisoup@gmail.com |
df20cf4dd924be42b06b437892eee15ece3e7b32 | 31de8a25f0390c20dbf6a6843c55d21db891e3b3 | /TripAdvisor/MongoDB_Helper.py | 2592af9dea6259775832a17f8400802a3be3fb13 | [] | no_license | stevenshichn/TripAdvisor_Scraping_Analysis | 9259a7b30d11bb9f07f3d6c4de15928e02424f5e | 65578042ea83c1af66b72b5d60b8f912d6a7d6d4 | refs/heads/master | 2021-01-20T10:50:17.341956 | 2017-11-05T18:25:24 | 2017-11-05T18:25:24 | 101,651,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,105 | py | import csv
import re
from datetime import datetime
import TripAdvisor.StringUtils as Utils
import TripAdvisor.Convert_Helper as ConHelper
import TripAdvisor.DateUtils as DateUtils
def Drop_DataBase(databaseName, client):
client.drop_database(databaseName)
def Clear_AllRecords_In_Table(databaseName, tableName, cli... | [
"stevenshichn@gmail.com"
] | stevenshichn@gmail.com |
5602376417650cf495e65153cbdf4344f714dd86 | ede4e0a53b382ba08cbb2a905fc3ee5d9013c0c5 | /ZuriCapWeb/backend/database/inject_queries.py | d879921f3305e731696fc38951c0953b7307b189 | [] | no_license | riasatullah/ZuriCapWeb | dd0daf6b8f37b9af9a01ec2dac254cbbc98d0710 | 668f3a623caf1823d3b859127acb2481664f4cf9 | refs/heads/master | 2021-08-31T02:30:55.392525 | 2017-12-20T07:02:29 | 2017-12-20T07:02:29 | 114,853,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,370 | py | # By: Riasat Ullah
from ZuriCapWeb.backend.database.connector import DBConn
from ZuriCapWeb.utils import times, handyman
from ZuriCapWeb.variables import messages, params
import psycopg2
conn = DBConn()
def add_new_invoice(data):
try:
query = '''
insert into invoices
(ref... | [
"riasat.ullah@gmail.com"
] | riasat.ullah@gmail.com |
412a9d56f8c1abbd64aaec008f01f4127a964dd7 | 724028fd5ea6bdec7fad7558a8a7f890eacaaa0c | /appengine_config.py | b7fc022d2b2d42c2a0d989261e7410a820e87720 | [
"MIT"
] | permissive | Gorgoroth/steamplaytime | d6be3d65e8d019eeb81e755c798ee6ba8dc72539 | 8c0f18150050c9125c4fdbdbde8ac21de9a49805 | refs/heads/master | 2021-01-15T19:58:43.960786 | 2013-10-24T04:27:20 | 2013-10-24T04:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | def webapp_add_wsgi_middleware(app):
appstats_CALC_RPC_COSTS = True
from google.appengine.ext.appstats import recording
app = recording.appstats_wsgi_middleware(app)
return app | [
"nate@natecollings.com"
] | nate@natecollings.com |
2bdc663042e1e1aefc99f900694814b55def8c35 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-arms/aliyunsdkarms/request/v20190808/SearchEventsRequest.py | 3fae22f10c2789e7944a1a6c990d8133f134697a | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,864 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
7d55518fab513f39689e34d6074566697309dd8a | 571d1ec6972b75f0d0515195e8062d9b4fc624bd | /_tests/annoy/imagehash_using_annoy.py | e3618b0bc5fcdd4a0a5738f7291429abccf39083 | [] | no_license | timpowellgit/allweveeverhad | 2b1a36ffc6e328caf5e340698a87d9e03b1959a6 | c1cf0e16a9e06a96a26ae37d1feebd3094635202 | refs/heads/master | 2022-12-01T20:16:32.655243 | 2019-02-24T21:50:49 | 2019-02-24T21:50:49 | 170,889,209 | 0 | 0 | null | 2022-11-22T02:22:56 | 2019-02-15T15:50:29 | Python | UTF-8 | Python | false | false | 1,775 | py | import random
import os
from PIL import Image
import imagehash
from tqdm import tqdm
import numpy as np
from annoy import AnnoyIndex
IMG_DIR = '/Users/greg/Desktop/ART-freeriots/adam-basanta-all-weve-ever-had-is-one-another/color_histogram_hashing/1000-artsy-images'
ANNOY_INDEX_PATH = '/Users/greg/Desktop/ART-freeriot... | [
""
] | |
0f55c548cff809bf9f5ac8d241c37fad2a725162 | 8ccdd01f0c2e843ac7e3827d2b690c4235baa430 | /parseval/exceptions.py | 73f3070537b1e2c9df74c9bcffab5539b9c1ce3e | [
"MIT"
] | permissive | saumalya75/parseval | f309e0374109e42eeec8dac58524dfa0cb7f154d | d5e8c0c6cab2b8c236d1f728314eeb0a804401a7 | refs/heads/master | 2022-12-20T02:09:03.065042 | 2020-09-13T15:38:11 | 2020-09-13T15:38:11 | 282,387,832 | 3 | 0 | MIT | 2020-09-13T15:38:12 | 2020-07-25T06:44:01 | Python | UTF-8 | Python | false | false | 3,934 | py | class UnexpectedSystemException(Exception):
def __init__(self, msg="Unexpected error occurred."):
self.msg = msg
def __str__(self):
return self.msg
def __repr__(self):
return f"<UnexpectedSystemException({self.msg})>"
class UnexpectedParsingException(Exception):
def __init__(... | [
"saumalya75@gmail.com"
] | saumalya75@gmail.com |
9b1a9ff5d3d3ad9d0086cc8d179cdb717f6b6bde | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/yadayada_acd_cli/acd_cli-master/acdcli/utils/conf.py | 9ebf249680620acffb9a172fb3c9591bb51f646c | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 584 | py | import configparser
import logging
import os
logger = logging.getLogger(__name__)
def get_conf(path, filename, default_conf: configparser.ConfigParser) \
-> configparser.ConfigParser:
conf = configparser.ConfigParser()
conf.read_dict(default_conf)
conffn = os.path.join(path, filename)
try:
... | [
"659338505@qq.com"
] | 659338505@qq.com |
426305176e2f3e0ce143e440802f2c1559b287fa | 015ff12eca7a8fdb464d0b52215b44813536a65b | /news/views.py | 838aaf2d46f6094750ed280bbff20d94f9fd098d | [] | no_license | bartekbrak/acnaid | 9886d151f8cf761f246889ab401b0150fe302ac2 | 7d23c2d70066214bb225dd34825c88138f94a918 | refs/heads/master | 2020-04-27T11:51:09.844089 | 2012-11-25T16:06:00 | 2012-11-25T16:06:00 | 174,311,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from django.core.paginator import Paginator, InvalidPage, EmptyPage
from models import *
def news(request, year=None, month=None, slug=None):
news = get_object_or_404(News, published=True, date__year=year... | [
"bartek.rychlicki@gmail.com"
] | bartek.rychlicki@gmail.com |
be001ed69adc73c109e0d3bf488cbdfc856cd582 | 5251d0d81debb24d0532ed78a68258f95af1e889 | /hw9.py | fbb250b3edb5b135fe84f4804281030220dada20 | [] | no_license | jhink7/IS602 | b87564eed342b9260c1fa12b91200052d9dc13a6 | 56fbaf439897f4cff8026ae3594eccdf1e012231 | refs/heads/master | 2021-01-23T08:56:44.158883 | 2015-12-17T04:26:51 | 2015-12-17T04:26:51 | 23,470,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | #########
## Solution for Homework 9
## CUNY IS602
#########
## Justin Hink
if __name__ == "__main__":
import pandas as pd
#Q1#
epa = pd.read_csv('epa-http.txt', header=None, sep="\t", error_bad_lines=False)
epa.columns = ['host','date','request','reply', 'bytes']
hostcounts = epa.groupby('host'... | [
"jhink7@gmail.com"
] | jhink7@gmail.com |
f7f94f78ba8f6b378e794ffd5537245e08ebf39b | bf4fe74cf9d8cf9e95a3ebed88fce82447d9011c | /learn-reg3.py | a6e0d27124c28ade78a4fd6667e2110041b13576 | [] | no_license | huzhengen/python | b6c73da55962ce402fb20c8d887ea68ea334df46 | 6bf928ed400fe7d7cd601cf7c9bda79a4dd3b4f9 | refs/heads/master | 2021-09-03T21:43:59.079745 | 2018-01-12T07:56:18 | 2018-01-12T07:56:18 | 114,317,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import re
content = 'extra things hello 123455 world_this is a Re Extra things'
result = re.search('hello.*?(\d+).*?Re', content)
# print(result)
# print(result.group(1))
html = '''<div id="songs-list">
<h2 class="title">经典老歌</h2>
<p class="introduction">
经... | [
"huzhengen@163.com"
] | huzhengen@163.com |
a9ece926d5ef08c0f4b132f641d23b78a79d3b03 | b6d46fac859a8ae9b80cc935dddb1d1648e813e4 | /initial_train.py | c86445dca39b593f7fae384dfc95ffa47c043aa3 | [] | no_license | amitavaaditya/online-learning-microservices | cc401d470907d22b8bb20184311502723429b346 | e4a7d10e9d1777afb58c683b1cad3e5643311a75 | refs/heads/master | 2022-12-11T07:48:30.854089 | 2018-10-29T20:19:51 | 2018-10-29T20:19:51 | 155,123,300 | 0 | 0 | null | 2022-11-21T21:18:20 | 2018-10-28T22:48:09 | Jupyter Notebook | UTF-8 | Python | false | false | 5,361 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
import tensorflow as tf
# Constants needed
LABEL_COL = 'classLabel'
MODEL_DIR = 'model'
def read_data(filename):
"""
Method to read the dataset as a pandas DataFrame
:param filename... | [
"amitavaaditya2009@gmail.com"
] | amitavaaditya2009@gmail.com |
9961f6135479d5127d4412c48dae71f8cdaf81cc | e45bac42c3375dd84bf6a56f628eaa07f244cd9f | /mysite/settings.py | a24264ef5786bf6debd693ff7ae62ece810db368 | [] | no_license | Justiffy/drf_starts | 1c8459f6382b26e91a0aefeb44369ad3194894a0 | 78402460e520c1f152da9fe5cf68bfd2127a481f | refs/heads/master | 2023-04-02T06:38:50.277104 | 2021-04-12T21:51:49 | 2021-04-12T21:51:49 | 354,711,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.19.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"shnap2010@yandex.ru"
] | shnap2010@yandex.ru |
24c1f145fb8771680cd3bc3dafa1f4db36c625b3 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/dbgac/rsfromepg.py | 857baf4940ff69594982fe829e028d01e3e1d557 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,594 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
886f758e5f28b2fde3f832bf141793466ac770e5 | 712234f68bdc532756e2f577b03444249f1ce52e | /Classification Based Machine Learning for Algorithmic Trading/default_predictions/GPC.py | f311c5e073c6dd1f32740fb09696efb7f1abe5a7 | [
"MIT"
] | permissive | gohjunyi/Machine-Learning-For-Finance | 55f02e0d55fb4d78a8c89902bdfad5da963ff4f4 | e73c3df3c68d71f671cdde3153988c6c617eba53 | refs/heads/master | 2021-09-26T03:13:01.118588 | 2018-10-27T05:48:23 | 2018-10-27T05:48:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 25 22:02:07 2017
@author: Anthony
"""
import numpy as np
import pandas as pd
df = pd.read_csv("dataset_2.csv")
df['default'].describe()
sum(df['default'] == 0)
sum(df['default'] == 1)
X = df.iloc[:, 1:6].values
y = df['default'].values
# Splitting the dataset into the... | [
"gjunyi90@gmail.com"
] | gjunyi90@gmail.com |
4b52b6b9730607564cb4bb97e081a34ed237d59b | 871dddb5c8059d96b767a323b0f87d3fbb62e786 | /test/unit/vint/ast/plugin/scope_plugin/test_scope_detector.py | 9b57c816b88abb523c7f5ccfecb0d56e9ce5d76b | [
"MIT"
] | permissive | msabramo/vint | 6ef12ed61d54d0d2b2a9d1da1ce90c0e2c734ab2 | f13569f2a62ff13ff8ad913e7d6fb2c57953af20 | refs/heads/master | 2023-08-24T01:20:14.699485 | 2014-12-31T18:28:59 | 2014-12-31T18:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,134 | py | import pytest
from vint.ast.node_type import NodeType
from vint.ast.plugin.scope_plugin.scope_detector import ScopeDetector, ScopeVisibility as Vis
from vint.ast.plugin.scope_plugin.identifier_classifier import (
IDENTIFIER_ATTRIBUTE,
IDENTIFIER_ATTRIBUTE_DYNAMIC_FLAG,
IDENTIFIER_ATTRIBUTE_DEFINITION_FLAG,
... | [
"yuki.kokubun@mixi.co.jp"
] | yuki.kokubun@mixi.co.jp |
6a667c0a754635c782145b12de82b60bafd92189 | b03db989aa48826f146beff0762553aea752137d | /map_sea.py | 0a7a94460c802d02e44e3adebc52433757d49a3d | [
"BSD-2-Clause"
] | permissive | dwiddows/pilmaps | 63f5a8724b3dde28d3386bef4a12c279acbf86b8 | 4ad85571b92c0155d5d871907f6a1fc4116657b7 | refs/heads/main | 2023-08-03T09:05:20.186298 | 2021-09-13T01:02:10 | 2021-09-13T01:02:10 | 363,476,138 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,729 | py | """Script that draws an image of Southeast Asia and some surrounding parts.
Much of this could be factored out into more general utility functions and interfaces.
"""
import logging
import math
import numpy as np
from PIL import Image, ImageDraw, ImageFont, ImageOps
import shapefile
BORDER = 20
PIXELS_PER_DEGREE = 40... | [
"dwiddows@liveperson.com"
] | dwiddows@liveperson.com |
cf8cd812164f4022a58ebe2f98f32461359c3c54 | 830acb926cc5cf5a12f2045c8497d6f4aa1c2ef2 | /Hangman/Problems/Markdown heading/task.py | 0dade62780dd97612ca478a683d4cbd91f967a34 | [] | no_license | BuyankinM/JetBrainsAcademyProjects | ca2223875ea4aab3ee7fceedc8e293bdb6e1fdcf | d5f9fcde4298af714960b2755f762141de796694 | refs/heads/main | 2023-02-26T05:47:26.070972 | 2021-02-03T22:10:53 | 2021-02-03T22:10:53 | 335,762,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | def heading(sym, num=1):
num = max(num, 1)
num = min(num, 6)
return f"{'#' * num} {sym}" | [
"mbuyankin@gmail.com"
] | mbuyankin@gmail.com |
8053ee58f5dd6ffded2d437f49b8b8805f0c96b5 | 5acd016d0f8df87888e4ac383a11c18c6d9cedd6 | /psi4EDFT/LibDegen.py | d82da0c6f1de97db6b805595d59989ed57aa6068 | [] | no_license | gambort/psi4-EDFT | 549732b5c7e9dd6a8ebb216d3d8b0150f34b2dad | 0509a618cda0ff553288747d96045b5e13042d8e | refs/heads/main | 2023-03-28T17:30:43.487856 | 2021-04-16T21:01:49 | 2021-04-16T21:01:49 | 305,366,690 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,257 | py | import numpy as np
import scipy.linalg as la
class DegenHelper:
def __init__(self, C=None, H=None, epsilon=1e-5):
if not(C is None):
self.NTot = C.shape[1]
kIndx = []
for k in range(self.NTot):
kIndx += [np.argwhere(np.abs(C[:,k])>epsilon).reshape((-1,))]... | [
"tgould.lego@gmail.com"
] | tgould.lego@gmail.com |
f09e09b066b83eb93839703b12f7fe62adf4b05a | 8be3fbe41873b5682eed4da3aab93be657a893bc | /nested_admin/tests/three_deep/tests.py | a25c53f636b475f837708e24585fcaee22e597d2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | theKomix/django-nested-admin | 0b5f10b88928dc3167a720cf9a36f2ffe428cba7 | 2bfed729ba17bc69e4fe98d4a672b6b34186ae0f | refs/heads/master | 2020-03-30T12:03:51.430420 | 2018-12-26T05:24:04 | 2018-12-26T05:24:04 | 151,206,354 | 0 | 1 | NOASSERTION | 2018-12-07T15:11:31 | 2018-10-02T05:49:00 | Python | UTF-8 | Python | false | false | 4,893 | py | from nested_admin.tests.base import BaseNestedAdminTestCase
from .models import TopLevel, LevelOne, LevelTwo, LevelThree
class TestDeepNesting(BaseNestedAdminTestCase):
root_model = TopLevel
nested_models = (LevelOne, LevelTwo, LevelThree)
@classmethod
def setUpClass(cls):
super(TestDeepNest... | [
"fdintino@theatlantic.com"
] | fdintino@theatlantic.com |
3f2d87c5d9adac2bae03cac7b2debb3b2d0a0f28 | ff7fbb8f70a9373149e703805a04ec9955ff1471 | /shopify/urls.py | 473d1e64458633a162e5c71d8171fd4dcfc9484d | [] | no_license | osga1291/shopify_project | f7b1bd20a8a0a92a0914f7214820a7815aaa8a37 | 38b5b5cf5cd61da790a04a44ee8bc9dd2cc0e50d | refs/heads/main | 2023-08-17T01:44:46.536864 | 2021-09-21T17:59:05 | 2021-09-21T17:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | """shopify URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"osga1291@colorado.edu"
] | osga1291@colorado.edu |
d88639bfe99fd9a8b8cdc84c368d8ae9a4f18a9e | 54bece16de866430eb105b805de82f0c5e11f93f | /icecat/management/commands/import_products.py | bb747c200cd548a537bf7408174609b98ad3442b | [] | no_license | boostsup/django-icecat | 2c4e9313e60c6d03d46c8ddaf7ef6d9b27f3d53b | 6118cd3bbd329bcdf3c0c1ef9f973784a8f50ad2 | refs/heads/master | 2020-05-18T15:10:46.622650 | 2012-12-19T09:32:16 | 2012-12-19T09:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | from django.core.management.base import BaseCommand
from icecat.models import *
from icecat import settings
from datetime import datetime
import requests
from optparse import make_option
class Command(BaseCommand):
help = 'Download products'
args = '<index.xml>'
def handle(self, *args, **options):
... | [
"mail@svdgraaf.nl"
] | mail@svdgraaf.nl |
fb543d62dabe1704fcad93ba0ffb4bb861451c6a | cc4a8dec643d226b3abf9ab69fd2bde71769d083 | /day_2/part_2.py | 218c33b1b2d8a286085f504a8a19c30f8bf02e96 | [] | no_license | JesseDesjardins/AdventOfCode2020 | 51c18711d6d46db9442419d43fd40d18a092ac83 | 191a258cd1a5893084839113fb1f28982117a379 | refs/heads/master | 2023-01-30T15:30:28.023113 | 2020-12-14T09:37:59 | 2020-12-14T09:37:59 | 320,192,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | lst = []
with open('input.txt', 'r') as infile:
lst = [line.rstrip('\n') for line in infile]
solution = 0
for entry in lst:
char_count = 0
policy_full, password = entry.split(':')
password = password.strip()
policy_pos, policy_char = policy_full.split(' ')
policy_pos_1, policy_pos_2 = policy_p... | [
"jesse.m.desjardins@gmail.com"
] | jesse.m.desjardins@gmail.com |
fea4eff340c129f9c5054944eb459e463026262e | 17bb47df65453039db6dc25c2c07d149689c22d9 | /Florin2/PercentileRank.py | 1222b9902e194cfd1c6e49ce5836417012f9a054 | [] | no_license | ultraeric/switch_wecc_gis | 1f49275c119cccbcdaff78f2bd3759ea09ab7ecb | 389167395d6f7cccb327bbe4bbcc2400993435fc | refs/heads/master | 2021-01-20T11:00:43.940207 | 2017-09-20T06:26:32 | 2017-09-20T06:26:32 | 71,405,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | import csv
import os
filename = 'PollutantsSum.csv'
pollutant = 'CO2'
outputfile = 'PollutantPercentile' + pollutant + '.csv'
if os.path.isfile(outputfile):
# Remove old file since we are appending to a file later
os.remove(outputfile)
with open(filename, 'rb') as csvfile, open(outputfile, 'a') as csvout:
... | [
"f@Florins-MacBook-Pro.local"
] | f@Florins-MacBook-Pro.local |
9dfe4b52d8ceaf76afe7af513c2335e055ac271c | 6078520160f17b7e57bd232bd09d9c7cfb7324b1 | /nagios/libexec/check_multiportcheck.py | ac0634aa58965cb6596302fd111aba0dfa454d52 | [] | no_license | juniorkalvin7/nagios-2 | 12bee5ff4c35313b42b61b073e8e710ea47acf4f | 223a796ed073bfd97da36fca046ae5e05b0a8c87 | refs/heads/master | 2021-01-17T14:48:36.650222 | 2017-03-06T16:49:24 | 2017-03-06T16:49:24 | 84,097,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
* Copyright (c) 2005 Gemayel Alves de Lira (gemayellira@gmail.com.br)
* All rights reserved.
* Intechne Information Technologies
* version 0... | [
"juniorkalvin7@gmail.com"
] | juniorkalvin7@gmail.com |
113533ae02e5f503e25caea078a34de22fed76b9 | 4c4611e2a1353cfba1e40bd480bd32c947c13718 | /locallibrary/ll_env/bin/django-admin.py | 372353b12387bcf15d381c8f1ec3b5a31e1e8421 | [] | no_license | zchuhui/python-learning | 74320d3c0a510a28875122afd91ae49bd647d7c8 | 13b96443dfa79ad3b2cc866027babf231a0f58b4 | refs/heads/master | 2023-01-05T22:39:49.297880 | 2020-11-08T15:06:33 | 2020-11-08T15:06:33 | 272,928,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | #!/Users/mac/codes/python/python-learning/locallibrary/ll_env/bin/python3
# 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(
'djang... | [
"oncwnuNxWDdBi2j9l5fXB6LuSqhg@git.weixin.qq.com"
] | oncwnuNxWDdBi2j9l5fXB6LuSqhg@git.weixin.qq.com |
a24ded89245e027192b8ac7fcf78bd28af461ba8 | 25033dec5e621744884058c7fb2f3ffb27b6d368 | /testDB/sqlh.py | d1aa33400bccc3b8dc9776e6a0145874a1fa0ada | [] | no_license | springwater101/Real-Python-Test- | e6e08750aad331b6d346dc4d24724e430b0ab934 | 129effb5e8eacfcf7695bfd986af6d9c5f93367e | refs/heads/master | 2020-05-20T16:18:14.382549 | 2015-03-11T10:13:59 | 2015-03-11T10:13:59 | 31,297,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #UPDATE and DELETE statements
import sqlite3
with sqlite3.connect("new.db") as connection:
c = connection.cursor()
# update data
c.execute("UPDATE population SET population = 9000000 WHERE city='New York City'")
# delete data
c.execute("DELETE FROM population WHERE city='Boston'")
print "\nNEW DATA:\n"
c.ex... | [
"ancientkiten@gmail.com"
] | ancientkiten@gmail.com |
63c809a87efab7ded47c7ec9a43ff2325500a22e | 8581191f5b3f002b3a656bd2e5161e1bcc9f053b | /models/denseRNNExponentialWithWConcat.py | 2d9b02e30713efaf55c9f98d6bfc2777abd2092a | [] | no_license | Meikaijie/Dense-RNN-Project | b6b238962d3d9ce2d73e7296688fe3fb140a000c | dff2797a8e188c63c5df6c8a463deb1e8f18aea5 | refs/heads/master | 2021-08-24T15:42:38.592783 | 2017-12-10T06:01:44 | 2017-12-10T06:01:44 | 110,617,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,677 | py | from __future__ import print_function, division
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
num_epochs = 100
total_series_length = 50000 * 1000
truncated_backprop_length = 15
state_size = 2
num_classes = 2
echo_step = 3
batch_size = 5
num_batches = total_series_length//batch_size//trunca... | [
"sahilkanjiyani@Sahils-MacBook-Pro.local"
] | sahilkanjiyani@Sahils-MacBook-Pro.local |
05a175071847e83ae425fe49db215ec21df87888 | 9e345c784747cac37eee98e2b04167c3e70183f1 | /trying_rnn.py | b2d22a33ac4358507bb9abae5756c7c4bab49a3e | [] | no_license | leo-gan/PyTorch-SungKim | e1fae02a4603a8405fa31e35d3349c6377bf9ecc | 8024691721978c8fa27278ea875081b3f4bdb21c | refs/heads/master | 2021-05-08T23:36:39.922580 | 2018-02-01T17:06:37 | 2018-02-01T17:06:37 | 119,717,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,900 | py | import torch
from torch import nn
from torch.autograd import Variable
torch.manual_seed(123)
x = 'ihello'
y = 'helioo'
id2x = ['i', 'h', 'e', 'l', 'o']
# x_hot = {
# 'i':[1, 0, 0, 0, 0], # 'i'
# 'h':[0, 1, 0, 0, 0], # 'h'
# 'e':[0, 0, 1, 0, 0], # 'e'
# 'l':[0, 0, 0, 1, 0], # 'l'
# ... | [
"leo.gan.57@gmail.com"
] | leo.gan.57@gmail.com |
cb3b6dee35a6278db9f968b94e96589d790b669c | 699a43917ce75b2026a450f67d85731a0f719e01 | /comonprefix/venv/Scripts/pip3.7-script.py | e913bfc5f695c5d68e2ba38d50ad1f005852ef42 | [] | no_license | wusanshou2017/Leetcode | 96ab81ae38d6e04739c071acfc0a5f46a1c9620b | c4b85ca0e23700b84e4a8a3a426ab634dba0fa88 | refs/heads/master | 2021-11-16T01:18:27.886085 | 2021-10-14T09:54:47 | 2021-10-14T09:54:47 | 107,402,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | #!E:\lc\comonprefix\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"252652905@qq.com"
] | 252652905@qq.com |
20acc266a70d5447f23a333ff82231fd7cc9eac7 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/version_type_enumeration.py | 0e80ef2e2f270f90f4bcec2a491a896e7d6de716 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 155 | py | from enum import Enum
__NAMESPACE__ = "http://www.netex.org.uk/netex"
class VersionTypeEnumeration(Enum):
POINT = "point"
BASELINE = "baseline"
| [
"chris@komposta.net"
] | chris@komposta.net |
bfb19e5899d96f4700ef1718370addf13912b499 | 45eb2451c0cab69d38d485d407a5fabffa3b848f | /2014/round_1a/full_binary_tree.py | 6a3a5b0f0f7c987ba2c8b941c3d1eacf61aae94d | [
"Apache-2.0"
] | permissive | laichunpongben/CodeJam | 4b04f254182fe996e44e2365b1f637f25ab0fbcf | a048229bce1bc680dc85c8a69ef395a2f049732a | refs/heads/master | 2021-01-10T08:03:16.700622 | 2017-08-08T06:49:50 | 2017-08-08T06:49:50 | 43,106,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py |
import sys
from graph import Graph
def calc_min_deletions(n, edges):
graph = Graph()
for i in range(1, n + 1):
graph.add_vertex(i)
for edge in edges:
graph.add_edge(edge)
min_deletions = sys.maxint
for root in range(1, n + 1):
min_deletions = min(min_deletions, N - max_su... | [
"laichunpongben@gmail.com"
] | laichunpongben@gmail.com |
336c4ceef935ca67574f23848288f7334f4204ed | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ZYXEL-RIP-MIB.py | a6c50ee23acbafeec25fe60539a149260b145846 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 4,835 | py | #
# PySNMP MIB module ZYXEL-RIP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-RIP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:51:35 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
8013ecb39e94b556952c18a9464769eb9dc15f69 | 81094b3034b7781166218ff1a0dff186b9fa6a45 | /main.py | 1ac2638f2d1e838efa80b81feab4cae6d15a37bf | [] | no_license | dennis-199/forloop3 | 01b25d610f56f95a970953c732d5a7ec453c3d95 | 9afc2d6ba64db2dd4f913362e3e6cc2f64205b8f | refs/heads/master | 2023-08-16T18:02:36.256131 | 2021-09-20T05:29:49 | 2021-09-20T05:29:49 | 408,320,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press ... | [
"otieno.dennis@strathmore.edu"
] | otieno.dennis@strathmore.edu |
7b4bb588bf1cf9c6d114bd85d3027e99acdfd100 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/CreateClusterTemplateRequest.py | bc26ad850899542168d338eb9f7452070bb222f1 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 14,454 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
615db5443502b2ec242b740a6d00f144e229fbfe | 2429a0bc941485a7cf6e348e09198905e5af9af7 | /Python/蓝桥 Python/入门/class student_teacher.py | c190dbdcb4011e62104e6a365c6306c21ce193b1 | [] | no_license | DanDaydy/blacktea | f9fc9ebb0ad1939e400257c6edf15dc8ca76f4c6 | cf1f52a8ee928cf29f64306f4112136333743fcf | refs/heads/master | 2022-12-30T00:11:28.098461 | 2020-10-23T08:12:27 | 2020-10-23T08:12:27 | 302,578,509 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | #!/usr/bin/env python3
class Person(object):
"""
返回具有给定名称的 Person 对象
"""
def __init__(self, name):
self.name = name
def get_details(self):
"""
返回包含人名的字符串
"""
return self.name
class Student(Person):
"""
返回 Student 对象,采用 name, branch, year 3 个参数
... | [
"gerway@foxmail.com"
] | gerway@foxmail.com |
a3ca293a13db83da524d77e1379a87706ff88b52 | cb69279d7ca6bdec741cb6d78582cad10108142d | /manage.py | 38e735d0f112d46a63cb2233cc27c95bd14a9fcf | [] | no_license | Shubham-2007/hostapi_horeku | 199596b83ccec9deecacf802b4fd1d9d36264f3e | 7576a83985ca15f2df862f26a01a795cb9e58675 | refs/heads/main | 2023-03-09T04:32:19.812501 | 2021-02-24T20:11:41 | 2021-02-24T20:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | 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', 'hostapi.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"58872826+Shubham-2441@users.noreply.github.com"
] | 58872826+Shubham-2441@users.noreply.github.com |
d7f29e6921ab75b1b29412c81af927e13e66678e | 34077c4b546c9a98ba2cedc58061508c91315227 | /carreira-python/design-patterns-python/pedido.py | 69ece308c419fd6d5a83bd5f08f780a887fb495b | [] | no_license | CodexZombie/EstudosWeb | c068aa3e7f00fa234f46198078b7cc386fd5beac | 6206ddb453a4713dd114e20709e7349639258e74 | refs/heads/master | 2021-07-05T08:41:25.667408 | 2019-03-20T03:14:05 | 2019-03-20T03:14:05 | 144,349,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | # -*- coding: UTF-8 -*-
# Command
#../design-patterns-python/pedido.py
from datetime import date
class Pedido(object):
def __init__(self, cliente, valor):
self.__cliente = cliente
self.__valor = valor
self.__status = 'NOVO'
self.__data_de_finalizacao = None
@property
def ... | [
"walvesdg@gmail.com"
] | walvesdg@gmail.com |
87b0cbd13cfd268b27a2c2fdc00de595ec99aad3 | fe6bef85f9d25ae1c37fd335093d4195b8d68336 | /main.py | d3e694a6c28eeaa496adc52358a75ea11c4462e0 | [] | no_license | Vektis/py_godwin | 8975807433bbdceb73068fb7c7cccfa8116893e8 | c48bef3b1c71049c99ca17c01feb03eac1b36316 | refs/heads/master | 2021-01-21T07:14:34.268183 | 2017-05-17T18:30:37 | 2017-05-17T18:30:37 | 91,608,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15 | py | print("yeah")
| [
"pbgaming2225@gmail.com"
] | pbgaming2225@gmail.com |
ec9afabfdd6a3fb5b54dcd3df3f3f3a0b67ae01e | a76790fa5f4eb96a8b731f891ca1aa4c16d21256 | /azext_iot/dps/providers/discovery.py | 433c7fe8409c6128ccc6fbaf4f22840408eae3da | [
"MIT"
] | permissive | digimaun/azure-iot-cli-extension | 414fb1c7c22b0f0d0891cd30c28d13366b9f7207 | 9999c536bbf67251d863d365c190866e1d5cc1ad | refs/heads/dev | 2023-06-24T09:42:51.069627 | 2022-12-14T23:29:58 | 2022-12-14T23:29:58 | 579,177,610 | 1 | 0 | NOASSERTION | 2022-12-16T21:25:31 | 2022-12-16T21:25:31 | null | UTF-8 | Python | false | false | 3,899 | py | # coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | [
"noreply@github.com"
] | digimaun.noreply@github.com |
faae9cb000964651106d75bbce939dd72351ace8 | 6efd23ba15723f3a3a6cdf09904c43cd541dd833 | /htcp/p2pnetwork/testtcp/sniff.py | 25c2fe0582a792e02fe58086bde8fdedb736dee3 | [] | no_license | myrual/python-stun | d108f80255c1799ff9519e4f797775e01d86a867 | 6d1477a42397c6c57ebfeddc79b223170448f998 | refs/heads/master | 2020-06-03T03:51:41.445978 | 2012-04-07T12:32:09 | 2012-04-07T12:32:09 | 3,957,628 | 15 | 11 | null | null | null | null | UTF-8 | Python | false | false | 4,052 | py | #!/usr/bin/env python2
import sys
import pcap
import string
import time
import socket
import struct
from twisted.internet.protocol import DatagramProtocol
from twisted.internet import reactor
import p2pNetwork.testTCP.spoof as spoof
protocols={socket.IPPROTO_TCP:'tcp',
socket.IPPROTO_UDP:'udp',
... | [
"lilin@jiuan.com"
] | lilin@jiuan.com |
066c2cb64f494164c914df163bcf4478f1eb98b4 | 63818414989aadb81f362311899177038dde9190 | /services/migrations/0006_auto_20200809_2255.py | b61c506bb7788d27ede2b297b03913a420c4ed05 | [] | no_license | rahimifh/Personal_p_pro2 | 0d89ccd529c8aa06c294009dcdcc693c38719771 | 7393b4be7470dbc398b73386e8f770f5a2f5afa0 | refs/heads/master | 2022-12-05T12:09:01.189118 | 2020-08-18T05:24:48 | 2020-08-18T05:24:48 | 288,352,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | # Generated by Django 3.0.8 on 2020-08-09 18:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('services', '0005_libfile_libpartition'),
]
operations = [
migrations.RemoveField(
... | [
"noreply@github.com"
] | rahimifh.noreply@github.com |
b2e416b830f8a762c57a51d0493a629a1344ef3f | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/7c04cc141bd3fc5f0ce1/snippet.py | 4a77c7cc3e4f198f1906ec927652c704233af5b1 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 2,740 | py | def _download(host, creds, fp):
chunk_size = 512 * 1024
headers = {
'Content-Type': 'application/octet-stream'
}
filename = os.path.basename(fp)
uri = 'https://%s/mgmt/cm/autodeploy/software-image-downloads/%s' % (host, filename)
requests.packages.urllib3.disable_warnings()
with op... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
7fab1106e8d7ce276f3cfbbdf00034e458456586 | 37568c3e0e8ad4f342adb53c02d08283d553bc95 | /pyservos/protocol2.py | 547ee49f382cc5b533b9db6a5a670b55d190910b | [
"MIT"
] | permissive | MultipedRobotics/pyservos | c39bb3da3e57890fa68432b6f500b0a742cb896b | 26691ab8dd541dbbe4660c73b025ebe6b085e2fc | refs/heads/master | 2023-03-25T13:29:47.343650 | 2021-03-25T01:04:36 | 2021-03-25T01:04:36 | 121,900,021 | 6 | 4 | MIT | 2021-03-25T01:04:37 | 2018-02-17T23:02:25 | Python | UTF-8 | Python | false | false | 11,888 | py | from enum import IntFlag
from pyservos.utils import angle2int, le
from pyservos.common import ResetLevels
# ResetLevels = IntFlag('ResetLevels', 'all allButID allButIDDR')
crc_table = [
0x0000, 0x8005, 0x800F, 0x000A, 0x801B, 0x001E, 0x0014, 0x8011,
0x8033, 0x0036, 0x003C, 0x8039, 0x0028, 0x802D, 0x8027, 0x00... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
d0650ff6942b772d3ceb8e2f766ec26f000c88c9 | 0d15e76677f3bf97d21978e73292f0d5c535ebac | /spacy/en/language_data.py | 3c9db8fe2386b2f759130f0b5b16bdb093197839 | [
"MIT"
] | permissive | ExplodingCabbage/spaCy | 62c1adf7a588827f32c16bc990d70f1cfe2b56c2 | 001abe2b9d6690fcd7e7b96242bb1b9cee0f5784 | refs/heads/master | 2020-07-02T22:14:02.890909 | 2016-11-20T02:45:51 | 2016-11-20T02:45:51 | 74,277,675 | 1 | 0 | null | 2016-11-20T13:58:26 | 2016-11-20T13:58:24 | null | UTF-8 | Python | false | false | 63,126 | py | # encoding: utf8
from __future__ import unicode_literals
# improved list from Stone, Denis, Kwantes (2010)
STOP_WORDS = set("""
a about above across after afterwards again against all almost alone
along already also although always am among amongst amoungst amount
an and another any anyhow anyone anything anyway an... | [
"honnibal+gh@gmail.com"
] | honnibal+gh@gmail.com |
fdfe941f2d276a821a9342bce3e3e89214a7ecfe | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v7/resources/types/video.py | da5d5c3d0b355e480d86c2f921f4d36b37f58b30 | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 1,756 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
5980ba5d1e205daa68bf0ca7e142f29d2e8a19f4 | 0969844f258a8a66cce134b28c71c03cbc7317e6 | /Day8/day8.py | f69a89c2b1e208d8a45be47e8632ffc422d863d4 | [] | no_license | vikaBu/Advent-of-code-2020 | de128e11e7a6171f4e6f1e220667cd4e79ba0790 | 01a3940cd1d517eb5d1d1493ae1888689a67b185 | refs/heads/master | 2023-02-05T03:45:13.296933 | 2020-12-22T16:26:57 | 2020-12-22T16:26:57 | 317,599,911 | 0 | 0 | null | 2020-12-04T09:52:49 | 2020-12-01T16:22:29 | Python | UTF-8 | Python | false | false | 1,536 | py | def get_input():
with open("./inputday8.txt") as f:
return f.read().split("\n")
def part1(instructions):
return runprogram(instructions)
def runprogram(instructions, change = -1):
pointer = 0
accumulator = 0
previous_pointers = []
success = True
while True and pointer < len(instruc... | [
"viktorija.buklajeva@zoopla.co.uk"
] | viktorija.buklajeva@zoopla.co.uk |
c963bd604f8baf0740eedddd93017a4b57ebd135 | 6456554a0836d7ed1b9b37e523daa5a91859f502 | /other/vipscrapy/vipscrapy/middlewares.py | 2a530d2541384228880e279974f55e6a0b319de5 | [] | no_license | zyt19910214/Studys | fb2436f4bd62f28b0c45d86ab92bc1ba48f57899 | d0b0f5d59f5d94e12ed138456a927047b7e55d96 | refs/heads/master | 2020-03-31T08:24:25.217574 | 2018-12-12T11:43:43 | 2018-12-12T11:43:43 | 152,055,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,603 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class VipscrapySpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrap... | [
"707150586@qq.com"
] | 707150586@qq.com |
4728768877333c9060e01d5d66cd0b2dc8cd58e2 | 74f04d78486d4986e4f0ef8c3bc480ba00caae4a | /articles/models.py | c9ee25d3e4b0b92deaea58fc10f1b49de02c4ee6 | [] | no_license | kimjy392/reboot-django | e24dd90182ee5d317bf13872ae169ac738a71c6c | 4280c7bffacd759a1b785ae576e9e89a0c2269d8 | refs/heads/master | 2022-12-10T12:18:38.422146 | 2019-10-28T01:12:41 | 2019-10-28T01:12:41 | 207,240,898 | 0 | 10 | null | 2022-12-08T06:13:37 | 2019-09-09T06:36:38 | Python | UTF-8 | Python | false | false | 594 | py | from django.db import models
# Create your models here.
class Reporter(models.Model):
name = models.CharField(max_length=20)
class Article(models.Model):
title = models.CharField(max_length=50)
content = models.TextField()
image = models.ImageField()
created_at = models.DateTimeField(auto_now_add... | [
"kimjy392@gmail.com"
] | kimjy392@gmail.com |
2f14e4dbbb349aed3998968c565c70758358ae4e | 23f73a7a0c0ced134f6c18bb9c200617ce31f1d5 | /src/fauxmo/handlers/hass.py | 6b72bc98a0323f0764aee236d59e2be04d96d90a | [
"MIT"
] | permissive | clach04/fauxmo | f586d0024648f3da6d2ff38b8fe06fdb345bcfbd | 06a0b8ff20f4811de9ac08663e0d76f8fdd83764 | refs/heads/master | 2021-11-27T19:13:36.583893 | 2016-07-22T13:02:39 | 2016-07-22T13:02:39 | 66,683,609 | 2 | 0 | null | 2016-08-26T22:42:52 | 2016-08-26T22:42:52 | null | UTF-8 | Python | false | false | 2,671 | py | # -*- coding: utf-8 -*-
import homeassistant.remote
from homeassistant.const import (SERVICE_TURN_ON, SERVICE_TURN_OFF,
SERVICE_MOVE_UP, SERVICE_MOVE_DOWN)
class HassAPIHandler:
"""Handler for Home Assistant (hass) Python API.
Allows users to specify Home Assistant services i... | [
"nate@n8henrie.com"
] | nate@n8henrie.com |
b70b4c6bf6bc9ff138b72e6f1fd75d39ff2da2a5 | 19f85c71b39d05b19127ab1beb465229c9ad8d1c | /authapi/serializer.py | 3c3f4a69dfd36d190f043dbd982047f702e5027f | [] | no_license | Evgenykurakin1989/art_backend | 3fb1438aa9c755efa1c48d17871ffc84599d7f7d | e7f9ebf48f9ea5a52a0408f88988e73ea4818590 | refs/heads/master | 2020-06-27T23:58:25.458119 | 2019-08-03T11:15:07 | 2019-08-03T11:15:07 | 200,086,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py | from rest_framework import serializers
# from django.contrib.auth.models import User
from django.contrib.auth import get_user_model
from rest_framework_jwt.serializers import JSONWebTokenSerializer
from django.contrib.auth import authenticate
from rest_framework_jwt.settings import api_settings
jwt_payload_handler = a... | [
"evgenykurakin19891031@gmail.com"
] | evgenykurakin19891031@gmail.com |
0554e077b0db3b39fc887e6b4986a336cc20fc9a | 6a7d8b67aad59c51dafdfb8bcffd53864a3d65b0 | /LintCode/inorderSuccessorBST.py | 4967d1c45481e78e4f3fb69538a9e2576d98cf12 | [] | no_license | dicao425/algorithmExercise | 8bba36c1a08a232678e5085d24bac1dbee7e5364 | 36cb33af758b1d01da35982481a8bbfbee5c2810 | refs/heads/master | 2021-10-07T08:56:18.030583 | 2018-12-04T05:59:17 | 2018-12-04T05:59:17 | 103,611,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | #!/usr/bin/python
import sys
"""
Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
"""
class Solution:
"""
@param: root: The root of the BST.
@param: p: You need find the successor node of p.
@... | [
"di.cao425@gmail.com"
] | di.cao425@gmail.com |
25b17dd9edbe9aef94eab4c040eacc6014eb9c6e | 31fed80218632215659e8786d41783b3a493be8c | /app/models.py | 6822c1ee9f12f37e389478a00c52ff9af367f59e | [] | no_license | kahl-l/Flask-Administration | ef80a58b5b801be7c431918fd2441a9ae0ad1d85 | e93bf3793beefd349acb25b2a7482a4d12827d6b | refs/heads/master | 2021-09-09T16:22:06.717868 | 2018-02-15T14:03:34 | 2018-02-15T14:03:34 | 119,517,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | from datetime import datetime
from hashlib import md5
from time import time
from flask import current_app
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
import jwt
from app import db, login
class User(UserMixin, db.Model):
id = db.Colum... | [
"ludovic.kahl@gmail.com"
] | ludovic.kahl@gmail.com |
2261cf66860e5e03da76218a1e66eb199a78667d | fc66f771e95ee36cd502d3cf7220794e6f263226 | /src/utils/at.py | ca3ac83c786efd55252a4fe7853b8b4d9a002805 | [
"MIT"
] | permissive | yuanniufei/IncetOps | 2bcb7851514f3db6bc409746d245da08032ecc06 | e21185a4931a10996a187e63f4487b4402544c69 | refs/heads/master | 2020-03-25T20:50:02.339329 | 2018-08-09T07:35:02 | 2018-08-09T07:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | # -*- coding: utf-8 -*-
"""
IncetOps.utils.at
~~~~~~~~~~~~~~
AES加密的实现模式CBC。
CBC使用密码和salt(起扰乱作用)按固定算法(md5)产生key和iv。然后用key和iv(初始向量,加密第一块明文)加密(明文)和解密(密文)。
:copyright: (c) 2018 by staugur.
:license: MIT, see LICENSE for more details.
"""
from Crypto.Cipher import AES
from binascii im... | [
"staugur@vip.qq.com"
] | staugur@vip.qq.com |
35ef8ca68b756962f165919cf8232b4e92cf6f2c | 7375c164c1988befb259681c029e21fbc3ff37ee | /todowoo/urls.py | 78a8d9073531e0d5e814f88b55276f758aa8d549 | [] | no_license | python-the-snake/Django3_todowoo | 0ad40ac8b7a0ae14d82568c7fb757108c8d2c875 | 2db5a25401b7663c3d9245901227672aa8cad879 | refs/heads/master | 2022-11-19T14:34:26.176650 | 2020-07-14T10:07:21 | 2020-07-14T10:07:21 | 271,991,868 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | """todowoo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"dmitriy-shalimov@yandex.ru"
] | dmitriy-shalimov@yandex.ru |
7297ba441c8c0b9dab5826a8bc9b803a2e5903ab | 332132ca9ee3471cdeae5a93dc5f255dfb1df627 | /view_counter/apps.py | 068fca926f3af76d612b636a41a93cc36ee8b299 | [] | no_license | shtormnick/Page_counter | 30518ba61daa78728425d03e96b4bf2edb53a6ee | cf3b7feafdb5712d6a65eff098812b7b892cfefe | refs/heads/master | 2022-06-29T17:45:00.815658 | 2020-05-11T09:02:39 | 2020-05-11T09:02:39 | 261,580,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class ViewCaunterConfig(AppConfig):
name = 'view_caunter'
| [
"foxred324@gmail.com"
] | foxred324@gmail.com |
76c7d338cb4b00b333780f614692ef669796fa1e | be0d0e9046ec5a97895dab9177e1d2bed9f575af | /KNN/classification_mnist_knn.py | dbd6609c0e2dcf3aa41584d444070438a56f6d5b | [] | no_license | caothetoan/machine_learning | a091699c3c709f2bc2797c0b0286df50f76fbce1 | fae39c60b61bd852bdd92d0b9f117e958acbc575 | refs/heads/master | 2021-07-04T15:19:02.950457 | 2020-08-16T16:13:03 | 2020-08-16T16:13:03 | 146,393,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | # %reset
import numpy as np
from mnist import MNIST # require `pip install python-mnist`
# https://pypi.python.org/pypi/python-mnist/
import matplotlib.pyplot as plt
from sklearn import neighbors
from sklearn.metrics import accuracy_score
import time
# you need to download the MNIST dataset first
# at: http://yann.l... | [
"caothetoan@gmail.com"
] | caothetoan@gmail.com |
4e107f975e9b205c04868eafff741a552f4302c0 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/gos_20200614060821.py | 3db5babdabe6fb83a5ab594602a18e4fa77fbc59 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,896 | py | # # Імпорт фажливих бібліотек
# from BeautifulSoup import BeautifulSoup
# import urllib2
# import re
# # Створення функції пошуку силок
# def getLinks(url):
# # отримання та присвоєння контенту сторінки в змінну
# html_page = urllib2.urlopen(url)
# # Перетворення контенту в обєкт бібліотеки BeautifulSoup
#... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
99f6eb1dcbc89a09e00875214f3d250ae91479e9 | d4d817614f870d2f1b1ad9edb5f6c40079b3f067 | /server/mysite/urls.py | efd846a3768fa02ba140fd4a15a4d1f1f03a8641 | [] | no_license | zloy276/ulsu_students_project | 46d02aff8ee820eb480acf15735015a41104b4f5 | 3723a4d3824a582b97d78968cd009799c233be2f | refs/heads/main | 2023-05-30T23:22:43.496404 | 2021-04-19T09:18:39 | 2021-04-19T09:18:39 | 350,739,637 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"mihan276@icloud.com"
] | mihan276@icloud.com |
046c163a076d51434d40ffd17124b8cbff4044dd | 2542514d6e9d87381ce9ef3ab15e2ca07f1e9bff | /2_Grading-132452.py | 09b9b443d67f16a1f201f7e476eb1fa0d7daf143 | [] | no_license | gaivits/code_Kidding | cb2404945866d76064d6a4982047b3bd3e830c0b | c97c1a78537dcbe52d23da0beac9a7debe70f544 | refs/heads/master | 2023-06-12T15:03:57.295712 | 2021-07-03T17:51:04 | 2021-07-03T17:51:04 | 237,955,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | a = int(input())
b = int(input())
c = int(input())
d = int(input())
n = a+b+c+d
if n >= 80:
print('A')
elif n >=75:
print('B+')
elif n>=70:
print('B')
elif n>=65:
print('C+')
elif n>=60:
print('C')
elif n>=55:
print('D+')
elif n>=50:
print('D')
else:
print('F')
| [
"noreply@github.com"
] | gaivits.noreply@github.com |
b0d54a8361f3157a93dad51a6fd6feb72e161750 | 28aa379cb384e964225e144d1c4dbd18996073d8 | /kick_project/manage.py | 5d9b9f41ae76280bdb056a0ac9f6b31844f30e5a | [] | no_license | mblasko09/Trace-Camp-projects | 43b7285d1f18ec96f6ef1676a997d46a293aab53 | 9401bfc476d21da1cd87cbb6404d31ef8b7133af | refs/heads/master | 2020-04-12T11:22:34.364887 | 2018-12-20T21:38:24 | 2018-12-20T21:38:24 | 162,457,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kick_project.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"mblask@194.161.21.198.tigernet.wifi.dyn.clemson.edu"
] | mblask@194.161.21.198.tigernet.wifi.dyn.clemson.edu |
786e8f6d3c14740e8ce83eac7bf53c2ad28f21ca | 5bdf57bb65a0798023fe73a95ae397440e80d4df | /n-mer_freq.py | 2859da21cc6eb2a8cfa9aeb35db10a274d794907 | [] | no_license | tanbwen/ViraMiner | 475eeb02666b3d59cabf57f57faaaf591e7e2818 | 941ee13c90119b7a5f42a16ae52517bc54daa6c8 | refs/heads/master | 2023-03-16T12:54:41.403473 | 2020-08-24T12:12:47 | 2020-08-24T12:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,903 | py | import numpy as np
from sklearn.metrics import confusion_matrix,roc_auc_score,accuracy_score
from helper_with_N import *
import itertools
import argparse
import pandas as pd
def str2bool(v):
return v.lower() in ("yes", "true", "t", "1")
################################
##Read in the parameter values##
##########... | [
"neurocsut@gmail.com"
] | neurocsut@gmail.com |
b0a03beaebad91464458a98d735bd08142322c1c | f5402ef17bab15cc2512616db8e00c2e25b27e3e | /sngconnect/announcements/forms.py | cb0d5cad499b429953f9ae39f2f40ce976a8b52c | [] | no_license | fikander/sngtec-sngconnect | 2b5b804513d5ff94be8a0a9f5b7ee62aa3151034 | 34f6188247d2e7d6dd8cc5f358e8910c9f722560 | refs/heads/master | 2021-01-17T20:01:05.694515 | 2013-09-07T16:40:11 | 2013-09-07T16:40:11 | 62,445,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from wtforms import fields, validators
from sngconnect.forms import SecureForm
from sngconnect.translation import _
class CreateAnnouncementForm(SecureForm):
content = fields.TextAreaField(
_("Content"),
validators=(
validators.DataRequired(message=_("This field is required.")),
... | [
"m.siedlarek@fatico.com"
] | m.siedlarek@fatico.com |
7b39357643d6f4b36235e1711c80c6434fd3e428 | 4c0ca5fa550efc572e18169328b0b961fe5b3849 | /edabit_challenges/get_sum_of_elements.py | 671198e0d30c7c29d3483b1e0f91dd772e0bd625 | [] | no_license | c-romano/code_practice | fd5e6f3b0ede8d103ddef1235ec6b3ba0c173e10 | 60b3f0806f1c055497bd10701d7498b672247d0b | refs/heads/master | 2023-07-03T11:50:14.140941 | 2021-07-22T21:15:02 | 2021-07-22T21:15:02 | 274,518,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # takes a list and returns sum
# optimal solution
get_sum_of_elements=sum
# alternate
def get_sum_of_elements2(lst):
return sum(lst)
# my corrected solution
def get_sum_of_elements3(lst):
sum = 0
if len(lst) > 0:
for x in lst:
sum += x
return sum
else:
return ''
print(get_sum_of_elements([1,2,3]))
| [
"conortheginger@gmail.com"
] | conortheginger@gmail.com |
225cc84d1b8df33afa6b99407f6dad6ab6b09f7f | 1d007e58c7739f36bdb85cb9aa13b3f4584cdfb9 | /day1/day1/urls.py | 28f2a39c7c890b2c071f918d1dcef7609bddfad4 | [] | no_license | rahuladream/Django-Challenge | 65410f053c06f2556628b449b817244dac32e1ac | 0b81a6b69b743799f3d8562d6ec784950980716c | refs/heads/master | 2020-06-14T14:19:54.370195 | 2019-07-03T13:02:07 | 2019-07-03T13:02:07 | 195,024,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | """day1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"rahul.singh4800@gmail.com"
] | rahul.singh4800@gmail.com |
c435c4a601960625cb708fde9fbd0bf1c3785c31 | ecb97bcfe87c76ae37446bbb715e9e703f00a789 | /udpdebug.py | ae5703ace398c9604387d58e628254ab9134c956 | [
"MIT"
] | permissive | winxos/python | 056eed745746146cae46130ce657217e8e37845e | 22f57a5dfa6366b0d149dfd81203b11ed258f9d3 | refs/heads/master | 2020-06-04T06:23:07.262773 | 2017-06-20T03:46:04 | 2017-06-20T03:46:04 | 37,751,553 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | # -*- coding: utf-8 -*-
'''
p2p server.
winxos 2015-12-04
'''
import socket
import threading
import os
import time
port = 9010
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # DGRAM -> UDP
is_exit = False
class getcmd(threading.Thread):
global s, clients
def __init__(self):
threading.Thread.__... | [
"winxos@hotmail.com"
] | winxos@hotmail.com |
1b6741fe528edc00851aec30898bc2139cc337c5 | 7a76bec230b228c9778d69b0aaa8cdfd542b59d6 | /Demo/retest.py | 181fd19a9393e6b131faec0a5b7188edc0bee026 | [] | no_license | liyongc0427/120Django | 260f4321fe173d59cc5ae107d0b9c4bcb21cd616 | 04a73760daf68726caf7429dbcf865bc5db78a6a | refs/heads/master | 2021-01-02T19:05:02.834866 | 2020-02-11T12:32:14 | 2020-02-11T12:32:14 | 239,756,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | """
正则:是一种字符串的处理方式,用于字符串匹配
字符串的匹配分为两种方式:
内容匹配:
例如:
python中的re模块(re模块含义:处理正则的一个模块)
js中匹配
通过要匹配的内容类型,长度进行匹配
结构匹配:
xpath(获取到某个内容的标签进行匹配),通过获取内容在整个文档中的结构 进行匹配
html div p img
内容匹配讲解:
类型匹配
原样匹配 . \d \D \w \W [] | ()
... | [
"1073029629@qq.com"
] | 1073029629@qq.com |
aadea7c7b59d25826bf1369514b6a919f0c140a6 | 752898bc395a17b2d646278915c7d60186517bfd | /EBV genome deletion/virus_deletion_main.py | 6873f79b2b1d6beeb6644a7b53fe81e244e95261 | [] | no_license | hanbw/ebv_script | 3677eabdf236a26fb40ff442e157286472ca56b2 | 67e18854115ced3f62a8b324be42fe6e2bade12b | refs/heads/master | 2020-03-16T17:36:20.004646 | 2018-05-13T08:08:03 | 2018-05-13T08:08:03 | 132,839,791 | 4 | 1 | null | 2018-05-13T08:04:12 | 2018-05-10T02:48:49 | Python | UTF-8 | Python | false | false | 13,665 | py | #! /data/home/hanbw/software/anaconda2/bin/python2.7
import os
import sys
import optparse
import time
import threading
LIB_PATH = './'
sys.path.append(LIB_PATH)
import virus_deletion_subs
# PATH to software
Trim_galore_PATH = "~/bin/trim_galore"
BWA_PATH = "~/bin/bwa-0.7.12/bwa"
Samtools_PATH = "~/bin/samtools-1.2/sa... | [
"hanbw@users.noreply.github.com"
] | hanbw@users.noreply.github.com |
6e23a61c7d0442b27a1eda15329cfefdd1f45cd2 | d807a3baa054d00fb0136cc2b04187b04c8bf9f2 | /checkout/models.py | 06eb6730f32bebcaccfcea0cfbf99061ec16ace1 | [] | no_license | Code-Institute-Submissions/SuperGibbon-MS4 | c14a093cd3329a7cb1e696d8cbb028dfeaf44d50 | cb9143058895d3b1e2365df256dea7416f184d44 | refs/heads/main | 2023-07-09T12:31:33.139733 | 2021-08-09T13:02:13 | 2021-08-09T13:02:13 | 394,693,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import uuid
from django.db import models
from django.conf import settings
from profiles.models import UserProfile
class Order(models.Model):
order_number = models.CharField(max_length=32, null=False, editable=False)
user_profile = models.ForeignKey(UserProfile, on_delete=models.SET_NULL,
... | [
"super_gibbon@hotmail.com"
] | super_gibbon@hotmail.com |
949ec44663b9181db5548c8f3a054238b153f16c | ba628db2302825adbb1151613248405e7dfba2b5 | /排序算法/插入排序.py | 1404ab2606e4f030b2654e1b01000cd5bf84b8a9 | [] | no_license | EricWangyz/Exercises | 5257840503e2f22d8c8fc8f26e0d1d77fcc627fd | 5647b418cc932cceb9e311fec016c089ca7d22d5 | refs/heads/master | 2022-04-21T02:31:46.768537 | 2020-04-20T17:10:20 | 2020-04-20T17:10:20 | 257,349,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/9/7 11:15
# @Author : Eric Wang
# @File : 插入排序.py
def insertionSort(nums):
'''
分为有序列表和无序列表,将无序列表中小于有序列表最后一个数的数插入到有序列表中合适的位置
:param nums:
:return:
'''
length = len(nums)
for i in range(... | [
"eric_wangyz@foxmail.com"
] | eric_wangyz@foxmail.com |
661db6856baca6b9f360cd409aee8237450c09dc | 9e64e562f73cad9f74da1cd643ba74e920915ec9 | /player.py | 3c5db729e2c74accbe3cc2a37af1bf4fba7e1c5a | [] | no_license | tommyli3318/DiscordBattleBot | 53c3a9ef648bf92f5d621206ae240f8a3d7edba2 | e6f8986ab4220783bc728087c134808276fe31f0 | refs/heads/master | 2023-05-19T16:25:07.165245 | 2021-06-09T00:24:26 | 2021-06-09T00:24:26 | 367,477,770 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | class Player:
def __init__(self, name, base_damage=10):
self.name = name
self.health = 100
self.base_damage = base_damage
self.armor = 0
self.lifesteal = 0
self.crit = .05 # crit chance
self.spell = None
self.item... | [
"tommyli3318@gmail.com"
] | tommyli3318@gmail.com |
d66c46d60deb88604a47bf22874b86741218b0cb | 6bbe7809113378c56fc18637d8983ee82dee5ad7 | /main.py | ff0f557d192f8060475ab1cdbe63cf2512c9ac49 | [] | no_license | jmattern/FastSLAM-Humanoid-Robot | a25483ecec55918870c7fdedfe1a09c20f97fe2c | d92dee8650ae7c842ef4e7a601cd1604c44db102 | refs/heads/master | 2020-03-21T01:48:57.004377 | 2018-06-22T01:01:12 | 2018-06-22T01:01:12 | 137,964,239 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,442 | py | import matplotlib.pyplot as plt
import numpy as np
import os
import argparse
import sys
from robot_data_loader import *
from humanoidrobot import *
parser = argparse.ArgumentParser(description='FastSLAM on Humanoid Robot')
parser.add_argument('-jp', '--joint-path', default='', type=str,
help='path... | [
"wayclef.mattern@gmail.com"
] | wayclef.mattern@gmail.com |
8bf604e5545abce9b382470def829932c7d40127 | 7e7780dc97dd39316dfeac8d8c95713ad35258a6 | /heat/optim/tests/__init__.py | 7f22d97477344da5575a454e6865b721475ef603 | [
"MIT"
] | permissive | Cdebus/heat | 9bddd71a24c620e72e5ad9af1c66f8b3db7c23ff | 38ef4a95957956769be1a00de0d9b219fc5dc8c7 | refs/heads/master | 2021-06-22T15:16:33.348969 | 2021-02-26T14:05:07 | 2021-02-26T14:05:07 | 169,711,012 | 0 | 0 | null | 2019-02-08T09:26:38 | 2019-02-08T09:26:38 | null | UTF-8 | Python | false | false | 26 | py | from .test_optim import *
| [
"daniel.coquelin@gmail.com"
] | daniel.coquelin@gmail.com |
027aac9247c4f8604733246af3f42d7bf613df87 | b543aa765ee0a7df07a6d2c2d1c5451007f4fd4d | /sub.py | 4613b408bc4873949891d86307e05888b2134e5c | [] | no_license | sztosz/delme | 948fce7ba52d0afdc38616bf4bb83dd5054806f3 | 69a15d96604f2934596041add74242cd77787ef1 | refs/heads/master | 2020-07-14T10:57:52.084537 | 2016-09-11T07:02:22 | 2016-09-11T07:02:22 | 67,915,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | import something.storage as storage
def run():
print(storage.retrieve("The"))
| [
"sztosz@gmail.com"
] | sztosz@gmail.com |
1f638f6038f33df2aa4f2e79d8b32c4280c955fd | 3db8bc4c7297895c687be374a206b63d5d329e5e | /Python3/019_Remove_Nth_Node_From_End_of_List.py | 0d1d00b05fb6965d0c5f5762555d56236207eb67 | [
"MIT"
] | permissive | Jian-jobs/Leetcode-Python3 | dd06d3238b69ae1419754810dec68705d3344a41 | f2d3bb6ecb7d5d0bca4deaed26162fbe0813a73e | refs/heads/master | 2020-05-15T00:59:28.160898 | 2018-11-16T04:44:32 | 2018-11-16T04:44:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | #!usr/bin/env python3
# -*- coding:utf-8 -*-
'''
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will always be valid.
Try ... | [
"gzr2008@vip.qq.com"
] | gzr2008@vip.qq.com |
eed66ce765aa9eae0228a51ffc68c16ad9405ae4 | 1816378da612c7db376934b033e4fd64951338b6 | /gui/jails/migrations/0007_add_model_JailTemplate.py | dc21d06fbe871543b3648239738a169c72011b35 | [] | no_license | quater/freenas-9.2-xen | 46517a7a23546764347d3c91108c70a8bd648ec6 | 96e580055fa97575f0a0cb23a72495860467bcfb | refs/heads/master | 2021-01-16T22:21:38.781962 | 2014-02-07T05:59:13 | 2014-02-07T05:59:13 | 16,609,785 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,422 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from freenasUI.jails.utils import get_jails_index
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'JailTemplate'
db.create_table(u'jails_jail... | [
"john@ixsystems.com"
] | john@ixsystems.com |
56d822b095f416bf950641e5022a67600623868e | df55f2149144920b0cbca1ea0913ccc1a89beda2 | /lib/mod/crop_and_livestock_production.py | a2716de4897bc4496020e88940ee8c0ee557fdd2 | [] | no_license | thomasball355/C-LLAMA1.0 | 5ae2e478410a7ebee1b3c2831ec1d68feab6568b | 1d02709bdeab72b28dc2c42cd47531694536f3fd | refs/heads/main | 2023-07-11T17:55:26.104688 | 2021-08-13T11:33:27 | 2021-08-13T11:33:27 | 329,949,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,208 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
import sys
import lib.funcs.perc_contributions_WRAP
import lib.funcs.dat_io as io
import lib.funcs.foodsupply_trajectory
import lib.dat.colours
import lib.dat.food_commodity_seperation
def main(area_index):
vegetal_commodity_prod... | [
"thomasball355@googlemail.com"
] | thomasball355@googlemail.com |
1e2bdc3a3def52d296cd26d604daa8f574a89953 | 08fec2f65d42feeff81b980670f6e0849aead18f | /tools/norm_flat_uyghur_dict.py | 8c3bf71f67039eb73948ae9a4628f646e95b7b8a | [] | no_license | sjmielke/uyghur-dictprocessing | a868e71caffe3ed508dd89ce210906c0ccca5711 | e54091027f7fa3f1fc956993fe4e054eb59065dd | refs/heads/master | 2020-07-05T04:33:54.195562 | 2016-11-18T12:30:42 | 2016-11-18T12:30:42 | 74,128,134 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,229 | py | #!/usr/bin/env python3
import argparse
import sys
import codecs
import itertools
import subprocess
import re
import unicodedata
from collections import defaultdict
import spacy
en_nlp = spacy.load('en')
def is_between(x1, c, x2):
return ord(x1) <= ord(c) <= ord(x2)
def get_strippable_char_set(s):
def is_messed_u... | [
"sjm@sjmielke.com"
] | sjm@sjmielke.com |
e00c9f5ecffc4ec7a8b30e5e05d2c50b3a35acf7 | 34073967e0b1706b1b9ba9ea7b903b1b56d211cc | /application.py | 2246097bdf56e00419bf53f43e57f9c3abdc00c3 | [] | no_license | anandsainath/visual-analytics-for-web-and-documents | 5d1dfc694952232c5d85f37721113aac49a7a446 | 3d0cabfb897150dee01d66c1c0ff82a73f8902af | refs/heads/master | 2021-01-21T17:06:33.135740 | 2015-07-22T12:34:57 | 2015-07-22T12:34:57 | 23,821,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from flask import Flask, render_template, url_for
from mongoengine import *
app = Flask(__name__)
@app.route('/')
def index():
return render_template('home.html')
@app.route('/testdb')
def test():
connect('jigsaw')
return "Connection Success"
if __name__ == '__main__':
app.run(debug=True) | [
"anand.sainath@gmail.com"
] | anand.sainath@gmail.com |
1e585984517286d083e98c957b055e80ae1e2398 | dd6bd3b39fead49cd2e48baf0fc28bd7792fc13a | /tests/test_service_handler.py | 868a33f559f2c47175fa1b32900998eda48c2157 | [] | no_license | skensell201/devops_test | 5eb78b9970a82b5e97a2d95020db69125db06e48 | 5cf9abda1c464df257050169818ac585d1b5db3e | refs/heads/master | 2022-07-02T05:04:23.578234 | 2020-03-11T19:09:12 | 2020-03-11T19:09:12 | 263,444,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from aiohttp.test_utils import TestClient
async def test(client: TestClient):
async with client.get("/api/service") as resp:
assert resp.status == 200
data = await resp.json()
assert set(data) == {"service", "version", "build"}
| [
"drwebfrontend@gmail.com"
] | drwebfrontend@gmail.com |
498f5c40fc4c91683d8e499bd23fa154777797d6 | d421c531e17b8292a9a3aec965dfa335301d3bdc | /simple_env.py | 72af90c60119c170f0e10366673d78afadc42b98 | [] | no_license | matthew-haines/financial-drl | 57ed9dc73ae57e680790896ac4252c0b2d3f3828 | 0a2005c32f0ae5020f5a2f396abcbb0871f6498c | refs/heads/master | 2020-05-02T01:27:27.259570 | 2019-03-26T00:42:01 | 2019-03-26T00:42:01 | 177,686,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class Environment():
def __init__(self, data, starting_capital=0.5, starting_step=10, initial_position=1):
"""starting_capital in BTC"""
self.data = data # Features by timesteps
self.initial_position = ... | [
"m.haines1000@gmail.com"
] | m.haines1000@gmail.com |
e2cb2c8e89a8b49e48345e5c5ac0b7f4d4038e0c | d913bac9fa42473aa8cee68c8ad8b4eba5484b89 | /Scripts/features/VoidTender_POS.py | 6f88141ad64358009955cec6efcfc5ed742ca805 | [] | no_license | priyatam0509/Automation-Testing | 07e7c18b4522976f0ade2b72bd46cffd55c5634e | d24805456e5a0126c036c1688a5d112bdcf4467a | refs/heads/main | 2023-02-26T19:07:41.761905 | 2021-01-30T10:13:34 | 2021-01-30T10:13:34 | 334,376,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,424 | py | """
File name: VoidTender_POS.py
Tags:
Description:
Author: Gene Todd
Date created: 2020-04-16 09:40:28
Date last modified:
Python Version: 3.7
"""
import logging, time
from app import Navi, mws, pos, system
from app.framework.tc_helpers import setup, test, teardown, tc_fail
class VoidTe... | [
"piyushpriya34@gmail.com"
] | piyushpriya34@gmail.com |
714f10f1cdf810ee577d228a32f31af48c09c4ca | 93e55f080779f16f47a7382a3fb0b29a4189e074 | /convertor/huawei/te/lang/cce/te_compute/conv3d_compute.py | 41cc76d90ec5f7cf33e700dfbfa39e91468a5d7b | [] | no_license | jizhuoran/caffe-huawei-atlas-convertor | b00cfdec3888da3bb18794f52a41deea316ada67 | 148511a31bfd195df889291946c43bb585acb546 | refs/heads/master | 2022-11-25T13:59:45.181910 | 2020-07-31T07:37:02 | 2020-07-31T07:37:02 | 283,966,371 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 29,385 | py | """
Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the Apache License Version 2.0.You may not use this file
except in compliance with the License.
This program is distributed in the hope that it will be ... | [
"jizr@connect.hku.hk"
] | jizr@connect.hku.hk |
5d05881a5a8f294a903f300d5329edd75b5f38ba | d27f9109deedf2b5309eaf51a8e6bfe2b75fcf17 | /djangoapp/views.py | 8d632b654d2aed1c70ef488b2535a2e940ce85d5 | [] | no_license | vccorimanya/django-app | 0b93986f78ae14bb4c85285d0982089eeb6a5abe | fb993150e7d3659456b1ede0cddaae78fcf8fe1a | refs/heads/master | 2023-07-18T12:37:43.075407 | 2021-08-20T19:28:06 | 2021-08-20T19:28:06 | 398,094,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | #Django
from djangoapp.settings import DEBUG
from django.http import HttpResponse
#utilities
from datetime import datetime
import json
def hello_world(request):
time_now = datetime.now().strftime('%b %dth, %Y - %H:%M hrs')
return HttpResponse(f'Current time sever is: {time_now}')
def sorted_numbers(request):... | [
"raulccorimanyaalfaro@gmail.com"
] | raulccorimanyaalfaro@gmail.com |
d4a7b316aa7e13c5cf8deae0242001b381605f9f | 34594886705081059385e50c7b071cc42f3f2c67 | /NewsPaper/NewsPaper/settings.py | 6f01e61face427ca9dc6b02479dda278901c4de6 | [] | no_license | Mistyhops/task-D_2 | 870c1fa72d5fa4232bf654f59006daa35383cd00 | 2dad7d12f7e53a5cd30bf33fffc5d7611bd163c6 | refs/heads/master | 2023-03-17T11:27:53.606278 | 2021-02-24T16:57:18 | 2021-02-24T16:57:18 | 341,962,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | """
Django settings for NewsPaper project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"nedgalkin@gmail.com"
] | nedgalkin@gmail.com |
de3a0c28cc1023aa05a34f5fd437c0431ba35fee | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/42142e465a234cfaa158392bdda680b9.py | 2e0e27725c2144af3babc0a50be01d1f5932c483 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 353 | py | def is_leap_year(year):
if year % 4 == 0:
if year % 100 == 0:
if year % 400 == 0:
return True
return False
return True
return False
"""
on every year that is evenly divisible by 4
except every year that is evenly divisible by 100
unless the year is ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
a50552a2fa86c9f1ea3036c1f58014cfb6e6b073 | c3d20923c699e7459c4d3deadbdc71de3e9a02c0 | /gta_data_to_tfrecords_simple.py | 16a9bb26b727ecb1bfd3bfba08ac8f05a72c556c | [] | no_license | qzramiz/DeepDrive | bc8f76ee05c7180564c075483f841c81886e845a | 0d8dae48787c1477d1b6c83e9719a3a2f18d93fc | refs/heads/master | 2020-04-11T19:20:33.539945 | 2018-12-16T18:58:58 | 2018-12-16T18:58:58 | 162,030,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,078 | py | # coding: utf-8
# Copyright 2016 Google Inc. 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 app... | [
"noreply@github.com"
] | qzramiz.noreply@github.com |
b75083697cb6e23fef46d711154c9b757a164777 | 65eaa08df32cdb13159a0b3b98a69f5bbd392493 | /BetterBuy/urls.py | b60e3b58c051757972912e03d28c5ece7c507dae | [] | no_license | AKAaayush/MW | 7730b50ccd1a3ddcc26bd516a6b0ce32dd43506f | ca90290d11a6b7261d019866b88057836883e3ce | refs/heads/master | 2020-12-29T13:18:15.161281 | 2020-02-14T03:46:41 | 2020-02-14T03:46:41 | 238,619,449 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | """BetterBuy URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"shresthaaayush81@gmail.com"
] | shresthaaayush81@gmail.com |
b5e435d58d0527b0a10b2c3d2ddb08609b44daa9 | da9c4a9a92d49d2fb2983a54e0f64c2a1ce8aa19 | /symphony/cli/pysymphony/graphql/input/add_image.py | 8a71be0cda0a9d98d166adf96a4a1fc7a8c266e2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | rohan-prasad/magma | 347c370347724488215a0783504788eac41d8ec7 | 2c1f36d2fd04eae90366cc8b314eaab656d7f8ad | refs/heads/master | 2022-10-14T14:08:14.067593 | 2020-06-11T23:52:03 | 2020-06-11T23:54:27 | 271,671,835 | 0 | 0 | NOASSERTION | 2020-06-12T00:20:23 | 2020-06-12T00:17:39 | null | UTF-8 | Python | false | false | 748 | py | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from dataclasses import dataclass
from datetime import datetime
from functools import partial
from gql.gql.datetime_utils import DATETIME_FIELD
from numbers import Number
from typing import Any, Callable, List, Mapping, Optional
from dataclasses_j... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
03c5c7703d45d7df69e6b66301140f861aecac0e | 332038c76407980256a2f158d96f20ad3238290f | /bbcpex_script_hook.py | 6798eb38a9e25bbbc155f26f4fe03da82fb46dd1 | [] | no_license | SirRouzel/bbtools | 006df8ef121ddd44e83f204e485f9748a8d2d9c0 | 7388d18630d219dab4e1935e6dd8871c19e43aff | refs/heads/master | 2021-01-15T07:53:32.509996 | 2016-09-02T23:25:51 | 2016-09-02T23:25:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | from __future__ import print_function
import frida
import sys
import atexit
def cleanup():
global script
script.unload()
session = frida.attach("BBCPEX.exe")
'''
script = session.create_script("""
Interceptor.detachAll()
Interceptor.attach(ptr("%s"), function(args) {
var cmd = Memory.readUInt(args[0]);... | [
"dantarion@gmail.com"
] | dantarion@gmail.com |
52d4fbd81177b916ffa44311d25f2d7ac9ba02b3 | f60a800a22ca6906c1b5574a02c8346779e1d048 | /DL/kaggle/mnist/dataArgumentation.py | e5af7292b2202adc53d9c8250494934b211fc378 | [] | no_license | supeng0924/DeepLearning-Module | d56fe44fa76e9df4387a9aa26d2600a2c92948f1 | d43cec1074822abc5f3adc3635af5d8f269550d2 | refs/heads/master | 2021-02-14T16:08:15.507012 | 2020-03-07T12:38:39 | 2020-03-07T12:38:39 | 244,818,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from dataFunction import *
import pandas as pd
import numpy as np
import cv2
def main():
input_path="data/train.csv"
output_path="data/argumore.csv"
x_train, y_train=get_data(input_path)
x_train_img = converVecToImg(x_train)
print(x_train_img.shape)
for i in range(x_train_img.shape[0]):
... | [
"supeng819@163.com"
] | supeng819@163.com |
15f2cb2b424e8fec8fc75639a1b731e71c9a1848 | 5383b3232e214e5363618569d4890d8c1170ef87 | /chainer_computational_cost/cost_calculators/cost_calculators.py | 4d28f3b28cd72265c93ac0c38fb6752b9907a3ce | [
"MIT"
] | permissive | suga93/chainer_computational_cost | 7b291a71f8327b255023820ea7a814ee86edbd53 | 50869d3efebdff3e681213b98bebe097460369ab | refs/heads/master | 2020-05-23T03:44:51.389786 | 2019-05-14T14:40:12 | 2019-05-14T14:40:12 | 186,622,433 | 0 | 0 | MIT | 2019-05-14T12:57:12 | 2019-05-14T12:57:12 | null | UTF-8 | Python | false | false | 2,936 | py | from collections import OrderedDict
import importlib
import inspect
import six
import warnings
calculators = OrderedDict() # active calculators
# all the calculators including those cannot be activated
# (not disclosed to outside, but used by make_details_md.py)
all_calculators = OrderedDict()
def check_signatu... | [
"belltailjp@gmail.com"
] | belltailjp@gmail.com |
c7353fa19e9a9036da3f7516e782c9ad790622b3 | 018c4f87b34abfd8bf257efed60f6bcad4dc70c9 | /scrapy/taobao_comment/taobao_comment/spiders/taobao.py | bb28fa1b8175cdddbeb3eda61eeb4b23fdc1318c | [] | no_license | bidcms/crawler | 2881a62bd58db59f380a4f6ba11540cd9ae11a79 | 13bf1f02bc6c6817badf7d162c55169e276725b8 | refs/heads/master | 2023-06-07T10:26:57.520868 | 2021-07-17T17:21:41 | 2021-07-17T17:21:41 | 13,981,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,339 | py | import scrapy
from scrapy.spiders import CrawlSpider
from selenium import webdriver
import re,requests
#构建评论页表
def makeURL(itemId,sellerId,i):
url='http://rate.tmall.com/list_detail_rate.htm?itemId='\
+itemId+'&sellerId='+sellerId+'¤tPage='+i
return url
class taobaospider(CrawlSpider):
name ... | [
"bidcms@gmail.com"
] | bidcms@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.