blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df9a340e61931f0d31c2037dcb5b811c76fb96da | 0e696ff19f0bc7f8fa9c44abc8f542fdbcd0afd1 | /hl2json.py | 429c374bbe27b5a1cebef8a3f914ceaff62263d9 | [
"Unlicense"
] | permissive | Blesmol/herolab2json | 417853701d3baf4c62e6ee1d6ab927508c219a36 | 87e6ba75396fcf671b5253dfd6805fe86ee18be9 | refs/heads/master | 2022-07-28T04:44:59.393002 | 2020-05-12T13:27:18 | 2020-05-12T13:27:18 | 260,900,667 | 0 | 0 | Unlicense | 2020-05-08T22:23:49 | 2020-05-03T11:49:20 | Python | UTF-8 | Python | false | false | 6,569 | py | #!/usr/bin/env python3
import xmltodict
import json
import sys
import zipfile
import os
import argparse
import copy
def main():
ap = argparse.ArgumentParser(description='Extract Pathfinder characters from HeroLab files and store them locally in various formats')
ap.add_argument('file', help='HeroL... | [
"Blesmol@users.noreply.github.com"
] | Blesmol@users.noreply.github.com |
705c6c2424e3b02e5aa8333e6c28631a10d93221 | 547f957522d5b00135495bc1ccb70c7cb2871905 | /nomo-webcam/flasky.py | 99ed7121665d878e2f966f7b8679e84608467eb9 | [] | no_license | PhoenixLegend/nomo-webcam | c1619e31b0aaf50bcffa3076c5f221b118754132 | b8d7ee0989e4257ac457732cf990dbad326badc9 | refs/heads/master | 2022-10-10T23:26:19.905882 | 2019-06-04T08:37:49 | 2019-06-04T08:37:49 | 181,283,076 | 1 | 0 | null | 2022-09-16T18:02:20 | 2019-04-14T08:55:42 | JavaScript | UTF-8 | Python | false | false | 141 | py | from appl import create_app
app = create_app('default')
if __name__ == '__main__':
app.run()
# app.run(host='0.0.0.0')
| [
"noreply@github.com"
] | PhoenixLegend.noreply@github.com |
d7fa365bdd4586ed052362289ce55342fbf3d877 | 3b881f51ba40307950b7f127082cd74db7b91a36 | /test_yourself/migrations/0001_initial.py | 13ad492f7c2deba70324b728c095e8b07f5e4e94 | [] | no_license | bilalahmed0060/test_yourself-website | 4a169df8fbbb3127749cfcb9b3c206f0dc6add6c | fd000c88891ce009e3248d5ed08d89cbe8da53a2 | refs/heads/master | 2022-12-26T07:58:36.506260 | 2020-10-08T12:07:02 | 2020-10-08T12:07:02 | 302,326,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # Generated by Django 2.2.4 on 2019-10-27 08:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Mcqs',
fields=[
('id', models.AutoField(aut... | [
"bilalahmedmughal732@gmail.com"
] | bilalahmedmughal732@gmail.com |
a065f7f321a1217a0e56876be9040c51f4ee9e85 | 3545102fdfd9073a39215cfd72bb94d5afabd147 | /exceptions.py | 64a4facdd743c90927dc88c982391d89495bab19 | [] | no_license | edwgon/codigos | 288cdee2f17f3faad76d60836306fabfaedf4c6d | 57b10b42e0e4235bce9c360a15c71f6ab769b5ef | refs/heads/master | 2022-11-27T07:06:01.485816 | 2020-08-11T00:41:57 | 2020-08-11T00:41:57 | 286,614,932 | 0 | 0 | null | 2020-08-11T01:22:12 | 2020-08-11T01:22:11 | null | UTF-8 | Python | false | false | 265 | py | def divide_elementos_de_lista(lista,divisor):
try:
return [i/divisor for i in lista]
except ZeroDivisionError as e:
print(e)
return lista
lista = list(range(10))
divisor = 3
print(divide_elementos_de_lista(lista,divisor))
| [
"noreply@github.com"
] | edwgon.noreply@github.com |
3dc40e4ecee583fcea50937031b371e602c8ae18 | 9e42330c07add7dbd9460f6ee9bc3b2b241817a2 | /ibexternal/sexcatalog.py | d0b7cfc3a3f23c6cfa67a4817bf9bcddce8fa71d | [
"BSD-2-Clause"
] | permissive | ibojicic/iblibs | 308ad8c909a6768dc729fdec127b7e0cd1f95b2e | bf7ef0afc54059a1d51f2b821b388e54e97f2d06 | refs/heads/master | 2022-03-11T23:05:05.457905 | 2018-01-23T08:56:02 | 2018-01-23T08:56:02 | 118,584,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,032 | py | # ======================================================================
#
# Cosmograil: cosmograil.tools.sexcatalog
#
# sexcatalog module.
#
# Author: Laurent Le Guillou <laurentl@ster.kuleuven.ac.be>
#
# $Id: sexcatalog.py,v 1.1 2005/06/29 13:07:41 hack Exp $
#
# ======================================================... | [
"ibojicic@gmail.com"
] | ibojicic@gmail.com |
d7c79da885a23f0b7e5df4da8ea71c32b6a7835f | 4832ce490d44de6dbe3263465945c52503f14078 | /code_python/draft-gem/fantasy_findPassingStats.py | 937cef584bfb037dfcf5b8f07413cce1932cffa9 | [] | no_license | ereidelbach/ncaafb | e49c9cf9a20729ec5ca1fad936645cce8b3b70cd | c9c5dae24d5c57b80a351fdb8f3180568754069a | refs/heads/master | 2022-03-30T18:00:02.566474 | 2019-11-20T20:30:35 | 2019-11-20T20:30:35 | 114,028,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # PURPOSE: Return medians of rushing stats
import json
import numpy as np
from pathlib import Path
from eloUtilities import readplayergamestats
# Get filename from config file
with open(Path("elo_config.json")) as file:
cfg = json.load(file)["findStats"]["fantasy"]
playerstatfile = Path("..", "data_raw", "fantas... | [
"eric.reidelbach@gmail.com"
] | eric.reidelbach@gmail.com |
88f0d5e4e9fb14a484faeb0799e2c8c19b71128a | 9cc41b6848e1bb7d3a62c3d4775f2b7512ef29c4 | /DjangoPractical/advanced_chapter/blog/views.py | e28797fac21093384748ce7aec61e821c169070a | [] | no_license | Hyeon-Goo/python-web-programming-practice-part | 5b49ef2ebd1804243ab06ca27322997016823778 | 84c1d25cbc727a427266e44c7ea1487ab48b61a0 | refs/heads/master | 2023-04-26T01:16:10.839256 | 2021-05-14T05:06:58 | 2021-05-14T05:06:58 | 360,438,286 | 0 | 0 | null | 2021-05-10T12:23:42 | 2021-04-22T07:58:37 | Python | UTF-8 | Python | false | false | 3,805 | py | from django.shortcuts import render
from django.views.generic import (
ListView,
DetailView,
TemplateView,
FormView
)
from django.views.generic.dates import (
ArchiveIndexView,
YearArchiveView,
MonthArchiveView,
DayArchiveView,
TodayArchiveView
)
from django.conf import settings
from... | [
"wizardhk@naver.com"
] | wizardhk@naver.com |
0240ed08e0c2bce02a09cbaea7b49d1cb15924a2 | 157c34fce66591dd26193fe8330a3e1a8dc961da | /reviews/models.py | 01c01c18f639184da0216fa809bd08bbcd3e6a33 | [] | no_license | deonii/hikicovery-backend | 3280d727901ffd394b4fe8be79d1980de7c1a34b | 529781560795c7b14e554dae96a515d981927c78 | refs/heads/master | 2023-06-06T03:50:15.289894 | 2021-06-20T07:17:41 | 2021-06-20T07:17:41 | 363,479,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from django.db import models
class Review(models.Model):
rating = models.IntegerField()
comment = models.TextField()
create_at = models.DateTimeField(auto_now_add=True)
update_at = models.DateTimeField(auto_now=True)
color_review = models.SmallIntegerField(null=True)
... | [
"fishingman99@gmail.com"
] | fishingman99@gmail.com |
2096cf756beff399961d6cec33aae64830026d31 | 02a60c10ba82565486f9ea467f563aef673e12b8 | /src/db/users.py | 777fa6ad05d6366df647569eee22e9f03ccc2885 | [] | no_license | mollywang/HowCrowded | 2b92fff8bfbf77f35718fd2b5cc8c477e02b893e | c7fc914009e77f98d008e114cb918b1d42b9e57a | refs/heads/master | 2021-01-18T00:03:09.615119 | 2016-05-05T04:20:49 | 2016-05-05T04:20:49 | 55,252,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py |
"""
returns the responses from the last hour
for the place specified by pid (place id)
empty list if no responses from last hour
"""
def get_confidence(pid):
pass
def update_confidence(pid, confidence):
pass
| [
"mtromanhauser@gmail.com"
] | mtromanhauser@gmail.com |
7cb2aceaf66be53a8f489fdae6efed30d4739cd8 | 7a0cb4ceb6916a39424e3567b0bab60c6acd0c77 | /gtj.py | 155ffd59ca7ef60101c6b3fd095604a5806b0c1e | [
"MIT"
] | permissive | miladhazrati75/Bojnurd-lug-website | 873b694809833447dff0bf00bbe5c5d832a38072 | 154e0008831d5c6fbefbbd1b1da01c917dee51fa | refs/heads/master | 2020-04-29T08:41:13.893675 | 2019-12-29T14:55:05 | 2019-12-29T14:55:05 | 175,994,772 | 0 | 0 | MIT | 2019-03-16T16:15:05 | 2019-03-16T16:15:05 | null | UTF-8 | Python | false | false | 1,556 | py | def gregorian_to_jalali(gy,gm,gd):
g_d_m=[0,31,59,90,120,151,181,212,243,273,304,334]
if(gy>1600):
jy=979
gy-=1600
else:
jy=0
gy-=621
if(gm>2):
gy2=gy+1
else:
gy2=gy
days=(365*gy) +(int((gy2+3)/4)) -(int((gy2+99)/100)) +(int((gy2+399)/4... | [
"noreply@github.com"
] | miladhazrati75.noreply@github.com |
da4badce28d699354304cdcd667c28ed0d63ece1 | 31666ed5e06ed0afa1e7d012adf306edc4d38e39 | /flask-api/app/models/book.py | 87ab03f14378bdab6967761f123ff1be980f0bbd | [] | no_license | yu-Aby/flask-test | 9a547249a9d882ee77c2af1d76898a8c04492598 | 442c1f145b008651248e0d678cfc59d2d6cd984e | refs/heads/master | 2020-03-23T19:19:52.366743 | 2018-08-24T02:37:23 | 2018-08-24T02:37:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | from sqlalchemy import Column, Integer, String,orm
from app.models.base import Base
class Book(Base):
id = Column(Integer,primary_key=True,autoincrement=True)
title = Column(String(50),nullable=False)
author = Column(String(20))
binding = Column(String(20))
publisher=Column(String(50))
price=... | [
"1441396922@qq.com"
] | 1441396922@qq.com |
a22279186fe8c85192bd3d138c01834f52b9137e | a4819c30d2649b6a59b07335700e4e63e8d1d9d8 | /Official COQA Evaluation script/evaluate-v1.0.py | 640f8e40e84f882456429a92a025f2ce3b58418b | [] | no_license | rsaptars/Natural-Language-Processing | c48ef3cf07b81091c7b5faec778e93de6211d819 | 50f860735b811d79b3a654d05d1b04ac1cd6cab2 | refs/heads/master | 2022-11-07T19:32:55.130321 | 2020-06-18T23:56:45 | 2020-06-18T23:56:45 | 273,343,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,458 | py | """Official evaluation script for CoQA.
The code is based partially on SQuAD 2.0 evaluation script.
"""
import argparse
import json
import re
import string
import sys
from collections import Counter, OrderedDict
OPTS = None
out_domain = ["reddit", "science"]
in_domain = ["mctest", "gutenberg", "race", "cnn", "wikip... | [
"rsaptars@uncc.edu"
] | rsaptars@uncc.edu |
125224120355ce64a50b1bba2c8c2669f01ac200 | 5d09be3ffeef97a9071836264bf512221437ace8 | /pdst/image/compositor.py | 569e600198b2ee2f95248c8b27d0a6e46fa64c6e | [
"MIT"
] | permissive | RustyBower/pdst | 48c1c3942a24d2f5c3ef15ba9cb1604bede926e8 | 99b7f1dd5d42976640557e2b8b84d5b90419107a | refs/heads/master | 2022-12-24T12:36:32.889522 | 2020-10-01T11:01:22 | 2020-10-01T11:01:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,060 | py | import logging
from PIL import Image, ImageDraw, ImageFont
from pdst import filetools
log = logging.getLogger(__name__)
class BaseCompositor:
def __init__(self, partSpecs, compositeSpec):
self.partSpecs = partSpecs
self.numParts = len(partSpecs)
self.size = compositeSpec.si... | [
"kdion7@gmail.com"
] | kdion7@gmail.com |
1e9ce0f0a91c0e498a166fd14d8e41db7aed1f9f | ac618f00aef4a3bfd0b21e691819bffe51179aed | /Non_Dominated_Sorting.py | 6f0502d7426a7b5432f7458299bce155afc9ab11 | [] | no_license | Souritra-Garai/NSGA-II | d1eb02286725f61e7da8d8d27b66ef849ada72a3 | 44c2851a1733ad6576b7947748e198f3c758e796 | refs/heads/main | 2022-12-30T19:46:13.035553 | 2020-10-20T17:26:22 | 2020-10-20T17:26:22 | 303,197,404 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,851 | py | import numpy as np
# These variables are declared globally
# to save time for reallocation of memory
# every time sorting function is called
indices = np.arange(1)
vector_element_indices = np.arange(1)
p, q = np.meshgrid(indices, indices, indexing='ij')
ret_indices = np.zeros(1, dtype=np.int)
n = m = d = 1
... | [
"noreply@github.com"
] | Souritra-Garai.noreply@github.com |
afbad2f074b547d720cb70d603801c2da3b515c2 | c21505a64784453e9c1ead1a5bffb51632a76cba | /src/app.py | cd92e95a471e39bef69de831f8075d2dfcd04dad | [] | no_license | alye/csv-merge-api | 484a1baf8326f4f4fe1b71de947f20c5a9177305 | f4d609c63c824953a7ce6204a9c0e88db8af8971 | refs/heads/master | 2020-12-30T14:20:28.255644 | 2017-05-15T08:51:44 | 2017-05-15T08:51:44 | 91,313,327 | 0 | 1 | null | 2017-05-15T08:51:44 | 2017-05-15T08:27:22 | Python | UTF-8 | Python | false | false | 2,222 | py | import csv
from cStringIO import StringIO
from flask import Flask, jsonify, request, send_file, make_response
from database import MyDictDB
from custom_exceptions import InvalidUsage
from csv_process import MergeCSV
from record import Record, get_form_parameters
__version__ = '1.0.0'
_api_name = 'csvmerge'
_api_path =... | [
"alizishaan.khatri@gmail.com"
] | alizishaan.khatri@gmail.com |
14512a4ef7187f209f088d97cad85585e93a3b60 | 1540223e9badb5f75f281b81cb475d0ea499c260 | /line2/api/line_0_10_0/SnsAdaptorService-remote | b17380313df3f504d81436339a8c5168cff7c876 | [
"MIT"
] | permissive | R-N/JeBB | 26b0a92808343ed051fcfca9f1a9c31daedbbaf6 | 248bcf7116a4449e9b8fd9ee5b61df9aa891929c | refs/heads/master | 2022-06-09T11:38:59.464312 | 2022-05-24T05:30:10 | 2022-05-24T05:30:10 | 127,318,467 | 8 | 7 | MIT | 2020-06-21T09:43:49 | 2018-03-29T16:30:14 | Python | UTF-8 | Python | false | false | 3,491 | #!/usr/bin/env python
#
# Autogenerated by Thrift Compiler (0.10.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
import sys
import pprint
if sys.version_info[0] > 2:
from urllib.parse import urlparse
else:
from urlparse import urlparse
from thrift.transport imp... | [
"xstinky12@gmail.com"
] | xstinky12@gmail.com | |
ea193671f595da467bd64814a0cf7ba0d1e8566d | 74515f9e059aa8a73e63d735abbac69d99713c69 | /src/tournai/urban/dataimport/interfaces.py | c03599111093db2e481981427c2974da1bb70e5b | [] | no_license | IMIO/tournai.urban.dataimport_22 | b7285eaf15aec02dfa778881d4c53b02cfcc1466 | c1e9db3edeab1da154fdff2d078d88802ea7bb24 | refs/heads/master | 2020-12-30T16:02:30.853395 | 2018-03-23T14:14:23 | 2018-03-23T14:14:23 | 90,954,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # -*- coding: utf-8 -*-
"""Module where all interfaces, events and exceptions live."""
from plone.theme.interfaces import IDefaultPloneLayer
from imio.urban.dataimport.interfaces import IUrbanDataImporter
class ITournaiUrbanDataimportLayer(IDefaultPloneLayer):
""" Marker interface that defines a Zope 3 browser ... | [
"julien.jaumotte@imio.be"
] | julien.jaumotte@imio.be |
39cf2d0c2245eb8d9b2517f31f7b202604cb3c5d | 7f6ad639d41ad522ae73cb87ee61da48d83dcd27 | /hamnadmin/hamnadmin/mailqueue/management/commands/send_queued_mail.py | 301c769bebde70fefdcdf2b48a8d818b20aa583a | [] | no_license | mhagander/hamn | 0aedaea24c32903480b580273ce272e26cc25d5b | c7271662c7726749d11e47f3064bec80b0e95c4a | refs/heads/master | 2023-08-31T05:05:07.160357 | 2023-08-24T09:02:52 | 2023-08-24T09:02:52 | 729,253 | 2 | 2 | null | 2017-06-08T07:32:48 | 2010-06-19T13:48:04 | Python | UTF-8 | Python | false | false | 1,411 | py | # Script to send off all queued email.
#
# This script is intended to be run frequently from cron. We queue things
# up in the db so that they get automatically rolled back as necessary,
# but once we reach this point we're just going to send all of them one
# by one.
#
from django.core.management.base import BaseComma... | [
"magnus@hagander.net"
] | magnus@hagander.net |
dc0373b0aac62ca1cd751e59440c5be44db0d87d | 7bea5bc327f1a025ddba9cdf58ed80cdd587e07d | /server.py | e945946165a83b6faf93bce54b4fed593db4b663 | [] | no_license | devitapv/REST-API-DTREE | a49d6a1f56e7d64829d7445a4ea36be8869af6e9 | 39aa1573ca4894ea41f466ecf3e69708cefe068a | refs/heads/master | 2020-07-30T19:06:16.726509 | 2019-09-23T12:47:10 | 2019-09-23T12:47:10 | 210,326,150 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # Create API of ML model using flask
'''
This code takes the JSON data while POST request an performs the prediction using loaded model and returns
the results in JSON format.
'''
# Import libraries
import numpy as np
from flask import Flask, request, jsonify
from sklearn.externals import joblib
app = Flask(__name__... | [
"noreply@github.com"
] | devitapv.noreply@github.com |
c476dffe1424e9b39be4b00edfc9aad451a77a0f | a7c4478e6fdec7cf1a5f22b9eba5e11afc537503 | /app/main/errors.py | 129fff301ce85ae5f1f6f5d546092fe5a73a525a | [] | no_license | deveshaggrawal19/waasle | 457fe686a18ce9d5162abc9b3fd5041d7938ee23 | 69e00a29175d0771d8ff920397dc08d37d3cc3dc | refs/heads/master | 2021-04-26T22:19:32.317110 | 2016-11-17T18:51:17 | 2016-11-17T18:51:17 | 71,818,197 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from flask import render_template
from ..main import main
@main.app_errorhandler(404) # Will route all the errors
def page_not_found(e):
return render_template('404.html'), 404 | [
"deveshaggrawal19@gmail.com"
] | deveshaggrawal19@gmail.com |
6a97409991db6e620257874f0ef37c6750aaf5fe | a5f771fe81f64a384edaf1d1cdd557ac6641e52e | /Machine Learning/Data Preprocessing/DiscreteEncoder.py | f495a0f80de9f7cd9e7ecc29f19485640bc0361e | [] | no_license | 0wliver/Olida | 572a03ba5e5b74dbb94b471e46c1ec425035faf2 | ccdd3c3fca8fc8f487025e98eb023641d66c13dd | refs/heads/master | 2020-03-29T14:14:47.534497 | 2018-11-21T07:20:07 | 2018-11-21T07:20:07 | 150,006,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | # -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
df_data = pd.DataFrame({'name':['Chris','John','David','Tom'],
'age':[18,23,35,52],
'height':[176,188,168,182],
'job':['student','student','teacher','worker']})
# get_dummies()
# ... | [
"theowlet@126.com"
] | theowlet@126.com |
810ac35200a42bc59be7c2f21f6d721934bfedf2 | 78f651f36d9a2962d1c85e3bbc367ff9ee4413ec | /python/alphastd.py | 3a74e3d08efdc212b146a365e0e0db1ba4840c4e | [] | no_license | mikebrgs/hive | 89b299725862bd4fa7a67c889843b55264f62fb7 | 62b9a3d4e5fbc7cb046e977d67ec5150d3d1452b | refs/heads/master | 2020-04-20T08:51:26.698686 | 2019-06-26T17:09:30 | 2019-06-26T17:09:30 | 168,751,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | import transform as tf
import scipy.linalg
import numpy as np
import rosbag
import rospy
import math
import sys
args = sys.argv
if len(args) < 2:
print("Please insert RosVive data file")
sys.exit(0)
bag = rosbag.Bag(args[1], "r")
# Dictionary of trackers with poses in vive frame
alphaH = dict()
alphaV = dic... | [
"miguel.borges@hotmail.com"
] | miguel.borges@hotmail.com |
d98242cf54552fe3ac8c77d0b97a6bdf536e0756 | f93998e1c5c5c50bf20aed8d5b3517b12c333fdb | /wellsfargo/migrations/0003_auto_20160524_1127.py | 2d1bd6aa4fbbf69c580061fe78dd97723e4b7eab | [
"ISC"
] | permissive | pombredanne/django-oscar-wfrs | 637130651ab0d15289c4b3b3b86a42ada306fe96 | 991b79d2bd8a22512861bb3117c2bb5444c467b2 | refs/heads/master | 2021-01-17T23:41:10.424343 | 2016-05-28T01:20:30 | 2016-05-28T01:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-24 11:27
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependen... | [
"crgwbr@gmail.com"
] | crgwbr@gmail.com |
585067b5909b57fee6ca40328917d6cf583ad2c5 | a98f696107817c68f058ff4148276372078940e0 | /BERT/src/modules/bert.py | b7e7cb94947b9762b0ef372939de65b3a17cea94 | [] | no_license | MiuLab/CQA-Study | 90d57e4356d39cc9b82039dd544149fdf25c8866 | 4a8f72dd43c5cf1937883336670180b6a11e4762 | refs/heads/master | 2022-04-01T17:46:21.066198 | 2020-02-03T12:38:52 | 2020-02-03T12:38:52 | 222,895,519 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,562 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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... | [
"b03902072@ntu.edu.tw"
] | b03902072@ntu.edu.tw |
290a4e4532292a6077f143d5c37098325ed6d1b0 | 21768467fab64dbb201d50f606f596d04db18778 | /learning_users/basic_app/urls.py | fc307c0bd76d90b3b94c41321acc114695818cda | [] | no_license | manish198/PDjango_Login | 88f517612421d82426b99cfcd2d185e2bb3b1b31 | f87c958500a5ead4262d660c3b7da1d9178433e1 | refs/heads/master | 2020-03-26T14:48:07.230489 | 2018-08-16T15:22:10 | 2018-08-16T15:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django.urls import path ,include
from basic_app import views
app_name='basic_app'
urlpatterns = [
path('register/',views.register,name='register'),
path('login/',views.user_login,name='user_login')
#path('base/',views.base,name='base'),
#path('login/',views.loggin,name='login')
] | [
"gautam.manish.manish@gmail.com"
] | gautam.manish.manish@gmail.com |
d3f8919a82020dbc031c6cc7d57e9fd1fa3aeb63 | 663126bd76c9c1f8fd28489b9b773dc9f6effb1c | /blog/migrations/0001_initial.py | 11b78f3ba4c5f66858854cbf0c6aa68b5740a429 | [] | no_license | julia-codes/djangogirls-2 | e3dddb6525806d3f41b17a4e75bf8495f1e9f653 | feabac349a98d8794fe2e99a8460252dad03afbd | refs/heads/master | 2020-03-23T16:40:50.440141 | 2018-07-21T21:15:27 | 2018-07-21T21:15:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.6 on 2018-07-21 15:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"msjuliaalice@gmail.com"
] | msjuliaalice@gmail.com |
a920a3ad89d5d70a2789226a2815bb170b900da8 | 05c3d3e16789bffc466fa7441dc52b7908c6e296 | /scf/apps/activities/migrations/0002_gathering_users.py | 3251fdc269fd8e39c7c20a7bed2d259df1558eeb | [] | no_license | tsangyu98/scf_project | 710386050919fe722bde8af937d2fc32a62baf4f | 42f6b4d30cfa3968a45e560d82f1738ae189ec6e | refs/heads/master | 2020-11-26T03:35:21.989433 | 2019-12-21T09:28:35 | 2019-12-21T09:28:35 | 228,954,595 | 0 | 0 | null | 2019-12-21T09:28:36 | 2019-12-19T01:57:17 | CSS | UTF-8 | Python | false | false | 634 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-12-19 07:15
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings... | [
"tsangyu1998@163.com"
] | tsangyu1998@163.com |
b75ad76fbf0095cb4f3b6b031411c05279c53e34 | de4d05025afb23156238bbe7bd44d8752297e6de | /DNAjango/chat/migrations/0008_auto_20180725_0923.py | 55746a335da6170d27c23b4d26351ed6d7b37338 | [] | no_license | ekils/DNAchatAPP | 8a769b4277b9a754eb5c494e184f0813f356f21c | 7e3608d7ea22446ac94b4f6e9c9127debb3b0a02 | refs/heads/master | 2021-06-13T09:38:03.099402 | 2021-03-04T02:56:46 | 2021-03-04T02:56:46 | 140,684,794 | 3 | 0 | null | 2021-06-10T20:33:14 | 2018-07-12T08:30:50 | Python | UTF-8 | Python | false | false | 484 | py | # Generated by Django 2.0.4 on 2018-07-25 09:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('chat', '0007_auto_20180721_1658'),
]
operations = [
migrations.DeleteModel(
name='Header',
),
migrations.AddFiel... | [
"bobobo746@hotmail.com"
] | bobobo746@hotmail.com |
2bbe362bcece361f5e761ca97b57a179eb0a9bb8 | ab1fedef2e511b7be6df759a8aeaa7e97ba0baff | /userinfo/migrations/0001_initial.py | f97c69b8377af3d6d4a8f4ed145a55c4bc0c9b6a | [] | no_license | shinSG/blog | 6717f1cd1df5bf1213520240f4f1d74992960657 | 3f6f119d80fc365893c9aa8e0eb71a7dfe8ed1dd | refs/heads/master | 2021-01-18T01:30:48.095471 | 2015-01-02T14:00:52 | 2015-01-02T14:00:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='userinfo... | [
"shixiaokun0210@gmail.com"
] | shixiaokun0210@gmail.com |
6d5fc62c7c29032963e791bf480302878fd25bf3 | e70a5960b60bf6c11df4248625d0188ededdd4c7 | /Function/GUI/GUI_main/note_string.py | f13b73e15b9279706e1d53de8d8a68e661cfbc22 | [] | no_license | wx2000qq/MoDeng | 70be2802b6191855667cce5fe3cd89afda5fb9a9 | 9144bb79c237c0361b40f314b2c3123d58ac71cc | refs/heads/master | 2020-11-24T11:52:08.829630 | 2019-12-15T04:54:25 | 2019-12-15T04:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,525 | py | # encoding=utf-8
"""
将提示字符串规整在一起,防止在代码中占用太多地方
统一用note开头
"""
# 初始化图片提示
note_init_pic = \
"""
----------------------------------------------------------------------------------
小提示:
当前正在生成“三大指数”、“持仓stk”和“关注stk”的小时、日、周和月的MACD图!
以及日级别的KD、MOM、RSI、SAR等指标的图。
小时级别的MACD图半小时更新一次,其余图片启动软件时生成最新的,软件开启后暂不更... | [
"1210055099@qq.com"
] | 1210055099@qq.com |
47553df24f875962583c2a22b9ef5ea254dfa544 | 5f2b8f12c19e5898962c6cdee700b889bb354f80 | /Python/gen_guid.py | f1ecead89bff3cfecff3ba9ee51ca94f0f521174 | [] | no_license | algono/Utility-Scripts | eae0840b2755ada0bdf82c37d3bb439488dc32bd | 3fb48dec8a15361a2e36a9de30f2b5c0411af1ab | refs/heads/master | 2022-12-31T01:24:08.527311 | 2020-10-23T13:06:38 | 2020-10-23T13:06:38 | 209,597,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import random
def get_random_valid_char():
if random.randint(0, 1):
return str(random.randint(0, 9))
else:
return chr(random.randint(ord('a'),ord('f')))
chars = ''
for i in range(32):
chars += get_random_valid_char()
guid = f'{{{chars[:8]}-{chars[8:12]}-{chars[12:16]}-{chars[16:20]}-{char... | [
"algono@inf.upv.es"
] | algono@inf.upv.es |
de1f07139a0ece0b8c5f53cf1074147c7c7f195c | 9ccb9618e71f6bd1faa8bd00c2034d12e84b60b4 | /OrdonWeb/wsgi.py | 93d5fc523157e89275b707a04ba2d7dfa5bfa032 | [] | no_license | Suchi97/OrdonWeb | cd9d42afe9abd6c60d9efecd40299ea59912ce19 | 3dbf77fc31ba6f01034e3d03bec8cc97f745c056 | refs/heads/master | 2021-05-16T03:34:07.296131 | 2017-10-02T13:00:38 | 2017-10-02T13:00:38 | 105,534,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
WSGI config for OrdonWeb project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"vssuchithra3@gmail.com"
] | vssuchithra3@gmail.com |
8aae0b9c826c59fb327dea93ed1c175f88371d5e | a611089eb146f87e5e4d86315f3af2203fc1b6a1 | /createFcn.py | ed75adf4575d8a3bb07606519ee205118213112e | [] | no_license | sci-fydp/xsci | 0317908197ae3f7c3ce6d91a12b9d22157e2aac8 | 135ab8c813216c1b85a3d1b2c264bd24e1eee80d | refs/heads/master | 2020-12-26T04:27:12.815907 | 2014-11-27T21:05:37 | 2014-11-27T21:05:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | import sublime, sublime_plugin
#window.run_command("create_imp", {"header_name" : "insert file header here."})
class CreateFcnCommand(sublime_plugin.TextCommand):
def parseData(self, data):
proto = ""
if data["static"]:
proto = proto + "static "
if data["const"]:
proto = proto + "const "
if data["inli... | [
"ornalth@hotmail.com"
] | ornalth@hotmail.com |
7b5f1ea57196f64b077d3972a4c3dce973abb7c2 | 7d8a4d58fc4c5a73ce8c85e513253a86d6290d3b | /plugin.video.destinyds/default.py | 1b500fb03a19198561fad5bb03af7b19238f1903 | [] | no_license | bopopescu/icon | cda26d4463d264b7e2080da51f29d84cc48dfb81 | e385a6225dd11b7fea5a11215d655cf5006bb018 | refs/heads/master | 2022-01-12T19:00:04.951604 | 2019-07-10T05:35:44 | 2019-07-10T05:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610,962 | py | # -*- coding: utf-8 -*-
import xbmcaddon,os,xbmc,xbmcgui,urllib,urllib2,re,xbmcplugin,sys,logging,time,random
from os import listdir
from os.path import isfile, join
Addon = xbmcaddon.Addon()
import pyxbmct
import requests,json
import xbmcvfs
import koding
import socket
import threading
global done_nextup
global all_... | [
"kodi15887@gmail.com"
] | kodi15887@gmail.com |
612a9cfe6c7e2307b32cf0a91d982b8221012697 | 5a648d5c62e640a8df8d18549eaf6e84a36dbd28 | /findk.py | eb35c580c67910fc18867b2273ac68599fcf99ef | [
"MIT"
] | permissive | quake0day/oj | f5f8576f765a76f0f3a8b2c559db06279e93ef25 | c09333d1738f8735de0d5d825db6f4b707585670 | refs/heads/master | 2021-01-21T04:27:34.035319 | 2016-03-30T02:19:15 | 2016-03-30T02:19:15 | 30,592,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | a = "leetcode"
b = "codyabs"
k = 3
def findK(a,b, k):
m = len(a)
n = len(b)
h = {}
for i in xrange(m-k):
h[a[i:i+k]] = True
#dp = [[False] * n for _ in range(m)]
#dp[0][0] = True
for j in xrange(n-k):
if b[j:j+k] in h:
return True
def findKDP(a,b,k):
m = len... | [
"quake0day@gmail.com"
] | quake0day@gmail.com |
28bafc6808151dfca0608b676e7311af110fe7cd | 926b3c52070f6e309567c8598248fd5c57095be9 | /src/mmdeploy/mmdeploy/backend/ncnn/quant.py | 7bddda80b7addab282d7ccd92746cae829ba53ec | [
"Apache-2.0"
] | permissive | fengbingchun/PyTorch_Test | 410f7cd2303707b0141d433fb9d144a961e1f4c8 | df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348 | refs/heads/master | 2023-05-23T16:42:29.711338 | 2023-03-25T11:31:43 | 2023-03-25T11:31:43 | 167,339,907 | 15 | 4 | null | 2023-03-25T11:31:45 | 2019-01-24T09:24:59 | C++ | UTF-8 | Python | false | false | 2,119 | py | # Copyright (c) OpenMMLab. All rights reserved.
import os.path as osp
from subprocess import call
from typing import List
import mmcv
from .init_plugins import get_ncnn2int8_path
def get_quant_model_file(onnx_path: str, work_dir: str) -> List[str]:
"""Returns the path to quant onnx and table with export result.... | [
"fengbingchun@163.com"
] | fengbingchun@163.com |
2644c8ca38324e9a27a0a32fe48c7fa1e3a4b2ca | 9d8a3a2c0a15dbf1f90d801e6d705d1212cf09af | /services/web__rionegro_com_ar.py | cd01900105e6f20fc372cc37095e8cfcbc691854 | [] | no_license | rudolphos/NewsGrabber | f9bddc9a9b3a9e02f716133fd746f48cee635b36 | 86354fb769b2710ac7cdd5bd8795e43158b70ad2 | refs/heads/master | 2021-01-12T12:07:55.335079 | 2016-10-09T22:39:17 | 2016-10-09T22:39:17 | 72,316,773 | 0 | 0 | null | 2016-10-30T00:35:08 | 2016-10-30T00:35:08 | null | UTF-8 | Python | false | false | 213 | py | refresh = 4
version = 20160403.01
urls = ['http://www.rionegro.com.ar/',
'http://www.rionegro.com.ar/diario/ultimas-noticias.aspx']
regex = [r'^https?:\/\/[^\/]*rionegro\.com\.ar']
videoregex = []
liveregex = [] | [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
a83c496e0dffdf576b4e3678db18acd79fcf32eb | 01d6a2fd9d20768b17c9956de95779c41c93bb33 | /lists/views.py | a0d546dc51599b9db7d3260c04f13f8cf75c6b74 | [] | no_license | kentah/TDD | 2da35b6e8786249a3d788eb23453fe7f26643a6d | c9e558f93088bb51652e4d183c085a9b42f8676d | refs/heads/master | 2021-03-12T22:38:36.798703 | 2015-01-18T01:44:00 | 2015-01-18T01:44:00 | 27,795,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | from django.shortcuts import redirect, render
from django.core.exceptions import ValidationError
from lists.models import Item, List
from lists.forms import ExistingListItemForm, ItemForm
def home_page(request):
return render(request, 'home.html', {'form': ItemForm()})
def new_list(request):
form = ItemForm... | [
"kenthow@gmail.com"
] | kenthow@gmail.com |
8ea540dbfa6691714a1d41169afb79710120e62e | 4d952120ae74a353e341e51cb7bbd779214562ca | /pieces/knight.py | acd38d79fe2a59be96dc7b61a5fd09a3817e6bb8 | [] | no_license | Saumya25mis/backend | 1f5604bdfcdf134b5322a3dcf335ebec3fc90b0d | 696e82916551c5a68e967052eefa4561246e8afd | refs/heads/master | 2023-04-15T22:50:16.986477 | 2021-01-28T19:01:56 | 2021-01-28T19:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | from .piece import Piece
class Knight(Piece):
def __init__(self, x, y, player):
super().__init__(x=x, y=y, player=player)
self.type = 1
self.set_image()
def set_image(self):
color_num = 0 if self.player == "white" else 1
self.image = f"img\\{color_num}0{self.type}.png"... | [
"roman.jaro@web.de"
] | roman.jaro@web.de |
09c0837a59af43135101f5de5b1872ed4a0c436c | b66386e453f5d009d538894b2a3294fbdbb17209 | /Portfolio/urls.py | 5f450569a4fd22efcaa6a90128a083db81713b2b | [] | no_license | Mahesh2519/MaheshDedge_WP | 6906e236c13aeccf5c5d1149359b7249a4a795d6 | 969e4a161230337391a14520f2ef9326fd36c5d1 | refs/heads/master | 2023-08-15T21:46:39.886528 | 2021-10-07T07:47:42 | 2021-10-07T07:47:42 | 414,309,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | """Portfolio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"mahesh.dedge@gmail.com"
] | mahesh.dedge@gmail.com |
32e0b143ff836c10d6c134f26cefedcaf5aaa36b | bbbc9439099aa88286de98e16265d1da4fd12b2b | /messaging_mattermost/config/docs.py | 2c4ca023b6600a4ef5dbc0c718f0f53cb9f9dd72 | [
"MIT"
] | permissive | Athenolabs/messaging_mattermost | 67ec74af453590b2e6f2606d08d8bb86d7c282e5 | 2b776cae2f879bac57f6316b14d5ba150cc97886 | refs/heads/master | 2021-01-14T12:47:05.232258 | 2016-03-28T15:35:28 | 2016-03-28T15:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/messaging_mattermost"
# docs_base_url = "https://[org_name].github.io/messaging_mattermost"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.bran... | [
"valeriy.osipov@semilimes.com"
] | valeriy.osipov@semilimes.com |
e72b191ffe48b81cecb98695841bbeb849806378 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/pynput/pynput/_util.pyi | 4202bcb5464e285fb3440fe793aaaedd606e541d | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 2,715 | pyi | import sys
import threading
from _typeshed import Self
from collections.abc import Callable
from queue import Queue
from types import ModuleType, TracebackType
from typing import Any, ClassVar, Generic, TypeVar
from typing_extensions import ParamSpec, TypedDict
_T = TypeVar("_T")
_AbstractListener_T = TypeVar("_Abstra... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
196cec3c3c13b835fab079c5c6821e27063a127f | 4f80e5f365c4d34fc11579b4d645c246d2c594dd | /run/exp3_cliffworld.py | d6ff619549e33b4a110935e090dc41d459df0974 | [] | no_license | Leo-LiHao/RL_Exercises | 379607944995a6330c5aea2c1ae1dd7bc6039346 | 314040a3887365c6fd3785464a52fc5e4f169371 | refs/heads/master | 2022-12-01T19:02:01.497857 | 2020-08-13T18:19:21 | 2020-08-13T18:19:21 | 287,350,986 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'Hao Li'
__date__ = '2020.07.25'
import numpy as np
from agents import dp
from environments import gridworld
from tools import gridsvisualizer
def playWithPolicy(env, policy):
print("========= playing in the cliff world... ==========")
state = env.e... | [
"leo_lihao@126.com"
] | leo_lihao@126.com |
fa47f633b556f75ecc66e442fe8d82e3c675b25d | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-sdrs/huaweicloudsdksdrs/v1/model/reverse_protection_group_request_body.py | 8eae3df950173a01db830f9ccf7363fab8f36972 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,564 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ReverseProtectionGroupRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The k... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6a1ae7f287a99be4aa2427d750c896168f1af0d5 | 0835f2f9dc2b9076704138ccb92af47e8fad1b98 | /fuzzySearch/fuzzySearch.py | 58f2a20c5216b8dc612b3851ab09fe248de9865d | [] | no_license | eberber/Python-Labs | 5049b51afcd3ad2b82703974ba23b935d6f337c4 | 78e5b8f2a28d907c993a42dabe57dcf84d07c465 | refs/heads/master | 2021-06-08T10:50:29.061152 | 2021-04-08T03:19:59 | 2021-04-08T03:19:59 | 147,609,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | import re
import numpy as np
def match(my_word, data):
flag = 0
payload = []
string1 = ""
counter = 0
num_matches = 0
#if a single letter does not match, thats one. on a second dont append
for i in range(len(data)):
if i >= len(my_word): #make sure word is of same length to compare
... | [
"e_berber@u.pacific.edu"
] | e_berber@u.pacific.edu |
0896cbe49ffab271ecef4d0bb2bbc318fcabc963 | 655dc3d96d2082ea0f082e25762bca51d34833de | /registrationapp/migrations/0006_auto_20161007_1804.py | 20ec3ed78722a58bb4424804b0c552c4962debbf | [] | no_license | Sagar-Madke/Student-Registration | ad35dc5207496cda6ceb6192eb528850b37ed6ef | 620f0345bd28baf303676fdec7f386760c568468 | refs/heads/master | 2021-01-10T22:55:39.302563 | 2016-10-08T08:27:56 | 2016-10-08T08:27:56 | 70,316,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-10-07 12:34
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('registrationapp', '0005_gallary'),
]
operations = [
... | [
"sagar@digitalprizm.net"
] | sagar@digitalprizm.net |
d8cf4cd661ac0dab7eaa3ce043b3db6806ae97bd | c9210fb40962f6d307cecb39be4286174f007ba0 | /jd/config/logging_setting.py | 53f84afb21c02f3cea8d3af8f070e3529fbf2131 | [] | no_license | sunshine-mtt/Selenium | e3a10ea7f68d7e07afbc2736fa2c3b78a0be431e | 2c14ba52036031726e14637c3808420e2513eade | refs/heads/master | 2020-06-19T18:06:50.903210 | 2019-07-14T09:25:04 | 2019-07-14T09:25:04 | 196,814,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import logging
import logging.config
import os
def get_logger(name='myAutoTest'):
conf_log = os.path.join(os.path.dirname(os.path.abspath(__file__)),'logging.conf')
logging.config.fileConfig(conf_log)
logger = logging.getLogger(name)
return logger
| [
"noreply@github.com"
] | sunshine-mtt.noreply@github.com |
c842ed37c49f432a744ae62f55e5ecd7979a4347 | b30c5bd3ce42722f17c17e2d0819449849034e9d | /Python/Serial.py | 8166641e8e0543d283f9b839c72f21476dbed99e | [] | no_license | Eisler18/Charlie | 6ba2348781e816d033e175df786d728502ea489d | e8e72cda2055e25ae35d36c3162bc258c20433a8 | refs/heads/master | 2020-04-24T05:21:31.601619 | 2019-06-22T14:43:43 | 2019-06-22T14:43:43 | 171,727,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | def numdatos():
ndatos = 2000
return ndatos
def serial():
import serial
s = serial.Serial('COM8')
s.baudrate = 115200
channel1 = []
channel2 = []
channeld1 = []
channeld2 = []
ndatos = 2000
i = 0
byte1 = s.read(1)
while byte1 > b'\x80':
byte1 = s.read(1)
datos = s.read(7999)
channel1.append(((ord... | [
"39389514+Eisler18@users.noreply.github.com"
] | 39389514+Eisler18@users.noreply.github.com |
59ebb6499d665989bf8a413bb91e95df4273d985 | 8ac71d953c5debca775f17fd859fd7f60d1b2663 | /src/diagram_gui.py | 91327cc8640e729e2728fb62b46c6a1659fa2df9 | [] | no_license | aAlejandroz/DiagramingProgram | 5b2db4c3a4c112e736dad8479700ed6f7ba4657a | b007578e2029e9c3d77e2e6546956e074c7a5a2e | refs/heads/master | 2020-05-15T21:19:14.613686 | 2019-04-26T21:42:15 | 2019-04-26T21:42:15 | 182,495,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,668 | py | from tkinter import *
from tkinter import messagebox
from random import randint
from src.diagram import Diagram, pickle
from src.draw_circle import DrawCircle
from src.draw_rectangle import DrawRectangle
from src.draw_square import DrawSquare
class DiagramGUI(Frame):
def __init__(self, master = None):
self.m... | [
"azalejandro1@yahoo.com"
] | azalejandro1@yahoo.com |
b72989064ffeb296f29630a79d3d32d286a4d3db | 41abc6daadc12dc0f28ece3a7ff885c3fa6bb1d6 | /POO/log.py | 91f91b28b71f4b0f257a40399b1ce11d52eb1506 | [
"MIT"
] | permissive | fabiobarretopro/Aprendendo-Python | fab0f6c08a03b6fda08dcb4df7419c1f1bdd7bb4 | a47acf6b9fdfdad55853e620db451a6a2e61bc6f | refs/heads/main | 2023-03-01T04:09:05.382774 | 2021-01-29T22:22:36 | 2021-01-29T22:22:36 | 321,541,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | class LogMixin:
@staticmethod
def write(msg):
with open("log.log.txt", "a+") as file:
file.write(msg)
file.write("\n")
def log_info(self, msg):
self.write(f"INFO: {msg}")
def log_erro(self, msg):
self.write(f"ERRO: {msg}")
| [
"fabiobarreto_pro@hotmail.com"
] | fabiobarreto_pro@hotmail.com |
02e6babb21c73f39d790ed41dff2417ab0a89fd8 | 056ff03373c07ec60f715333f8af17ea6ad3c615 | /labs/test_core.py | 1bdffa5a16592f3036993621d1b6ab5f58b4bdd1 | [
"MIT"
] | permissive | MITLLRacecar/racecar-daniel-chuang | f7da7f0c6ea7b86c5dff007996d6eb6d7a9de26c | 5d22aac5cbbd77d9380f3e4afaf3e0009a1791de | refs/heads/master | 2023-06-18T11:10:28.771574 | 2021-07-23T01:30:10 | 2021-07-23T01:30:10 | 383,568,872 | 0 | 0 | MIT | 2021-07-23T01:30:10 | 2021-07-06T18:47:38 | Jupyter Notebook | UTF-8 | Python | false | false | 6,335 | py | """
Copyright MIT and Harvey Mudd College
MIT License
Summer 2020
A simple program which can be used to manually test racecar_core functionality.
"""
########################################################################################
# Imports
#####################################################################... | [
"66690702+github-classroom[bot]@users.noreply.github.com"
] | 66690702+github-classroom[bot]@users.noreply.github.com |
a725132fbf5f54790f82eef79656faae62fc5289 | f4b9e4bda519bdd6659afadc9bd3749a6249930d | /isitup/isitup/__main__.py | 7e70d9d11f1f08cffad561713fd06bef69d4f3c9 | [] | no_license | DevProTV/205a-applications_build-cli-tools | 5b80df7ba996ee87fb3e47e4ce7e947a7f96eac3 | 91844a89ff91a659e665f96a5f01a04ef12dfc75 | refs/heads/master | 2022-12-11T10:40:17.149198 | 2018-12-14T15:59:35 | 2018-12-14T15:59:35 | 161,642,993 | 0 | 0 | null | 2021-09-08T00:44:11 | 2018-12-13T13:26:28 | Python | UTF-8 | Python | false | false | 687 | py | from textwrap import dedent
from .functions import get_args, normalize_url
import requests
from colorama import Fore
def main():
args = get_args()
url = normalize_url(args.url)
try:
res = requests.get(url)
if res.status_code != 200:
print(f'{Fore.RED}The website {args.url} is... | [
"justin1dennison@gmail.com"
] | justin1dennison@gmail.com |
3b54c56ea61dded2df7510f46d88c870ad0182a1 | 72b0bec9bca58d00a8b28c88e27b3bf69eecc1ce | /tests/test_sudoku/test_solver/test_solver.py | 7437a46e9ea0cd8910e8c6b77125735bd5ffe009 | [
"MIT"
] | permissive | zifter/nonogram | 43b8b4a337e2a1bbffe3d5786691903b64c8b7eb | 5c06adb020ea1fb7efaf4c47363e3d7dee6e5cda | refs/heads/master | 2020-12-25T14:13:51.703352 | 2016-10-31T21:11:54 | 2016-10-31T21:11:54 | 67,453,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from copy import copy, deepcopy
import unittest
from test_sudoku.testcase_sudoku import TestCaseSudoku
from sudoku.solver.solver import Solver
from sudoku.solution import Solution
from sudoku.solution import SudokuDescr
import cProfile
# https://habrahabr.ru/post/173795/
def profile(func):
"""Decorator for run ... | [
"zifter.ai@gmail.com"
] | zifter.ai@gmail.com |
db77fde274d2b3dadccad3cddd3774d816d1ebe2 | f571590e3c1787d183e00b81c408362e65671f76 | /Exercisebolean.py | d76a0e8a16cc68826d3b91a1c9b8e7aaaa67d698 | [] | no_license | neymarthan/project1 | 0b3d108dd8eb4b6fa5093525d469d978faf88b88 | 5e07f9dff181bb310f3ce2c7818a8c6787d4b116 | refs/heads/master | 2022-12-26T08:44:53.464398 | 2020-10-06T09:14:29 | 2020-10-06T09:14:29 | 279,528,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | string=input('Enter the string: ')
print('This is what I found about that string:')
if string.isalnum():
print('The string is alphanumeric')
if string.alphanumeric():
print('The string contains only alphabetic characters')
if string.alphanumeric():
print('The letters in the string are all lowercase')
... | [
"INE-02@Admins-iMac-5.local"
] | INE-02@Admins-iMac-5.local |
66ccc7cdde0856e3fe266f452caa30d6db5dcf99 | 7b1783b4b9a423a32b4d04846eacfbf22844447e | /machine_learning/NB.py | d55b31535c18b627609922bdad48656e58cbab21 | [] | no_license | vhrehfdl/Blog_code | f5fca54ddf8612c56acbbfb5134bb0f70e0a40ce | 12d9797a1da8c6e738de4f6bd1d42cedbe49b87e | refs/heads/master | 2021-10-07T17:09:53.039355 | 2021-09-27T03:48:03 | 2021-09-27T03:48:03 | 168,297,879 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | import numpy as np
positive_sentence = ["와 이 영화 정말 재미있네요.", "영화가 정말 재미있네요.", "명작 영화 정말 강추합니다."]
negetive_sentence = ["진짜 쓰래기 같은 영화내요", "시간이 아깝습니다.", "이 영화 비추합니다."]
all_sentence = positive_sentence + negetive_sentence
test_sentence = "이 영화 재미있네요."
def Word_Make(sentence_list):
word = []
for i in range(0, le... | [
"noreply@github.com"
] | vhrehfdl.noreply@github.com |
fe0cc4da59a94d0df78036600816503cfbc23403 | b2472967910be9c12576f0f97d33bca0576a8667 | /atcoder-old/2014/0510_abc008/a.py | 4994aed624cbe5ab8c5fa344b8f2893e6fc4367a | [] | no_license | ykmc/contest | 85c3d1231e553d37d1235e1b0fd2c6c23f06c1e4 | 69a73da70f7f987eb3e85da503ea6da0744544bd | refs/heads/master | 2020-09-01T22:56:10.444803 | 2020-07-14T11:36:43 | 2020-07-14T11:36:43 | 217,307,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Python3 (3.4.3)
import sys
input = sys.stdin.readline
# -------------------------------------------------------------
# function
# -------------------------------------------------------------
# -------------------------------------------------------------
# main
# -------------------------------------------------... | [
"34961813+ykmc@users.noreply.github.com"
] | 34961813+ykmc@users.noreply.github.com |
251ac003ca5d4741bf87599906a0b4ccc9411585 | a4f5d92264f6ff32021945fd70041dc90840af49 | /docstrings/tt_postscript.py | 55f971456aebc0ad3762348da706a64aa6edf0f4 | [
"BSD-2-Clause-Views"
] | permissive | matplotlib/freetypy | 95da1c583f05726de8bd4a18ec5008cd0539909d | 601be6e816511a304302d6aafdbc24031c4df5df | refs/heads/master | 2023-08-20T05:33:00.601874 | 2017-10-23T18:35:10 | 2017-10-23T18:35:10 | 11,617,229 | 5 | 7 | null | 2017-10-23T18:35:11 | 2013-07-23T19:32:39 | Python | UTF-8 | Python | false | false | 2,488 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Michael Droettboom All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, t... | [
"mdboom@gmail.com"
] | mdboom@gmail.com |
e83984eab598d9a4d0983b25a2c9166b6be93f64 | 27fef64ee8b652e2f05e8aa5b26f42899d71a57a | /counter_app/urls.py | 078ca3afb0259d1dbb5bef5ff1503b689dac2f59 | [] | no_license | CepheidVariable/dojoGames | 67ebb0e568a4036c69b07538204c35f7230d4f41 | ffda0b619910de00d251c31b8fb7d38102ff3718 | refs/heads/main | 2023-02-21T17:38:50.491008 | 2021-01-21T04:29:24 | 2021-01-21T04:29:24 | 329,097,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.counter),
path('<int:number>', views.count),
path('reset', views.count_reset),
path('step', views.step)
] | [
"robertwoodard.usa@gmail.com"
] | robertwoodard.usa@gmail.com |
ef9af12b5ff186a0b0b67480759f125563fbdab6 | 6d3d060beb53dc35106134c7bf306758afbd5826 | /greenhub_api/garden/views.py | 7187e46ef9099b6e23f55b79cee8dfe769cdb045 | [
"MIT"
] | permissive | OmarElraies/green-hub-api | 6d6d47ad031fa7cb0b38100f7e888e5aae919c6b | 3b993b3b729639b448bc72b522761a82b7aa2348 | refs/heads/master | 2020-04-24T20:24:39.097868 | 2019-03-16T19:07:09 | 2019-03-16T19:07:09 | 172,242,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | from garden.models import Plants, Places, Category, SubCategory
from garden.permissions import IsOwnerOrReadOnly
from garden.serializers import PlantsSerializer, SubCategorySerializer
from garden.serializers import UserSerializer, PlacesSerializer, CategorySerializer
from django.contrib.auth.models import User
from res... | [
"omar.elraies@gmail.com"
] | omar.elraies@gmail.com |
66e56c5e06a784751a8249e6611c44671232a2e2 | 4311ed18fbcc2d0f3326658ed22a10f6555c4f26 | /从尾到头打印链表.py | 6d23c5f127ad70d26174e57970a91033075b176e | [] | no_license | 823858275/leetcode_python | a5ec6034d5ac3d12c6c5e6415cb85ca7c2b7f5e9 | 136d7f08c9de9259ad1fcdfe902e49dd7f0e4f37 | refs/heads/master | 2022-03-04T12:41:27.604433 | 2019-09-23T10:31:06 | 2019-09-23T10:31:06 | 198,064,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | class Solution:
# 返回从尾部到头部的列表值序列,例如[1,2,3]
def printListFromTailToHead(self, listNode):
# write code here
res=[]
if not listNode:
return res
while listNode:
res.append(listNode.val)
listNode=listNode.next
return res[::-1]
| [
"823858275@qq.com"
] | 823858275@qq.com |
942b36fc9eccb83b81776afc4e5830eb704b0000 | 816d83153e53cbc69725d550b3c78a71b0344c23 | /Script_CutVideos.py | 702ca252f6d1401fad4376baff8481432125bafe | [] | no_license | julian-tejada/EmotionRecognition | 7cb9f315557ca478b75c743f23be3ce83b8029fa | 5a464ca116211ec790f3e0d48b56967e45fe1d80 | refs/heads/master | 2023-06-15T23:14:50.094475 | 2020-10-06T22:02:08 | 2020-10-06T22:02:08 | 282,294,516 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,326 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Script adapted from
"""
import cv2 # still used to save images out
import os
import sys
import numpy as np
from decord import VideoReader
from decord import cpu, gpu
def extract_frames(video_path, frames_dir, overwrite=False, start=-1, end=-1, every=1):
"... | [
"noreply@github.com"
] | julian-tejada.noreply@github.com |
f620f37381051e8779c1f812dd0ea779c22eb882 | 829b811182c44f28a8d2945c8f647ccf7c96f920 | /iki.py | 69dc4812db30268eadc1eb4fa5b1647e43fc33d8 | [] | no_license | umutguloglu/BipTech | fbe98b60cf50496678e4c0946766adda4e8a7236 | e77c317838d640a6ca1b5f4ef3d11bef097c8e9a | refs/heads/main | 2023-03-04T15:00:49.165477 | 2021-02-19T12:08:21 | 2021-02-19T12:08:21 | 324,204,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import multiprocessing
import time
def spawn2(q,s):
while(True):
if(True):
num=s.get()
print(num)
num=num+1
s.put(num)
time.sleep(5)
| [
"noreply@github.com"
] | umutguloglu.noreply@github.com |
e8cd74d572ce2e62bdb4c936036c66d2ec4ea584 | 77eb58b0bc8558abb30f6da98756662794341841 | /blogchinaSpider/blogchinaSpider/spiders/get_info.py | 124f6052d116e49c996306480b1563bb0a0b9369 | [] | no_license | hahahawu/spiders | 5f4335fe891189dd183089233400433ab3b934d3 | 409e936e8da574ca23be8c698dbff5dd51a18a5d | refs/heads/master | 2021-04-12T08:20:54.007467 | 2018-03-20T07:35:30 | 2018-03-20T07:35:30 | 120,702,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,664 | py | #!/usr/bin python3
# -*- coding: utf-8 -*-
import json
import scrapy
from blogchinaSpider import items
from blogchinaSpider.items import CommentItem
def get_author(response):
"""
:param response:
:return: 作者的用户名和主页链接
"""
author_sel = scrapy.Selector(response)
author_list = author_sel.xpath('... | [
"hahahawu@outlook.com"
] | hahahawu@outlook.com |
71b54f26ed9d21ea6af07ee7e5e61ca4f6b11f67 | e200d28ff337d246f69519e3b0af14a1162da961 | /ArcGIS_processing/OEV_Potenzial_Schleife_Diss.py | 011297b358de67a08ef5dd5b0e4b7180cd5f0b8c | [
"MIT"
] | permissive | mapeee/Accessibility_Tools | 375807af5c35b0ce239fbe98012ce865b981899d | f6eece284c11f7e30a78a130171ae1cccb024b88 | refs/heads/master | 2021-12-24T03:59:02.836160 | 2021-11-30T10:59:05 | 2021-11-30T10:59:05 | 254,043,225 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 17,709 | py | # -*- coding: cp1252 -*-
#!/usr/bin/python
#Skript, mit dem Potenziale von bestimmten Einrichtungen aus berechnet werden.
#Marcus September 2015
#für Python 2.7.5
"""
Die Idee ist die Folgende:
pass
"""
#---Vorbereitung---#
import time
import h5py
import numpy as np
import pandas
import gc
start_time = time.clock() #... | [
"marcus_peter@gmx.de"
] | marcus_peter@gmx.de |
7872bce13a1cf8b8007633567c59f075fdf07f9e | d9f191a54f07a4837664eee2d41549b2f6ad0df2 | /driver/examples/gettysburg.py | 3025f38b7bbe18979435e57ec0bb1f2e0fd234a7 | [] | no_license | adambom/driver | f5b564d76e95fe3819087e8463cb29cfd1aad08e | fde82f16ea3bcf2c80005d99b9a2ffe022582fa2 | refs/heads/master | 2020-12-25T07:26:02.533267 | 2016-06-15T00:14:06 | 2016-06-15T00:14:06 | 61,086,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | from random import randrange
'''
See how the solver performs on prose with low repetition
'''
gettysburg = 'Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great c... | [
"asavitzky@yahoo-inc.com"
] | asavitzky@yahoo-inc.com |
f9e1ce59ea2595225385d5cf3e7a38a4f69b189e | 5f27bc1a0460a078f6fe33a544f494a5dff7f452 | /script/old/D_0617_printTEST.py | e51523cee1881ac200bba959c53948d221a0e939 | [] | no_license | A-Why-not-fork-repositories-Good-Luck/arm_move | 3e381f0310265f47da14beaac136c358fb318f92 | e2e6182cfd93df1935bd3b8e9158134964dc44fa | refs/heads/master | 2023-03-15T18:37:17.337770 | 2020-11-18T06:46:06 | 2020-11-18T06:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | x = 1
y = 'a'
print "asdfasfd %s,%s" % (x, y)
| [
"welovehun91@gmail.com"
] | welovehun91@gmail.com |
a442a753d9b6c045a4a6b65f1b24b7edc56f3dc4 | 2ac90dae685f7efe04e020b8822753a142d19317 | /main/models.py | 187ed6aff976ad2de1b91e700e211a193c884a05 | [] | no_license | slavadze/SITE | 986b221aab0e65049050bfb05a391fcc056ee60b | 56395ad8cffde7774706609f59692accca18a5f8 | refs/heads/master | 2023-05-03T18:06:12.371080 | 2021-05-25T17:34:13 | 2021-05-25T17:34:13 | 362,504,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | from django.db import models
class Product(models.Model):
available_CHOICES = (
('1', 'В наличии'),
('2', 'Под заказ'),
)
title = models.CharField(max_length=200)
price = models.IntegerField()
description = models.TextField()
currency = models.CharField(max_length=3)
avai... | [
"6354045@mail.ru"
] | 6354045@mail.ru |
1cde3d59a5cbd8c0bf1dc06f47aaa8afb91f39b1 | e419f17a0572211ceaa16a19affb97fdda98881c | /lab2_autoencoder/data.py | 41baa54c4bfd48437aea1c722af3484d16db56a4 | [] | no_license | EdwardYGLi/pytorch_tutorials | c3ded7bb19d23039fff33642fdb1f3748ae1ddda | c152856fd12d26ea20410f2ca1d0f943f2c3b261 | refs/heads/master | 2023-06-11T16:56:45.121992 | 2021-07-01T00:17:47 | 2021-07-01T00:17:47 | 373,926,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | """
Created by Edward Li at 2/9/21
"""
import torchvision
class MnistDataset():
def __init__(self, storage_location):
# create our data loaders, in a more real world example you'd have to create these dataset objects.
# add some transforms and add some normalizations
self.training_dataset ... | [
"edward.li@ibm.com"
] | edward.li@ibm.com |
a0e58a63707700859e5c61c31964dd532219d8f6 | bc16dd3fbc9db84812c753da7df4af4f6529bfec | /io_utils.py | 80691884abd8f95c5222fec3b28de89761bf8c35 | [] | no_license | Hrehory/pytorch-grad-cam | b3cb1a030deb9d4c6904ebf7d60302d0e5072b14 | cd843b5bbd0a5b81c0c59fe530b90d030a7705f6 | refs/heads/master | 2021-01-21T14:27:50.582294 | 2017-07-09T09:49:24 | 2017-07-09T09:49:24 | 95,282,167 | 0 | 0 | null | 2017-06-24T07:16:14 | 2017-06-24T07:16:14 | null | UTF-8 | Python | false | false | 657 | py | import numpy as np
from torch.autograd import Variable
import torch
def preprocess_image(img):
means=[0.485, 0.456, 0.406]
stds=[0.229, 0.224, 0.225]
preprocessed_img = img.copy()[: , :, ::-1]
for i in range(3):
preprocessed_img[:, :, i] = preprocessed_img[:, :, i] - means[i]
... | [
"grzegorz.gwardys@gmail.com"
] | grzegorz.gwardys@gmail.com |
f8ef1dc596344db841a15a580fb70a2edc5e0444 | f79dc11cfb392e0312a98a3f6ef43f34f6e536c5 | /app/signalmanager.py | d48ae7b3b8d7950329d7a04aa0474be5ce4253a8 | [
"Apache-2.0"
] | permissive | dragondjf/cqssl | 869c9fb5eb5e09c979913fd140b437daba602eb8 | 86d4d69654c79650646d7672d580abf9dccf6c98 | refs/heads/master | 2021-01-20T11:32:10.635762 | 2016-12-08T13:20:23 | 2016-12-08T13:20:23 | 42,148,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from PyQt5.QtCore import *
class SignalManager(QObject):
statusTextChanged = pyqtSignal("QString")
def __init__(self, parent=None):
super(SignalManager, self).__init__()
signalManager = SignalManager() | [
"ding465398889@163.com"
] | ding465398889@163.com |
7c9226e49c1c35b422387ef75debec31ef23afe3 | c7f4b7c79d8fc3491c01b46bb5c78192d3e0c5ae | /tests/test_ConcatenatingGraceHandler___init__.py | 2b14614a988933e43b91747c54d2d1dfe7ecee0c | [
"MIT"
] | permissive | Abjad/abjad-ext-nauert | 37d4ea2121b839d2c9388e925b241795cd5a0ae7 | ad6c649c79d096ce905a7a8e80cf9d7154727424 | refs/heads/main | 2023-08-24T15:32:15.519856 | 2023-08-02T15:05:08 | 2023-08-02T15:05:08 | 132,930,780 | 4 | 2 | MIT | 2023-04-15T14:18:20 | 2018-05-10T17:05:23 | Python | UTF-8 | Python | false | false | 1,241 | py | import abjad
from abjadext import nauert
def test_ConcatenatingGraceHandler___init___01():
grace_handler = nauert.ConcatenatingGraceHandler()
assert grace_handler.grace_duration == abjad.Duration(1, 16)
assert grace_handler.discard_grace_rest is True
def test_ConcatenatingGraceHandler___init___02():
... | [
"osamupang@gmail.com"
] | osamupang@gmail.com |
d12b7c803c0ee26c17895955b0173ae850f57ec0 | 96933e173dcebcd611188b6fba982ca9cf975e1c | /qa/migrations/0007_remove_question_tags.py | fc3e9673ea51d72cfd2f1b2f275a7f9e3423e08b | [] | no_license | hift/django-qa | 7d640181312c672936a6f0b7fa2f8041350a0e4f | 57bc418e0b9f611872b50968862dd469353cb050 | refs/heads/master | 2021-01-10T10:41:16.437404 | 2015-11-22T07:54:48 | 2015-11-22T07:54:48 | 45,435,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('qa', '0006_question_tags'),
]
operations = [
migrations.RemoveField(
model_name='question',
name='ta... | [
"="
] | = |
f4d577e2f19b9ff16f9ff16c9b44e3f73ed349cd | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/nanoAODv4v5/2016/Mix/nuisances.py | 9e45ef184499d676695781cd4842074beab43449 | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 6,767 | py | import os
SITE=os.uname()[1]
xrootdPath=''
if 'iihe' in SITE :
xrootdPath = 'dcap://maite.iihe.ac.be/'
treeBaseDir = '/pnfs/iihe/cms/store/user/xjanssen/HWW2015/'
elif 'cern' in SITE :
treeBaseDir = '/eos/cms/store/group/phys_higgs/cmshww/amassiro/HWWNano/'
elif 'sdfarm' in SITE:
xrootdPath = 'root://... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
752cfbe66a1bf783322145c9ed847e41a65c1c1d | 8aac2208a647db98a7c5992081b49436104d0123 | /bumo-sdk-python/BumoPython/io1/bumo/model/request/operation/AssetIssueOperation.py | ba5edf8647dae7fd1049b64bff2b2ee857419f5f | [] | no_license | s540937854/sunxp | e17c30072921668b279d40b4f0649f7d9b76c064 | 2febff3dea5c375f6e7b6bd0a1c2bc3ce2637b65 | refs/heads/master | 2020-03-27T21:34:20.988501 | 2018-09-03T11:18:02 | 2018-09-03T11:18:02 | 147,157,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # encoding=utf-8
from io1.bumo.common.OperationType import OperationType
from io1.bumo.model.request.operation.BaseOperation import BaseOperation
class AssetIssueOperation(BaseOperation):
code = ""
amount = 0L
def __init__(self):
self.operationType = OperationType.ASSET_ISSUE
def getOperatio... | [
"2227936115@qq.com"
] | 2227936115@qq.com |
0153dc788234f640586beaff4dddea15bfaedf0b | 20c9cc82955709a6c10d6b80ad3d52437016d6a9 | /tab_ts_single_loc.py | 629576bd20a7742bf14db065915254438722c061 | [] | no_license | RemyFP/CDC_Visu | 0e50e2b9e2e25532c9563efb53f70bbd15c31fa7 | f3437e625c9a1a7b91bdb848e55a87c44c3897a7 | refs/heads/master | 2020-08-31T02:46:29.310065 | 2019-12-16T04:46:11 | 2019-12-16T04:46:11 | 218,563,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,809 | py | # -*- coding: utf-8 -*-
"""
Time series tab: single location (city or state), multiple groups
"""
import numpy as np
#import pandas as pd
import visu_fn
#from bokeh.sampledata.us_states import data as states
from bokeh.plotting import figure
from bokeh.models import Panel,NumeralTickFormatter#,LinearColorMapper,ColorBa... | [
"remypasco@gmail.com"
] | remypasco@gmail.com |
18d47fc23e346d78fa76d4564b848305d0c2d617 | b3c5844ee2aef4342ce6f9494dde2899321a4164 | /layers/GradientHighwayUnit.py | 647ac275dca875975473abda7667957240e36cfd | [] | no_license | zcs437921195/predrnn | 21c3ebc62c8e18d7f2ee6be581c96ad3ee282b6e | ef617d5dd5b0c8fc7ba6dd7ca7ccc7c722927468 | refs/heads/master | 2020-09-14T09:59:38.000714 | 2019-11-21T06:12:42 | 2019-11-21T06:12:42 | 223,097,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 9 13:36:51 2019
@author: zhouchuansai
"""
import tensorflow as tf
from tensorflow.keras import layers
class GHU(layers.Layer):
def __init__(self, filters, kernel_size):
super(GHU, self).__init__()
self.layer1 = layers.Conv2D(f... | [
"Chuansai@pku.edu.cn"
] | Chuansai@pku.edu.cn |
f2f3c98ce8015834bca319c97f8fb8b36947e191 | 2786e9dc21dec765e5a4d7b3265ca6709ce4f90c | /seriesH.py | aa736a36ae15c9987f98892e6daa39c5d13390bc | [] | no_license | amdilo/Harmonisation | e33148b0ddc9d9cd17c9c13321708acec755ae8c | a129a95739b3af5c63d3dfd9496ea9e0fa6415f7 | refs/heads/master | 2021-01-20T09:45:33.040081 | 2017-06-08T11:34:11 | 2017-06-08T11:34:11 | 90,282,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,309 | py | #!/usr/bin/env python
""" FCDR harmonisation modules
Project: H2020 FIDUCEO
Author: Arta Dilo \NPL MM
Reviewer: Peter Harris \NPL MM, Sam Hunt \NPL ECO
Date created: 12-12-2016
Last update: 02-05-2017
Version: 12.0
Perform harmonisation of a satellite... | [
"noreply@github.com"
] | amdilo.noreply@github.com |
a095b9f16fb296e5c946868b6ae49ce695cb583e | 6b06f50a8d7d2a6130ae7e3693490a4e9c3ac4ec | /scraper.py | 560e52c8ecbfa467b53719b610a281c2b0b6efb0 | [] | no_license | dandrews66/LineScraper | 7ae42437e64e372fd52d681e687e12a2157dd8d7 | 45850ca18e24b8e7860474277bcd3592191c451a | refs/heads/master | 2021-01-10T12:43:01.160269 | 2016-01-23T02:02:46 | 2016-01-23T02:02:46 | 50,218,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from bs4 import BeautifulSoup
import requests
def getHTMLData():
url = 'http://www.sportsbookreview.com/betting-odds/nfl-football/merged/?date=20150913'
httpResponse = requests.get(url)
soupHTML = BeautifulSoup(httpResponse.text, 'html.parser')
gamesArray = soupHTML.find_all('div', class_='event-holder... | [
"dandrews@Donalds-MacBook-Pro.local"
] | dandrews@Donalds-MacBook-Pro.local |
23cec2affa323d58858edf1783d7ae0662c9944b | 6d560c49e6f7ce03bea54a582cdf12e25e87cb3e | /App/MigraineApp.spec | 053529bcd39458d98eababb762cb9f409adcd57b | [] | no_license | pnm4sfix/MigraineApp | 2429aff11698cd949bd4f08d2458859062e1e9a5 | 1cdc1de315e6e966377181e83eab7a93ccee3c73 | refs/heads/master | 2023-01-23T01:36:06.203163 | 2020-12-07T10:57:06 | 2020-12-07T10:57:06 | 272,191,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | spec | # -*- mode: python ; coding: utf-8 -*-
from kivy_deps import sdl2, glew
from kivymd import hooks_path as kivymd_hooks_path
import sys
sys.setrecursionlimit(5000)
block_cipher = None
a = Analysis(['C:\\Users\\pierc\\Documents\\GitHub\\MigraineApp\\main.py'],
pathex=['C:\\Users\\pierc\\Documents\\GitHub\\M... | [
"45112367+pnm4sfix@users.noreply.github.com"
] | 45112367+pnm4sfix@users.noreply.github.com |
44a465a956c1c8a8a47a4a915e7366750b2752f2 | c12811f1b6a60d8a8a3ef24f358c9a2edf789e7e | /lab4/app/views.py | bbd878cc43ee12f4f2eb4207769db97e5efafdb2 | [] | no_license | manuelricardo/DjangoUnchained | 7104825d52782f4d27549f79da7bba1216783150 | 278a2edd6041645ec962fe88887f5069ce3f40a6 | refs/heads/master | 2021-01-01T18:06:27.677054 | 2015-02-10T19:31:22 | 2015-02-10T19:31:22 | 30,039,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render (request, 'index.html') | [
"manuel@guanesua.com"
] | manuel@guanesua.com |
b2ee99ab61869de3e0076e3216e7a06574b7fbc5 | 75e1d9446cb1fca5c6a79ad0ba7f38268df1161f | /Python Programs/both-adjacent-elements-odd-or-even.py | cc2b13fa70a753c1820a7d007e5bebba5611bfd7 | [
"CC0-1.0"
] | permissive | muhammad-masood-ur-rehman/Skillrack | 6e9b6d93680dfef6f40783f02ded8a0d4283c98a | 71a25417c89d0efab40ee6229ccd758b26ae4312 | refs/heads/main | 2023-02-03T16:45:54.462561 | 2020-12-23T08:36:28 | 2020-12-23T08:36:28 | 324,221,340 | 4 | 1 | CC0-1.0 | 2020-12-24T19:12:54 | 2020-12-24T19:12:54 | null | UTF-8 | Python | false | false | 953 | py | Both Adjacent Elements - Odd or Even
Both Adjacent Elements - Odd or Even: Given an array of N positive integers, print the positive integers that have both the adjacent element values as odd or even.
Boundary Condition(s):
3 <= N <= 1000
Input Format:
The first line contains N.
The second line contains N elements sep... | [
"36339675+hemanthtejadasari@users.noreply.github.com"
] | 36339675+hemanthtejadasari@users.noreply.github.com |
27dba1ea291a34fea8b112f6206cb6f8ff59d092 | d96450d4b57ba2f06ed405a5d48fcc114ddb118b | /fabfile.py | 11554a5e0f616e388d038d84b3233c081b820a9f | [] | no_license | niallobroin/github-gists | cf992ee94b4d07a180f3ed51e014fb081c027735 | 97e817d476f308e8f9ec9f86c9d19abae876c317 | refs/heads/master | 2021-06-03T18:33:55.072746 | 2016-08-21T20:26:08 | 2016-08-21T20:26:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 610 | py | from fabric.api import run, env, parallel, settings, quiet
#env.use_ssh_config = True
env.gateway = 'noor2'
env.hosts = ["gpu%02i" % i for i in range(38)]
env.skip_bad_hosts = True
#@parallel
def check_gpu():
uname = run("lscpu | grep -i vendor", quiet=True, warn_only=True)
out = run("lspci | grep -i Te... | [
"nobyrnes@icloud.com"
] | nobyrnes@icloud.com |
09264918f1d9a7e537a3f2adb0dc03c92f6b932f | 519dd65a2fd0c0456a750640cd20e339dbd9fb9a | /node_modules/jsdom/node_modules/contextify/build/config.gypi | 1708cdb83354ac7403062bc2a29bc1386066646c | [
"MIT"
] | permissive | ekavaliM/domdom | be2da2933a24ead8904668e0917da4b98862babf | 4b3f83f11f318dbe321988ce06f15b57a0b5f8e5 | refs/heads/master | 2020-12-25T06:12:18.656099 | 2015-04-20T17:36:58 | 2015-04-20T17:36:58 | 31,026,994 | 0 | 0 | null | 2015-02-19T17:23:26 | 2015-02-19T17:23:25 | XML | UTF-8 | Python | false | false | 3,120 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "true",
"node_prefi... | [
"ekavali@amida-tech.com"
] | ekavali@amida-tech.com |
133ecc63c3b8010b2e081e25503fe33369029499 | f9a5e7233875989f994438ce267907d8210d60a1 | /test/pump_sensor/metalearning/knn_ranking/RMSE/k=5/univariate_statistical_test_F-test/sensor_prediction_F-test_AUCROC.py | 07f3ad3de4c6f7b7527d340a0b8f360e9da3c1b9 | [] | no_license | renoslyssiotis/When-are-Machine-learning-models-required-and-when-is-Statistics-enough | da8d53d44a69f4620954a32af3aacca45e1ed641 | 6af1670a74345f509c86b7bdb4aa0761c5b058ff | refs/heads/master | 2022-08-29T20:21:57.553737 | 2020-05-26T18:03:46 | 2020-05-26T18:03:46 | 256,439,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | py | import sys, os, pickle
from pathlib import PurePath
current_dir = os.path.realpath(__file__)
p = PurePath(current_dir)
sys.path.append(str(p.parents[7])+'/metalearners/knn_ranking_method/RMSE')
from KNN_ranking_k_5_RMSE import KNN_ranking
#Load the selected meta-dataset after performing zero-variance threshold
with op... | [
"rl554@cam.ac.uk"
] | rl554@cam.ac.uk |
7ea7b675e3519f1041f62d9f32ed90424c5b7a73 | 1f2d6243343d0750a01392220c2a4a02a197beaf | /apps/news/serializes.py | 726f14fa19c97b48059171a4fe50e6f2e48c8cf6 | [] | no_license | LuBiqPan/xfz_demo_01 | 774ed831e980cbc5a664696631a904cdeaefa69d | 517416fa3b23388070ff9a1c4c10bc29c899ea8d | refs/heads/master | 2022-12-10T12:30:44.216045 | 2019-05-06T07:51:25 | 2019-05-06T07:51:25 | 175,606,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py |
from rest_framework import serializers
from .models import News, NewsCategory, Comment, Banner
from apps.xfzauth.serializes import UserSerializer
class NewsCategorySerializer(serializers.ModelSerializer):
class Meta:
model = NewsCategory
fields = ('id', 'name')
class NewsSerializer(serializers... | [
"xuyuanyefeng@163.com"
] | xuyuanyefeng@163.com |
226db6ef29278e9c5bed42cffc9f0ecef5632813 | 53c224a6eee8c6869bc5c292cc8783ea934f0656 | /data_generator.py | b0417b0ce56cec970cf6c200a3ac5465138a59c4 | [
"MIT"
] | permissive | kunato/Deep-Image-Matting | 05909d276dd86cc3d59eacf1865511375d6b3f54 | 84baf4ce893083a940d9bfe224515f09787e9289 | refs/heads/master | 2020-05-22T18:35:43.610713 | 2019-05-14T15:44:34 | 2019-05-14T15:44:34 | 186,475,076 | 0 | 0 | MIT | 2019-05-13T18:33:15 | 2019-05-13T18:33:14 | null | UTF-8 | Python | false | false | 5,986 | py | import math
import os
import random
from random import shuffle
import cv2 as cv
import numpy as np
from keras.utils import Sequence
from config import batch_size
from config import fg_path, bg_path, a_path
from config import img_cols, img_rows
from config import unknown_code
from utils import safe_crop
kernel = cv.g... | [
"foamliu@yeah.net"
] | foamliu@yeah.net |
6366a51b34c9707afc49632e677013a815ca55db | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /jSjjhzRg5MvTRPabx_19.py | eb3db41a4579e7f71b9bfce3b4dbb68b86841701 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | """
Given a list of strings (nouns), list them up in a complete sentence.
### Examples
sentence(["orange", "apple", "pear"]) ➞ "An orange, an apple and a pear."
sentence(["keyboard", "mouse"]) ➞ "A keyboard and a mouse."
sentence(["car", "plane", "truck", "boat"]) ➞ "A car, a plane, a truck a... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
eb831ed8ef9bee45b079d8bb7b224cad7fadbcf2 | d5325d6157637c0522eb4e710fe3f5a9b9e81ed1 | /shenfanyi/lstm_keras.py | cbb747f4de2ef08deaf530f6fe015f87402aa80a | [] | no_license | limberc/KDD-2017 | 07732911d33ab55dda6b5449dd80cbb67576587e | 75f65ce5c7cd8889658ad0d49c1f18bec9136a7d | refs/heads/master | 2021-06-15T22:47:27.522034 | 2017-05-02T14:15:16 | 2017-05-02T14:15:16 | 86,591,785 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py |
import keras
from keras.models import Sequential
from keras.layers import Dense, Embedding
from keras.layers import LSTM
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# data1 = np.genfromtxt('./data/oneweek1_0.csv', delimiter=',')
# data = data1[1:,1:]
batch_size = 4
# x_train = np.reshape... | [
"564381293@qq.com"
] | 564381293@qq.com |
763d65bb9cf480f2fde098467583113eed39d950 | ee1b9c5d650fb56a334a70705c6b551e5dfaf0b0 | /MyBlog/Blog/adminforms.py | ec6376d3cab5f3b880f39241b0c09b889d71205b | [] | no_license | King-Mr/MyBlog | 324bf5b32864b5f75f69a0b05819ec12740ea7ee | 65c0c1fbd4aa1e2e2f7cbe233631ba1d2a95cf14 | refs/heads/main | 2023-07-21T23:14:43.670329 | 2021-08-13T09:01:26 | 2021-08-13T09:01:26 | 325,240,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from django import forms
from ckeditor.widgets import CKEditorWidget
from ckeditor_uploader.widgets import CKEditorUploadingWidget
class PostAdminForm(forms.ModelForm):
#desc = forms.CharField(widget=forms.Textarea,label='摘要',required=False)
#配置富文本编辑器会报错,原因是插件与Django不同步,需要把报错的render参数注释掉
content = forms.Cha... | [
"8558909@qq.com"
] | 8558909@qq.com |
045788ca0313351ea24eff025aa70d46c6514f8a | da5907a7ffbcd9a20c6d37ed5d9ca3b53cdbd3ff | /IPScan.py | ac83f6b01a2844f6d1780e52e3a63a453134012b | [] | no_license | sinkdwty/Rapid7Nexpose | 38edb8580c4186be5bec23b8c19b0f37f4c762aa | 05bdedcd24719fafa90d8861b5f1205f84d7b578 | refs/heads/master | 2021-06-20T01:45:49.902136 | 2017-08-07T19:46:47 | 2017-08-07T19:46:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,542 | py | import sys, random, subprocess, time, base64
# Port scans a single IP Address for vulnerabilities and prints a report in csv format
# Example: python scanIP.py ipAddress
# NEED TO DEFINE SCAN ENGINES ON NEXPOSE BEFORE SCANNING IPs
# CDK used lookup tables w/ engine IDs based on IP ranges
engine = 1
# Login ... | [
"noreply@github.com"
] | sinkdwty.noreply@github.com |
8fac5296349d8573e9e440661b2a0ddf083fe19e | 6c9ad693fd1be479f8fb544decf87b9e9a6d278f | /assessments/migrations/0001_initial.py | b593d7c331c2e472f0346618e26d9f25e0434b4f | [
"MIT"
] | permissive | acounsel/django_msat | f83ec57e9f43d38bad282a3f3e1b539eb022f8a0 | 86a54e43429001cb6433e28b294d6b8a94b97e6e | refs/heads/master | 2023-03-02T21:25:12.383835 | 2021-02-15T18:12:18 | 2021-02-15T18:12:18 | 338,396,932 | 0 | 0 | null | 2021-02-15T18:11:29 | 2021-02-12T18:13:09 | Python | UTF-8 | Python | false | false | 3,125 | py | # Generated by Django 3.1.6 on 2021-02-12 18:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_msat.storage_backends
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(setti... | [
"samer@Samers-Mac-mini.local"
] | samer@Samers-Mac-mini.local |
eb18c8646525002a91b48a87967c69003dfc5ec8 | e43b75fcb0c949a4a95b644c9b33aa5c2ddfdb86 | /src/layers/python/DynamoDB.py | 9a79b485b1be8f1898d0ac9757621603138ea618 | [] | no_license | neoghostz/ServerlessDaysANZ2020 | 4871ef1df4926eb87104f69f921e56a91ade7dbb | 2332f3407db2880aec86afa014072cfee04dc670 | refs/heads/master | 2022-12-07T16:51:25.764806 | 2020-09-02T11:37:05 | 2020-09-02T11:37:05 | 288,946,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import boto3
class DynamoDB:
def __init__(self, table_name):
self.resource = boto3.resource('dynamodb')
self.table = self.resource.Table(table_name)
def delete_item(self, Key):
response = self.table.delete_item(
Key=Key,
ReturnValues='NONE',
Return... | [
"neoghostz+github@gmail.com"
] | neoghostz+github@gmail.com |
2e3c056ddb9c2a6b10f4f8034e24097ff42c81da | 2dfbb97b47fd467f29ffb26faf9a9f6f117abeee | /leetcode/1191.py | 9521fa28400a3f61456c8bb3b23adb9a49256601 | [] | no_license | liuweilin17/algorithm | 0e04b2d36dfb6b7b1b0e0425daf69b62273c54b5 | d3e8669f932fc2e22711e8b7590d3365d020e189 | refs/heads/master | 2020-12-30T11:03:40.085105 | 2020-04-10T03:46:01 | 2020-04-10T03:46:01 | 98,844,919 | 3 | 1 | null | 2018-10-05T03:01:02 | 2017-07-31T03:35:14 | C++ | UTF-8 | Python | false | false | 1,534 | py | ###########################################
# Let's Have Some Fun
# File Name: 1191.py
# Author: Weilin Liu
# Mail: liuweilin17@qq.com
# Created Time: Sun Sep 15 11:17:08 2019
###########################################
#coding=utf-8
#!/usr/bin/python
#1191. K-Concatenation Maximum Sum
class Solution:
# notice th... | [
"liuweilin17@qq.com"
] | liuweilin17@qq.com |
ccdaa4456177883986864fd3be8c8e5ff907ebe3 | 5e944167564f1c85431b2244cb9181a058b0ceeb | /homework1/exercise1.py | cdcc8f97bf7ceb91f7685291401cf5dc92596cd6 | [] | no_license | uwhpsc-2016/homework1_solution | 4519ddec35e29b0b15561cd5b066a593edb3c499 | d2b68d2c6aaf6a84d34405ec3b352a6ecc6c346c | refs/heads/master | 2020-12-26T21:37:31.910378 | 2016-05-05T02:58:46 | 2016-05-05T02:58:46 | 55,077,710 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | def collatz_step(n):
"""Returns the result of the Collatz function.
The Collatz function C : N -> N is used in `collatz` to
generate collatz sequences.
Parameters
----------
n : int
Returns
-------
int
"""
if (n < 1):
raise ValueError('n must be >= 1')
if (n =... | [
"cswiercz@gmail.com"
] | cswiercz@gmail.com |
3a2812c77068d344932d896105814f331a261544 | 531187caa3165f48779d2d53fdba983c0f0f25d7 | /infra/gcb/build_base_images.py | 6ceb4d4f6a123f8bbc3ea2a6ca659ed76e2236c9 | [
"Apache-2.0"
] | permissive | thaytan/oss-fuzz | 58d8455fa6ad3f44f672d1dee43a527aa48f0acb | a3fbb5d67c955dab24050b73d29ce518e861cff5 | refs/heads/master | 2021-04-28T04:35:25.180288 | 2018-02-20T06:42:26 | 2018-02-20T06:42:26 | 122,164,341 | 0 | 0 | Apache-2.0 | 2018-02-20T06:45:35 | 2018-02-20T06:45:35 | null | UTF-8 | Python | false | false | 1,526 | py | #!/usr/bin/python2
"""Build base images on Google Cloud Builder.
Usage: build_base_images.py
"""
import os
import yaml
from oauth2client.client import GoogleCredentials
from googleapiclient.discovery import build
BASE_IMAGES = [
'base-image',
'base-clang',
'base-builder',
'base-runner',
'base-... | [
"ochang@chromium.org"
] | ochang@chromium.org |
683a3f3492255066d1463b56418bfee089e6a0e2 | 779be2cae4bcfa24d47c2f681dd77bd2419099e9 | /atcoder_py/Archive/ABC204_A_20210606.py | b1a175022a1720a474395bc6e55552573ed9b8db | [] | no_license | ynanigashi/til | f72d586427981c5b4543546193f8bfcb0d65a8c8 | 9de4453300ea5b084f4348a3e25ccedb0627d10c | refs/heads/master | 2023-08-10T18:30:44.599474 | 2021-09-26T12:50:39 | 2021-09-26T12:50:39 | 274,137,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | x, y = map(int, input().split())
if x == y:
print(x)
else:
print(3 - x -y) | [
"26033486+ynanigashi@users.noreply.github.com"
] | 26033486+ynanigashi@users.noreply.github.com |
5beef03efb45295e03829194bd12c2797ac44dfb | fecdc9ee894eed08fcf749b4d827b935c5e777c7 | /Assignment 2/User/waitress_server.py | b84751a10e237b52bdd3aa214dbc4b2d51fa4603 | [] | no_license | madhavmk/Cloud-Computing-Course | 4a2a2d3c16f7ed1d5872808c46e7915b3c2b432c | 6597c67f6abc013867dcad71b98a45945cfcd1ab | refs/heads/master | 2022-09-08T10:10:12.803383 | 2020-05-23T08:04:19 | 2020-05-23T08:04:19 | 234,737,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from waitress import serve
import app
serve(app.app, host='0.0.0.0', port=8080)
| [
"madhavkashyap99@gmail.com"
] | madhavkashyap99@gmail.com |
a2131e79a382eb776dc5b2897d630c4e3620693e | 297a74ee84a04867a01739dce79190a74dc6c562 | /BART_SP-chinese/third_party/spider/preprocess/schema.py | 2b666befa368ad35424edcde89d1930e88023e11 | [] | no_license | EvansongBBR/sgccTunnel2 | eea79cef7add9b6c35229f5e7db562a79a2bea7f | fabb6d1ce1f60d1ba60f1cafd10de3c1391c0e86 | refs/heads/main | 2023-07-15T20:33:09.805298 | 2021-08-25T08:23:25 | 2021-08-25T08:23:25 | 399,710,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | import json
class Schema:
"""
Simple schema which maps table&column to a unique identifier
"""
def __init__(self, schema, table):
self._schema = schema
self._table = table
self._idMap = self._map(self._schema, self._table)
@property
def schema(self):
return se... | [
"noreply@github.com"
] | EvansongBBR.noreply@github.com |
867c718fe8a3548713bcedb0618124e0d5061036 | a25bc4c9360de2d3d1cb6279aa631329bd8d7fa0 | /2018MBTrigger/Bfinder/test/finder_PbPb_75X_cfg.py | 5843a57738e6dbeebfc02edbbab1451980c2e62e | [] | no_license | MYOMAO/2018MBTrigger | 7ff3d9c9011b0fb0cc58326fc6044fb14e393946 | 2f4ca4237fa9750f917d9bbb7bc73160cf48fad6 | refs/heads/master | 2021-06-24T06:24:43.998455 | 2020-11-05T05:41:27 | 2020-11-05T05:41:27 | 146,774,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,288 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process('HiForest')
import FWCore.ParameterSet.VarParsing as VarParsing
ivars = VarParsing.VarParsing('analysis')
#ivars.inputFiles='file:/mnt/hadoop/cms/store/user/twang/HIDiMuon/RECO_HIDiMuon_L2DoubleMu3Skim_v10_JpsiFilter_v1_CMSSW740pre8_20150428/3c3450dda05abb... | [
"zhaozhongshi@zzcms130.dyndns.cern.ch"
] | zhaozhongshi@zzcms130.dyndns.cern.ch |
571aa26c028fcac7301b25d75df68e931576077e | c66a83b3502d71cfda070662bd31556c253327b2 | /timun/tests/test_timun.py | dd459517f3d996cd9762d0eece7663b8884c4c02 | [] | no_license | ridho9/thesis | d947e8e50e7b52550585f062bc396d180db86b40 | f86d526f1eb3639b3720278a15aa32ed29e6f77b | refs/heads/master | 2021-07-23T05:14:30.596097 | 2020-09-24T13:28:19 | 2020-09-24T13:28:19 | 218,535,010 | 0 | 1 | null | 2019-11-22T06:17:17 | 2019-10-30T13:33:32 | TeX | UTF-8 | Python | false | false | 86 | py | from timun import __version__
def test_version():
assert __version__ == '0.1.0'
| [
"p.ridho@yahoo.co.id"
] | p.ridho@yahoo.co.id |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.