blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e549a2d15c4662c8fce99e620ef3bffe70fcc3c | 779d1cc4dffe84b684151c960f32582d52a8dfab | /AMUN/scripts/rayMap.py | 96731428a442712d4fd5b9992685a88acb4ffc3a | [] | no_license | samgeen/mcrtscripts | 11a0492d150d8a18aa73c6c6bb261a6827bcea6a | d1ecb297daabc559e2a0ef045e5c032d4e492fb0 | refs/heads/master | 2023-08-08T04:54:08.234749 | 2023-07-28T12:39:56 | 2023-07-28T12:39:56 | 119,535,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,848 | py | '''
Calculates ray-traced maps with pymses
RB I guess but heavily taken from Sam Geen 2018
'''
# Get all the startup modules for the project
from startup import *
# Various extra pymses visualisation imports
from pymses.utils import constants as C
import pymses.analysis.visualization as v
scop = v.ScalarOperator
fro... | [
"samgeen@gmail.com"
] | samgeen@gmail.com |
aa0d8aa8f733ccf3ece29c14f5ecb5328bc7f469 | b3a2719f3950abc8ee3724e26d5af0ca4bb33940 | /article/migrations/0004_auto_20190110_1420.py | abe9d012cd0423fa5c3670c9b861fdcc46d65d23 | [] | no_license | iskylarkus/djangoblogapp | 828b79b3bbf33c2bb3866728d42460047b7fe36d | 52efdff19df91c762641e66bdfd3ffe87e1c18c5 | refs/heads/master | 2020-04-16T03:37:13.945501 | 2019-01-11T12:16:03 | 2019-01-11T12:16:03 | 165,237,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # Generated by Django 2.1.5 on 2019-01-10 11:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('article', '0003_comment'),
]
operations = [
migrations.AlterModelOptions(
name='article',
... | [
"turgay.kibar@gmail.com"
] | turgay.kibar@gmail.com |
7a6ef61f7854259825463f700d22f5aa87578b05 | 8306860aed8771dfb4e9f50a41e13b73c9c94f8a | /Decision Trees/code work/Building a Decision Tree-90.py | 4471ee14de3424b8d0c4c8a903a022d083c14916 | [] | no_license | iopkelvin/DataQuest | 5eea2c22cc8b2a14837f35b74fea334801bd2891 | 96525abc6bd5fca27c96997035e32ad9f76236a4 | refs/heads/master | 2020-05-03T11:50:51.714429 | 2020-04-23T23:51:21 | 2020-04-23T23:51:21 | 178,610,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,971 | py | ## 4. Determining the Column to Split On ##
def find_best_column(data, target_name, columns):
# Fill in the logic here to automatically find the column in columns to split on
information_gains = []
# Loop through and compute information gains
for col in columns:
information_gain = calc_informat... | [
"iopkelvin@gmail.com"
] | iopkelvin@gmail.com |
906110453982b3a15fab2e66ad28557d52786b5f | e0921b46a21d58c58f01d7313fcc8348a2acf944 | /photobase/settings.py | 22a8f423103770755620d8ea1eda0a2bbcb4d0f0 | [] | no_license | jcaxmacher/photobase | 03f1239d64ed77c8e837e24d008563c6aa1c6a40 | 0f99f967d287e9780852c322b910f914bec989a9 | refs/heads/master | 2021-05-27T22:07:55.424971 | 2012-11-13T16:07:45 | 2012-11-13T16:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | import os
DB_USER = os.environ['PHOTOBASE_DB_USER']
DB_PASSWORD = os.environ['PHOTOBASE_DB_PASSWORD']
HOME = os.path.realpath(os.path.join(
os.path.realpath(__file__), '../..'))
MEDIA_HOST = 'http://localhost:9898/'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Jeremy Axmacher', 'jeremy@obsole... | [
"jeremy@obsoleter.com"
] | jeremy@obsoleter.com |
e2a2d35c0ecf55ae88999eaaf4e84ea0e31ee1cc | 8af78f7e7a07243ba00eb1347dc86df9056207db | /myFlaskProject.wsgi | c4e849aafa608366ff9372b927b99a7c6f3e4b40 | [] | no_license | bellimeow/portfolio | d8d73c26aac1e776dbdce8c4638ab973b1638393 | db48d65ace0081639841915d74b539060ec0845c | refs/heads/master | 2022-10-05T06:42:09.906574 | 2022-10-02T01:42:09 | 2022-10-02T01:42:09 | 160,346,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | wsgi | import sys
sys.path.insert(0, "/var/www/html/TDP003-Portfolio/")
from myFlaskProject import app as application
| [
"root@ip-172-31-7-113.us-east-2.compute.internal"
] | root@ip-172-31-7-113.us-east-2.compute.internal |
2deecf0c6e29a31524a7193cfdef1a2282fe3a41 | 62c3148abdab12ba1bd8744c1ac9f7e6c65e075c | /userbot/plugins/pmpermit.py | c52aed644d4d0e090427a3d6aaa6babece057dc9 | [
"MIT"
] | permissive | Denver-sn/rushi | 1c62bdf9f69c9bece4b67a37e29202d19292a037 | 1c87de7886dcae75d3cd43a7e0da1c45c038fd70 | refs/heads/master | 2022-04-23T07:35:12.318291 | 2020-04-28T02:14:50 | 2020-04-28T02:14:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,117 | py | import asyncio
import io
import userbot.plugins.sql_helper.pmpermit_sql as pmpermit_sql
from telethon.tl.functions.users import GetFullUserRequest
from telethon import events, errors, functions, types
from userbot import ALIVE_NAME, LESS_SPAMMY
from userbot.utils import admin_cmd
PM_WARNS = {}
PREV_REPLY_MESSAGE = {}
... | [
"noreply@github.com"
] | noreply@github.com |
4e2c74cc722170506dc105fdc9e3821ce402548f | ce6c7126213b50e8413eb6ec6f76b929e3dfb426 | /pythonlearning/day1/day1test.py | a47f5785652b49bc5ac80dd380b39d56f63fb1c5 | [] | no_license | ImbaDDV/StockPython | 8bcafe788ca9383631466902720b91daa146afa7 | 48fd1536c269b3f8099ad496d83db1e8f59d53ea | refs/heads/master | 2020-03-17T23:27:35.763853 | 2019-11-05T00:53:04 | 2019-11-05T00:53:04 | 134,046,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import this
#美丽比丑陋好
Beautiful is better than ugly.
#显式比隐式好
Explicit is better than implicit.
#简单比复杂好
Simple is better than complex.
#复杂比凌乱好
Complex is better than complicated.
#扁平比嵌套好
Flat is better than nested.
#间隔比紧凑好
Sparse is better than dense.
#可读性很重要
Readability counts.
#特殊情况也不足以打破规则。
Special cases aren't specia... | [
"250110242@qq.com"
] | 250110242@qq.com |
d591a085d6bed761a3f54aeca065dd5e62184548 | b9c267434c191b97204c3be055cc5047d5d5092c | /wordcount/urls.py | b9e053c58f65c87a8ddc554a4c279f959c7a726f | [] | no_license | yuyan12/wordcount | 38e48dafb8a5ad9cbbefd27b1353349e82e3c2ac | 3c97ed9c09f34e4418cbe7fa5e1a46b4dc7c6ba3 | refs/heads/master | 2020-05-20T01:08:38.218197 | 2019-06-04T09:36:02 | 2019-06-04T09:36:02 | 185,303,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from django.contrib import admin
from django.urls import path
from . import function
from django.views.static import serve
urlpatterns = [
path('admin/', admin.site.urls),
path('', function.home),
path('count/', function.count),
path('about/', function.about),
]
| [
"390226569@qq.com"
] | 390226569@qq.com |
2a7d09228483b3b7c912600fea60bd9f300653f9 | 6b10d7a745b70d3b8533ea91b7bf1052e43b7d70 | /Week 4/Admin_page/main/migrations/0002_auto_20180930_2229.py | 9e5cf7c3c18d3c670ba02c13dfc5ff2f2fa3db2a | [] | no_license | Ablay09/BFDjango | 9701f6b1d36d54e6a2b511c57374e47ac0048d0e | c41423f5e86bad107769f518eeca2bfefd524919 | refs/heads/master | 2020-03-27T21:33:55.433951 | 2018-10-12T20:14:12 | 2018-10-12T20:14:12 | 147,101,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # Generated by Django 2.1.1 on 2018-09-30 16:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='task',
name='created_date',
... | [
"ablay.yedilbayev@gmail.com"
] | ablay.yedilbayev@gmail.com |
a4332e2eeb3b16dc757d9bfd3a5eed01ba25efe3 | fef7cfae5c35e7248a7057a83f9763c686a6397c | /theory/03-Data Structures/DS11.py | a0ad1543a11627897c9083d5cec976cf81efa782 | [] | no_license | beajmnz/IEDSbootcamp | 41710965712d7650d101cbe910ea061b1cbb4c2b | 0b03a7c54711df469025602847c0f2be8541d234 | refs/heads/main | 2023-06-06T03:16:25.690091 | 2021-06-25T10:41:39 | 2021-06-25T10:41:39 | 360,922,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | #! /usr/bin/python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 11 09:18:34 2021
@author: Bea Jimenez <bea.jimenez@alumni.ie.edu>
"""
"""
Create a program to erase duplicated values from a list
"""
inputValues = [16,2,3,45,5,6,72,8,9,45,7,6,3]
print(set(inputValues))
| [
"github@ainda.net"
] | github@ainda.net |
765efbd7c0417c2300d0bd70f7096fbee39eae6b | d664b7b142831d3e90f7bcecffa17aa7423d3c94 | /mysite/todo_list/forms.py | 046e3718153e381a793efcaf8c00b8d1f1c2c2fb | [] | no_license | riyad19811981/my_deploy | e5daf5ca3a6e748401a0f86fa423806933e9339f | 3b9897d986e1a2144f84eff01de7dbc511943bb0 | refs/heads/master | 2020-12-04T20:00:09.464146 | 2020-01-05T08:17:04 | 2020-01-05T08:17:04 | 227,063,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | from decimal import Decimal
from django import forms
from .models import Coin
from bootstrap_modal_forms.forms import BSModalForm
class CoinPopupForm(BSModalForm):
quantity = forms.IntegerField(min_value=1)
usa_price = forms.DecimalField(min_value=Decimal('0.01'))
class Meta:
model = Coin
... | [
"riyad.alkhatib@bmc.edu.sa"
] | riyad.alkhatib@bmc.edu.sa |
a1de6b0051b5f4b950da5fbc4317fa53cfa84f13 | 9e66291139f81eec328e14a8d6ee05ed9f95bee1 | /player.py | d3fa8f3addaeb5d1b9d16adef5143b6707529f62 | [] | no_license | rickmrts/hangman | 7708a58011197291f7b67e13dbbf15ec2610a61c | 7476f86e50e142d1e6ace63d1283dabec23d481e | refs/heads/master | 2021-01-20T19:14:38.797475 | 2016-08-15T21:07:48 | 2016-08-15T21:07:48 | 65,765,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!/usr/bin/python
# -*- coding: utf8 -*-
import socket,os
HOST = '191.52.64.227'
PORT = 3001
tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
dest = (HOST, PORT)
tcp.connect(dest)
print 'Para sair use CTRL+X\n'
msg = raw_input('Deseja iniciar o jogo pressione ENTER')
print(tcp.recv(2048))
while msg <> ('... | [
"noreply@github.com"
] | noreply@github.com |
691c3ff338a1ccb41c10aa1f1238e89443e8e37f | d7b1759310f6ef059a765c3e9985966552d7490c | /basicapp/admin.py | 9a1ebf76a1be45bc669e9edb65a133b60d02c36c | [] | no_license | dish34/Quiz | 611d549d591a2d0615178a0343418489cbc5f726 | 10ae37ca555d7551e2937fcfbe7cf13fa330467c | refs/heads/master | 2020-04-26T08:42:59.756441 | 2019-05-04T12:54:00 | 2019-05-04T12:54:00 | 173,432,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
from .models import UserForm
# Register your models here.
admin.site.register(UserForm)
| [
"dishantgandhi99@yahoo.com"
] | dishantgandhi99@yahoo.com |
8a24b16b84aa12b942e434c2a00f34fbfb6a0254 | 8062d8fdb9791fe39a6c727c26d3c4991ab71f6e | /chapter9/Demo9_3.py | 865e3056e61b8458e1e52285a85bb7daac58b64b | [] | no_license | ZzzwyPIN/python_work | 4922accd8a8a36b900f23737492fc4c899d38277 | 7629cb86966c75ff81f7e5ecae2e7ce9e5d4924b | refs/heads/master | 2021-05-06T02:46:39.750099 | 2018-01-21T11:23:12 | 2018-01-21T11:23:12 | 114,639,650 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # ~ import Demo9_2 as D9
from Demo9_2 import Car
class ElecticCar(Car):
def __init__(self,make,model,year):
super().__init__(make,model,year)
self.battery = Battery()
# ~ def describe_battery(self):
# ~ print("This car has a "+str(self.battery_size)+"-kWh battery.")
class Battery():
def __init__(self,battery_... | [
"ZzzwyPIN@foxmail.com"
] | ZzzwyPIN@foxmail.com |
a747c42a3ba38ba36e044fede4260bf142764225 | 41971a624f4c35ee338b48730d6a32d3a5fab124 | /reproducible workflows/palindrome example/palindrome.py | 8572435b7aff4f6f0604a0f596e9da4b10d80e50 | [] | no_license | Adamthe1st/class-2016 | 20aa83c2782cc47c6144cf7d619bc17f789f4405 | ece52390e403b01b139c25571dd2d9a8b574f3b6 | refs/heads/master | 2021-01-14T13:07:38.934641 | 2016-08-25T01:02:13 | 2016-08-25T01:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | def is_palindrome(pal):
pal = pal.lower()
pal = pal.strip()
return pal[::-1] == pal
| [
"antony.w.jarvis@gmail.com"
] | antony.w.jarvis@gmail.com |
1395c99a537d98d304841e52872cfc6822a474d5 | 7f26045078bf0d526f63b89a43fa169beffc473b | /String-1/left2/solution.py | 6a0329d5dc805a08320748a1e7b263725dee05a8 | [] | no_license | FarzanRashid/CodingBat-Solutions | 45cf7788132f227c03f4dcd49e2080e2f8ed77c2 | 168ae7becc98471da884c75cc482e3020318d634 | refs/heads/master | 2020-07-30T05:48:50.556782 | 2020-01-24T11:02:16 | 2020-01-24T11:02:16 | 210,107,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | def left2(str):
if len(str) == 2:
return str
first = str[:2]
last = str[2:]
return last + first
| [
"noreply@github.com"
] | noreply@github.com |
290d3203146f7bb21233768fb71048bd21a9cb74 | 91972cffc0e95e634c5752a2befdf141c494c24d | /module_study_samples/爬虫/1、笔趣看小说爬虫抓取.py | fb7fdd9afcbbd911bcdf9c43ee0aad059384549f | [] | no_license | liseen001/MyProjects | 99d48fe58109565eec4eabf027f892b4881b5df0 | 0572de7a6f78a9d9474971e98794d88bce03994d | refs/heads/master | 2023-05-15T06:02:19.969378 | 2020-09-07T15:31:08 | 2020-09-07T15:31:08 | 258,478,084 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!/usr/bin/env python
# encoding: utf-8
# @author: Mrliu
# @file: demo.py
# @time: 2020/5/13 23:09
# @desc:
'''
1、获取整个网页的HTML信息
2、解析HTML信息
'''
from bs4 import BeautifulSoup
import requests
if __name__=="__main__":
target="http://www.biqukan.com/1_1094/5403177.html"
req=requests.get(url=target)... | [
"939856019@qq.com"
] | 939856019@qq.com |
c07b75d16c6a9d140e590d268b51632f6b7f93bc | c8e44c50bcc77c6ad5d95516dcec8dada7c284bd | /gidgethub/abc.py | 444cf02043c0df46f44a1acc14c6f691ffc35f44 | [
"Apache-2.0"
] | permissive | Lukasa/gidgethub | 495510e276cd34f7b9c37431f3b3b011d02b0795 | 6b3dc032f1fcdf0fbf23dfb061f11588798c1e7e | refs/heads/master | 2021-01-18T16:04:54.012847 | 2017-03-08T00:51:29 | 2017-03-08T00:51:29 | 84,348,121 | 0 | 0 | null | 2017-03-08T17:31:09 | 2017-03-08T17:31:09 | null | UTF-8 | Python | false | false | 4,473 | py | """Provide an abstract base class for easier requests."""
import abc
import datetime
import json
from typing import Any, AsyncIterable, Dict, Mapping, Optional, Tuple
from . import sansio
class GitHubAPI(abc.ABC):
"""Provide an idiomatic API for making calls to GitHub's API."""
def __init__(self, requester... | [
"brett@python.org"
] | brett@python.org |
9d0ed1fa72fbe9742255eefb04af26b5ede59b67 | 141ea5938123655e1a0d24380afa70a58c33e413 | /categories/urls.py | a1b86ece6e5ce3b3705f056f0934def3f62fee15 | [] | no_license | stonaz/whereisit | 874c46dc2404985c9bb0af8d4c5ee9dbe43557cd | 8ed52e114e11d59311d7d12f49a393eef33b6839 | refs/heads/master | 2016-08-09T05:11:31.281910 | 2015-11-17T17:33:12 | 2015-11-17T17:33:12 | 44,975,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from django.conf.urls import patterns, url
from .views import *
urlpatterns = [
url(r'^$', CategoriesList.as_view(), name='api_categories_list'),
url(r'^create/', CategoriesCreate.as_view(), name='api_categories_create'),
url(r'^(?P<name>[-\w]+)/items/$', CategoryItemsList.as_view(), name='api_categories_... | [
"stefano.tonazzi@gmail.com"
] | stefano.tonazzi@gmail.com |
3f866b2afc8927073a27d67fb70a325eb82690d8 | 1449f7a0358c45d945dce46d3abdd1e4f55839c3 | /San_antonio17.py | ac4e39766708d3b189f0dd031f406733ff23ff77 | [] | no_license | moussmoly/San_antonio | 38029b5563cc3b4e957180bf30e959081f6dc55c | e26e763e58c96271b75202479880f797a603f651 | refs/heads/main | 2023-02-19T16:35:30.832902 | 2021-01-23T20:04:20 | 2021-01-23T20:04:20 | 331,104,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | quotes = ["Ecoutez-moi, Monsieur Shakespeare, nous avons beau être ou ne pas être, nous sommes !", "On doit pouvoir choisir entre s'écouter parler et se faire entendre."]
charaters = ["alvin et les Chipmunks", "Babar", "betty boop", "calimero", "casper", "le chat potté"]
def show_random_quote(my_list):
# TOO... | [
"noreply@github.com"
] | noreply@github.com |
07334d9196912091903131fa33922b73f1af153d | 2d7b6b3a2b098f3fbda61d250af77052caa0266d | /Support_Vector_Machine_Sigmoid.py | 0ef7c7d533db3bf9a79237031ac5dfb9ed022d50 | [] | no_license | Hariharan671/Diagnosis-Diabetes-in-Females-using-ML | 8d737c8f2d2795a32c7ec55cda12f19d257a6977 | d84157f04edaa7fb1c4074064388b65587356b34 | refs/heads/master | 2022-11-09T02:01:19.555869 | 2020-06-14T14:21:13 | 2020-06-14T14:21:13 | 272,215,053 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | #
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#
dataset =pd.read_csv('diabetes.csv')
X=dataset.iloc[:,0:8].values
y=dataset.iloc[:,8].values
#
from sklearn.preprocessing import LabelEncoder
y= LabelEncoder().fit_transform(y)
#
from sklearn.model_selection import train_test_split
X_train, X_te... | [
"haran8861@gmail.com"
] | haran8861@gmail.com |
c42037d31dd7f9c4f0f2dda2a683533738a8742e | 9d184b2b4706ace17a10af4dc3cdd6cfed932da6 | /cops_utils/dockercompose2run.py | 5b231f1a77d025e01b44b7fc920c2c037dcc6510 | [
"Apache-2.0"
] | permissive | cnadiminti/cops-utils | 6354c08fc4143ebf32aba07324effdc3c1b97998 | f33f56668bee427f7787b67185c5d7be2e5892f8 | refs/heads/master | 2021-01-20T22:19:46.415144 | 2016-08-27T17:37:09 | 2016-08-27T17:37:09 | 65,509,923 | 1 | 0 | null | 2016-08-24T05:05:57 | 2016-08-12T00:13:21 | Python | UTF-8 | Python | false | false | 6,076 | py | from compose.cli.command import project_from_options
from compose.cli.main import TopLevelCommand
from compose.config import errors
from docopt import docopt
from inspect import getdoc
import json
import logging
import sys
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.DEBUG)
def isValidComp... | [
"cnadimin@cisco.com"
] | cnadimin@cisco.com |
9cc7cb10f0a538f0d1963980d7b65342a1a57fde | b0e9f2b0ab848cb15828a916c775e96b0dee74d3 | /film.py | 2003ec915a1b59818d8434711135a5bc69efa495 | [] | no_license | agengowill/python_files | 31e48e1fe363eac1030cf59ad0957e457d70ee02 | d6bb9c430ce22e2c647d1e6ef8035e898461614f | refs/heads/main | 2023-02-26T14:30:05.002922 | 2021-02-09T07:57:41 | 2021-02-09T07:57:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | films = {"Star Wars":[13,17],
"Lion King":[4, 12],
"Game of Thrones":[16, 1],
"Toy Story":[9, 8]
}
print(films)
while True:
choice = input("What would you like to watch?: ").strip().title()
if choice in films:
age = int(input("How old are you?: "))
... | [
"noreply@github.com"
] | noreply@github.com |
67790833485b01272a5d8f7ba10d549f6bc187e6 | b7b8cac59c24c28efb3002f639865121d3b1f3e1 | /hyperion/grid/yt3_wrappers.py | fe04e9f80b875a00a54282dfaeb5b72899b325bd | [
"BSD-2-Clause"
] | permissive | koepferl/hyperion | 51a461f3cde30faa6dc82f63803b659a831273d1 | d43e1d06889e8b649038b85ef6721c64dd269a4e | refs/heads/master | 2020-04-01T19:11:18.373471 | 2015-01-14T13:31:36 | 2015-03-30T15:38:08 | 34,328,089 | 0 | 0 | null | 2015-04-21T13:17:41 | 2015-04-21T13:17:40 | null | UTF-8 | Python | false | false | 6,366 | py | from __future__ import print_function, division
import numpy as np
def almost_equal(a, b):
return a / b < 1. + 1.e-4 and b / a < 1. + 1.e-4
def amr_grid_to_yt_stream(levels, dust_id=0):
# Try and guess the refinement ratio - if it is not constant, then
# we can't use yt
if len(levels) == 0 or len... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
c6cd3915ef483b229d4fc4d2315e4b848abe529e | dc9d3677caa5f1587a1c608480d69d603f6402b8 | /pricetracker.py | 2362164a305c4b6148fd3e643e60810d0bf53ed5 | [
"MIT"
] | permissive | bedoherty/MagicTCGPriceAPI | 327fe2279fd43ae95a942a16a3ac24f5a75c5977 | dea83a65f8a45e9fc916f8c4c36da3ad6589faad | refs/heads/master | 2021-01-15T13:01:46.185133 | 2014-09-04T19:48:02 | 2014-09-04T19:48:02 | 10,280,018 | 75 | 29 | null | 2014-11-16T23:20:23 | 2013-05-25T05:23:23 | Python | UTF-8 | Python | false | false | 125 | py | import json
from scraper import *
from ndbmodels import *
#
# Price Tracker Database System
#
#
# Updates a cards price
# | [
"bdoherty92@gmail.com"
] | bdoherty92@gmail.com |
67bd82c6736e3ac0503aaf31946a87f83b6a9bac | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnschedul.py | 2bda54c807c76dff011ebad9091ac3f000811ebe | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 219 | py | ii = [('CoolWHM2.py', 1), ('GodwWSL2.py', 1), ('AubePRP2.py', 1), ('PeckJNG.py', 2), ('LyttELD.py', 1), ('WadeJEB.py', 3), ('BachARE.py', 4), ('MereHHB3.py', 3), ('MereHHB.py', 2), ('ThomGLG.py', 1), ('MereHHB2.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
d9a5963fb110e739372a2e710c698e92a0122df3 | 05d82a2d64944083676bd4f8339fb0dab8d643b5 | /astar.py | c01e1c1b100cc8f1c937e6996596319f9ccfddaa | [] | no_license | Mostafa-Ebrahim/AI-Maze | 2bc12458bb85c9ad7cd030940d80fd8ed1dcbcff | d91220ffda467ce0ad9fd5459a52b24be5e7ea6d | refs/heads/main | 2023-05-14T19:19:52.307564 | 2021-06-09T21:25:32 | 2021-06-09T21:25:32 | 369,823,614 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | from data_structure import *
from publicFunctions import *
def astar(self):
self.num_visitedNodes = -2
h=heu(self, self.start)
startNode = Node(state=self.start, parent=None, action=None, heuristic=h, cost=0)
availableNodes = []
self.visitedNodes = set()
availableNodes.append(startNode)
... | [
"mostafa-ebrahim@outlook.com"
] | mostafa-ebrahim@outlook.com |
40bfd6b2d53f43ebd7039a79a1d0df64f193dd3e | f96636810509786bd7afdfb1580fd276b930ade1 | /client/sendDiagPopup.py | cbc672534de873b006ab10258fe7a3a4006185e6 | [] | no_license | Bharathkumar-nb/SCSI-simulation | 0b0d47fa2bce028e6214bf3e348c4be28cfaa118 | c94041043793deaa1ac4a1298eca9685952ff1eb | refs/heads/master | 2021-01-20T10:29:15.966464 | 2013-05-03T07:39:38 | 2013-05-03T07:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'send_diagnostic.ui'
#
# Created: Sat Apr 27 09:51:24 2013
# by: PyQt4 UI code generator 4.9.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except... | [
"bharathkmr.nb@gmail.com"
] | bharathkmr.nb@gmail.com |
d7b812c4e3569b9347b0e42e8398bfb64a6ec5b9 | 8df729c46a215884c440e846cf479f97040b40f1 | /wrokshoppro/wrokshopapp/views.py | e2626feb6ba63da87eaa2e6c10c8284b38c48498 | [] | no_license | WWWKumar/dj6pm | 511209cd1ff3b3871c7f2303ac9927b2c5ab9395 | 343193414e7bd7f883753169ea2113c65a72ea20 | refs/heads/master | 2020-06-01T04:11:15.900524 | 2019-06-03T04:05:53 | 2019-06-03T04:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.shortcuts import render
def main_page(request):
return render(request,'base.html')
def home_page(request):
return render(request,'home_page.html')
def contact_page(request):
return render(request,'contact_page.html')
def courses_page(request):
return render(request,'courses_page.html')
... | [
"noreply@github.com"
] | noreply@github.com |
008a89b319ed4a9211ee9d2d65f96c9467356a4a | 6424a74f9400b8e3584b90ad214fd304446d6efe | /max_heap/test_max_heap.py | 8043db0af1f37c8f772a3d0c06a394c0e8d3d1ee | [
"MIT"
] | permissive | nitinbhojwani/lods | f8a131728d01c08d7e29555110144e0efdf5a020 | bd8e71d55d315bc5e0921183d7dae8e7087681a4 | refs/heads/master | 2021-01-22T11:04:14.803371 | 2018-06-11T05:28:45 | 2018-06-11T05:28:45 | 59,009,481 | 0 | 0 | MIT | 2018-06-11T05:28:46 | 2016-05-17T09:36:37 | Python | UTF-8 | Python | false | false | 1,161 | py | import unittest
from max_heap import max_heap
class TestMaxHeap(unittest.TestCase):
def setUp(self):
self.max_heap = max_heap.MaxHeap(100)
self.max_heap.heap = [i for i in range(100, 90, -1)]
self.max_heap.heap_size = 10
def test_get_max(self):
self.assertEqual(self.max_heap.g... | [
"nitinbhojwani1993@gmail.com"
] | nitinbhojwani1993@gmail.com |
4f558bba1f95dee3737c35a6cd6008ed21b19021 | f070c3acba7da2254adc2c12f80e54b830396d40 | /phoenix/common/lock.py | bb3031891198e740628082529aa1a2e7b02c24da | [] | no_license | liruidesysu/cloudCluster | 241a6ac472ecce9c6b4c966a44304128d258fc9b | fc558b464c3052f59cb1e6326aa22bade556b0c8 | refs/heads/master | 2022-11-06T03:51:31.954607 | 2019-08-22T12:47:53 | 2019-08-22T12:47:53 | 200,144,454 | 0 | 1 | null | 2022-03-29T21:56:02 | 2019-08-02T01:42:17 | Python | UTF-8 | Python | false | false | 3,386 | py | # -*- coding:utf-8 -*-
# Copyright (c) 2016 Vinzor Co.,Ltd.
#
# lock
#
# Created by fengyc at 16/5/18
# 16/5/18 fengyc: Create lock
import os
import time
import errno
from ..exception import BaseException
class LockException(BaseException):
"""Generic lock exception"""
pass
class FileLockException(LockEx... | [
"liruide_sysu@outlook.com"
] | liruide_sysu@outlook.com |
c18d921ae0193999e50c3338679a705c05416576 | 5cfab7ffa35694f17957470d49be27e39894ed5d | /mkiv_gps_to_utm29N/gps_to_utm29n.py | 28081195b2414cf8dd04040dbac23ea87d828437 | [] | no_license | Dijals/uhi_projects | 366c869e0114934293b715291b5adbcff335d1e0 | 1b10c464dd435668d007f06e2248e9c3d2d5b29a | refs/heads/master | 2021-01-01T18:19:55.591051 | 2017-09-26T14:59:17 | 2017-09-26T14:59:17 | 98,305,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import pyproj
from datetime import datetime
def convertCoords(dictionary):
""" This Converts lat and long values into a UTM 29 North values"""
inProj = pyproj.Proj(init='epsg:4326')
outProj = pyproj.Proj(init='epsg:32629')
... | [
"06021124@uhi.ac.uk"
] | 06021124@uhi.ac.uk |
c80c3d0f5067b464b6e8113440175e74d3543dd2 | 1950ade9ea5c8b43762125ce335a2d7a32cac32c | /Hello-producer/producer_sync.py | b60da5003d613382b4342dc089e1dbc60a629cc8 | [
"MIT"
] | permissive | mydevground/ApacheKafkaPython | a5cfd3ea9cc09b6e311bd88cc5a5f8164b743680 | 96da0e5d0294a9823776f9622fca6a3b46ff06bb | refs/heads/main | 2023-08-17T08:05:52.526064 | 2021-09-26T06:26:15 | 2021-09-26T06:26:15 | 410,462,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | from confluent_kafka import Producer
import socket
if __name__ == '__main__':
print("Starting Kafka Producer")
producer_config = {'client.id': socket.gethostname(),
'bootstrap.servers': 'localhost:9092'}
print("Creating Producer")
producer = Producer(producer_config)
print... | [
"noreply@github.com"
] | noreply@github.com |
5db77f5c0ccc08e6f16c479642688f934e405b8b | 6757339759559cc741178ed4236b449ff27df221 | /chrZ_make_seq_for_ldhelmet.py | 5833cc08ecd26ce0740ee512fb400e2178dbabf0 | [] | no_license | anandksrao/postdoc | 18095f675cc5d67bc6e6a1b70bdc7dca29ac880d | a09e2d810bc4b562dc0e6de2999c063f5bd59cf8 | refs/heads/master | 2020-04-22T23:28:03.482966 | 2015-09-08T16:40:24 | 2015-09-08T16:40:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,695 | py | import re
import glob
import sys
import subprocess
import os
import copy
import argparse
import gzip
import time
def get_vcf_var(vcf_file, min_allele):
site_freq = {}
vcf_f = gzip.open(vcf_file, 'r')
for l in vcf_f:
if not re.search('^#', l):
d =... | [
"sonal.singhal1@gmail.com"
] | sonal.singhal1@gmail.com |
63508df4d0df451b9d0818de91691ffcd18a74bb | f5a53f0f2770e4d7b3fdace83486452ddcc996e1 | /env3/lib/python3.6/site-packages/django_rq/workers.py | b6f23d91a3623ea4116dcd4691f19e56d13e2a11 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | fireman0865/PingBox | 35e8fc9966b51320d571b63967e352a134022128 | 0f00eaf88b88e9441fffd5173a1501e56c13db03 | refs/heads/master | 2023-01-20T07:55:59.433046 | 2020-03-15T13:36:31 | 2020-03-15T13:36:31 | 247,466,832 | 1 | 0 | Apache-2.0 | 2022-12-26T21:30:32 | 2020-03-15T12:59:16 | Python | UTF-8 | Python | false | false | 1,796 | py | from rq import Worker
from rq.utils import import_attribute
from django.conf import settings
from .jobs import get_job_class
from .queues import get_queues
def get_exception_handlers():
"""
Custom exception handlers could be defined in settings.py:
RQ = {
'EXCEPTION_HANDLERS': ['path.to.handler'... | [
"fireman0865@gmail.com"
] | fireman0865@gmail.com |
8270ffd09728abfad1698594a3891522b76e76c3 | 11e52e6c1f29acc9397598c32d5cdbd41658d7fc | /diplom_project/urls.py | d83f8fe9419f85c3bfc463d886660fc5d3259928 | [] | no_license | NemovAlexey/CollectionCafes | abf019c614ee1918fbea0c89ab7e25f42accf370 | 5d5803f92010556cd6ce669125ff911017f1f83e | refs/heads/master | 2016-09-05T19:55:28.307694 | 2015-02-21T00:20:08 | 2015-02-21T00:20:08 | 31,090,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('collection.urls', namespace="collection")),
)
| [
"nemov90@mail.ru"
] | nemov90@mail.ru |
3a23b26701ccfc73af6fef97637eab76dab9b738 | 0a43afbcba776ed8ada0fef5425b1507aa4d51c1 | /smartbook/smartbook/web/migrations/0016_auto__del_ownercompanyname__add_ownercompany.py | b443dac4b4ee2cee94af23d6f41f3b7c34b366fb | [] | no_license | geethusuresh/inventory-systems | c76d6d10429f483499594df8c8f34d780531f18c | fd4211d29042776fa47da92162cbbbe8220090cd | refs/heads/master | 2021-01-02T08:51:31.278578 | 2014-09-28T07:35:54 | 2014-09-28T07:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,583 | 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 model 'OwnerCompanyName'
db.delete_table(u'web_ownercompanyname')
# Adding model 'OwnerC... | [
"geethu@technomicssolutions.com"
] | geethu@technomicssolutions.com |
c17337b34e6a12393f145b985d5855df7dd0433c | af8fe43f94fb133ac6bc4ea3d024e9d7335016e9 | /BackEnd/app/service/lcypytools/mongo.py | de24eb6fe25669bf8424c73d69656872a4a582d7 | [
"MIT",
"Apache-2.0"
] | permissive | ResearcherInCS/Service-Wrapper | c1089d673b3f6fc28b769e110a36bd6f09c4f8ca | 181fd00d26fc3856ea4533c81466a91c4bda5226 | refs/heads/master | 2022-10-08T22:27:16.385837 | 2022-09-26T05:45:16 | 2022-09-26T05:45:16 | 185,415,543 | 4 | 1 | null | 2022-09-26T06:12:27 | 2019-05-07T14:11:53 | JavaScript | UTF-8 | Python | false | false | 1,699 | py | import pymongo as pm
class Mongo:
SEQS = "sys_seqs"
def __init__(self, db="test", server='localhost', port=27017):
self.client = pm.MongoClient(server, port)
self.db = self.client[db]
def __check_seq(self, col):
if self.db[self.SEQS].find_one({'col': col}) is None:
se... | [
"wangnaibo@vip.qq.com"
] | wangnaibo@vip.qq.com |
15d1147265a3c559d8787dd4859e5118dc217b23 | bba80af47cc4136f623c846bfa4d8cedbdb2d59a | /currency_rate_update/__init__.py | 952ce0feafdd2f74e85875f493b972f1e203fc5f | [] | no_license | TimLai125/cip-custom | 5cbec5dc959f102769a3fd48a370754db159038a | fb9c268d8074f596ab55f8cdd3a5bcbeda59f32e | refs/heads/7.0 | 2021-01-21T09:34:26.124681 | 2017-03-19T08:19:44 | 2017-03-19T08:19:44 | 91,659,099 | 0 | 0 | null | 2017-05-30T06:22:03 | 2017-05-18T06:51:17 | Python | UTF-8 | Python | false | false | 1,167 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2008 Camtocamp SA
# @author JB Aubort, Nicolas Bessi, Joel Grand-Guillaume
# European Central Bank and Polish National Bank
# invented by Grzegorz Grzelak
# Banxico implemented by Agus... | [
"tashiro@roomsfor.hk"
] | tashiro@roomsfor.hk |
2d29eaa8a6e04384a8a4f61826d7989a2b6cc61b | 9bff782c6cdf31909af87243dff27339fdfbb2ea | /stats/migrations/0011_country_flag_url_shiny.py | d1115cbff5b816392f91f3db4defe10f915768a2 | [
"MIT"
] | permissive | MalcerOne/provaTecWeb | 318bda2d1704f809ed27c8c539693c50d95b049a | 3e03b9e2d15d61a3b4e11779dd117325ed235137 | refs/heads/main | 2023-05-15T02:52:08.780522 | 2021-06-01T11:27:38 | 2021-06-01T11:27:38 | 370,856,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 3.2 on 2021-05-15 19:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stats', '0010_country_name_pt'),
]
operations = [
migrations.AddField(
model_name='country',
name='flag_url_shiny',
... | [
"48256253+MalcerOne@users.noreply.github.com"
] | 48256253+MalcerOne@users.noreply.github.com |
27f257de46027fbb7dd49506eec18129cc15f0fa | de1a88a61b2916e2edccd7713eba09eba76f860c | /toLowercase.py | 15d3cb01a58d0b5a58c554768073083c8fe41c65 | [] | no_license | veiserath/Leetcode | 36314c8432bb1dfccefffa1571de997d40c98fef | 6e5f0fd2111e3c3533d5482a01db2516d6078539 | refs/heads/main | 2023-01-01T20:26:14.792063 | 2020-10-26T16:44:20 | 2020-10-26T16:44:20 | 307,440,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | def toLowerCase( str: 'str') -> 'str':
str = str.lower()
return str
str = "LOVELY"
print(toLowerCase(str))
| [
"kacpermlodkowski@Kacpers-MacBook-Pro.local"
] | kacpermlodkowski@Kacpers-MacBook-Pro.local |
a3288f602eee49e3ec3a58ab82a0fded41ac85e2 | 0d034e8175974848672ac07bad9b531609a0c11f | /algorithmes/methodesApprochees.py | fdb671c3bafeff7890c375c8883b68069b4b9e6e | [] | no_license | Jean-BaptisteLy/Vertex-Cover | 8f50379ef606431546d65e22353c782df99981f2 | b27a8cce7d05870ab7f3f3c65d1da4e63d946d0f | refs/heads/master | 2022-09-22T06:21:53.838527 | 2020-05-30T11:36:23 | 2020-05-30T11:36:23 | 268,060,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,663 | py | import networkx as nwx
import numpy as np
import matplotlib.pyplot as plt
import time
from operator import itemgetter
import math
import sys
sys.path.append('../')
from algorithmes import graphes as gr
# III. Méthodes approchées
# Méthode du couplage maximal
'''Renvoie les sommets d'un couplage.'''
... | [
"noreply@github.com"
] | noreply@github.com |
0c27a868d331fa34f492ead654686ad2ed3aa133 | ca9bf050a13ef01a6d47f58d6a935361be94d11f | /Subscription Record in Text File.py | 48628f6b0e165b9b0d1682597c001903359478b7 | [] | no_license | viswaspal/PalRepository | ae98de5d6205d12d6915085f9035eb459ed729ec | 29394245f01f2e9f2abe371a29e6e00e366f691c | refs/heads/master | 2021-03-01T06:38:54.293489 | 2020-03-15T14:39:40 | 2020-03-15T14:39:40 | 245,761,506 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py | import tkinter as tk
from tkinter import ttk
win=tk.Tk()
win.title('SUBSCRIBTION RECORD TO A TEXT FILE')
#create Labels
name_label=ttk.Label(win,text='Enter your name:')
name_label.grid(row=0,column=0,sticky=tk.W)
age_label=ttk.Label(win,text="Enter your age")
age_label.grid(row=1,column=0,sticky=tk.W)
email_l... | [
"noreply@github.com"
] | noreply@github.com |
8122fbca7f34ed4c0b55cc6a3446e18f48de974f | d22512059dd8e36125af332d24dad949e3367186 | /demo9/demo2.py | ab865b12183f3c4c68a60fb1dcd884cf398f86b7 | [] | no_license | hbbaly/python-learn | 4a2019a03b0251fd7aeeba09b5f2a9f2696ae2e2 | 00a8aefa29f8492ef9ac842cb1eeb0fd4237e7cd | refs/heads/master | 2020-04-15T01:19:00.978659 | 2019-07-22T05:09:56 | 2019-07-22T05:09:56 | 164,271,947 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # Python内置的logging模块可以非常容易地记录错误信息:
import logging
def foo(s):
return 10 / int(s)
def bar(s):
return foo(s) * 2
def main():
try:
bar('0')
except Exception as e:
logging.exception(e)
main()
print('END')
# 同样是出错,但程序打印完错误信息后会继续执行,并正常退出 | [
"1422699902@qq.com"
] | 1422699902@qq.com |
ec8b553ae8cb5eaa7db3fa145415818ceb91d1fc | d1a546a51fe785e37a17df74e4c16a5e83c393d0 | /src/credentials.py | e4d2000a26b7cf44b478172c0574fb41b2419824 | [] | no_license | ramo16/resourceMonitorOpenStack | d37cf1ddc769639692ab2c701cc1db17193c3cb1 | c8fda2e41dcefaff3b18a63af830a167872ba16e | refs/heads/master | 2020-04-06T09:32:20.101982 | 2018-10-06T21:38:04 | 2018-10-06T21:38:04 | 157,346,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | auth_url1="http://172.16.0.3:5000/v3"
username1="admin"
password1="admin"
project_name1="admin"
user_domain_id1="default"
project_domain_id1="default"
| [
"vamsi_mogallapu@yahoo.in"
] | vamsi_mogallapu@yahoo.in |
2a9e904f25c5709fdad6907360013198b414556b | 0bf27c92ccd48bdcb93556fad564e9d3dee5e281 | /data_structures/utils_sorted.py | b44ed8a192f98de67960f3c0a4949fb2775eb9dc | [] | no_license | alltej/kb-python | 3150a8a7deee781c3ffaf2736de6dfd9d83cf7d9 | f1d262aadc12922dc48feb5d475feb37447c179f | refs/heads/master | 2020-05-15T05:45:29.109687 | 2019-06-17T21:22:47 | 2019-06-17T21:22:47 | 182,109,843 | 0 | 0 | null | 2019-04-23T19:16:56 | 2019-04-18T15:09:34 | Python | UTF-8 | Python | false | false | 851 | py | import unittest
class TestSorted(unittest.TestCase):
# Return a new sorted list from the elements of a sequence O(n log n):
def test_sorted(self):
seq = sorted([2, 5, 1, 8, 7, 9])
self.assertEqual([1, 2, 5, 7, 8, 9], seq, "sorted integers")
def test_sorted_string(self):
seq = sor... | [
"allan.tejano@gmail.com"
] | allan.tejano@gmail.com |
530e6e1ec75713dcd70337cd30e7b026850d8a84 | ffd52dcc43c291f1161a2773399944cdb1f73af6 | /venv/Scripts/pip-script.py | 54648cc6bb1f39d5395a0fc6029a97d11c3a0d0d | [] | no_license | SilverOwnz/BizPage | a3f5ff96914fe9c71e2a9cbe0ba622dc6ba4d635 | 41d67311db823ecb2cd49f4f76498f635de03c99 | refs/heads/master | 2020-04-19T06:18:51.744202 | 2019-01-28T18:33:00 | 2019-01-28T18:33:07 | 168,013,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!D:\School\S2\OO\ProjecT\BizPage\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__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])
... | [
"titusnyz@hotmail.com"
] | titusnyz@hotmail.com |
3adee2598ee3c396212afb528a7c34b97b70c797 | e84500cf19894b20787bd2bdb4d896769b2db4ea | /Transformer1Stage/transformer_imputation_taxi.py | ad41343eb5fd7777469e9aa9459fa17f343faa4c | [] | no_license | pbansal5/contextualised_outlier_detection | 040cad064a067d4fcef1988f5d522fca05c9ef8e | 52d17b83cfc26458125e5063e4df4a5177dc7014 | refs/heads/master | 2023-02-04T03:18:17.469823 | 2020-12-03T14:57:06 | 2020-12-03T14:57:06 | 292,353,363 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,968 | py | import torch
import numpy as np
import argparse
import torch.nn as nn
from torch.utils.tensorboard import SummaryWriter
import os,copy
import matplotlib.pyplot as plt
import _pickle as cPickle
from transformer_imputation_helper import *
torch.backends.cudnn.benchmark = False
torch.backends.cudnn.deterministic = True
to... | [
"pbansal@cat.cse.iitb.ac.in"
] | pbansal@cat.cse.iitb.ac.in |
0bb3e56a9733effdf766bfce3a8c8939906cf35e | fc5fc003f5234222dad9878b43b254d2c694c019 | /movies/apps/core/context_processors.py | b990c0d1e1563f55d486046c2576bb5554f7136c | [] | no_license | alrtve/movies-project | 25c4ab408414fd69975bf0b7728c37094945301a | b76f2fb29cbdb35e42d301660544424df94d047d | refs/heads/master | 2021-05-27T00:04:43.474371 | 2013-03-09T16:16:06 | 2013-03-09T16:16:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | # -*- coding: utf-8 -*-
from collections import OrderedDict
from django.contrib.sites.models import Site
from django.core.urlresolvers import resolve
from django.utils.translation import ugettext_lazy as _
def site_url(request):
current_site = Site.objects.get_current()
domain = current_site.domain
if req... | [
"imposeren@gmail.com"
] | imposeren@gmail.com |
8b92d801b14bce7463cefb8954677a9b0694325a | 415920616d5efccee4667126c4bb29f91f1d5321 | /blood/donor/urls.py | f4eb33826ecb67e2f4cedf717f45045d210213b2 | [] | no_license | ManogaranArumugam/blood | 6c779b3bfe308a95d52cb730be65b25cb2c3eda6 | bb6ef86bfeaf67ed70eafa97dcb6b6c1da0c9f4f | refs/heads/master | 2020-03-25T22:43:31.004539 | 2018-08-09T12:43:50 | 2018-08-09T12:43:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.conf.urls import url
from blood.donor.views import DonorRegistrationView
urlpatterns = [
url(r'^$', DonorRegistrationView.as_view(), name='home'),
] | [
"palashpatidar51@gmail.com"
] | palashpatidar51@gmail.com |
24093bae9dc7c1e7280719ba3c1cc7df4b73b899 | b958d189d1a2db61401009304d8be51eb893bc85 | /1098.py | 8d34b3078cfcf598aed110d32c9453c96bc57319 | [] | no_license | bergamojoao/URI-EXERCICIOS | 6f110b42fef884f01f0838542b060fc39c4567f3 | 469f4169b51dfc2d8784c37bc3fb5388b49916ab | refs/heads/master | 2022-12-05T03:36:48.273395 | 2020-01-22T15:45:29 | 2020-01-22T15:45:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | i=0.0
j=1.0
cont=0
while(i<=2):
if i==0 or i==1 or (i>1.9 and i<2.1):
print("I=%.0f J=%.0f"%(i,j+i))
else:print("I=%.1f J=%.1f"%(i,j+i))
cont+=1
j+=1
if(cont==3):
j=1
i+=0.2
cont=0
| [
"44981295+joao-alex@users.noreply.github.com"
] | 44981295+joao-alex@users.noreply.github.com |
6c340cf04b054bb75cdfb63b9fbdf78c10395714 | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /build/pal_statistics/catkin_generated/generate_cached_setup.py | 91044b831264767383d53fe4fda54ceccbaa6122 | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
dc88161b5d8d500e6690c009b412a3ae97a3d9ef | b141f9ca341747dc9620cd808d2b863f874f577f | /ECE 568/Ride Sharing Web-App/docker-deploy/web-app/users/models.py | 2c904c8c61ddd445996600592bf6cf08887d0123 | [] | no_license | YunheWang0813/Duke-Repository | 4b22da0629581c5cccac62e4c88780d29c781fa2 | 75a33b43543dd716f61096f19e5463e936bb6b57 | refs/heads/master | 2022-01-26T19:11:22.012376 | 2019-05-24T04:41:50 | 2019-05-24T04:41:50 | 169,663,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.core.exceptions import ObjectDoesNotExist
class Profile(models.Model):
us... | [
"41502154+YunheWang0813@users.noreply.github.com"
] | 41502154+YunheWang0813@users.noreply.github.com |
4c083d6d78644db66a42639c3cda79d2b1ac0645 | d7db35beeff7a69d45991e6bb81b047dbc8484f6 | /Ex1 Code V2.py | 430b1740f27637d94e628aa3ed75603d3f8ed703 | [] | no_license | angus-101/arctan-expansion | 1905f7f9e7508993ffba64a4600bf99b2e8b525a | 2b70375f51aa56bfa16ec40988e97e8c1b19f1aa | refs/heads/main | 2023-06-12T11:59:47.286998 | 2021-07-03T14:24:41 | 2021-07-03T14:24:41 | 382,633,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,263 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 26 18:25:02 2018
"""
import math
def MyArcTan(x,N): #Lines 10 - 37 are the creation of the function MyArcTan
arctan = float(0) ... | [
"noreply@github.com"
] | noreply@github.com |
b1c8ee50621b39521bfad65285e3a363f2bc8815 | 86544002e3b294b25422be9075b5ee1fde317406 | /templado/views.py | 71de47e6fd2fee40377855511567ea13ca50aaad | [
"BSD-2-Clause"
] | permissive | nnkps/templado | 5fecaf68175da3e17c64e4480790a16f64cc21a4 | 660bb430b06d34286ecb9d21ae88279277bf92fc | refs/heads/master | 2021-08-19T15:39:00.149708 | 2015-06-03T11:48:50 | 2015-06-03T11:48:50 | 31,314,543 | 0 | 2 | BSD-2-Clause | 2021-06-10T17:24:03 | 2015-02-25T13:23:24 | Python | UTF-8 | Python | false | false | 7,525 | py | import os
from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import render, get_object_or_404, redirect
from django.views.generic import View
from django.views.generic.list import ListView
import errno
from models import Report, ReportTemplate
from .modelforms import ReportTempl... | [
"kups@student.agh.edu.pl"
] | kups@student.agh.edu.pl |
2fb79ba640f6125fff6232eb090cdfcf9eb51092 | 4c1bbc8029af3e0df677931520a095f3f1d9f47d | /docker.py | 15dc71f4d3b248b026fe57b8dc0fc3fba923c696 | [] | no_license | Arth2020-11-3/task-8 | 76f6051e7015d3138a067d07a32ab1dcbc86ae70 | d1ba67add8fba8f40bb8a0defd285983142ee360 | refs/heads/main | 2023-01-22T12:38:11.353712 | 2020-11-12T17:44:47 | 2020-11-12T17:44:47 | 311,077,576 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,641 | py | import os
import getpass
os.system("clear")
print("---------------------------------------------------------------------------------------------------------------------------------------")
print(" Welcome in the Devops World... !!!")
print("------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
9ed5dc928c72b73934edf7f770a5d1d04c08cc49 | 4ba748307e0cc32c2b53cf39a446d04d129796c3 | /Represented_Value_Function_MARL/examples/battle_model/senario_battle.py | ff2f6206329014d4be72c64298b89aabb03ca7cd | [] | no_license | phymucs/RFQ-RFAC | 0c445c12045d25ba6ec5fe5538886c90b7bff440 | 309fbd3b1d342a0e1917a7c5de2bc567e5da0fc7 | refs/heads/master | 2020-12-16T23:34:16.463258 | 2020-01-10T06:34:14 | 2020-01-10T06:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,109 | py | import random
import math
import numpy as np
from examples.battle_model.adjacency_matrix import adjacency_matrix
################
total_num=[0,0]
def generate_map(env, map_size, handles,fix):
""" generate a map, which consists of two squares of agents"""
width = height = map_size
init_num =map_size * map_s... | [
"weiyren.phd@gmail.com"
] | weiyren.phd@gmail.com |
85c05c9f8feb5a30e0fb05f45c7f31e82f6e6ab8 | 8bff9e80f325511e5b555a6ae9234d9df18efb35 | /register.py | 98df6de8c92b2272e2c34ba1c058ee64d08ad955 | [] | no_license | renizoo/md5_bruceforce_Login | a1a134eb4202ef45e6bd35b75ad1e51a0e3340c0 | e5f6362e60fd570edda633c64a9171b9feaf7408 | refs/heads/master | 2020-08-28T01:17:54.201730 | 2019-11-01T19:59:55 | 2019-11-01T19:59:55 | 217,544,810 | 0 | 1 | null | 2019-10-26T03:38:56 | 2019-10-25T13:53:28 | Python | UTF-8 | Python | false | false | 741 | py | import hashlib
class Register:
def __init__(self, file_name):
self.file_name = file_name
def new_user(self):
with open(self.file_name, 'w+') as file:
file.write("user;password\n")
while True:
user = input("Enter username: ")
password = ... | [
"matheus.henrique@pgmais.com.br"
] | matheus.henrique@pgmais.com.br |
623fa8a31fe179cc5de5d93455b1af1d8a915197 | 47f6c4805fc5d54cf8de6291ded64ff00e61c605 | /DataPreProcess.py | 363ebe8fa6229968b4885225795dbb5ffdf0924b | [] | no_license | ConorFyfe98/AI-Emotion-Recogntion | 94511fd04a604edc4135b7f66c3837bb84ce987f | 9c284c555dc44f96c93112342b881454e4a354dc | refs/heads/master | 2022-07-05T10:55:25.534530 | 2020-05-19T02:55:45 | 2020-05-19T02:55:45 | 265,125,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py | import cv2
import glob
#initalise classifiers
faceDetectionOne = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
faceDetectionTwo = cv2.CascadeClassifier("haarcascade_frontalface_alt2.xml")
faceDetectionThree = cv2.CascadeClassifier("haarcascade_frontalface_alt.xml")
faceDetectionFour = cv2.CascadeClassif... | [
"43172506+ConorFyfe98@users.noreply.github.com"
] | 43172506+ConorFyfe98@users.noreply.github.com |
23f070696de85a6f7dbf990a5158be571dd1cd7f | 579be1210e2e99dfcda7017f2fb21f16cd567b21 | /Academica/admin.py | a96613555ac9d132d9988a9e578ef6c1e7b44209 | [] | no_license | ccanasj/Taller2 | a8a1282b8a062bbfd98e62ef1c48377a2cefc054 | 2c2855894ae4ba8fe1c9da481205a7f4918c3cfc | refs/heads/master | 2023-08-22T21:15:41.434444 | 2021-10-21T17:13:24 | 2021-10-21T17:13:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from django.contrib import admin
from Academica.models import *
# Register your models here.
admin.site.register(Carrera)
admin.site.register(Estudiante)
admin.site.register(Curso)
admin.site.register(Matricula) | [
"ccanasj@eafit.edu.co"
] | ccanasj@eafit.edu.co |
d66ee899cae8064d4341eae698a940e437626826 | 48997954c0e4af29dd8ae17cbfde6081fc225dcc | /PROJ_COD/Machine/kwon/UI/CKfolderOPEN.py | 9105e186c2c158c4344d5777306c917c7449bf67 | [] | no_license | annie522/kitri | 7c7fd9e6ab015a94051b398704d39df09ba8966d | 5ae2e8f5ee7e15cd1b0e828ee63e30a320746317 | refs/heads/master | 2021-01-22T10:57:01.778072 | 2017-07-26T00:40:25 | 2017-07-26T00:40:25 | 92,664,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from test import *
class XWindow(MainWindow, QtGui, MainWindow.Ui_MainWindow):
def __init__(self):
MainWindow.__init__(self)
self.setupUi(self)
self.initData()
self.
QtGui.QtWidgets.__init__(self,parent)
self.ui=Ui_MainWindow()
self.... | [
"zzabzz21@naver.com"
] | zzabzz21@naver.com |
d990085ee1de82a9028c0cdb73722cd26095f533 | ffe0372fb35509b2e1297adc8d4bdc30d9871574 | /web-application/acceptance_tests/features/check_result.py | ab3b2e79db14c8f877057f42fdbf92dea2e7a4f4 | [] | no_license | AttractorSoftware/educationkg | cf3dcfdb664fa2cdf05ece2d979bd2bf3ac72143 | 0a155f65ca83eed9c0f0fab29b3ce0277cde41ea | refs/heads/master | 2021-06-10T15:35:39.543000 | 2016-10-01T03:37:18 | 2016-10-01T03:37:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # coding=utf-8
from time import sleep
from lettuce import step, world
from selenium.common.exceptions import StaleElementReferenceException, NoSuchElementException
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.wait import WebDriverWait
from acceptance_tests.test_data i... | [
"me@nikitakoval.com"
] | me@nikitakoval.com |
c01eaa6d706a016f0c92220a931f8a6dedefc1ed | e1d8b0bbd95aefb402b50b36afce4d6a5c6b492a | /Junk/MNIST_dataset_downloader.py | 991d7595f7b519d2aa4205f2d072c98c7230d31c | [] | no_license | himanshubabal/Google-Street-View-House-Numbers | b4e95426a9352a540115590c3e6e6f5f8f4f60da | bead00a11d065be74cec54f22fb3537dbdd17c90 | refs/heads/master | 2020-06-14T23:07:20.711057 | 2017-09-15T23:22:27 | 2017-09-15T23:22:27 | 75,401,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,207 | py | from __future__ import print_function
import os
import sys
import gzip
from six.moves.urllib.request import urlretrieve
from sklearn.preprocessing import OneHotEncoder
import pickle
import scipy.io
import idx2numpy
import numpy as np
url = 'http://yann.lecun.com/exdb/mnist/'
last_percent_reported = None
'''
This File ... | [
"babal.himanshu@gmail.com"
] | babal.himanshu@gmail.com |
17d69db0e36609e6fa29e23c6e325a9f2dc5501a | b249a5c94a8d9f0a24380e5c9eb3ae6d1d15080b | /profiles_api/urls.py | f50beb45b42219eb07b5902962ab727633c30ae0 | [
"MIT"
] | permissive | SanjayBhattacharya/profiles-rest-api | 64ee947a477b533b514c41fc579289f732849098 | 00dc79501175b665e8b9deafa7569871827f67a3 | refs/heads/master | 2020-12-03T21:56:27.012342 | 2020-01-05T15:27:03 | 2020-01-05T15:27:03 | 231,498,665 | 0 | 0 | MIT | 2020-01-03T20:39:07 | 2020-01-03T02:41:53 | Python | UTF-8 | Python | false | false | 387 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from profiles_api import views
router = DefaultRouter()
router.register('hello-viewset', views.HelloViewSet, basename='hello-viewset')
router.register('profile', views.UserProfileViewSet)
urlpatterns = [
path('hello-view/', v... | [
"sanjay.bhattacharya@aegeanllc.com"
] | sanjay.bhattacharya@aegeanllc.com |
55565979bd9e9ceb8e3a4424587b82a4a4a0688a | b94ab99f9c1f8bbb99afd23e1bfcd2332060b4bd | /library/migrations/0012_auto_20170805_0851.py | 050383e317e1d09ac7e3c45f3c1ea4e50db4dfca | [] | no_license | georgecai904/bookshelf | e54ccae00d4ee48e91ca1564a425ba4586b52d93 | 0002207dc8ca586ce1127d3ea98bb53102d043df | refs/heads/master | 2021-01-02T22:52:26.046535 | 2017-08-05T15:32:13 | 2017-08-05T15:32:13 | 99,409,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-05 08:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('library', '0011_auto_20170805_0850'),
]
operations = [
migrations.AlterFiel... | [
"georgemail608@gmail.com"
] | georgemail608@gmail.com |
4c0ac46f1d84771dc353dc57195fde968e23467e | 630fe47bb5aa5e49b45ab101d87c2dd2c53d180f | /Bubble_soft_json.py | 4670c4958ea3d09c64e4879c8e4c5913ea0222f9 | [] | no_license | shrivastava-himanshu/Leetcode_practice | 467497a58d82ff3ae2569d5e610dc6f27a1f31d6 | 4c59799947c2b17bfd22ca2a08707ef85e84a913 | refs/heads/main | 2023-06-12T13:14:45.381839 | 2021-07-05T04:09:05 | 2021-07-05T04:09:05 | 367,546,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | def bubble_sort_json(elements,key='name'):
size = len(elements)
for i in range(size-1):
swapped = False
for j in range(size-1-i):
a = elements[j][key]
b = elements[j+1][key]
if a > b:
tmp = elements[j]
elements[j] = elements[j+... | [
"Himanshu.Shrivastava@vce.com"
] | Himanshu.Shrivastava@vce.com |
48392241eae6089cfe00445e0f8f0ec1f1fed27e | b744483f325154dd49ca881e312f6b5a4135c0ce | /serialTest.py | a5bf23d3573ae4bcd8300e85fe89be44015bc565 | [] | no_license | soycoder/aqi-collect-data | 0ff261b4715b1e8c8cba69977c55793023999dc2 | 2b4aa1d607c4e7927b84702ab40b54c798a8097c | refs/heads/master | 2023-05-09T15:56:12.390232 | 2021-06-01T10:25:34 | 2021-06-01T10:25:34 | 241,322,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | dict_aqi = {
'TIME': "hndhgnghn","pm25":str(34)
}
minute = '00'
# ------Send DB----
sText = "aqi:"
for key, val in dict_aqi.items():
print(key, "=>", val)
if key == 'TIME':
pass
sText = sText + ":" + val
# print(sText)
sTest = sText.encode('utf-8')
print(sText)
# sendDB(sTest)
# ------Hourly-... | [
"43911669+soycoder@users.noreply.github.com"
] | 43911669+soycoder@users.noreply.github.com |
17d135b5162c6228ca2c1f628ff2746cdd76d2a8 | f394772a44665353a9a9ab8469bd3fd8e6b5bc34 | /Baekjoon_code/venv/Scripts/easy_install-script.py | 78842504432ccea3bc4e66d08b3d3a8819a5c667 | [] | no_license | john980302/study | 5091d2f1264875093cf765809c6a488cf3593b3c | 0434e95b3289cb49ffa3a9d143f6d12c7a14f51e | refs/heads/master | 2021-06-07T06:29:13.505100 | 2019-12-26T05:26:23 | 2019-12-26T05:26:23 | 138,966,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #!E:\git\study\Baekjoon_code\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"john1920@naver.com"
] | john1920@naver.com |
b5409dd8b4fda91b947887fcbd702807706906e9 | f12cba36c65d327969744c8234c229e1c2cf96b0 | /train_ssd.py | 8c851ccc959f5799bd10af72f251f33d38d291a6 | [
"MIT"
] | permissive | cooparation/detection_pytorch | 7440d63542a61a94ea1dc68131fc7cf0d6da9827 | fea3b5a04a13eba060406845a65ac07f177b6112 | refs/heads/master | 2020-04-08T22:51:50.482006 | 2019-04-01T12:10:14 | 2019-04-01T12:10:14 | 159,803,030 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,147 | py | import argparse
import logging
import os
import torch
import torch.distributed as dist
from torch.utils.data import DataLoader
from ssd.config import cfg
from ssd.data import samplers
from ssd.data.datasets import build_dataset
from ssd.engine.inference import do_evaluation
from ssd.engine.trainer import do_train
fro... | [
"sanjunliu@sina.com"
] | sanjunliu@sina.com |
542650ec2698610417fd1074ecee715e3a7ecf4e | 55d6de252e61c4b60688ebd8b1f637807acc1e7c | /sale_report/wizard/aged_customer_list.py | 6bee3ea9ef1268815749ad4cfb0996f5175cc12b | [] | no_license | mosadiqit/eerna_erp_uslbd | b707a1d49a4fce7c1543b63e0120e8f9b77b26ce | 73e3994a9e32df7809d244eb6592513162ab7853 | refs/heads/main | 2023-06-30T14:53:04.837197 | 2021-08-04T11:30:46 | 2021-08-04T11:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,133 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DATE_FORMAT
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT as DATETIME_FORMAT, BytesIO, xlsxwriter, base64
class AgedCustomerReportWizard(models.TransientModel):
_name = 'aged.customer.r... | [
"ibrahimalazhar264@gmail.com"
] | ibrahimalazhar264@gmail.com |
3f107a7c392a10a0025e3ec44b70abd605cd31cd | 523072f12729c1f30b12b2b686bc4958960b5988 | /payshare/purchases/migrations/0023_purchase_weights.py | 05db2b6958e1e1981d6d3a35bbfb32e8e21816c8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cb109/payshare | 6e1d37433d0f1feb4655049c4275f5e2d3704643 | 2d5653e7b61bb699f5539cb6fa89168279fcea03 | refs/heads/develop | 2023-07-25T02:42:57.606180 | 2022-09-22T19:28:19 | 2022-09-22T19:28:19 | 141,352,898 | 198 | 49 | MIT | 2023-07-18T23:19:57 | 2018-07-17T22:43:54 | Python | UTF-8 | Python | false | false | 638 | py | # Generated by Django 2.2.10 on 2022-09-17 06:14
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("purchases", "0022_purchaseweight"),
]
operation... | [
"buelter.christoph@gmail.com"
] | buelter.christoph@gmail.com |
939183e4c42f3a69fbd15190cec51760a9430334 | 11e0a1eb41c2f848012ef7037308249f2c4e9cc8 | /pmnspy/pca_demos/pmns_plotmags.py | 1255686ed2416d3613f7beee2881ef916505ff51 | [] | no_license | astroclark/BayesPMNS | 06e3187c787bed6f7c65f8a9b183b2a9fe1b5eb3 | af7106280756b8edcd404d8ded157cc3669c37d6 | refs/heads/master | 2021-03-24T14:01:34.266118 | 2018-03-08T21:13:10 | 2018-03-08T21:13:10 | 22,357,110 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,005 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Copyright (C) 2015-2016 James Clark <clark@physics.umass.edu>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or... | [
"james.clark@ligo.org"
] | james.clark@ligo.org |
5ca94b90b0ae7e87df133bf128176b47a4b0e783 | 135ec4b69c6abc44a364e419177a230619dc8d3a | /code/featureextractor.py | db685bafd54d376cd6a3da1628b9f19a7c846ed7 | [] | no_license | ad1407/multilingual-dependency-parser | b1cf6c40e8c6f703d7d8615df175f16d96ae9ac8 | 17c49fa39cc71e6a19fd66dfc1761c37b08295d0 | refs/heads/master | 2021-01-11T18:40:29.111429 | 2017-01-20T20:45:08 | 2017-01-20T20:45:08 | 79,596,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,319 | py | from nltk.compat import python_2_unicode_compatible
printed = False
@python_2_unicode_compatible
class FeatureExtractor(object):
@staticmethod
def _check_informative(feat, underscore_is_informative=False):
"""
Check whether a feature is informative
"""
if feat is None:
... | [
"priyadarshi.a@husky.neu.edu"
] | priyadarshi.a@husky.neu.edu |
075b2c4a4881cb3b268418a7976f88c895d6b4ff | 45bc6915b1f2d94544f9fc401200bfb592ea231b | /enocean/consolelogger.py | 53073366a909ec8d6c3af968f190dcaa9056cf24 | [
"MIT"
] | permissive | relihanl/enocean | 25345af232c768b319151cf0ef114a924705fb7b | 470874f3a46d073f4a91c99617037ef77b72042d | refs/heads/master | 2021-01-24T19:51:59.122235 | 2015-11-23T11:02:13 | 2015-11-23T11:02:13 | 46,991,879 | 1 | 0 | null | 2015-11-27T17:20:12 | 2015-11-27T17:20:12 | null | UTF-8 | Python | false | false | 438 | py | # -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import logging
def init_logging(level=logging.DEBUG):
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger('enocean')
logger.setLevel(logging.DEBUG)
... | [
"kipenroskaposti@gmail.com"
] | kipenroskaposti@gmail.com |
3b5792356a3fb44e3e25b986468fffbace4eb07c | cd128ed7445bec274a46bf02fb0f7b780d24d09f | /EGAN/KDD.py | d2a771e232f697d8bca0d47c3f3bebc2e3d976a6 | [] | no_license | crazybirl/GANs_AD | a1df8c036815bf5ab0a418bcce21268d62b06e19 | 96c7ca8cd136ebc597aa2d3a91f35cff75380106 | refs/heads/master | 2020-05-22T13:09:18.166278 | 2019-02-07T14:25:09 | 2019-02-07T14:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,080 | py | import logging
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
logger = logging.getLogger(__name__)
def get_train(*args):
"""Get training dataset for KDD 10 percent"""
return _get_adapted_dataset("train")
def get_test(... | [
"u6304568@anu.edu.au"
] | u6304568@anu.edu.au |
6512219c982a4ccb0632ebdebd5af0276328a901 | ee8463752b3ba509d48770ff5c3866015dd3112b | /NCID.py | a4e0290cb922ca060ca766bc9e6434e19d641fce | [] | no_license | sweeneyd/NCID | 24f2cb7619a49596ad715669ee35fd1303ba895a | 7ffade63c0a5b086d73e1e4d36984168497e20fa | refs/heads/master | 2020-07-22T01:05:41.561409 | 2015-01-27T23:00:12 | 2015-01-27T23:00:12 | 29,795,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,724 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 21 13:08:53 2015
@author: Dan
"""
import os
import cv2
import numpy as np
import csv
class NCID(object):
def __init__(self, root_directory='/Users/Dan/Desktop/ALDH+/', write2File=False, TOLERANCE=50):
self.directory = root_directory + 'RGB/'
self.TOL... | [
"sweeneyd@vt.edu"
] | sweeneyd@vt.edu |
b86ed9ea92f011c572e9d53af6322b9d79242597 | e06af38caaef4131c6bb6d0eb1543605567c5277 | /unit_tests/test_biomolecule_annotation.py | 92fdb679b5b813a5d11dad841cf4c1cbeb5a18c0 | [
"MIT"
] | permissive | highdxy/api_python_3decision | 17bb8081995b15cd3b5106e27c4d2b697de8494c | 322bdf8b5fdb5ed01b51fd58e4f5c044946d97a9 | refs/heads/master | 2023-02-24T14:04:22.778989 | 2021-01-28T15:36:29 | 2021-01-28T15:36:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,793 | py | import unittest
from api_python_3decision import api
import json
class AnnotationTests(unittest.TestCase):
annotationJson={"biomolecules": [{"general": {"biomoleculeCode": "HS90A_HUMAN"},"annotations": [{"value": {"AnnotationValueString": "test annotation"}}]}]}
annotationJson2=json.loads("""
{
"biomo... | [
"peter.schmidtke@discngine.com"
] | peter.schmidtke@discngine.com |
fd8c684dae8a103507e41eb9bd9c3c7324dd0b4b | 168f821d04431e113c655217f1c2904ec6c95af1 | /users/migrations/0004_auto_20180506_1315.py | ad7bc36dd4eb58ed0c3e936ad4d6ab840ee20b36 | [] | no_license | pratiksinghchauhan/lambda-player | e641a9de76d0fa238d9e9ac202e57fa0e1933b1d | f863052c777494e857e36b642e230183d85d23f7 | refs/heads/master | 2020-03-14T02:31:17.550214 | 2018-05-07T07:13:15 | 2018-05-07T07:13:15 | 131,400,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-05-06 13:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20180502_1358'),
]
operations = [
migrations.AlterField(... | [
"pratiksingh773@gmail.com"
] | pratiksingh773@gmail.com |
dcf9767daf6e0fcdef74961d8ba14fc6d42716a6 | 56271368a783ddea6e19013cbf265e75fcbc6d91 | /blog/urls.py | f0affec62ee6c023c41c111e20997040045fa013 | [] | no_license | zhennnnnn/myblog | 2c3b6828831e6afbd83276e85d72892fe36bcf24 | 4cc4bf075045ea7b27c0379523264a3caee84c39 | refs/heads/master | 2020-04-24T16:25:49.819321 | 2019-05-11T14:07:05 | 2019-05-11T14:07:05 | 172,106,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.urls import path,re_path
from django.contrib import admin
from . import views
urlpatterns = [
path('list', views.post_list, name='post_list'),
path('create', views.post_create, name='post_create'),
path('index/',views.index),
path('login/',views.login),
path('logout/',views.log... | [
"z@z.z"
] | z@z.z |
99801dbffdcedf8bbf90c8f0aa02aed8b07ac7ff | 67b542e2b05a72fa05a7e22e41a2958a8d24b50d | /blog_blog/migrations/0005_comment.py | d7251c68d30c590b4a166336c4e2634020994dfe | [
"MIT"
] | permissive | hossshakiba/Django-Personal-Website-Blog | 4bac43bd26eeafbf1b46a0d1d3ac91c5bbcd232c | 6f75a7b7d8778e556305a883f23b04d526a8d5fd | refs/heads/master | 2023-04-16T17:32:11.519977 | 2021-04-10T09:06:44 | 2021-04-10T09:06:44 | 312,868,006 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | # Generated by Django 3.1 on 2020-08-26 14:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog_blog', '0004_auto_20200824_1902'),
]
operations = [
migrations.CreateModel(
name='Comment',
... | [
"hossshakiba@oulook.com"
] | hossshakiba@oulook.com |
8fb6a618d979f02da357b2a96dc5af00e9993ecc | fedbe94287058c89cdadd356cb0a97379900ab09 | /PID_BENCH/pid_test.py | 27df96a7184f864751574b13caabfb82ca080444 | [] | no_license | sarthak171/PID_Bench | 9546872d84729d8dfa73a1c716d49f0b93c7ba65 | 4bd1fd759e7fe32195e4eec0b9c257c3bccc86a3 | refs/heads/master | 2020-05-29T11:20:16.871506 | 2019-05-28T22:44:36 | 2019-05-28T22:44:36 | 189,113,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | import matplotlib.pyplot as plt
import random
setpoint = 100.0
initvalueR=0
initvalueL=0
maxpwr = setpoint/100
if maxpwr>.8:
maxpwr =.8
kp=.8/setpoint
ki=1/1000000.0
t_error=0
position1 = []
position2=[]
changes = []
R_diff = []
L_diff = []
diff=[]
time = []
time2 = []
a=0
def PID(inputva... | [
"noreply@github.com"
] | noreply@github.com |
4bb69e2085d85a79021f6f8e3514bb1ba342a548 | 68793e4a07a7f157a19bdba60c8abd8e740ede37 | /TIDALDL-GUI-CROSS/tidal_gui/viewModel/taskModel.py | cb6c06bb3c7d9bc69a44b1c35f5de2858e59bb29 | [
"Apache-2.0"
] | permissive | gggf007/Tidal-Media-Downloader | 7e8e875de2919e96ecd18678d9ad2378ad86c29f | e84185febb68fff92558ad1acbbf2fb40c623ed6 | refs/heads/master | 2023-07-29T03:22:40.575893 | 2021-09-15T08:55:50 | 2021-09-15T08:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : taskModel.py
@Date : 2021/8/17
@Author : Yaronzz
@Version : 1.0
@Contact : yaronhuang@foxmail.com
@Desc :
"""
from tidal_dl import Type
from tidal_gui.view.taskView import TaskView
from tidal_gui.viewModel.taskItemModel import TaskItemModel
fro... | [
"yaronhuang@foxmail.com"
] | yaronhuang@foxmail.com |
d0db36ca03329247eed514520d46ac166ce9229e | 1a73ccd606b7c4aa0560854cb6fa1311a560bc14 | /basic/__init__.py | c1c0e43b8aba348c1f76364fe318866f95a13c39 | [] | no_license | pranavtbhat/SocialGraphs | 9d33de445f862f572eced8c888ad78ca0f7e8c3d | 6dd36722f7c3fb618aa5f170b01d3d55ed56a742 | refs/heads/master | 2021-01-01T05:53:20.000975 | 2014-12-19T08:03:50 | 2014-12-19T08:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
G = nx.erdos_renyi_graph(30,.05)
nx.write_dot(G,"data.dot")
| [
"pranavtbhat@gmail.com"
] | pranavtbhat@gmail.com |
8aa8349d9f1213a364dd5a5713676193303f913c | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/chemistry/shared_medpack_disease_action_a.py | 20a75b8ac4bc4329cb51b260ec5349043fb09d4a | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 463 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/chemistry/shared_medpack_disease_action_a.iff"
result.attr... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
29d5910c8769ba7ace6e3addb4595a53b082e938 | c9b9f48c99a17e98f3b5f7e5a52106b87d8e2317 | /xgboost_Minh_220916.py | c1b42066a62ecb7cb1760a851ed7829e197822f8 | [] | no_license | minhpth/Kaggle-RedHat_Sep16 | da459852981af53410495a610b72f1ce1f5bc0dd | 97dc3dd6216401f647d6d2355d6bf63ced17c78c | refs/heads/master | 2021-06-11T20:01:31.414310 | 2016-09-23T06:06:45 | 2016-09-23T06:06:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,176 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 14 15:05:02 2016
@author: mphan
"""
#---------------------------------------------------------------------------
# KAGGLE - RED HAT COMPETITION
#---------------------------------------------------------------------------
from __future__ import print_function,... | [
"noreply@github.com"
] | noreply@github.com |
7706993e5292860e7fd177ec8ff6b5a420023395 | e86bbc185f78cf59f0c15e4c41f63b42e60d2533 | /lists/models.py | 2f6628e08967e46efaf4b33e0d14049d167bc43d | [] | no_license | jjbillings/superlists | 94b536b6599cae03d63aea0377b598e94547ba81 | 12213cc3edd934b1e338c76fd5ccb5cce92d8977 | refs/heads/master | 2021-04-29T11:09:13.083835 | 2017-01-07T01:57:18 | 2017-01-07T01:57:18 | 77,854,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.db import models
class List(models.Model):
pass
class Item(models.Model):
text = models.TextField(default='')
list = models.ForeignKey(List,default=None)
| [
"jjbillings@noctrl.edu"
] | jjbillings@noctrl.edu |
062f2eaf5f880f0947ee0529c9739ae8265f20b9 | 1b859294562750d3020df40ffa71ebc768600c6d | /review_curator.py | 170b81df361f0f5dceeb7d522c8b2b4f01b98675 | [] | no_license | streamlit-badge-bot/lululemon_reviews_NLP_insights | 767abc7189d7537711891ad7ccc67e3c12e194f9 | a66bfc076cde8d74d5aee78a9bc8f87df42366bc | refs/heads/main | 2023-01-23T19:21:13.737690 | 2020-11-28T19:49:58 | 2020-11-28T19:49:58 | 316,810,383 | 0 | 0 | null | 2020-11-28T19:49:47 | 2020-11-28T19:49:46 | null | UTF-8 | Python | false | false | 3,426 | py | import streamlit as st
import pandas as pd
import pickle
from recommender import Review_Recommender
import heapq
st.markdown("""
<style>
body {
background-color: #d7d2cb;
}
</style>
""", unsafe_allow_html=True)
st.markdown("<h1 style='text-align: center; color: #C60C30;'>Lululemon Review Curator</h1>", unsaf... | [
"56279448+ajc356@users.noreply.github.com"
] | 56279448+ajc356@users.noreply.github.com |
f883b8fafe96e0c111db9c142081f87620e1e00e | 7ae01924dab7c8d5eb07d42d0b76f5950cfdcfc3 | /tools/workspace/common_robotics_utilities/package.BUILD.bazel | 1dfc563d7a742d178387e65731b6313e1397a54d | [
"BSD-3-Clause"
] | permissive | sammy-tri/drake-franka-driver | a1c78a01de6be414219acc9bfc68dc6ec50f187c | 35c12fcab4db12d65b0717882eebe8ad48617dcb | refs/heads/master | 2021-07-10T17:12:14.017272 | 2021-05-20T22:02:03 | 2021-05-20T22:04:09 | 244,988,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | bazel | # -*- mode: python -*-
# vi: set ft=python :
package(default_visibility = ["//visibility:public"])
cc_library(
name = "common_robotics_utilities_base",
srcs = [
"src/common_robotics_utilities/serialization.cpp",
],
hdrs = [
"include/common_robotics_utilities/print.hpp",
"includ... | [
"sam.creasey@tri.global"
] | sam.creasey@tri.global |
456a1505cb7f3525e46948bb661ce4d624bb51f8 | de9367e74d7723a480928b6dea472743974bad50 | /Scripts/followgrabber_arun.py | 445f413cabf79dae14172f7af5b9a40c2892c960 | [] | no_license | masoodbai/Hadoop-TwitterAnalysis | 3c13af68e542530cfb04a9bec31b98a9e2ca83a2 | 7400c5dc400861069a9a53a08117cad4097d149c | refs/heads/master | 2021-01-17T21:33:39.138989 | 2014-09-22T01:25:54 | 2014-09-22T01:25:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | from tweepy import API
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
from pdb import *
from tweepy.utils import import_simplejson as json
from time import sleep
import sys
#Arun
ckey = "kJYFQA18ICfjquVkk3T1w"
csecret = "93DacQPIt97M9895E4tP4zw0EPj4r9SxKDn1MRmUyE"
atoken = "131783295-vMI4... | [
"arunnagendran89@gmail.com"
] | arunnagendran89@gmail.com |
bc561abdea74935ef33496aae69072868fe91e05 | 53dcb86c506dfa4b747f82466527c548bc05a609 | /crawler/crawler.py | f23290d816538893b56e08dd6228b9a9bf8d2f61 | [
"MIT"
] | permissive | hexid26/2019nCoV | a895aa96a2d3dfd35dfe8f9ac6190cc8e82d7297 | 96080584d8304a22d7bead97e81a599317c2df8c | refs/heads/master | 2020-12-21T01:36:13.077174 | 2020-02-10T07:57:41 | 2020-02-10T07:57:41 | 236,266,848 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,323 | py | #!/usr/bin/env python
# coding:utf-8
"""crawler.py"""
import argparse
import os
import re
import logging
import datetime
import requests
import csv
import json
import time
from bs4 import BeautifulSoup
# def set_argparse():
# """Set the args&argv for command line mode"""
# parser = argparse.ArgumentParser()
# p... | [
"hexid26@outlook.com"
] | hexid26@outlook.com |
993420a46f0bd40bfbf01ac38a94119f133bc724 | d3de2165e486b6cad3351288b9eac78381bf66e8 | /venv/Scripts/pip-script.py | bd217f3a36336496f817328516d9fa1deb7ab479 | [] | no_license | Suchandra125/MyWebsite | 78b792ff92bc42834cc8a6b8eac3312eefe81516 | 583b8972dd8cf53168ded7755a0968c0aa15c308 | refs/heads/master | 2020-05-02T16:22:01.098276 | 2019-03-30T19:15:41 | 2019-03-30T19:15:41 | 177,007,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!C:\Users\user\PycharmProjects\Flask\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip'
__requires__ = 'pip==9.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])
... | [
"jchandra15696@gmail.com"
] | jchandra15696@gmail.com |
efaeae158142d783d0c4d3c5f624d9fbd08615b8 | 6f151b64427d47571ff8d02a24a98c9cbd8c68a5 | /[leetcode-08]strings-to-integer-atoi.py | 17245f772a1bae021abee1832c545d882e0b4cb2 | [
"MIT"
] | permissive | Menah3m/leetcode-Python | 50c0a0e518274cfa9a5ce939c37c075ce226dd04 | 212cae16ae868e5f031d3aeb8f614c539c1a27f1 | refs/heads/master | 2021-04-02T03:24:35.855185 | 2020-12-15T09:39:03 | 2020-12-15T09:39:03 | 248,238,533 | 0 | 0 | null | 2020-12-15T09:39:05 | 2020-03-18T13:25:55 | Python | UTF-8 | Python | false | false | 2,470 | py | """
请你来实现一个 atoi 函数,使其能将字符串转换成整数。
首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。接下来的转化规则如下:
如果第一个非空字符为正或者负号时,则将该符号与之后面尽可能多的连续数字字符组合起来,形成一个有符号整数。
假如第一个非空字符是数字,则直接将其与之后连续的数字字符组合起来,形成一个整数。
该字符串在有效的整数部分之后也可能会存在多余的字符,那么这些字符可以被忽略,它们对函数不应该造成影响。
注意:假如该字符串中的第一个非空格字符不是一个有效整数字符、字符串为空或字符串仅包含空白字符时,则你的函数不需要进行转换,即无法进行有效转换。
在任何情况下,若函数不能进... | [
"568200065@qq.com"
] | 568200065@qq.com |
c6d667700920179dbd5dda7f106fd694a893ebe8 | b2f91a8ed0f4d1e047d0db30226ff33f23bcc53b | /26-Class and Static Method.py | 863b074ec7ce791b5bedccf34092f6d273a9a23c | [] | no_license | hemantrashimalalu/RestAPI | 585b50be4885ea5db1461cecd5e7f6f4b59d71e9 | b83623f290c50961ea442fde5f3205a8aacc10a1 | refs/heads/master | 2020-05-30T21:20:57.340518 | 2019-06-17T10:41:29 | 2019-06-17T10:41:29 | 189,969,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | # https://www.geeksforgeeks.org/class-method-vs-static-method-python/
# Class Method
# A class method receives the class as implicit first argument, just like an instance method receives the instance
# fun: function that needs to be converted into a class method
class C(object):
@classmethod
def fun(cls, arg1... | [
"hemant.r@icloud.com"
] | hemant.r@icloud.com |
c6929c51a9359ddba091f24a9843c39e5244e48e | cb8e7b96ba6c485ea68da154b62b32aae2e89fef | /venv/bin/pip | 65a22aaa3e63096a3415e02ba8e95cb447afacf4 | [] | no_license | reklawth/LPTHW-ex47 | 6d5b60d0973f1080352fe079c67db0cd85e1167c | f4c8b51c5c05a0d043ade41b2a34902d8d73f9cd | refs/heads/master | 2021-01-12T09:22:11.165075 | 2016-12-11T03:35:08 | 2016-12-11T03:35:08 | 76,151,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/Users/thwalker/OneDrive/Python/projects/ex47-env/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"thwalker@Independence.fios-router.home"
] | thwalker@Independence.fios-router.home | |
d046514180a9e37274ac16c00eabafba5f77c479 | 9a9fb43d866dc8fd829211d2b47328ef1f5ed428 | /PI_ROS_WORKSPACES/ros_catkin_ws/build_isolated/rosboost_cfg/catkin_generated/pkg.develspace.context.pc.py | 72b73d066877678ca5a5c6ee1ed6b3c0bdd104c5 | [] | no_license | droter/auto_mow | 326df42a54676079cac61fe63c40d5d04beb049b | 3742cb2ef78bc06d2771ac4c679e5110909774f8 | refs/heads/master | 2022-05-19T20:18:33.409777 | 2020-04-29T00:42:24 | 2020-04-29T00:42:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rosboost_cfg"
PROJECT_SPACE_DIR = "/h... | [
"joshuatygert@gmail.com"
] | joshuatygert@gmail.com |
d12b330c8a86dae7b2e3ff874faa4a0c84278ccd | d697c1d45e96bd440be9c17ab14243a5882b1f52 | /hm/oop/Tool.py | bc86e8847c84a48bbaf2b70702747c4f2cdd6d05 | [] | no_license | ithjl521/python | 9eeda2e60dda97ee36e8764c06400eb12818689f | f4fe50799501c483cb64445fd05ee0f30f56576c | refs/heads/master | 2020-07-12T23:10:53.608276 | 2019-11-08T08:59:35 | 2019-11-08T08:59:35 | 204,931,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | class Tool(object):
count = 0
def __init__(self,name):
self.name = name
Tool.count += 1
# self.count += 1
tool1= Tool('futou')
tool2= Tool('maoie')
tool3= Tool('fuzi')
Tool.count = 99
print(Tool.count)
| [
"it_hjl@163.com"
] | it_hjl@163.com |
5b52140b650b1eaf1fa06ca3369752b6bba03eb9 | ef786be9b7c7145d63797cb8c351780059996873 | /watchlist_app/migrations/0001_initial.py | 76d570588a7802ab729017622b43b470dcd0ec1d | [] | no_license | nileshnagarwal/djangorest_course_sarda | 31c27ab625139f632d1121296c981c108301de70 | 933d7b5330d7fda1b17c367d30cb903543eebb02 | refs/heads/main | 2023-07-17T11:49:43.562982 | 2021-08-27T07:19:57 | 2021-08-27T07:19:57 | 394,706,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | # Generated by Django 3.2.6 on 2021-08-10 07:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.BigAutoField... | [
"eternalshenron@gmail.com"
] | eternalshenron@gmail.com |
c21ab3f906aa4a61cb47703d6291eb9f9295ab24 | 9ad72bfdd413c08060e6a6858aee6abda39d7abe | /hw1/test2.py | d9af38238393979ce5328ca5da4201d160bb3399 | [] | no_license | sevensail/105SD | 86d3e83d0e7c3a9aadb49e5483ebbb151c82c271 | 6104c16fb5bbc354675e0bc7c4217672377cbf0c | refs/heads/master | 2021-05-01T20:02:35.851158 | 2018-02-22T16:12:31 | 2018-02-22T16:12:31 | 120,957,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | from problem2 import *
import numpy as np
import sys
'''
Unit test 2:
This file includes unit tests for problem2.py.
You could test the correctness of your code by typing `nosetests -v test2.py` in the terminal.
'''
#-------------------------------------------------------------------------
def test_python_... | [
"chinaqih@163.com"
] | chinaqih@163.com |
bd3b3d45311a3acf29007751bcf7d26209d85391 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000492.py | 7a98b03c8016f65306e467ddfb470f008a62508e | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,532 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
8b9ef356aee7164a6c69cd0f35f1d1d0a435b1cb | eb1a26b1458c488bafdcb4e8a8477ffd73487ba7 | /features/network.py | 8ce3ea08f6749f5810b0c8633643476967cbbc03 | [] | no_license | ishan-chaudhary/Malicious-URL-Classifier | 3f96cc104bb674c801a2352b06031db140b5eeeb | 16fd7023e575e626cbfe08767252663ccdd83e88 | refs/heads/master | 2023-02-01T07:28:52.927668 | 2020-12-05T20:56:26 | 2020-12-05T20:56:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | import re
import ssl, socket
import requests
from dnsresponse import host
from useful_methods import unicode_decode
from tld import get_tld
from lexical import subdomain_name
import urllib2
import urllib
import json
def redirect_count_with_warning(url):
url = 'http://' + url
r = requests.get(url)
return (r... | [
"shravya.k14@iiits.in"
] | shravya.k14@iiits.in |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.