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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f54412f85eb9a15ea9f8d417b06cf52653f0ab70 | afcad0132386caba80237f09280c649dd793f6db | /services/scraper/export.py | 284ab29423be231e7ec7defba1235d3742fe6e35 | [] | no_license | chimano/happy-bnb | 8b3bce7495a8dd8781cb6099b89b793f6feedf41 | e0ce7f8d4d1ae93746ebc01a3fe350c44602f5a5 | refs/heads/master | 2020-04-17T13:21:36.003284 | 2019-01-21T05:06:51 | 2019-01-21T05:09:21 | 166,612,324 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | from sys import argv
from ast import literal_eval
import pymongo
URL_FORMAT = 'mongodb://{}/'
def categorize(entry):
return 'high' if float(entry[0]) > 4 else 'low'
if __name__ == '__main__':
if not argv or not len(argv) == 5:
print('Usage: python export.py HOST:PORT DATABASE COLLECTION IMPORT_FILE... | [
"lucas_turpin@hotmail.com"
] | lucas_turpin@hotmail.com |
30dbf2c9ddf45492b2c4906ac69c6fdaf6cf3b0c | 9547f82dc5a81bdc19ba5442d41518a81b518825 | /consecucion_traspaso/models.py | e3468724b015cae28f71774b7f879788abe68b5d | [] | no_license | luisfarfan/capacitacion | 12784f95564eda1dc38dc22aa518b99d4b315c75 | c93e4502476c02bb3755a68d84404453b2c2dd81 | refs/heads/master | 2021-01-11T04:17:15.476849 | 2017-02-14T01:13:27 | 2017-02-14T01:13:27 | 71,189,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class PersonalCapacitacion(models.Model):
id_per = models.IntegerField(primary_key=True)
dni = models.CharField(max_length=8, blank=True, null=True)
ape_paterno = models.CharField(max_length=100, blank=True, n... | [
"lucho.farfan9@gmail.com"
] | lucho.farfan9@gmail.com |
f16bb51a8835137aba50c21bb060c677a7604e02 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_musses.py | b1ce3e681289e77be9498786f527b925bf9b01de | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py |
#calss header
class _MUSSES():
def __init__(self,):
self.name = "MUSSES"
self.definitions = muss
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['muss']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fb1d4bb2df0be442fc7945067e0d14571cdc9dd6 | 6a1601d01e9ff7dbc6eeff9964ccdb8b182b5fb4 | /elections/views.py | a3698d33ae21468251a84b03523936788ab2908a | [] | no_license | Devourchoi/0902 | 41d55b41b16db467cd07693669c752fef3ba7436 | 9e63fc85cb9e4e9301c874dcdc8e6fed9a5e36e3 | refs/heads/master | 2022-12-16T23:15:00.625899 | 2020-09-05T00:56:20 | 2020-09-05T00:56:20 | 292,975,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import M1Question
def index(request):
m1questions = M1Question.objects.all()
context = {'m1questions':m1questions}
return render(request, 'elections/index.html', context)
def M1QDs(request, M1QD):
return HttpResp... | [
"cih9144@naver.com"
] | cih9144@naver.com |
b49b688fcabbaedc2a8bfc477ba05c6aa46b4a66 | d4d3a649bd66315d8b273a6b473c5ed024d2e86e | /searchkeyws/serializers.py | 4fa9b6362347c0f2b20f43d056ccc963deaa30be | [] | no_license | Leanwit/gisiaws | 934e5ef4b3fd42346927847d44af17d219a51c77 | 8863bfcb03a00ee343968746a4f7902592d8099f | refs/heads/master | 2021-01-14T10:03:51.648179 | 2016-04-24T15:34:06 | 2016-04-24T15:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | from rest_framework import serializers
from searchkeyws.models import *
class SearchKeySerializer(serializers.ModelSerializer):
class Meta:
model = SearchKey
fields = ('id', 'clave')
class SearchUrlSerializer(serializers.ModelSerializer):
class Meta:
model = SearchUrl
fields ... | [
"luislezcair@gmail.com"
] | luislezcair@gmail.com |
256c5f55fe05774426ef35b4325026001409ec73 | b33c52cba0eb0bb2d205c7ccd0df4bc8bfe2eb97 | /laravalidation/validation.py | f2b79aa8d18c098391379e73de9526c1ee808cc2 | [
"MIT"
] | permissive | kristopherchun/laravalidation | 718cad923f8f9b6b6b03d2018fb415d27256ed3e | 2a68a0b132428759954dfed7404e45d3841f51b7 | refs/heads/master | 2020-05-20T00:40:35.291042 | 2019-05-07T18:33:57 | 2019-05-07T18:33:57 | 185,278,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,169 | py | import re
import datetime
import sys
import json
import os
class Validation():
# List to store the error messages in
response = {}
errors = {}
error_message_templates = {}
def validate(self, data, rules, custom_messages=None):
"""Validate the 'data' according to the 'rules' given, return... | [
"kristopher.chun@dataq.ai"
] | kristopher.chun@dataq.ai |
f2f48e85360e44d5a3443a9845dae958b88ac7b3 | abf87dce5b4a0799a619a5b80b078536671bc4de | /wenet/utils/cmvn.py | d262143210dde2c73b7dabd67eba87ecdbc2a7b4 | [
"Apache-2.0"
] | permissive | fanlu/wenet | 0b784831a3cc741538c8e31680d6774163d55656 | 8c5f79449d4ab1bd31ed75814f1ea56050670a5d | refs/heads/main | 2023-07-09T07:30:00.817172 | 2021-08-23T10:36:58 | 2021-08-23T10:36:58 | 333,722,807 | 12 | 2 | Apache-2.0 | 2021-01-28T10:24:21 | 2021-01-28T10:24:20 | null | UTF-8 | Python | false | false | 2,991 | py | #!/usr/bin/env python3
# Copyright (c) 2020 Mobvoi Inc (Binbin Zhang)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | [
"noreply@github.com"
] | noreply@github.com |
0c05978dfc7d7959566cd156f4599852862564c0 | 0745879ee221b431784478085ec17869fc8e87f1 | /if_else_control.py | 4d5c5ffbbb0c8e3526189d81f5c1f4a5ab510ea6 | [
"MIT"
] | permissive | joeysal/astr-119-hw-2 | 96c08c3330c4e96ce4a9d9284c2eaf897db28c1e | cb63f577370e5835c8ae027e624ad2459e71c3cb | refs/heads/main | 2022-12-26T00:26:57.474671 | 2020-10-11T23:16:09 | 2020-10-11T23:16:09 | 302,715,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | #define a subroutine
def flow_control(k):
#define a string based on the value of d
if(k==0):
s = "Variable k = %d equals 0." % k
elif(k==1):
s = "Variable k = %d equals 1." % k
else:
s = "Variable k = %d does not equal 0 or 1." % k
#print the variable
print(s)
#define a main function
def main():
#... | [
"noreply@github.com"
] | noreply@github.com |
fa254f89e3eb04376c18b0fd50454b35cf755972 | 1ba0a95bc4369a581c7c42a1ee076768149cd201 | /shuffle_file.py | 805b085a4c3e1990c12c72ca84f1fc932f05b0a6 | [] | no_license | bhorkar/kaggle_ctr | 29122ceaa9cae0bdd9c65464bf833e7ab2f1808c | 6dc2bf413fb1bc9605462159728ad766c76b925e | refs/heads/master | 2021-01-19T08:10:38.570563 | 2014-12-24T15:06:31 | 2014-12-24T15:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py |
def shuffle_file(path, buff=10000000, has_header=True):
import random
from datetime import datetime
start = datetime.now()
header = ''
with open(path) as f:
for linecount, line in enumerate(f):
if linecount == 0 and has_header:
header = line
f.clos... | [
"abhijeet.bhorkar@gmail.com"
] | abhijeet.bhorkar@gmail.com |
81393b9d2b45da22c82c2041e6d293d0eea36740 | eb5663b38eb39e80bdb8291c445c7bb14dfcebff | /ipl/ipl/apps/matches/migrations/0005_auto_20191102_1208.py | 6dd442ae775c93ce3f8d9fe9ce9294ec561cae05 | [] | no_license | aadil-reckonsys/ipl-statistics | d8e04b320f89fc6cefc6997334beba8453ee4ba2 | fc59268bfc1e3330aa49125a2d5fe010d34645a9 | refs/heads/master | 2020-09-03T07:40:50.906479 | 2019-11-04T04:41:33 | 2019-11-04T04:41:33 | 219,418,756 | 1 | 0 | null | 2019-11-04T04:42:34 | 2019-11-04T04:42:34 | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 2.2.6 on 2019-11-02 12:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('matches', '0004_auto_20191102_1206'),
]
operations = [
migrations.RenameField(
model_name='delivery',
old_name='dismissed_ki... | [
"aadil@reckonsys.com"
] | aadil@reckonsys.com |
8bd3e7c8d668cfc74846117b6febfca47c28fc71 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/shared/source/git.py | ee124d0731c0133d6e31483c44d56b4db9f1f8c3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 9,823 | py | # Copyright 2015 Google Inc. All Rights Reserved.
"""Wrapper to manipulate GCP git repository."""
import errno
import os
import re
import subprocess
import textwrap
from googlecloudsdk.core import log
from googlecloudsdk.core.util import compat26
from googlecloudsdk.core.util import files
from googlecloudsdk.core.ut... | [
"joe@longreen.io"
] | joe@longreen.io |
15732a57f132ed2f8ccbd8946e4896179e207627 | 84bd3c9ae988defff60b8a8bb080ddfe983dd03e | /code/misc.py | 0a44427a3cde1a53e9da8d133d1f8ee5dc3ba2bf | [] | no_license | ashwanikhemani/CRF | de5fed8e99db72c412710fabc2323874b3358034 | 568eb654db2fd08e1b30fb2078288e01a3afccc9 | refs/heads/master | 2020-03-22T08:32:00.435747 | 2018-09-23T17:58:09 | 2018-09-23T17:58:09 | 139,772,256 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #the orphaned functions that don't belong anywhere
def print_image(X):
#prints an image, if it is in a list
for i in range(16):
print(X[8*i:8*i+8])
| [
"gmarat19@gmail.com"
] | gmarat19@gmail.com |
e860c0e792bd935c6f3dca00e8a1702e2609fa78 | 6f3a4ec0cb18aea374d130d4d2af4ccaad59f508 | /label_prop_tab1.py | 32dc81a42aaabb82784fc022be6048a787740368 | [] | no_license | AlessiaWent/Community-detection | a2786ce795b70bfc40f3202233f72ef3fdc4a906 | e4b12d7b6418f88b50a7a774e1c6677cbf97b0f8 | refs/heads/master | 2021-01-17T20:35:29.959860 | 2016-12-15T17:33:18 | 2016-12-15T17:33:18 | 68,443,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | #The program reads a file containing the edges and corresponding weights, performs label propagation and outputs Table 1
#Usage: ./label_prop_tab1.py cftable nproc edges_file output_file
import codecs
from igraph import *
import time
from point_mix import Point
import random
import multiprocessing
from multiprocessing ... | [
"alexwent91@gmail.com"
] | alexwent91@gmail.com |
b5f225109cb48bec4a6038fd921fb471c7247f55 | 01fd020808e9bb2af4f47ca081c73f8328aab8b0 | /Mancala/Testselbstspielen.py | 27dabba8c13c1090e6674d6e65ca55fdad1ab61a | [] | no_license | JojoB96/Neuronale-Netze | 0d077e87510c3b13ea15bd7c3cf652e6bf3566f1 | 3401e3bd10d8ffd0d4fde6c3053fdd7669747949 | refs/heads/master | 2022-12-08T10:36:45.423260 | 2020-09-04T11:36:45 | 2020-09-04T11:36:45 | 271,476,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 15 14:15:22 2020
@author: johanna
"""
import numpy as np
import mancala as m
ma = m.Mancala(exploration_rate = 0.2)
print("Start")
print(ma.net.biases)
print(ma.spielfeld[0:12])
#ma.train_net(500,25,1)
print("trained")
#print(ma.play())
print(... | [
"johbeier@hotmail.de"
] | johbeier@hotmail.de |
ba44833508e64f5a05861a52410e91f082a08777 | bb0094791dd4c6f19bfbdfc342bfaec58f4ee04a | /SurfOnVpn/surfOnVpn.py | 540d3721e6afefc20184973be5650b454692c66f | [
"MIT"
] | permissive | prabhakar1998/SurfOnVpn | 6e74866cda22b12f940bd653ff0f806189fca5f5 | 74b8e28255e85a073300680475c9053407865904 | refs/heads/master | 2021-09-13T04:48:26.623150 | 2018-04-25T04:28:37 | 2018-04-25T04:28:37 | 115,930,770 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,089 | py | """Application File, This file is the main file to run.
Usage python3 surfOnVpn
Dependencies in setup.py file
"""
from threading import Thread
from os import system, popen
import subprocess as sub
from vpn import Vpn
from kivy.config import Config
from kivy.uix.popup import Popup
from kivy.uix.label import Label
fro... | [
"findmebhanujha@gmail.com"
] | findmebhanujha@gmail.com |
821692c00f4beae20681d0ca24a85d51f8daeaff | fda2cc97a3f0cb5598ff4d53f599cd5eedca6dc5 | /src/models/ml_model.py | 05a9f8f0f25b2a5f3c1f472ba37aa36768eba9b9 | [
"MIT"
] | permissive | sboomi/cp1 | a1f16e1c617708b9bc453137ccf485d253938c87 | 7f7aa96e8ba9cfe00802028a61bfba5e90c999f6 | refs/heads/main | 2023-04-27T14:30:09.093654 | 2021-04-30T20:56:05 | 2021-04-30T20:56:05 | 344,061,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | import numpy as np
from typing import Dict, Any, Tuple
from sklearn.base import BaseEstimator
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.svm import SVC
from sklearn.pipeline import make_pipeline
from sklearn.model_selection import GridSearchCV
from sklearn.naive_bayes import MultinomialNB
... | [
"shadi.boomi@gmail.com"
] | shadi.boomi@gmail.com |
994e88ad0fb61fca619824198737c810bcf2abc8 | b4d84e260df6df98dd20087ef28b185f1e232515 | /climate.py | 039303c2437813220aa84bacf5384e6d15a87d2d | [] | no_license | DanBoulden/Homework_06_in_progress | e3d6a9574b42462c548b27e165a3f691d517aa7a | 9daea3d46d50dd17d88849db5fe3db40cfe277eb | refs/heads/master | 2020-04-15T01:03:24.990030 | 2019-02-06T01:58:53 | 2019-02-06T01:58:53 | 164,262,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
#################################################
# Database Setup
#################################################
eng... | [
"noreply@github.com"
] | noreply@github.com |
d42d791d901f6b9f7548b186742945a2cd24936b | 8d90cdd61cfb7f42b8ba90c0cf284add19922781 | /project/infrastracture/make_dockerfile.py | a6aaf0da60828b82ba9398b103847736e5b4f033 | [
"MIT"
] | permissive | MCYP-UniversidadReyJuanCarlos/19-20_dalobe | e64b9ce3d19fbfaceb1398884bff49790babf62f | 43b64744d8011af6ccd62fee394d6af2b11cac68 | refs/heads/master | 2021-06-28T19:59:31.794342 | 2020-08-31T16:16:25 | 2020-08-31T16:16:25 | 230,571,914 | 4 | 0 | MIT | 2021-05-06T20:22:20 | 2019-12-28T06:57:09 | CSS | UTF-8 | Python | false | false | 1,766 | py | import uuid
class Make_dockerfile:
def write_docker_file_from_dynamic(container, dockerfile_fixes):
image = container.image
f = open('output/Dockerfile', mode='wt', encoding='utf-8')
f.write("FROM " + str(image.attrs.get('RepoTags')[0]) + "\n\n")
[f.write(o['content']) for o in do... | [
"d.lopezb.2019@alumnos.urjc.es"
] | d.lopezb.2019@alumnos.urjc.es |
5375777a1964677416c8a6d7877ffd6f6a3704fd | 8dedd4fe372a350dbf016a309c7ddd142257611e | /conejo/lib/tts.py | 189c935042d968b788b7841934a8c829e0116423 | [] | no_license | castrofernandez/raspberry-pi | 034b5277ca6a96ce3e6b03afbdd1f7a085a570b4 | f9af19c2a8e1459c5e002b10cb5de781035a98bf | refs/heads/master | 2016-09-05T18:51:21.472457 | 2015-02-08T16:31:06 | 2015-02-08T16:31:06 | 16,258,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | #!/usr/bin/python
#-*- mode: python; coding: utf-8 -*-
import urllib, urllib2
from os import path
#from pydub import AudioSegment
def obtenerMP3(idioma, mensaje, nombre = None, ruta = None):
base = "http://translate.google.com/translate_tts"
valores = { 'q': mensaje, 'tl': idioma }
data = urllib.url... | [
"castrofernandez@gmail.com"
] | castrofernandez@gmail.com |
6f8a8a50c61f791fef940b294a8727acd288d83c | 87a45d33ec91923fa2d299ca60e62cc48692241b | /mysite/settings.py | 5fb92d3ca47006ee609df4aaad2d72f1d181f68f | [] | no_license | reda-z/tutorial-project | 2b16348a21e50c85eb74f75be5bb209c00ed942f | 7fc776ba052ed265cd4e3148ee08fc4f8ffab2c3 | refs/heads/master | 2021-01-12T02:29:53.333570 | 2017-01-04T18:17:44 | 2017-01-04T18:17:44 | 78,040,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | import os
gettext = lambda s: s
DATA_DIR = os.path.dirname(os.path.dirname(__file__))
"""
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.17.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and t... | [
"reda.zejli@gmail.com"
] | reda.zejli@gmail.com |
8f5bee079852dc9e9cd1c52553ced73e436572ca | e433c8e129234e41454a3f029e41251f17920fc0 | /home/migrations/0006_auto_20181120_1245.py | 87229c2304b061262c08f0d9675937947e094487 | [] | no_license | exabyteso/wagtail-demo | ab25cbfa2f9857190273ab952d4ab24f14fef214 | 1fbef9e4703902b1c50962d6f50bf0c814367cca | refs/heads/master | 2020-04-07T12:47:19.050913 | 2018-11-20T11:57:07 | 2018-11-20T11:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # Generated by Django 2.1.3 on 2018-11-20 09:45
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0040_page_draft_title'),
('wagtailforms', '0003_capitalizeverbose'),
('wagtailredirects', '0006_redir... | [
"infoptwo@gmail.com"
] | infoptwo@gmail.com |
473e17e63cc27ca761242cf6b609a7acca46f363 | 26fae5c7fb11bffecbab2d5ddcd34cd4cec0cea1 | /PMDM/misitio/polls/serializers.py | 21c24e6fbfdadcfb3809168a5f0cfaafc65aae5a | [] | no_license | JorgeDuenasLerin/desarrollo-web | 75879d4a5bbc2ce3bab3b34016b970a1636dd53b | 2367a9be4af1c8e8e9c21700b9f70d20d6273718 | refs/heads/main | 2023-05-28T05:51:25.627808 | 2021-06-17T09:25:24 | 2021-06-17T09:25:24 | 314,196,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from .models import Question, Choice
class QuestionSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Question
fields = ['question_text', 'pub_date']
class ChoiceSerializer(serializers.H... | [
"jorge.duenas.lerin@gmail.com"
] | jorge.duenas.lerin@gmail.com |
77160378e0aff096aa646eaca4addb171b24a317 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res_bw/scripts/common/lib/encodings/hz.py | fc3d801e512648fcedb54a7c040b1b2914c9941b | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,131 | py | # 2016.05.01 15:29:55 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/encodings/hz.py
import _codecs_cn, codecs
import _multibytecodec as mbc
codec = _codecs_cn.getcodec('hz')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEncoder(mbc.MultibyteIncr... | [
"info@webium.sk"
] | info@webium.sk |
e94d85abd6706eef8bb60e86ee3dcc66668f2edf | 3c943b9d0117bd9e06dde1ea8370ccb9582fb0c5 | /bwp/participant/models.py | a26cdaa339fd442a2606ad967a5431c5255d8665 | [] | no_license | lbt/boss-web-participant | e4f013bb13cd09e4c953b83922308d2ea57e2e76 | b2f89109f677c49f80333fecf2a1a31c5c1916b9 | refs/heads/master | 2023-04-28T01:48:01.230173 | 2021-04-29T13:09:08 | 2021-04-29T13:09:08 | 359,830,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | from django.db import models
# class BOSS(models.Model):
# """The BOSS instance a Participant is connected to.
# """
# name = models.CharField(
# help_text="Name of the BOSS instance",
# max_length=80)
# config_name = models.CharField(
# help_text="Section name of the BOSS conne... | [
"david.greaves@jolla.com"
] | david.greaves@jolla.com |
9f191ec4a9cd5f99bda20cd89210ad2823c881a6 | b7cb29e3d4ec89f294695a4405df322455bfdb62 | /Exercise13ParametersUnpackingVariables/ex13.py | 297af801f679508fc21acb1e1535d0a8c1483e10 | [
"MIT"
] | permissive | CaptShaw/learn-python-the-hard-way | 0e86e88615e60d6dddd189f87556cf30f844883e | 48328a126ab47fdac371c82b79dc2047541a4dd7 | refs/heads/master | 2020-04-10T08:39:20.580479 | 2018-12-08T10:00:22 | 2018-12-08T10:00:22 | 160,910,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # -*- coding: UTF-8 -*-
from sys import argv
#script, first, second, third = argv
script = argv
#从用户输入中获得参数
first = raw_input(),
second = raw_input(),
third = raw_input()
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable ... | [
"remember_m1@qq.com"
] | remember_m1@qq.com |
6fae34308cd664decc0ad86974d5ad045c8d9d68 | 7af5288111965b8bbcdfcd21fcf9db1f2e886741 | /point_to_path_measurement.py | 742e4e4ebcc00750b26d9257ebc1950227237cc5 | [] | no_license | GeoTecINIT/CyclingPathAnalysis | fc65b506da5f9365ed1fa7595fa3e16a3e54c581 | fb54af19b6dd217ffd224b4ec87e18ab8045c35e | refs/heads/master | 2020-03-14T02:39:14.968754 | 2018-04-27T17:11:56 | 2018-04-27T17:11:56 | 131,403,393 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,722 | py | """
This script allow us to convert a list of coordinates into a string geometry
It does not consider the information of trips
It just considers location, distance and time
Author: Diego Pajarito
"""
import datetime
import data_setup as data
import geojson
from LatLon import LatLon, Latitude, Longitude
from geojson i... | [
"diegopajarito@gmail.com"
] | diegopajarito@gmail.com |
83c9387d3bb198cf419d2f3ec2dff2bcd9a76c86 | 6209990e3e90f8ca6d0b6cf737b96ad5e9317253 | /my_utils.py | 5b257efb3d417704b07dff888789a21ca633ff42 | [] | no_license | oxnoctisxo/JamGame | cb44e4abc46a19a9e3d4ac67a04d90ee7d979c6d | 3fd5a66ce95dc5ea233201dad7b299d2032517eb | refs/heads/master | 2020-05-01T05:08:25.210226 | 2019-03-24T14:39:29 | 2019-03-24T14:39:29 | 177,293,135 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | from parametters import *
import pygame
| [
"tip.hon@hotmail.fr"
] | tip.hon@hotmail.fr |
bef9b323e645e5c7ef9d02812aa2e7372a98a288 | 1bb98607ddc47884bfe6b2f8e874699e63b528e1 | /main.spec | 98c5705f4febeba77a2fdae29b50d63685420cf2 | [] | no_license | 15011283031/HumanResourcesAss | eacce2c8a165f86c8feef7b5e26b0e8ceb34bc21 | 11e3533335e21dcf770aa60894e3714ba41bcb2c | refs/heads/master | 2021-01-25T09:09:41.548439 | 2018-02-17T07:59:11 | 2018-02-17T07:59:11 | 93,790,201 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 849 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['e:\\KM\\GITPROJECT\\HumanResourcesAss'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_p... | [
"peterchenhra@hotmail.com"
] | peterchenhra@hotmail.com |
3fa9a93f57ccc1bf4090937e244429eb7f71e4a5 | 51386da3c244c1182a4e414ce1401d699c235fa2 | /mainapp/migrations/0003_auto_20210319_2321.py | c763d5a4e92f2019cfaa02b649656a806698e3bc | [] | no_license | bad-us/geekshop | dd134fc47e378d2fc5637b3ad17dfd263429dd0a | e11b9aa3f874eb5ec92b2bbf3e09a463848b120c | refs/heads/Lesson_2 | 2023-07-15T08:45:00.054415 | 2021-08-31T07:57:49 | 2021-08-31T07:57:49 | 393,031,273 | 0 | 0 | null | 2021-08-31T12:05:04 | 2021-08-05T12:19:12 | Python | UTF-8 | Python | false | false | 618 | py | # Generated by Django 3.1.7 on 2021-03-19 20:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0002_product'),
]
operations = [
migrations.AddField(
model_name='product',
name='is_active',
... | [
"bad-us@rambler.ru"
] | bad-us@rambler.ru |
f666007ac359fe79e9a2e479632c88e69a740821 | f061602595a78bdbdbf32e2dfdcfe623db5b8efd | /graph/migrations/0002_auto__add_field_overviewstat_money.py | 7f104131f6fd659ce917758a30319a93e5f569c5 | [] | no_license | NorbertMichalski/utilities | b9e0643d4b8e0097e0c774d63adbeaa66d3da06b | da27a23add9c42d62ae21a5e74eef920bbd3d839 | refs/heads/master | 2020-05-14T19:04:23.262384 | 2014-01-27T13:45:28 | 2014-01-27T13:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | 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):
# Adding field 'OverviewStat.money'
db.add_column(u'graph_overviewstat', 'money',
self... | [
"Norbertmichalski16@gmail.com"
] | Norbertmichalski16@gmail.com |
19fd98493afa75d8472719a61a2fb2a168e3a8e0 | f948811d028d7b4313b38877d383e9920a4fdb25 | /codegen.py | 214594ca7d0334690567a44c8d15bb3f573dbc94 | [] | no_license | silencewwt/Psyduck | fdf8a286dd233fca3c15d7e3ccd9a26e53376c5a | 0635a63941e0e0f342b55367f5a8a8fd12d7e4b6 | refs/heads/master | 2020-03-25T08:19:43.514746 | 2018-08-06T16:37:04 | 2018-08-06T16:37:04 | 143,607,165 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | # -*- coding: utf-8 -*-
import json
import re
import click
REGEX = re.compile('((?:[A-Z]?[a-z\d]+)|(?:[A-Z\d]+))')
class Generator(object):
def __init__(self, output, swagger):
self.file = open(output, 'w', encoding='utf-8')
self.indent_level = 0
with open(swagger, mode='r', encoding='... | [
"silencewwt@gmail.com"
] | silencewwt@gmail.com |
3cd9816aa15459e15cbade31bc4234a1e433e840 | bc84258382756f5a2e1382813ce68f6148acc33a | /cntrd.py | 0444e1056807de47433cc38ceda157eea2bf8888 | [
"MIT"
] | permissive | dragozzine/hstfakes | 6604978c4a78a19936c3e5192b3917558b2d7f67 | a73971686a9189106b0e6a8039e581f649a1acf0 | refs/heads/master | 2021-05-28T08:57:41.402475 | 2014-07-24T17:41:49 | 2014-07-24T17:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,657 | py | #!/usr/bin/env python
# D. Jones - 2/13/14
"""This code is from the IDL Astronomy Users Library"""
import numpy as np
def cntrd(img, x, y,
fwhm, silent=False,
debug=False,
extendbox = False,
keepcenter = False):
""";+
; NAME:
; CNTRD
; PURPOSE:
... | [
"steve.rodney@gmail.com"
] | steve.rodney@gmail.com |
758e384b3a6911b45061fc77173d87ce769d5074 | e8775c4c2df37b87cf1581d258310084d74b01f3 | /contribucion.py | ca163d5ae42d3cae74e0800d235ee7e5a232ae9b | [] | no_license | Gabospa/OOPexample | 1b547aed215cb73f1bf5c1fe2c8c1fcf54ac80d9 | 1c7d584a10623db593ee849a600d7ce430050f4d | refs/heads/master | 2022-11-25T04:48:51.325169 | 2020-07-31T16:18:13 | 2020-07-31T16:18:13 | 282,141,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | class Contribucion:
""" Clase Contribución """
def __init__(self, idNum, titulo , idAutor , calificacion):
self._idNum = idNum
self._titulo = titulo
self._idAutor = idAutor
self._calificacion = calificacion
#id getter
@property
def idNum(self):
return se... | [
"gabospa@gmail.com"
] | gabospa@gmail.com |
a4d8f83509a7a69fa49cef14a93d2cb7220dbe9d | 2c5de2a2748a4418800a0aceff2444e1c3a8d72d | /ilsp/common/auth.py | 25b29000eae9bd6138d713cc0af7ba4547c859d9 | [] | no_license | fmfi/infolist-editor | 9fbd60139e03c06ed465452faf8ff7b7c5e48f6d | 4aa613fac74e4648f2640f8a086e7953296d56fc | refs/heads/master | 2021-01-13T02:06:37.745620 | 2018-02-19T09:54:51 | 2018-02-19T09:54:51 | 13,423,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | from functools import wraps
import os
from flask import Blueprint, request, redirect, Response, render_template, current_app, url_for, g, abort
from itsdangerous import URLSafeSerializer
blueprint = Blueprint('auth', __name__)
@blueprint.before_app_request
def before_request():
username = request.remote_user
if c... | [
"martin.sucha@fmph.uniba.sk"
] | martin.sucha@fmph.uniba.sk |
0e20409c8fcd44abf8a545914efe38451ae3111a | 748133ddbca64674b0a1c3f3453f1abf1b3e8523 | /Biof309_project/modules/.ipynb_checkpoints/test_Clearnulls-checkpoint.py | 5224baf6fd465d560f9437a089b6f4149fcbae33 | [] | no_license | sarahfa-por/Biof309 | 2043a55a56117b5e68c62e730c074cb6b19479a6 | a586a6d6fd7142a8c93283dd1c406210d5ea0af1 | refs/heads/master | 2020-10-01T23:13:23.819511 | 2019-12-12T23:07:40 | 2019-12-12T23:07:40 | 227,643,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | {
"cells": [
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'null' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m-----------------------------------------------------------------------... | [
"sarah.andrews2@nih.gov"
] | sarah.andrews2@nih.gov |
d90b17e4a307a458615f340144ef6ae834bd9bd4 | 4dbf96a46d754e79d3e4893dbef036acab2c19a2 | /config/settings.py | d8fdd70facf0d49e07547534682cc46058548f38 | [] | no_license | noellehamberis/fullstack-newsapp | 0c2536698ca22ea91d30e5c31e08874de8c86b29 | 7d6769c5b100b39093ebff23c6fe4ed5dc35fc8a | refs/heads/main | 2023-01-04T11:53:24.555522 | 2020-10-30T20:41:49 | 2020-10-30T20:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,307 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
impo... | [
"noellehamberis@gmail.com"
] | noellehamberis@gmail.com |
b5d2e30fd0fca25810593302a2d6220183c9a7f6 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/netapp_e_facts.py | 3be087a3abae3dc321f1d89f31e54067f0ed841f | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 27,071 | py | #!/usr/bin/python
# (c) 2016, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
6c5e8cedaeaf654434fed411879ce389caf2ef64 | 7a48e285f1466716c6c7a3a729fadcf6c1a3d95f | /clean.py | f612c1619ba45b8f8fcf8f22946a99b39e1a1603 | [] | no_license | Bunty9/GPT | 5af356b67d808c14c4007575ba3d95ac3c0c7183 | eca0c828e6afd505b4303b8a6e68cd31e9b1eecd | refs/heads/master | 2023-08-13T07:59:43.312877 | 2021-09-26T13:04:53 | 2021-09-26T13:04:53 | 410,554,350 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | import os
from curtsies.fmtfuncs import red, bold, green, on_blue, yellow, cyan
import time
from tqdm import tqdm
d = "repos"
for dirpath, dirnames, filenames in tqdm(os.walk(d)):
for f in filenames:
fullpath = os.path.join(dirpath,f)
# print(fullpath)
if fullpath.endswith(".py"):
... | [
"cbipin2000@gmail.com"
] | cbipin2000@gmail.com |
3c2f173df59757b124d49841d2ebabfcab8e6a8e | f7ee7727dcf87140b509a8b11db8a118bf7b10ee | /api/app/tags/tests.py | cfabdc5626e2a7fbd8ab6110200e297cba93d0b3 | [
"Apache-2.0"
] | permissive | hamzzy/Baobab | 874fc0e25d2b4428fb4d3204566a061f895cb185 | 91151fa25c49d4d66b527678fd768906dbc55053 | refs/heads/master | 2023-06-07T00:02:52.804996 | 2021-06-17T20:58:19 | 2021-06-17T21:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,038 | py | import json
from app.utils.testing import ApiTestCase
from app.tags.models import Tag, TagTranslation
from app import db
class ReviewsApiTest(ApiTestCase):
def seed_static_data(self):
self.event1 = self.add_event(key='event1')
self.event2 = self.add_event(key='event2')
self.user1 = self.add... | [
"avi@avi-net.co.za"
] | avi@avi-net.co.za |
3544578b5eba352958bb896b645b4312ea39834f | 769c8cac5aea3c9cb1e7eeafb1e37dbe9ea4d649 | /TaskScheduler/hotel_list_task.py | 0bee18d0d9cf36192d1c2f1f2dd5ddf676443a6a | [] | no_license | 20113261/p_m | f0b93b516e4c377aaf8b1741671759822ee0ec1a | ca7713de005c4c10e5cae547851a38a13211b71d | refs/heads/master | 2020-03-20T01:03:29.785618 | 2018-03-17T11:06:49 | 2018-03-17T11:06:49 | 137,065,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/7/11 下午5:30
# @Author : Hou Rong
# @Site :
# @File : hotel_list_task.py
# @Software: PyCharm
import Common.DateRange
import dataset
from Common.DateRange import dates_tasks
from TaskScheduler.TaskInsert import InsertTask
Common.DateRange.DATE_FORM... | [
"nmghr9@gmail.com"
] | nmghr9@gmail.com |
7ac936ecd5083f62b8a3b206f7e560a01d51ac58 | e0a9dcd4f53aa6bf4472efe451e226663212abda | /core/execute.py | d8d444c3f1a16fa7af00f3de0f4f8ca5d7541d09 | [] | no_license | dilawar/ghonchu | f0505dce8ba76402e7c58c7fc4efd0412ce3503a | 5527b4d444f113b0ab51f758fc809e8ab81c5a72 | refs/heads/master | 2016-09-02T05:33:07.167106 | 2014-12-12T12:07:50 | 2014-12-12T12:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py |
"""execute.py: Execute core action.
Last modified: Sat Jan 18, 2014 05:01PM
"""
__author__ = "Dilawar Singh"
__copyright__ = "Copyright 2013, Dilawar Singh and NCBS Bangalore"
__credits__ = ["NCBS Bangalore"]
__license__ = "GNU GPL"
__version__ = "1.0.0"
__maintainer... | [
"dilawars@ncbs.res.in"
] | dilawars@ncbs.res.in |
cf1dd697de86f1bd9befeb47c8cb1caa88300d4e | 35823cfdaebca1364f0cfd0993c4e0c3b5dcf762 | /assignment3/cs231n/data_utils.py | 7a5e5d79a6a0ff754fca40361b812d22da6905c0 | [] | no_license | Richardyu114/CS231N-notes-and-assignments | b072e693a6766694fe7a2642de50a52c11fbfe0d | 25b9dac4834fabebc6d9453722bef6e5bea66b0c | refs/heads/master | 2021-03-07T06:53:18.840432 | 2020-07-08T13:33:00 | 2020-07-08T13:33:00 | 246,252,293 | 1 | 0 | null | 2020-11-18T22:43:24 | 2020-03-10T08:58:02 | Jupyter Notebook | UTF-8 | Python | false | false | 9,179 | py | from __future__ import print_function
from builtins import range
from six.moves import cPickle as pickle
import numpy as np
import os
from scipy.misc import imread
import platform
def load_pickle(f):
version = platform.python_version_tuple()
if version[0] == '2':
return pickle.load(f)
elif versi... | [
"noreply@github.com"
] | noreply@github.com |
ac1d8d944c5f717513c16db9d6c67f9b7c3dbdf2 | 2176a24055451d189e1c1a9a87ef4eeefea681ec | /parlai/agents/fid/fid.py | 3e0e65079659d4846dedd5a7d66d649c96fb19f5 | [
"MIT"
] | permissive | khanhgithead/ParlAI | c4b7f9288702b20093a1821cfd6b48ab1b26b1ba | 598cd8cfb46f831c52237da97600d7849f2b711b | refs/heads/master | 2022-02-15T12:07:37.428392 | 2022-01-14T18:01:33 | 2022-01-14T18:01:33 | 157,932,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,924 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Leveraging Passage Retrieval with Generative Models for Open Domain Question Answering.
See https://arxiv.org/abs/20... | [
"noreply@github.com"
] | noreply@github.com |
105947379a933fb3d9c7594e0f9ee5edef5ec989 | 659836ef3a9ac558538b016dbf4e128aa975ae7c | /backend/ingredient/models.py | ba8262719d98f47795c66d3d2646c01dcfba676b | [] | no_license | zzerii/save_your_ingredients | fda1c769d158bca9dfd3c28ac9ff34ed7ae4e6a3 | 5ebde82255c1a6edf0c19d9032015d05c9d0abc9 | refs/heads/master | 2023-02-21T22:19:28.954594 | 2021-01-22T11:39:16 | 2021-01-22T11:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.db import models
# Create your models here.
class Ingredient(models.Model):
name = models.CharField(max_length=255)
info = models.CharField(max_length=255)
trim = models.CharField(max_length=255)
| [
"jinsoo941010@naver.com"
] | jinsoo941010@naver.com |
754d441707341b8ba8d827ed526ecce1b52c54ed | fd4dd0ce51eb1c9206d5c1c29d6726fc5f2cb122 | /src/kafka_consumer.py | 2c15842317f104c1081a9e44920ee8bec1234986 | [] | no_license | kbaseapps/relation_engine_sync | 0a9ae11326245b98bd173d77203ff49ccd222165 | def99d329d0d4101f3864e21a3e1a6ecb34fa6e0 | refs/heads/master | 2020-04-12T13:07:27.771094 | 2019-08-05T23:53:50 | 2019-08-05T23:53:50 | 162,512,534 | 0 | 0 | null | 2019-08-05T23:53:51 | 2018-12-20T01:56:13 | Python | UTF-8 | Python | false | false | 3,996 | py | """
Consume workspace update events from kafka.
"""
import json
import traceback
from confluent_kafka import Consumer, KafkaError
from src.utils.logger import log
from src.utils.config import get_config
from src.utils.workspace_client import download_info
from src.utils.re_client import check_doc_existence
from src.im... | [
"jayrbolton@gmail.com"
] | jayrbolton@gmail.com |
7a93ea17532155af61fa6a4e41ee4610814e7864 | aaaa16d4de4d3a1291d2abcf0d749302474eb28a | /ex40(3).py | 7d1b164829f9a50300fbdf507cbbef8dd5d4a284 | [] | no_license | A-lPha/-python- | 6f2ae557919db3dc87cce398c4800fadf4c24c2c | f9996781e9198d75c2ff1dbaa0bc508b0446e046 | refs/heads/master | 2021-01-12T08:25:03.622928 | 2016-12-15T14:58:02 | 2016-12-15T14:58:02 | 76,568,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | while True:
cmd = raw_input("""
1.User information
2.Setup
3.Exit
""")
print "您输入的是",cmd
#帮群里一个新手解决的问题
| [
"noreply@github.com"
] | noreply@github.com |
81f995d260348ae063f7f2e60b454ad287d540e5 | 28871da79ccc0e0200a69fd629ff71de48d5b8ac | /read_log_xml_permission_file.py | 1ca06476423eb600e8d974e8193cde711b4aac98 | [] | no_license | maijaz01/django_blog | 2ffbf2537871e8da5c317d085bbc8570fa76431f | ebd91b868ebca56f1d5224ba279c706a47f98888 | refs/heads/master | 2016-09-06T02:49:43.044275 | 2015-09-07T15:12:02 | 2015-09-07T15:12:02 | 32,886,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | import os
import pickle
import xml.etree.ElementTree as ET
class Permission(object):
def read_file(self):
""" This method will read file extention and call to respective method to get result
"""
cur_dir = os.path.dirname(__file__)
permissions_log = os.path.join(cur_dir, "permission... | [
"maijaz@zeomega.com"
] | maijaz@zeomega.com |
ab2ba507d79c1f6cd39af6514a155a35cc16393b | 18b452faa903176e5f0414aa1ae8b99097cc89b8 | /main_app/forms.py | 3549de084218a6587ea84d952a77617bf2a2837e | [] | no_license | th3dougler/collectorcollector | a6c237ed2ebb94d0f4ae8bb7aa4046893b90b1c0 | b0b815b010557e447cc0cec3bb9af78ebe4ef7bf | refs/heads/main | 2023-04-08T15:09:40.823298 | 2021-04-02T02:15:18 | 2021-04-02T02:15:18 | 352,772,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django.forms import ModelForm
from .models import WhatGoesIn, Common_Feature
class WhatGoesInForm(ModelForm):
class Meta:
model = WhatGoesIn
fields = ['name', 'colour']
class CommonFeatureForm(ModelForm):
class Meta:
model = Common_Feature
fields = ['name'] | [
"th3dougler@gmail.com"
] | th3dougler@gmail.com |
9116fbcd17562627c4d5504fdc5b28015b3d830d | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode/Question_111_Minimum_Depth_of_Binary_Tree.py | 20e53e489f88b9f32c07604bd8be49b4895f2660 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | #!/usr/bin/python
# coding: utf-8
from TreeNode import *
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def minDepth(self, root):
"""
:type root: Tree... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
ec9388dc3dd1fce8c32eb599783e32c21d108f8a | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/combinatorics/coset_table.py | 9e9b2b0f7ecf107a58a2d1ab311db0f412135e86 | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 42,977 | py | from sympy.combinatorics.free_groups import free_group
from sympy.printing.defaults import DefaultPrinting
from itertools import chain, product
from bisect import bisect_left
###############################################################################
# COSET TABLE ... | [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
e76c6838f7e87301d6e09a08741750b7f783d361 | 023d045733bb30b2c0cc501908c0dd3de4d2945f | /standssubmission/standsreview/admin.py | 5242b9d5140b17255896969bd652b374065828cd | [] | no_license | pieterdp/fosdem-stand-submission | 3da4a2158935fb54f9a6edeff124050efed3738e | 3bd6355e53014160fbdd15970f142c24adb040cd | refs/heads/master | 2023-01-28T04:38:50.037785 | 2020-12-06T19:58:13 | 2020-12-06T19:58:13 | 307,077,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from django.contrib import admin
from .models import Review, Decision
# Register your models here.
admin.site.register(Review)
admin.site.register(Decision)
| [
"pieter.de.praetere@helptux.be"
] | pieter.de.praetere@helptux.be |
f415d23be4af1035d4cbc400cd5f475a7c165207 | 9bd29c69d1d65954e6594a8b371a9aa67f010a81 | /conftest.py | 9c6f052141d35eddc85238884bea5afdcb35ed99 | [] | no_license | jhunkeler/asdf | 0bb11701b64075d714add13061e85fc1ccbaa8aa | 1b41c6d04f657940c3fc02443dd3bdfd78619ba8 | refs/heads/master | 2022-03-06T04:31:18.237751 | 2019-10-22T16:22:00 | 2019-10-22T16:22:00 | 109,301,360 | 0 | 0 | null | 2017-11-02T18:07:26 | 2017-11-02T18:07:26 | null | UTF-8 | Python | false | false | 798 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
import os
import pytest
from _pytest.doctest import DoctestItem
@pytest.fixture(autouse=True)
def _docdir(request):
"""
Make sure that doctests run in a temporary directory so that any files that
are created as part o... | [
"ddavella@stsci.edu"
] | ddavella@stsci.edu |
4f8fa08437a586f911ad3dfd31be2c934da9fe01 | a6dff3b91e0b335621c682d68605ccb91478abf7 | /day9.py | 229f88cad4549125dc28e3c4a466266a9bb3effd | [] | no_license | prasansabhagat/python | b088e7d67ab388cbee5acbf987d1ee780204123b | 323c5e5f0544042fb175faad8be99969301575c3 | refs/heads/main | 2023-07-13T02:28:13.993340 | 2021-08-15T16:45:41 | 2021-08-15T16:45:41 | 393,764,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #ctrl + ] -- for indentation
bid_dictionary = {}
bidding_finished = False
while not bidding_finished:
name = input("What is your name? ")
bid = input("How much amount do you want to bid? Rs")
bid_dictionary[name] = price
question = input("Is there other person who wants to bid? yes or no ")
if que... | [
"75807786+prasansabhagat@users.noreply.github.com"
] | 75807786+prasansabhagat@users.noreply.github.com |
95ae8d1b15002d3d3c3c64d60796b3909dd9c81b | cc6d94c5f0c066abdfa68c70766ed67901d2a60a | /.ipynb_checkpoints/app-checkpoint.py | b8c70774cfd1e1566a3961176091da8907a1b77f | [] | no_license | ThinhNg/MissionToMarsScrape | 82d85318bb9c82a6cd9190b946e5ae763647fd3a | ba5ff4fcc933d91f250458da5d114f97d4cba2d8 | refs/heads/master | 2020-04-23T08:59:59.660423 | 2020-03-28T03:42:47 | 2020-03-28T03:42:47 | 171,054,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
import mission_to_mars.py
# Create an instance of Flask
app = Flask(__name__)
# Use PyMongo to establish Mongo connection
mongo = PyMongo(app, uri="mongodb://localhost:27017/Mars_Data")
# Route to render index.html template using d... | [
"thinhnguyenns@gmail.com"
] | thinhnguyenns@gmail.com |
aa893b07c3613f505969019869fe7e5913d60a10 | 8634b4f7f2293bf431ba8ed59e95f80abc59483f | /Homework/10/orderdict.py | fae771bb2e90cba4047e19dc516c8e03b0f7b948 | [] | no_license | TitanVA/Metiz | e1e2dca42118f660356254c39c7fadc47f772719 | e54f10b98226e102a5bb1eeda7f1e1eb30587c32 | refs/heads/master | 2020-12-22T11:44:58.746055 | 2020-02-10T14:41:16 | 2020-02-10T14:41:16 | 236,770,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from _collections import OrderedDict
favorite_languages = OrderedDict()
favorite_languages['jen'] = 'python'
favorite_languages['sarah'] = 'c'
favorite_languages['edward'] = 'ruby'
favorite_languages['phil'] = 'python'
for name, language in favorite_languages.items():
print(name.title() + '\'s favorite language i... | [
"viktorbezai@gmail.com"
] | viktorbezai@gmail.com |
8d953f282b7786cb90d112bd8b7f8fd2757af599 | b064696e34a31d2f23eb5da4f364a09542428b44 | /tf_agents/bandits/agents/examples/v2/trainer_test.py | d9117e9018d28a7092aa409817daa2ffa23575b0 | [
"Apache-2.0"
] | permissive | vraoresearch/agents | affead659efd3b5ac232d3d9ff60a1fabe74250e | 58ffe1eec6e38a2cddcf34834d795b37e3b8843b | refs/heads/master | 2022-11-19T10:01:54.906271 | 2022-10-27T14:41:56 | 2022-10-27T14:42:23 | 293,401,771 | 0 | 1 | Apache-2.0 | 2020-09-07T02:23:54 | 2020-09-07T02:23:53 | null | UTF-8 | Python | false | false | 11,646 | py | # coding=utf-8
# Copyright 2020 The TF-Agents Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
004867de305d55875c7b5d8dc93e22bff54fff86 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/restore-the-array-from-adjacent-pairs.py | 91aa1ba0ebb1c185e6625d0352c4f6985e14a576 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 571 | py | # Time: O(n)
# Space: O(n)
import collections
class Solution(object):
def restoreArray(self, adjacentPairs):
"""
:type adjacentPairs: List[List[int]]
:rtype: List[int]
"""
adj = collections.defaultdict(list)
for u, v in adjacentPairs:
adj[u].append(v)... | [
"noreply@github.com"
] | noreply@github.com |
43db2fc680aca832dc48793399f15ccd286de043 | 53fc3f163a02b0f06df05ad385ad175cc057e10a | /tests/renderer/cartographer/image/test_factory.py | 3d863ae4fe02f7da5b56d608b9f12cbcbd3412af | [
"MIT"
] | permissive | Kotaimen/stonemason | 15284d7ca800186b9972d176ff1232ef7f0372e8 | ebbfab294a9e412cc7d04ea1dcb163e45c0de5d2 | refs/heads/develop | 2021-12-10T09:57:46.453283 | 2018-02-15T10:21:35 | 2018-02-15T10:21:35 | 28,327,740 | 5 | 1 | null | 2015-11-10T02:25:45 | 2014-12-22T06:44:58 | Python | UTF-8 | Python | false | false | 1,427 | py | # -*- encoding: utf-8 -*-
__author__ = 'ray'
__date__ = '4/21/15'
import unittest
from stonemason.renderer.cartographer.image import ImageNodeFactory
from stonemason.renderer.cartographer.image.terminal import Color
from stonemason.renderer.cartographer.image.transform import MinFilter
from stonemason.renderer.carto... | [
"gliese.q@gmail.com"
] | gliese.q@gmail.com |
b278b96f504d47d06290fc42b8a90ffd778ef32f | 86e1614bc5908cee4cf4a3ca90b6177cbe94cf50 | /DocumentScannerMain.py | bb550d4bc0c1a55935af4036e57ac08020eeafe8 | [] | no_license | aryamanjain036/imageprocessingproject | 0ee4e24e9153174b2a07509db37dfe7357b33cbc | f4ed8e64f102fd2251c831a115a80a4d2e0dbf04 | refs/heads/master | 2023-03-22T11:13:03.817091 | 2021-03-26T04:36:28 | 2021-03-26T04:36:28 | 270,027,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,320 | py | import cv2
import numpy as np
import utlis
import pytesseract
webCam = True
imageLocation = "5.jpeg"
cap = cv2.VideoCapture(1)
cap.set(10,160)
heightImg = 480
widthImg = 480
utlis.initializeTrackbars()
count=0
while True:
imgBlank = np.zeros((heightImg,widthImg,3),np.uint8)
if webCam:suc... | [
"noreply@github.com"
] | noreply@github.com |
d86da89a7837039de5cc9432332391c1929d6f86 | d2e8ad203a37b534a113d4f0d4dd51d9aeae382a | /django_graphene_authentication/django_graphene_authentication/signals.py | 47adcc189eddf36fa915f1ac41f05cdf7b2ebd8f | [
"MIT"
] | permissive | Koldar/django-koldar-common-apps | 40e24a7aae78973fa28ca411e2a32cb4b2f4dbbf | 06e6bb103d22f1f6522e97c05ff8931413c69f19 | refs/heads/main | 2023-08-17T11:44:34.631914 | 2021-10-08T12:40:40 | 2021-10-08T12:40:40 | 372,714,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from django.dispatch import Signal
# providing_args=['request', 'refresh_token']
refresh_token_revoked = Signal()
# providing_args=['request', 'refresh_token', 'refresh_token_issued']
refresh_token_rotated = Signal()
| [
"massimobono1@gmail.com"
] | massimobono1@gmail.com |
420f08dd3e3e41f5242c270cc9e6a957d4aeaa38 | 47a8b678c8a9b8105a4462253c84a2aad9eb5705 | /test.py | 6b32f8183fc5f34f8e4bdc7d9915b143965a838e | [] | no_license | megdailey/test | 5b7e8692557730081d2c7221d0ccb2858eaf1676 | 504ff9e2bf46b78ebd3bad3eea1670c9c6749658 | refs/heads/master | 2020-05-15T12:27:31.035264 | 2019-04-19T13:49:32 | 2019-04-19T13:49:32 | 182,264,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | print(2+2)
print(1+1)
print(1+1)
| [
"mmd0130@gmail.com"
] | mmd0130@gmail.com |
be0e8fe88af319157a3e763aa35b275b56f17d8c | 3d794e38aca224f80e1af0eb3536e031cd784c6d | /_posts/some_other_code.py | b731d9cc9d295b6e99c54236ca7d3b64885d7f17 | [
"MIT"
] | permissive | PhilStem/PhilStem.github.io | ffe785683f7b0cbcacef24bc2eaf8441c21dbd7b | cfa3f0a4fc306117e06c24ad8f3999317ef59884 | refs/heads/master | 2022-10-17T21:28:49.895524 | 2020-09-11T18:34:16 | 2020-09-11T18:34:16 | 236,303,734 | 0 | 0 | NOASSERTION | 2022-10-06T09:07:08 | 2020-01-26T11:38:24 | HTML | UTF-8 | Python | false | false | 91 | py | from sklearn.utils.estimator_checks import check_estimator
check_estimator(LinearRegressor) | [
"philipp.stemberger@gmail.com"
] | philipp.stemberger@gmail.com |
e9e739c00119abf72ad26943f9ddfdbcd2dc0696 | db56c00e7ab30329bd53d8ee35caad94dc13efb6 | /src/hex_control/hex_control/spi_bridge.py | 486926daf1031295e05dc8237bf32899adebed0a | [] | no_license | Wojcik98/hexapod | a7bbdedba3eec6f662c52671956408d74fee3a2b | dc6d01dfd27b4a31f3abeabb9acfe202640cb6d8 | refs/heads/master | 2023-06-09T00:28:43.015250 | 2021-06-30T10:11:24 | 2021-06-30T10:11:24 | 321,147,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | import spidev
import rclpy
from std_msgs.msg import UInt8MultiArray
from rclpy.node import Node
SPI_SPEED = 2000000
class SpiBridge(Node):
def __init__(self):
super().__init__('spi_bridge')
self.spi = spidev.SpiDev()
self.spi.open(0, 0)
self.spi.max_speed_hz = SPI_SPEED
... | [
"wojcikmichal98@gmail.com"
] | wojcikmichal98@gmail.com |
9eb53df032e3c06138e6c43f5b306169140d64a0 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part006719.py | 42aa4358fcc37db511e0345b6fdde91a2bd9246d | [] | 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 | 1,596 | 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 |
b3f84d79385b2e8fd9a8f9a72177eabb2b44ec3c | f846aad1778d33ff59a8c931a9107bb7819a8a7a | /Fern-Wifi-Cracker-Py3/core/toolbox/MITM_Core.py | 40844758ae482711fe731c4ddef071fc895ee535 | [] | no_license | kimocoder/fern-wifi-cracker | f170f397bd34c5ab04849fb935c0f50856ef70b3 | 04818cb97bf2068e3015c954dbeaa510b95caa29 | refs/heads/master | 2023-04-27T07:29:00.385430 | 2019-06-01T09:58:46 | 2019-06-01T09:58:46 | 91,082,900 | 2 | 0 | null | 2019-06-01T09:59:12 | 2017-05-12T11:03:19 | Python | UTF-8 | Python | false | false | 11,507 | py | #-------------------------------------------------------------------------------
# Name: MITM Core (Man In The Middle)
# Purpose: Redirecting Network traffic to attack host by various MITM engines
#
# Author: Saviour Emmanuel Ekiko
#
# Created: 15/08/2012
# Copyright: (c) Fern Wifi Cracker ... | [
"simone.mione1@gmail.com"
] | simone.mione1@gmail.com |
3c6a173d531bdd508f51562417c45192f91fcba7 | 9319dddcfded4150ca9ee7b2a08c6ad993f20005 | /model/BmeEntity.py | d55aa036a247ded4e7388e58dcea2d10d946c445 | [] | no_license | agrdan/bme_test_1 | 5567a06d71b6ad39b7c2d439657c465e390af6fd | e5715589ee4972bed762581dc4b85ddd7f505455 | refs/heads/master | 2023-03-08T00:16:02.166894 | 2021-02-16T07:27:51 | 2021-02-16T07:27:51 | 339,308,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from helper import db
class BmeEntity(db.Model):
__tablename__ = 'analytics'
id = db.Column(db.Integer(), primary_key=True)
temperature = db.Column(db.Float())
gas = db.Column(db.Integer())
humidity = db.Column(db.Float())
pressure = db.Column(db.Float())
time = db.Column(db.String(20)) | [
"Andreas.Grdjan@emilfreydigital.hr"
] | Andreas.Grdjan@emilfreydigital.hr |
cccac8d820d9d534647989e6cfc573f5a94e1876 | 5c15aba2bdcd4348c988245f59817cbe71b87749 | /src/trial.py | 00cd0826415c55ab5e87e90071586c86ffae075a | [] | no_license | chengshaozhe/commitmentBenefits | f7db038333ee95217713d1d4b2a1fb3d0c295fdd | 0388803960bc9995ffbcfb6435c134e488a98b63 | refs/heads/master | 2023-03-27T02:31:01.522997 | 2021-01-12T10:18:12 | 2021-01-12T10:18:12 | 310,592,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | import numpy as np
import pygame as pg
from pygame import time
import collections as co
import pickle
import random
def calculateGridDis(grid1, grid2):
gridDis = np.linalg.norm(np.array(grid1) - np.array(grid2), ord=1)
return int(gridDis)
def creatRect(coor1, coor2):
vector = np.array(list(zip(coor1, co... | [
"shaozhecheng@outlook.com"
] | shaozhecheng@outlook.com |
f8b009384d048023c27af00144f2eed20a7e0cf7 | 64363c8f80d760045996cbda1e0f578c07378c5b | /1-50/problem12/problem12.py | fce34ccd85da4c311a28f9a29d21512305111dbb | [] | no_license | ducngtuan/euler | ad1dd05cb044a067d0ab029ea7531128260b0d11 | c362d134dff02f639eae1c38508bc0f5cfdba07b | refs/heads/master | 2020-12-24T15:58:56.125110 | 2013-02-03T12:22:10 | 2013-02-03T12:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | def generate(n, acc=0):
if n == 0:
return acc
if n % 2 == 1:
return generate(n - 1, n + acc)
return acc + n * (n + 1) / 2
def divisors_count(n):
sqrt = int(n**0.5)
count = len([x for x in range(1, sqrt) if n % x == 0]) * 2
if sqrt * sqrt == n: count +=1
return count
i = 1... | [
"duc.ngtuan@googlemail.com"
] | duc.ngtuan@googlemail.com |
a07da680c32548d6d654f4d01f59d3f272342446 | 6e2dcf256edb612c76e734ced750285d8fcc3233 | /FirstProject/urls.py | ed0bdf1c26ceec833f9828075af4f3c449c0b58b | [] | no_license | ShubhamWorks78/DjangoFirst | 2a49f4372caed0208959281143c25fdcf2a1cb84 | 6f853d305bb7fa645f6d3817b33b53de151b29e6 | refs/heads/master | 2021-05-02T15:57:17.979561 | 2016-11-01T20:07:08 | 2016-11-01T20:07:08 | 72,571,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """FirstProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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')
Cla... | [
"2014UGEC@nitjsr.ac.in"
] | 2014UGEC@nitjsr.ac.in |
24bfed80ab1caa8cbdcf840494dd356d0bacce80 | 6bca587e888ad96062e7d74f96e28e05f2da51a6 | /android/device/actions/common/hardware/libcamera/tests/camerahal_test_scripts/camera_smoketest/camera_smoketest_0011.py | d158fa5ccec3b848d9ec519d7db1d050f485d942 | [] | no_license | ChrisP-Android/android-actions | 07a3bd732cb731ac6176b768b1ce19e5f520a303 | ac57ff55fbca5f4e3cf8851b17c42dafa2f9f46c | refs/heads/master | 2020-12-14T18:51:47.340113 | 2015-10-28T17:42:12 | 2015-10-28T17:42:12 | 44,614,459 | 1 | 0 | null | 2015-10-20T15:07:25 | 2015-10-20T15:07:25 | null | UTF-8 | Python | false | false | 772 | py |
import time
from time import sleep
import random
import sys
from config import *
from camera_smoketest_config import *
############################################################
print '*******************************************************************'
print 'recording %d times'% TestIterTimes
print '***********... | [
"lee.li@lemaker.com"
] | lee.li@lemaker.com |
f55df027f5a380a2302722b0a432c76857f85315 | a1a43879a2da109d9fe8d9a75f4fda73f0d7166b | /api/tests/equal_all.py | 1f1a1f3cf9a2c23dd214b96ee1e53b5c0fc00069 | [] | no_license | PaddlePaddle/benchmark | a3ed62841598d079529c7440367385fc883835aa | f0e0a303e9af29abb2e86e8918c102b152a37883 | refs/heads/master | 2023-09-01T13:11:09.892877 | 2023-08-21T09:32:49 | 2023-08-21T09:32:49 | 173,032,424 | 78 | 352 | null | 2023-09-14T05:13:08 | 2019-02-28T03:14:16 | Python | UTF-8 | Python | false | false | 1,661 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | noreply@github.com |
a100678014c55766c07b94ae81cf67b691c11c59 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=6/sched.py | 3605875026286563e51a9292de1d94125c66f6dc | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | -S 1 -X RUN -Q 0 -L 2 106 400
-S 0 -X RUN -Q 0 -L 2 86 400
-S 0 -X RUN -Q 0 -L 2 74 250
-S 0 -X RUN -Q 0 -L 2 59 250
-S 2 -X RUN -Q 1 -L 1 54 200
-S 3 -X RUN -Q 1 -L 1 44 175
-S 2 -X RUN -Q 1 -L 1 40 200
-S 2 -X RUN -Q 1 -L 1 37 125
-S 4 -X RUN -Q 2 -L 1 35 125
-S 4 -X RUN -Q 2 -L ... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
346858d357244e5d68bd63d2933ad76895e0112c | 5f4cb8907900ebb740b5bd22c932ef7bbb847eb9 | /train.py | 0239e8b311f96c5390e162302512fb6528de344a | [] | no_license | DeeperCS/distillation | b3c13965142683324ae7846c7442f3da0f2739ac | a42a34ee17ccce8fc9319231d86a0ffd7f3d013d | refs/heads/master | 2022-12-20T21:36:02.750087 | 2020-09-28T09:53:40 | 2020-09-28T09:53:40 | 299,263,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,141 | py | from __future__ import print_function
import argparse
import numpy as np
import os
import shutil
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.autograd import Variable
from models import resnet
from models import ... | [
"zy3381@vip.qq.com"
] | zy3381@vip.qq.com |
3f27767e32d95a71d36747e6db0b0d8e9bfabfc9 | f0a65d21d5ba16888f131fe99ed8baf0a85cf7dd | /pygmsh/volume_base.py | d3a22878fde32ff32a8b8924022e7a8096963a9b | [
"MIT"
] | permissive | mjredmond/pygmsh | d4a1e4e418af931eccbe73db01813a70efc2924a | 972e1164d77ecbf6c2b50b93fec9dc48c8d913e6 | refs/heads/master | 2021-01-19T07:52:53.057151 | 2017-04-06T09:48:21 | 2017-04-06T09:48:21 | 87,581,937 | 0 | 0 | null | 2017-04-07T19:52:56 | 2017-04-07T19:52:56 | null | UTF-8 | Python | false | false | 246 | py | # -*- coding: utf-8 -*-
#
class VolumeBase(object):
_ID = 0
def __init__(self, id=None):
if id:
self.id = id
else:
self.id = 'v%d' % VolumeBase._ID
VolumeBase._ID += 1
return
| [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
d220286422890246a7bfe05a56449454d42fa1d7 | 156d6f2187d875429482dd39b0daff7870b5b716 | /data/csv_to_json.py | 25c4f16b0b749b3f0d0504723000253414ae1219 | [] | no_license | ahardjasa/code2015 | 57ce282821ef9e3671022eaaae01941b8016d9ab | 1d2ab48698b259beb4d461e31c4b0db49b871363 | refs/heads/master | 2020-04-11T04:28:01.454528 | 2016-01-04T06:30:45 | 2016-01-04T06:30:45 | 31,090,410 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | #!/usr/bin/env python3
import sys
import codecs
import csv
import json
def clean(text):
text = text.strip()
try:
return float(text)
except Exception:
return text
def main(filename):
with codecs.open(filename, encoding='latin_1') as ifh:
reader = csv.reader(ifh)
for ... | [
"ngentleman@gmail.com"
] | ngentleman@gmail.com |
049caefa2add1ff042074b59e8aa6f1d1253ec07 | b236cc8f8cb1551467fd7bfdfafd35b760e1beeb | /00-Scanner/01-RemoteFileScanner/01-CodeLeak/SourceLeakHacker/lib/core/dispatcher.py | 2a797bee0b02b44e0877d5be1dae1794d5cb169a | [] | no_license | LANVNAL/MyPentestToolsBox | d3e8fbe78d84878996f9bab663568045dba20f29 | b88c8bc711eb21fb14a06bcf816629477b5604cb | refs/heads/master | 2023-07-24T18:25:28.538528 | 2021-09-07T11:20:27 | 2021-09-07T11:20:27 | 403,949,673 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,176 | py | import sys
import queue
import threading
import time
import requests
from colorama import Style
from lib.util import color
from lib.util import terminal
from lib.context import context
def check(url, foldername, filename, backup, timeout=4):
try:
start_time = time.time()
response = requests.head(u... | [
"lanvnal@foxmail.com"
] | lanvnal@foxmail.com |
c1396ab21dabc56b8319ae076980db2b18e388c6 | e2e7b6ae6f8897a75aaa960ed36bd90aa0743710 | /swagger_client/models/post_deployment.py | 2e5931f02a8d25c5931c6afa88ad097e5ca01832 | [
"Apache-2.0"
] | permissive | radon-h2020/radon-ctt-cli | 36912822bc8d76d52b00ea657ed01b8bfcc5056f | 3120b748c73e99d81d0cac5037e393229577d640 | refs/heads/master | 2023-08-19T10:54:01.517243 | 2021-09-15T15:38:51 | 2021-09-15T15:38:51 | 299,571,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,461 | py | # coding: utf-8
"""
RADON CTT Server API
This is API of the RADON Continuous Testing Tool (CTT) Server: <a href=\"https://github.com/radon-h2020/radon-ctt\">https://github.com/radon-h2020/radon-ctt<a/> # noqa: E501
OpenAPI spec version: 1.0.0-oas3
Generated by: https://github.com/swagger-api/sw... | [
"duellmann@iste.uni-stuttgart.de"
] | duellmann@iste.uni-stuttgart.de |
1d8bc9d7b9f1f8b71aaa271d97fd4d185b45f925 | 8bb086072e203a802bb2e8a34ca611a7daaa3ce2 | /subject_selection/select_3T_subjs_with_short_scans.py | 05a709a416819ee2033cf26a9d12cca22a2ea8b7 | [] | no_license | Washington-University/HCPpipelinesXnatPbsJobs | b4826af8f35561be56538b45eef138df51ff6490 | 9658c6dd487064cc6184c819911fe1fdf1b7aca9 | refs/heads/master | 2021-06-28T11:40:53.092452 | 2020-11-13T18:29:52 | 2020-11-13T18:29:52 | 154,562,056 | 0 | 1 | null | 2019-05-06T15:13:57 | 2018-10-24T20:03:47 | Shell | UTF-8 | Python | false | false | 2,579 | py | #!/usr/bin/env python3
# import of built-in modules
import os
import sys
import subprocess
# import of third party modules
pass
# import of local modules
import hcp.hcp3t.archive as hcp3t_archive
import hcp.hcp3t.subject as hcp3t_subject
# authorship information
__author__ = "Timothy B. Brown"
__copyright__ = "Copy... | [
"junilc@wustl.edu"
] | junilc@wustl.edu |
797a8815744350425e025a5f0309849676b9691c | e27333261b8e579564016c71d2061cc33972a8b8 | /.history/api/IR_engine_20210728213929.py | ddcc939eb070ba750cc5357a2d6a5aa401fe3e9a | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,136 | py | import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics.pairwise import euclidean_distances
from nltk.stem import PorterStemmer
from nltk.tok... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
d1520e9ff57b17017f0d8fbb25972e618c4716d7 | 294b75c805c5528fd6c6ff3d0d820afcafcff1bb | /Py_File/OS_Demo.py | df4ae6f8b49d06f28197d4ce57391a0dff094c5f | [] | no_license | kishansinghverma/C_Python | 7b679730c522c2f566a27540491912670eb0ffae | a96408f6a15e267f716a431d836f704eba9c13dc | refs/heads/master | 2020-06-15T12:29:10.750073 | 2019-12-24T15:51:19 | 2019-12-24T15:51:19 | 195,279,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | import os
import time
f1=open('local.txt', 'r')
current=list(map(float, f1.read().strip().split('/')))
while(True):
f2=open('remote.txt', 'r')
rmt=list(map(float, f2.read().strip().split('/')))
if(current[0] != rmt[0]):
current[0] = rmt[0]
if(current[0]==1):
print('Fan Is Turne... | [
"kishansinghverma@gmail.com"
] | kishansinghverma@gmail.com |
beb5f16630c055d23a39b70cb7f9dc6234831038 | c3b3b20b0a6d1a22857011b3d93e9090f270b536 | /service/routes/bookinghistory.py | 248752e92fc2b51d6714c6408cf1a298f46316e0 | [] | no_license | mindmedia/thecage-booking-backend-admin | ea105b61801a299ab1fe568ebcf2299157bb3b7a | a0169aaa7e5a42d6b6a9a245a5393fa3712e3d65 | refs/heads/master | 2022-04-12T04:22:58.450042 | 2020-02-28T15:47:25 | 2020-02-28T15:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | from service.models import (
PurchaseLog,
PurchaseItem,
Pitch,
Product,
Field,
purchase_log_schema,
purchase_logs_schema,
purchase_log2_schema,
purchase_log2s_schema,
purchase_item_schema,
purchase_items_schema,
)
from flask import request, jsonify
from service import app
fro... | [
"XINGHAN.17@ichat.sp.edu.eg"
] | XINGHAN.17@ichat.sp.edu.eg |
47853c7c8e53ba4da18af09b6ac41b9c19b4f302 | 579385cc730ddcdd4b96d616c92caace15ac3d58 | /article/migrations/0018_auto_20170715_1051.py | 92429e1f3a578d1fab4b3d49561c8364c4a52406 | [] | no_license | exctac/vedansha.com | f852892fc36ae1b0086b2e836335c8ad6dded962 | 994a116d177192cf4d473c57332df1c6429e97b8 | refs/heads/master | 2020-07-09T18:58:54.171045 | 2018-02-04T21:58:19 | 2018-02-04T21:58:19 | 94,260,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-15 10:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0017_auto_20170715_0828'),
]
operations = [
migrations.AddField(
... | [
"exctac@yandex.ru"
] | exctac@yandex.ru |
3a04c2dd37578c83c5d70a4f932d23003925d731 | e9165ab1ae366130e313a9e748499a672e60fa31 | /setup.py | 7b5446a0eedc212adc3730d566e3c7bd26edbef3 | [
"MIT"
] | permissive | ciaron/stroppy | dfa97320332a0f99aacb0130594322c2c8d989ea | 081f14d50917bd7669b6554719791ceee538b96e | refs/heads/master | 2020-08-27T06:49:39.974647 | 2020-05-25T11:27:04 | 2020-05-25T11:27:04 | 217,275,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="stroppy-ciaron", # Replace with your own username
version="0.0.1",
author="Ciaron Linstead",
author_email="c@ciaron.net",
description="A static site generator for image galleries",
lon... | [
"ciaron.linstead@gmail.com"
] | ciaron.linstead@gmail.com |
acc6e458d0eed26bbf21d9f29e8da48301241569 | 995447d49ea0b6f78ea70fac64959bf39f28556a | /datasets/__init__.py | e6230fde23e7922291a414c79e408227b603e894 | [
"MIT"
] | permissive | hhjung1202/DAtoN | ffcfe389292f8f3429ffc6b04d016bdf40506ee5 | 9d1beff544e695caa3149d6304415889e091cafd | refs/heads/master | 2020-05-18T07:51:43.489041 | 2019-05-03T03:11:44 | 2019-05-03T03:11:44 | 184,278,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from .mnist import get_mnist
from .usps import get_usps
from .svhn import get_svhn
__all__ = (get_usps, get_mnist, get_svhn)
| [
"hhjung1202@naver.com"
] | hhjung1202@naver.com |
8906dc16d16c453861174bea5e4c2e7b79fdd5f7 | 2730d3aedc279f4cafed721cceacc6afe1f7d18d | /zjh/mccfr_zjh.py | 937a01350490f6bfd1a0ab3ed2b7e58dfbcc9ede | [] | no_license | AIMan-Zzx/zhajinhua | 9e2db235f045b49cd5a72b28a0c8f9a74e8e7982 | 17fa23afc97ad154b48972af9bd206a0c8df87ca | refs/heads/main | 2023-04-20T17:09:28.344371 | 2021-05-06T17:23:56 | 2021-05-06T17:23:56 | 364,983,662 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,173 | py | import numpy as np
import random
from itertools import permutations
from tqdm import tqdm
from typing import Dict, List, Union
import multiprocessing as mp
from collections import defaultdict
from node import MNode as Node
from state import State,Pair
import json
import sys
import os
sys.setrecursionlimit(1000000)
# re... | [
"noreply@github.com"
] | noreply@github.com |
a4e16aa3029986e19186a08d10ba6756a749ef85 | 865bd5e42a4299f78c5e23b5db2bdba2d848ab1d | /Python/75.sort-colors.132268888.ac.python3.py | 420999a7c4e65d780fb46607f6690cc3de47a52b | [] | no_license | zhiymatt/Leetcode | 53f02834fc636bfe559393e9d98c2202b52528e1 | 3a965faee2c9b0ae507991b4d9b81ed0e4912f05 | refs/heads/master | 2020-03-09T08:57:01.796799 | 2018-05-08T22:01:38 | 2018-05-08T22:01:38 | 128,700,683 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | #
# [75] Sort Colors
#
# https://leetcode.com/problems/sort-colors/description/
#
# algorithms
# Medium (38.90%)
# Total Accepted: 217.5K
# Total Submissions: 559.1K
# Testcase Example: '[0]'
#
#
# Given an array with n objects colored red, white or blue, sort them so that
# objects of the same color are adjacent,... | [
"miylolmiy@gmail.com"
] | miylolmiy@gmail.com |
470680c22dc232542067bccb9341ef99207ae529 | 2b476ebcd5e2b4fdd153b438003c5e2b61d0e9bd | /multiRequests.py | 1b7625147c8e4b11eb90b93a7faa080efb1c535d | [
"MIT"
] | permissive | coolkingcole/py3_multithread_requests | 24b103e3d44c214ce747522619b64cad5ece5605 | f22e445210e7d1b377f5fb4525dd8826525ec791 | refs/heads/main | 2023-02-12T14:05:08.672951 | 2021-01-03T19:50:19 | 2021-01-03T19:50:19 | 324,894,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | import queue
import threading
import time
import sys
import requests
class ThreadUrl(threading.Thread):
"""Threaded Url Grab"""
def __init__(self, inqueue, outqueue, kwargs):
threading.Thread.__init__(self)
self.in_queue = inqueue
self.out_queue = outqueue
#self.method = method
... | [
"noreply@github.com"
] | noreply@github.com |
3bcd8c0c02adfd97e228048b85313243c62ab2ef | 3167e46c75cda7fe5b4550347631b172763fc175 | /test_train.py | 0db583c8df5620c605638499d1c3a2df6a45f4c2 | [] | no_license | SuhaasBhat/CC_DATA | d85e89dbb7451a016787190986158d8c3290dda9 | 96deceddc465fb774380a1bb14673260e9483fd7 | refs/heads/main | 2023-01-23T18:47:13.416663 | 2020-11-09T20:47:27 | 2020-11-09T20:47:27 | 311,454,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | from transformers import GPT2LMHeadModel, GPT2Config, GPT2Tokenizer, LineByLineTextDataset, DataCollatorForLanguageModeling, Trainer, TrainingArguments
from transformers import RobertaTokenizerFast, RobertaForMaskedLM, RobertaConfig
import process_txt_data as ptd
#import torch
tokenizer = GPT2Tokenizer.from_pretrained... | [
"ubuntu@ip-10-160-198-158.ec2.internal"
] | ubuntu@ip-10-160-198-158.ec2.internal |
c7ee79f81e71c46a87d58a9599bef995068c3961 | 5c956c53f4fd9d98a94abf0d8c378a45eb0476b1 | /home/forms.py | 4e1d29850b57766e715f709702292f09e84d68b8 | [] | no_license | PrarthiVyas/Hotelina | 7d3535998784d51201662d1b4460abb57f33ba95 | b865971b3c9abea7d7bea8347a729782a9ed8870 | refs/heads/main | 2023-06-17T04:07:55.413608 | 2021-07-17T11:00:13 | 2021-07-17T11:00:13 | 381,929,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from django import forms
from .models import *
# Create your forms here.
class AvailableForm(forms.Form):
ROOM_CATEGORIES={
('AC','AC'),
('NON_AC','NON-AC'),
('DELUX','DELUX')
}
room_category=forms.ChoiceField(choices=ROOM_CATEGORIES,required=True)
check_in=forms.DateTimeField(required=... | [
"prarthivyas218@gmail.com"
] | prarthivyas218@gmail.com |
a0d92a8d6c46aa5a0eb9efd323e336c5e8815128 | 9b64080dac6e4bc586f5af9404a0ea338ce00559 | /tests/test_menu.py | 84404f4bf6d7616f58f57c43d9a4da5de942768c | [] | no_license | KrzysztoPy/tic_tac_toe_simple | 1c7dc183c0e099324b3b5b18f90f281742d19a8c | fff7e02cc654cee5c92b7e828b85fec650274222 | refs/heads/master | 2023-08-07T18:13:48.126489 | 2021-10-01T13:46:55 | 2021-10-01T13:46:55 | 395,326,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | from main_menu.main_menu.menu_options import *
from unittest.mock import patch
@patch('xyz.xyz.checking_the_correctness_of_the_selection')
def test_processing_of_external_data_first_is_false(mock_checking_the_correctness_of_the_selection):
mock_checking_the_correctness_of_the_selection.return_value = None
res... | [
"geraltrivia19@gmail.com"
] | geraltrivia19@gmail.com |
6153ed244acbd1deac19c433cbd01c43350d4ff4 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /2gFkEsAqNZrs4yeck_13.py | 0e96182a63f5aad185cacd1b5bcad33ff13d32f2 | [] | 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 | 696 | py | """
Write a function that returns all the elements in an array that are **strictly
greater** than their adjacent left and right neighbors.
### Examples
mini_peaks([4, 5, 2, 1, 4, 9, 7, 2]) ➞ [5, 9]
# 5 has neighbours 4 and 2, both are less than 5.
mini_peaks([1, 2, 1, 1, 3, 2, 5, 4, 4]) ➞ [2, 3, 5... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a8e763a04f78152641c42acfb6f4274a34e67f6f | a9555d0e7417db4ea68ab73a46ffe5d6fd7b631a | /chapter2/int_fun.py | 2e74b87088a1f32a9629d9e8e032b87355ff7347 | [] | no_license | bindalraghav/Pythoncodes | ade74f2a8709e609b51ce2c754c4de204cafbf87 | 1d6d11c88ef9ef36826729e557ea95d32dc47b9d | refs/heads/master | 2021-01-03T11:13:25.300928 | 2020-03-18T15:07:20 | 2020-03-18T15:07:20 | 240,052,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | num1=int(input("enter 1st num"))
num2=int(input("enter 2nd num"))
num3=num1+num2
print(num3) | [
"bindalraghav10@gmail.com"
] | bindalraghav10@gmail.com |
879b1c3f764e6498f9a7a553de77fbb731b85af3 | 83fbcbcc674ade1ee920b6fdc6ebc472b3833c76 | /SpinalCord/GANUNet/data0/zgan_dataset.py | 65248e3aa55a3b4ea42832496dc8b37632ed087e | [] | no_license | mulanshine/GitHubResearch | 35b12da7311e7e6c21a613ed20a33e0cada24610 | 95b5b24857a0766ed327baf1ab89715e748ddf89 | refs/heads/master | 2020-05-02T20:27:09.455603 | 2019-04-03T11:07:40 | 2019-04-03T11:07:40 | 175,150,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,816 | py | import os.path
from data.base_dataset import BaseDataset
from data.image_folder import make_dataset
from PIL import Image
import numpy as np
import torch
import torchvision.transforms as transforms
import math
# anisotropic diffusion
def f(lam,b):
return np.exp(-1* (np.power(lam,2))/(np.power(b,2)))
... | [
"1952221507@qq.com"
] | 1952221507@qq.com |
524a0e10cc960c05791d380963683f0e8e163f49 | 545ab856301e0c6c3bfded93e3f1ef3eab9611b7 | /closends/views/main_page.py | cc47f688a0172e0f6b00a7017bbf9b7ee51f7f54 | [] | no_license | HITXYZ/Closends | bd64994c6e9acc514f8dcc43000521b52a66353f | b68461fc4bc8fc24738ecd65b3387a63af1f91f7 | refs/heads/master | 2021-08-30T01:36:16.142129 | 2017-12-13T06:26:54 | 2017-12-13T06:26:54 | 106,384,430 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,285 | py | from django.shortcuts import render
from django.core.cache import cache
from django.core.paginator import Paginator
from django.core.paginator import EmptyPage
from django.core.paginator import PageNotAnInteger
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.decorators import login_require... | [
"zg_hit2015@163.com"
] | zg_hit2015@163.com |
7aa3b4ca0b62347e16f42050d1394ef9da533dca | 93179ac11ded2454149ece61c51f2ef8227d3999 | /Profile/migrations/0001_initial.py | ae67e05ec494d69a3c633d64b168811ff31f9848 | [] | no_license | Hloni253/HloniSite | 9f14e51854f3dc5b411ef9e771e2fbfbe0227bad | dca7d335687ee8c9fc46b7a61143f8219961873d | refs/heads/main | 2023-06-26T01:22:58.318594 | 2021-07-28T13:47:56 | 2021-07-28T13:47:56 | 390,359,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | # Generated by Django 3.1.7 on 2021-06-14 10:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Notes', '0001_initial'),
('Videos', '0001_initial'),
('... | [
"lehlohonolomotloung407@gmail.com"
] | lehlohonolomotloung407@gmail.com |
945d6816e65ddcd5afe591b18b6347226f66c943 | bd1e0d03a0b7f07a1b6154df96fe7b52653845a6 | /Elementary/Find Message.py | 0de03555a90025aab2bccbab86e9b7d80474e3a3 | [] | no_license | thuan06/checkio.org-solution | cb43a97f1e7f43c2f0051bf4c5bca7b2dd330aac | 5e6d1be80b5faaf1a19370a5f32e8bd82bf38f9b | refs/heads/master | 2016-09-06T03:40:24.899368 | 2014-12-18T13:46:35 | 2014-12-18T13:46:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | __author__ = 'Thuan'
def find_message(text):
s=''.join([i for i in text if i.isupper()])
return str(s)
print find_message("How are you? Eh, ok. Low or Lower? Ohhh.")
| [
"thuan0610@gmail.com"
] | thuan0610@gmail.com |
20fb226181a168dd6671f5f065e241134074e33a | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /route53_write_f/dns-answer_test.py | f8d48671d2f746eca041962279f310374a54a8cc | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
4e27f85e6e44ae509d32786234d293e24fc8af61 | 7862625fabc748a5a44ff99b6ad5af53c973795f | /solsapp/urls.py | 9a25ba4f1c9dc0ec1d174ae91531bdc941d3d7e3 | [] | no_license | RakeshThirunahari/sols | 81eefcca9aab8552ac43a0a9bc3ab2a018443e8c | 0cd0d15d5d8d8c04e9cd8f197a0f71cd63e1c5b0 | refs/heads/main | 2023-02-26T03:02:05.246958 | 2021-02-02T16:39:00 | 2021-02-02T16:39:00 | 335,319,465 | 0 | 0 | null | 2021-02-03T08:28:59 | 2021-02-02T14:39:20 | HTML | UTF-8 | Python | false | false | 472 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name = 'SolsHome'),
path('List', views.listview, name = 'SolsList'),
path('GetTableMeta', views.tablemeta, name = 'tablemeta'),
path('GetTableData', views.tabledata, name = 'tabledata'),
path('CreateList', views.... | [
"rakesh.thirunahari@dhl.com"
] | rakesh.thirunahari@dhl.com |
6d6553258075a28f63b269f8f5e0ee499ae45d71 | 37ae8b0ecafd03bae01786b3fe7fc05b83f522a3 | /condicionais_finished.py | ad5c4cdf75df320b56124c5b3e19c48b6a690609 | [] | no_license | leocoelhodev/descobrindopython | a5d6b860ab05d9bf9e6840c660dbace39c8f20bf | f46da632347dd80fc52e1987b5cd69a992fe039e | refs/heads/main | 2023-05-27T04:25:30.535286 | 2021-06-15T10:28:45 | 2021-06-15T10:28:45 | 377,123,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | #
# Arquivo de exemplo das estruturas condicionais
#
def Condicionais():
x, y = 1000, 1000
if(x < y):
print("x é menor do que y")
elif (x == y):
print ("x é igual a y")
else:
print("x é maior do que y")
Condicionais() | [
"noreply@github.com"
] | noreply@github.com |
da4a6176bb44dd1e86e92d95b07eb36559743ae1 | 0c329252674b5d17f0b7f0685cb1ee3d06493475 | /email_classifier/email.py | 538bfdd72a1cba8b6895d512cedf317e53c29fc3 | [] | no_license | griffy/cs1573 | 56f12db035e8206ad3ac92aac38e4731b6edff13 | 52094dd9a7ef1cfc2abf4d87a7d494076cfe23c5 | refs/heads/master | 2021-01-10T11:00:12.347510 | 2013-04-14T21:17:41 | 2013-04-14T21:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,992 | py | import re
import os
to_regex_obj = re.compile(r"^X-To:.*", flags=re.UNICODE)
cc_regex_obj = re.compile(r"^X-cc:.*", flags=re.UNICODE)
bcc_regex_obj = re.compile(r"^X-bcc:.*", flags=re.UNICODE)
body_regex_obj = re.compile(r"^X-FileName:.*", flags=re.UNICODE)
from_regex_obj = re.compile(r"^X-From:.*", flags=re.UNICODE)
... | [
"joel@joel-griffith.com"
] | joel@joel-griffith.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.