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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d06decf7dcf5e33ddd34594bdf89f8b32d5e6822 | fd9c2b959724d65567876dec0abe93aaed7b7958 | /catalog/models/__init__.py | 088604bb05997808a69063f26a643f86eeb5527a | [] | no_license | emersonccf/projeto_mozilla | a5a3010dbaf942f03d1abed77706c6a1e34d53cc | aefe3d25439ecd0a2c3f6beb120da37cdfd1c9e4 | refs/heads/main | 2023-06-05T23:59:18.984438 | 2021-06-25T03:29:30 | 2021-06-25T03:29:30 | 371,171,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from django.db import models
from django.utils import timezone # não utilizado
from django.contrib.auth.models import User
from django.urls import reverse # Usado para gerar URLs revertendo os padrões de URL em Book
import uuid # Utilizado em BookIstance
LOAN_STATUS = (
('m', 'Manutenção'),
('e', 'Emprestado')... | [
"emecatarino@yahoo.com.br"
] | emecatarino@yahoo.com.br |
b270c02c44e1a61c3fe90af2a5606b7401d9980c | 5f4a0e5ae73d1ec5701dbd5e1cddf673a838000a | /modelrepo/heftNLO/vertices.py | ad39f23a52b81fdbc12fcd8d2e532faf9a9cf5fe | [] | no_license | modohyoung/madgraph-auto-model | e610569fe054b54bb2774ade91d3ff44dfc6ca04 | 796a8e6c2c6d628c5c971022595c31c18b406406 | refs/heads/master | 2020-12-11T05:47:22.054902 | 2015-05-08T16:25:04 | 2015-05-08T16:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,128 | py | # This file was automatically created by FeynRules 1.7.55
# Mathematica version: 8.0 for Mac OS X x86 (64-bit) (October 6, 2011)
# Date: Wed 8 Aug 2012 14:16:24
from object_library import all_vertices, Vertex
import particles as P
import couplings as C
import lorentz as L
V_1 = Vertex(name = 'V_1',
par... | [
"ianwookim@gmail.com"
] | ianwookim@gmail.com |
a0afd01311fc3c8b2e58fd920285130338e86b2d | 62c11667bc780b8fb80b69a069c5e4135a40ac8a | /src/newsletter/migrations/0001_initial.py | 77ec77167df437d057a369a632f89115ed37d047 | [] | no_license | garabek/Django_BootcampSite | 39b8bc976730c0776d733536f020a043d2f89370 | 8752cd7f2c469e2e4c9cf639e357c51cd05b5c4d | refs/heads/master | 2021-07-01T12:09:57.557274 | 2017-09-21T23:07:01 | 2017-09-21T23:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='SignUp',
fields=[
('id', models.AutoField(verbo... | [
"bekiyev@gmail.com"
] | bekiyev@gmail.com |
b0120bfacbc1a15617c0e7d5efcaae38eaa5e7f0 | d587a6d66a498eb23aa760117928ac012ee50f4d | /accounts/models.py | 749ccb4895b121276809f8b2340742f776fd0443 | [] | no_license | azhar316/ecommerce-store | f0eff37565f9ae873dfc09c119b14f6a647b98ca | 6a674a797e0daff63907fd2c8423b62bc8340d5d | refs/heads/master | 2022-05-04T16:59:08.216063 | 2020-04-27T11:59:48 | 2020-04-27T11:59:48 | 253,781,116 | 0 | 0 | null | 2022-04-22T23:11:35 | 2020-04-07T12:06:29 | Python | UTF-8 | Python | false | false | 2,051 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from django.utils import timezone
class CustomUserManager(BaseUserManager):
def create_user(self, email, password, **extra_fields):
if not email:
raise ValueError('Users mus... | [
"sayed.azharudin@gmail.com"
] | sayed.azharudin@gmail.com |
cd9ee5abd198f4ea6763f1fc758b8522cdfa424b | c3fafc358ab1bd71e67d67a7598b137193cb2d2e | /modules_autopep1.py | 4e1c12480a8df3120c2ee2d83bed7ce047f4b17a | [] | no_license | DaniloBP/Python-3-Bootcamp | 0010bb62432423d7ec76f87aa55d6cd016eac6e8 | 0594f3fcced17caa8bc00752aa6944b42f6224da | refs/heads/master | 2020-04-26T00:55:51.174671 | 2019-06-03T04:38:04 | 2019-06-03T04:38:04 | 173,191,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | import math
import sys
def example1():
# This is a long comment. This should be wrapped to fit within 72
# characters.
some_tuple = (1, 2, 3, 'a')
some_variable = {
'long': 'Long code lines should be wrapped within 79 characters.',
'other': [math.pi, 100, 200, 300, 9876543210, 'This is... | [
"pereira.b.danilo@gmail.com"
] | pereira.b.danilo@gmail.com |
155fa4c41fd0a7c40be7e863303ef3b568645e29 | faae5e2e431cc55089324510715b5bc91732ff42 | /DecisionTree.py | b874cf8d205050881abc97fc35a0b050a75094f3 | [] | no_license | sk929/MLLearning | ac9e84d9bbf0c8dfa7ad23b8941925320ed8c083 | ca5a9992b1fc40105a722b447ded6da20db32238 | refs/heads/master | 2022-07-20T01:29:05.298884 | 2020-05-26T13:38:25 | 2020-05-26T13:38:25 | 266,844,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | # Code you have previously used to load data
import pandas as pd
from sklearn.metrics import mean_absolute_error
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeRegressor
# Path of the file to read
iowa_file_path = '../input/home-data-for-ml-course/train.csv'
home_data = pd.... | [
"noreply@github.com"
] | sk929.noreply@github.com |
4f07499c2074eb8c88a885caeb77b365c77adf2b | 60fdc04010f1de5ed8017ae6f9d455feab94c33a | /juego con tortuga 8.py | 5bf62bb0d7652da17d3342d7d845031f68dbc925 | [] | no_license | JDHINCAMAN/Python_examples | af7ef6c4c6df196dd15bf602c967cc56ec088b27 | 010b2b415fc9c61a4dcfd7728d3d7a7231b531c8 | refs/heads/main | 2023-03-23T12:09:38.245610 | 2021-03-23T14:05:55 | 2021-03-23T14:05:55 | 350,734,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import turtle
t = turtle.Pen()
t.reset()
for x in range(1,38):
t.forward(100)
t.left(175)
| [
"noreply@github.com"
] | JDHINCAMAN.noreply@github.com |
14968dd918294b12c09c5485726652af73463636 | 580d8c8ee860ea8d6c522fd943b37f37a6a31712 | /Week1/05-aa-nt-converter.py | 563953c5a4c3f48005902efabb19f344c9fc58f3 | [] | no_license | charmquark1/cmdb-lab | 4e485f973eec2f5473760722dc1bd0401485fb76 | 3a82fe708f42f9d13493cb99f580a5587881a125 | refs/heads/master | 2021-01-11T19:34:54.462104 | 2016-12-19T14:54:42 | 2016-12-19T14:54:42 | 68,961,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | #!/usr/bin/env python
"""
Parse amino acid sequence in FASTA file.
Convert amino acid to 3 nucleotide seq, append to variable 'new'
When you see a -, replace with ---
Print gene id (ident), converted seq, new line \n, print new seq
Usage: xxx.py 04-AA.fa 02-nt.fa
"""
import fasta_fixed
import sys
import itertools
#... | [
"ninarao42@gmail.com"
] | ninarao42@gmail.com |
caf70606137c0215e3fb64625ec643e1dc3b2668 | 4ee3f1ce9d06815fbefa6c674d1e00fda7c1dec1 | /exercises.py | 7faa60fb61740354ef8009359c125e8b8c5f7807 | [] | no_license | Seal125/binary_tree_basic | 79bce998c34c56bbe938784f2be8048da66206d6 | 957df46130f8c0e68bb8cf7145d0d01aee60e34f | refs/heads/master | 2021-04-17T11:05:05.827069 | 2020-03-23T14:47:25 | 2020-03-23T14:47:25 | 249,440,206 | 0 | 0 | null | 2020-03-23T13:35:43 | 2020-03-23T13:35:43 | null | UTF-8 | Python | false | false | 606 | py | class Node:
def __init__(self, value = None):
self.value = value
self.left = None
self.right = None
def inorder(root):
values = []
def add(node):
if node:
add(node.left)
list.append(node.value)
add(node.right)
add(root)
return val... | [
"stephaniesmith12514@gmail.com"
] | stephaniesmith12514@gmail.com |
feb967e768de780f768c67ee8e6bc478974aa13b | 7e90a1f8280618b97729d0b49b80c6814d0466e2 | /workspace_pc/catkin_ws/build_isolated/hector_slam/catkin_generated/stamps/hector_slam/_setup_util.py.stamp | c51cc0942a19064fe6e7239c5adffd9ad95290b7 | [] | no_license | IreneYIN7/Map-Tracer | 91909f4649a8b65afed56ae3803f0c0602dd89ff | cbbe9acf067757116ec74c3aebdd672fd3df62ed | refs/heads/master | 2022-04-02T09:53:15.650365 | 2019-12-19T07:31:31 | 2019-12-19T07:31:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,976 | stamp | #!/usr/bin/python2
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistri... | [
"sh9339@outlook.com"
] | sh9339@outlook.com |
3166d19669d179ae390fe0176d83516606e617ba | 9c991a8b7bbdda40d9115d685122cf63627a1ace | /Week 1/Day1Practice/madlib.py | c5e85cfff4c6a4833517dcdcabfcb373a663a619 | [] | no_license | Zacros7164/unit1 | 321844820178e16909df52f5620319e1aeeb0d4a | 76d737067a685af110f6ec00ee315136c3cad51a | refs/heads/master | 2020-04-06T11:26:00.023411 | 2019-02-12T14:06:00 | 2019-02-12T14:06:00 | 157,416,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | print "Madlibs!"
name = raw_input("Please give me a name. ")
subject = raw_input("Please give me a school subject. ")
print name + "'s favorite subject in school is " + subject + "."
| [
"Zacros7164@gmail.com"
] | Zacros7164@gmail.com |
8a961656b96feb84ed09e52341f6db90ae7faeee | 30272f4069293049848369f674ff7a8e88e30ac9 | /PowerSpectrumFunctions.py | 8e19c74085abafde3847571c977825abf8d71e79 | [] | no_license | AstroJames/anisoReconstruct | e40121fdfdf0e90575c210c20a3ae471a46fa558 | 9b79fd78eb47e44592a5487bd1df9b81658dd31f | refs/heads/master | 2022-04-06T23:47:07.820106 | 2020-03-02T00:38:31 | 2020-03-02T00:38:31 | 235,967,999 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,628 | py | from header import *
def PowerSpectrum(data,type=None,variance=None):
"""
Calculate the power spectrum.
INPUTS:
----------
data - The 2D image data
n - the coef. of the fourier transform = grid size.
type - either '2D' or 'aziAverage' for 2D or averaged power spectr... | [
"jamesbeattie@James-MacBook-Pro.local"
] | jamesbeattie@James-MacBook-Pro.local |
8b06643905de8fc715a65a1df5347cc97d12961b | dfcddf4ed51bc48c4bd6288e3517fd8629000fbd | /app/http/responses/__init__.py | cb1798211886d0480004cb258bb6cdb3ead1bd94 | [] | no_license | ugabiga/flask-boilerplate | 508548d1f713c9f4412e43c68dd59d9a6210882d | 5a317a80295aacf9bfc8c7c1a5736d2d5b22fc98 | refs/heads/master | 2022-08-30T16:28:58.332410 | 2022-08-23T12:03:34 | 2022-08-23T12:03:34 | 208,466,604 | 1 | 0 | null | 2022-08-23T12:03:35 | 2019-09-14T16:12:18 | Python | UTF-8 | Python | false | false | 1,376 | py | from typing import Any, Tuple, Type
import marshmallow as ma
from flask import jsonify
from flask.wrappers import Response
from core.use_cases.output import Failure, Output
def build_success_output_with_schema(
output: Output, schema_class: Type[ma.Schema], many: bool = None
) -> Tuple[Response, int]:
outpu... | [
"ugabiga@gmail.com"
] | ugabiga@gmail.com |
0d72f76083eab3990a6815596501ba6a7019de76 | ebb081aea082ea8964c6de96d8ee4063e2660eba | /question_set.py | fbbaeb74231f4b8bbcc8727ace37848045609470 | [] | no_license | tramlam-ng/QuestionAnsweringSystem | 8298f79764917e09e9ae34510cbedaf3b87f0d94 | ca28ef59fe8eaf7136bf9c71a2d88c2b63ffac74 | refs/heads/master | 2022-01-14T15:47:13.364148 | 2019-01-12T13:57:25 | 2019-01-12T13:57:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | #!/usr/bin/env python
# coding: utf-8
import pandas as pd
data1=pd.read_csv('WikiQA-train.tsv',delimiter='\t',encoding='utf-8')
data2=pd.read_csv('WikiQA-test.tsv',delimiter='\t',encoding ='utf-8')
data = data1.append(data2, ignore_index=True)
#Extracting the unique questions along with their questionID
def extra... | [
"noreply@github.com"
] | tramlam-ng.noreply@github.com |
8cbeb7315d0f6c9e820555d49e344399fd8269ca | 992c31a3bda2467e9d90ec8989f15a4cd38bae2b | /drone.py | e51fef99bd7c3de22cda760187dc7caf67aed65a | [] | no_license | aleksandarnikov/dwm | a35a83f720e75e85d23039a091d280675d716797 | 3de3f0795955fd30056e4b71cd1b92ef33950ccd | refs/heads/main | 2023-01-06T16:17:42.826991 | 2020-11-14T12:11:44 | 2020-11-14T12:11:44 | 312,095,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | import paho.mqtt.client as mqtt
import time
import random
import sys
name = sys.argv[1]
client = mqtt.Client(name)
client.connect("localhost")
def on_publish(client, userdata, result):
print("data published \n")
pass
client.on_publish = on_publish
# ret = client.publish("dwm/node/abc1/uplink/location", '... | [
"aleksandar.nikov@netcetera.com"
] | aleksandar.nikov@netcetera.com |
31519fa2a14b4aedde98b2f3a8defd664bd00223 | 69ef0b99e5b2a1fde4780501e87725a618c7889f | /abc/python3/hello.py | 346ba43f5dd4dcecc557910820aefe3bf7f003ce | [] | no_license | wsz-/real_hub | 350f5133ec55fb0357a1c76e72ac6f93757352cb | f1b4d3140bc8c723076bba79fbaf8c0495592314 | refs/heads/master | 2021-01-10T21:14:13.724398 | 2012-11-02T04:42:25 | 2012-11-02T04:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import sys
argvs=sys.argv
#print(len(argvs))
base="Hello"
err='''用法:
hello
hello -p
hello -p $str
大小写无关'''
arg_len=len(argvs)
if arg_len==1 :
print(base,'word!')
elif arg_len==2:
if argvs[1].lower()=='-p':
print(base,'word!')
else:
print(err);
elif arg_len==3:
if argvs[1].lower()=='-p':
... | [
"cisir92@gmail.com"
] | cisir92@gmail.com |
21dad83cf27d3b9f8a2e6cff7584c09f606351a6 | aff5cc92f38213a45323d7dede291dd918e96519 | /simulation/crystal_mode_code/plane_transistion_plot.py | 7c7ad320310ff374257a8f598b9f15e2ec976c37 | [] | no_license | nistpenning/calc | bd475b75a36ba93e74356a37529d0f9dac30a083 | 15d651bcc5c067032041b5ad9cf0be38169bb750 | refs/heads/master | 2021-01-18T22:59:31.619436 | 2015-11-03T23:44:05 | 2015-11-03T23:44:05 | 32,483,830 | 3 | 1 | null | 2015-06-17T16:58:16 | 2015-03-18T20:54:43 | Matlab | UTF-8 | Python | false | false | 4,645 | py | __author__ = 'sbt'
"""
Makes a plot of the rotation frequency of the
2-1 plane transistion for a given configuration of the Ion trap.
"""
from mode_analysis_code import ModeAnalysis
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
if __name__ == "__main__":
# Select the trap... | [
"storrisi@u.rochester.edu"
] | storrisi@u.rochester.edu |
d2e18daba5039bfa0fe53bdc30e97c234ded7ec8 | bbfa9cdfd5f09c833ab9190cd4ad5a46e7a515e7 | /effective-python/2020-05/item_61.py | 863a8f8f00e61d939277ee2b82426ba026599225 | [] | no_license | alexchonglian/readings | 775204e013a2301f08fee96c5e8b116842faebcb | 03cb6cb266d8d2376db411e9b12e9b6cd1f2b33b | refs/heads/master | 2022-12-02T13:56:56.878477 | 2021-06-18T05:53:14 | 2021-06-18T05:53:14 | 218,573,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,393 | py | import random
random.seed(1234)
import logging
from pprint import pprint
from sys import stdout as STDOUT
# Write all output to a temporary directory
import atexit
import gc
import io
import os
import tempfile
TEST_DIR = tempfile.TemporaryDirectory()
atexit.register(TEST_DIR.cleanup)
# Make sure Windows processes e... | [
"alexchonglian@gmail.com"
] | alexchonglian@gmail.com |
969d035c63ace1f7b4c413e93f06400bb2d2bf34 | 119437adb7830659307c18b79a9cc3f6bfc6fe40 | /transformers_learning/english_sequence_labeling/torch_model_train.py | 234011630b2febd960451887847252ee4bdd95c0 | [] | no_license | percent4/PyTorch_Learning | 478bec35422cdc66bf41b4258e29fbcb6d24f60c | 24184d49032c9c9a68142aff89dabe33adc17b52 | refs/heads/master | 2023-03-31T03:01:19.372830 | 2023-03-17T17:02:39 | 2023-03-17T17:02:39 | 171,400,828 | 16 | 7 | null | 2023-09-02T08:53:26 | 2019-02-19T03:47:41 | Jupyter Notebook | UTF-8 | Python | false | false | 5,513 | py | # -*- coding: utf-8 -*-
# @Time : 2021/1/31 15:01
# @Author : Jclian91
# @File : torch_model_train.py
# @Place : Yangpu, Shanghai
import json
import torch
import numpy as np
from torch.utils.data import Dataset, DataLoader
from transformers import BertForTokenClassification, BertTokenizer, BertConfig
from util import... | [
"1137061634@qq.com"
] | 1137061634@qq.com |
1d851a0b72fbdf9725b48f0991a89504fbb6cf55 | e3d6acf088991d776ed17b61e464ef128b83e6da | /src/enums/type.py | ce89b3f44f25b45100f5afe9e4030269c107e187 | [
"Apache-2.0"
] | permissive | antamb/google-personal-assistant | 407c6a0e420d667810571bcb5b58a5a3130bde1b | a81d1e65cd5d42e963bd359482a0ba7e3879a1d5 | refs/heads/master | 2020-12-03T02:09:26.805036 | 2017-07-01T09:12:06 | 2017-07-01T09:12:06 | 95,910,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from enum import Enum
class Type(Enum):
OTHER = 1
EVENT = 2
PERSON = 3
UNKNOWN = 4
LOCATION = 5
WORK_OF_ART = 6
ORGANIZATION = 7
CONSUMER_GOOD = 8
entities_type = {
Type.EVENT: 'Event',
Type.PERSON: 'Person',
Type.UNKNOWN: 'Unknown',
Type.OTHER: 'Other types',
Typ... | [
"anta.aidara@gmail.com"
] | anta.aidara@gmail.com |
4a4c5276c3bf38dc20522b4f06a995c51f55462c | 79d471c012ec9220836cf529d6062803c6fadb03 | /localizer.py | 9e8eb0782ede0b517412d026a4c69f2c0423f56f | [] | no_license | Knevari/histogram-filter | 4e4c6604258478f14c1d1bd0604faed3d7a56859 | 47930837ff816769dbc9d6cb7f9ccc19d75040d3 | refs/heads/master | 2020-12-09T21:37:18.329609 | 2020-01-17T14:22:27 | 2020-01-17T14:22:27 | 233,422,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from helpers import normalize, blur
def initialize_beliefs(grid):
height = len(grid)
width = len(grid[0])
area = height * width
belief_per_cell = 1.0 / area
beliefs = []
for i in range(height):
row = []
for j in range(width)
row.append(belief_per_cell)
belief... | [
"mateus7319@gmail.com"
] | mateus7319@gmail.com |
8ad21205f4c323d5f5949973e2286fd410352fdf | 24b4dcd555dd3e644467aec13edd671afdd3f49c | /SU2/opt/UQ.py | fe95153422af7b38c4541bf5320368b4442f680a | [] | no_license | garcgutierrez/adj_sto_su2 | 2c8294b65dcef8faf4bf1f453a413bca429a6751 | 22ec37839ed0a08f5dbe1935d18205f085b28a70 | refs/heads/master | 2022-11-16T22:13:59.666403 | 2020-07-14T15:38:22 | 2020-07-14T15:38:22 | 279,776,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | from pylab import *
import chaospy as cp
class UQ(object):
def __init__(self):
self.alpha_dist = cp.Uniform(-0.5,0.5)
self.Ma_dist = cp.Uniform(0.1,0.2)
self.T = cp.Uniform(273, 274)
self.distribution = cp.J(self.alpha_dist, self.Ma_dist)
self.computeQuadrature()
... | [
"garcgutierrez@gmail.com"
] | garcgutierrez@gmail.com |
b5fd5e255e2b4a38a8967b95ec48bf042b24c2d1 | 939e8a8838ff66f72655a7c103bf79b31ccd6966 | /MyApp/models.py | 94b7a286c938b6311a14ab45019c9aed1b7cf375 | [] | no_license | github653224/ApiTest | 3647292471fe11d8a124e0bd41061a2de3add5ed | 9c1fc9c05dce38a4e2618c43943f8f44090ab4f2 | refs/heads/master | 2023-02-03T16:54:21.599640 | 2020-12-18T10:17:01 | 2020-12-18T10:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,410 | py | from django.db import models
# Create your models here.
class DB_tucao(models.Model):
user = models.CharField(max_length=30,null=True) #吐槽人名字
text = models.CharField(max_length=1000,null=True) #吐槽内容
ctime = models.DateTimeField(auto_now=True) #创建时间
def __str__(self):
return self.text+ str(sel... | [
"wangzijia@xiaozhu.com"
] | wangzijia@xiaozhu.com |
1981adb6d51f44d042af9407d1b2ef43e248447e | 6784941fe6b67b5531a6154becc9d9a641cd64d9 | /ActualizaDDBB.py | c330d03d7fe9392fa24943b1577a64adb505fd50 | [] | no_license | alexistdk/todo-list | 07ba52926d94b2c05b8cca0854549cebed6e335b | 62da1526d57fccc9f8d2c7d255efc1bd7dfe0fe8 | refs/heads/main | 2022-12-30T06:15:12.107125 | 2020-10-22T02:05:17 | 2020-10-22T02:05:17 | 213,752,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,411 | py | from datetime import date
from ConectarDDBB import *
class ActualizaDDBB(ConectarDDBB):
@classmethod
def crear_tarea(cls, titulo, descripcion, id_usuario):
try:
db = cls.conexion()
cursor = db.cursor()
fecha = date.today()
cursor.execute(cls.insertar_ta... | [
"alexisndelgado@gmail.com"
] | alexisndelgado@gmail.com |
70c3c06f681b066ac0388b0d3c1198b4074e9724 | 7f24023d365e013ec0924844c1a872edfb0c75b4 | /tests/trac/trac-0186/check.py | 08b3119a43dd3dd72dd22febf93509b88bca7eca | [
"Python-2.0",
"MIT",
"Apache-2.0"
] | permissive | pabigot/pyxb | cd42c024607572c6363682d389e9296caf3f2857 | 5ee5ba54c9f702dc9c9efc2731ee547ecd4dae4a | refs/heads/next | 2023-05-11T03:23:19.599756 | 2023-04-29T20:38:15 | 2023-04-29T20:45:13 | 20,547,850 | 130 | 63 | Apache-2.0 | 2021-08-19T16:52:18 | 2014-06-06T01:49:03 | Python | UTF-8 | Python | false | false | 493 | py | # -*- coding: utf-8 -*-
import logging
if __name__ == '__main__':
logging.basicConfig()
_log = logging.getLogger(__name__)
import pyxb.utils.domutils
import resources
import unittest
class ExternalTrac0186 (unittest.TestCase):
def testXBIngress (self):
instance = resources.XBIngress(match='all', acti... | [
"pab@pabigot.com"
] | pab@pabigot.com |
88c0d4f7001e4d7f2d2a994d979b9b99a1ed7d08 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/icml2020/hand/buffers/pen1.py | c92cde36156496ccf82fa584986ffbc35a17a452 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,576 | py | """
AWR + SAC from demo experiment
"""
from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader
from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args
import rlkit.misc.hyperparameter as hyp
from rlkit.launchers.arglauncher import run_variants
from rlkit.torch.sac.policies im... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
074e39bc74b5205dfecb5d90f2cd5a25847b0312 | bb93b0907ed8f7c8c0e2bed23dcf2fe948c39b8d | /08-tuples.py | 34abd356c6c615e4a40e1344285aeda269431484 | [] | no_license | hue113/complete-python | 103b0e8b2c74a6a85a0c69227790fa17cada7e19 | c82ba9dd9a8c7ef2b84e2e6b8b33ba44f3974049 | refs/heads/master | 2023-03-21T17:30:30.292050 | 2021-03-14T22:40:16 | 2021-03-14T22:40:16 | 347,771,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | # Tuple: like a immutable list
| [
"huepham113@gmail.com"
] | huepham113@gmail.com |
54316a4f35c167022b648ae75bf34184134084ad | b0c0706e4c4f41a729ec235e31ba90385eb44845 | /coinlist/migrations/0002_auto_20180502_1107.py | 77d0be8b066d8e33d3c6253e4f0c6ef73b7a80a7 | [] | no_license | kupreeva/TopCoin | d7a6a56e6df869c0f978024c9e34351c75a0a580 | babe9e306a38ab4dbd457b6c3e579fa0c3cf86f4 | refs/heads/master | 2020-03-14T23:22:51.481252 | 2018-05-02T15:40:09 | 2018-05-02T15:40:09 | 131,843,712 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-05-02 11:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('coinlist', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"kristine.kupreeva@gmail.com"
] | kristine.kupreeva@gmail.com |
0fc64ab80d0fe321eccbc84cf5dfdc3c647f3803 | 966b8ce654c67bbabd4c5166e7bb6e2a7086d172 | /xml_read2.py | 8c0a0ffc82d17475694707f66371dacbfe122d34 | [] | no_license | muzklj/learn_code | c4a316fcdd4d8348fb7959b66194a60d9f89b010 | 7dde268175391c2d4a2911fd40074ada5e7016a4 | refs/heads/main | 2023-08-08T16:25:37.540950 | 2023-07-24T00:31:42 | 2023-07-24T00:31:42 | 396,725,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | '''
Author: MuZonghan
Date: 2021-07-23 15:20:07
LastEditTime: 2021-08-19 15:14:07
Descripition: 统计xml文件的类别数目
FilePath: /4pcodes/learncodes/xml_read2.py
'''
import os
import xml.dom.minidom
xml_path = '/home/trunk/muzklj/5datasets/bigdata/img-txt2/sec-all1-xml/'
files = os.listdir(xml_path)
gt_dict = {}
if __name_... | [
"“muzklj@163.com”"
] | “muzklj@163.com” |
a6247ca012289c8bc806e6836e82eb8bd9df5793 | 9b01f09991618b13deeb75044c66a721253eba52 | /Baysim.py | f066c87bfbada580e68b3787a8cd3935c53a8ec3 | [] | no_license | BlackDragonBayliss/question-bank-app | 2f0c5e1fb87395c1e607064639637029a219c154 | 2a8d3c05cf554b092981c44b7f05271e83bdf4ae | refs/heads/master | 2020-04-27T09:04:30.279021 | 2019-06-21T21:08:38 | 2019-06-21T21:08:38 | 174,199,735 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from StateStoreComposite import StateStoreComposite
def main():
instanceStateStoreComposite = StateStoreComposite()
if __name__ == "__main__": main() | [
"wallacecarr4@gmail.com"
] | wallacecarr4@gmail.com |
cd154db704763f331c942f98c0e560adc5f97522 | 96681aca57fa55e82aeb7d9ca56041f20498bf37 | /account/forms.py | fb3724a6e226c77ad07cd4721c0a98f1a1b1666d | [] | no_license | karyshev63rus/docent63 | 191c57ae6310df91b5e7a5657ffab2f3fdb2249f | 67c4312db1be3c79c287814fda6d91b039520cfe | refs/heads/master | 2023-07-10T23:44:23.209061 | 2021-08-14T18:44:50 | 2021-08-14T18:44:50 | 373,348,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | from django import forms
from django.contrib.auth.models import User
from .models import Profile
class UserRegistrationForm(forms.ModelForm):
password = forms.CharField(label='Пароль',
widget=forms.PasswordInput)
password2 = forms.CharField(label='Повторите пароль',
... | [
"karyshev63rus@gmail.com"
] | karyshev63rus@gmail.com |
a666a99db10c5f01012215a5c6ee570d7c03bffa | 09e4bd1f19806b0ed223066be6fa381fb2b65598 | /monitor/task.py | 9ba0e801e38687e93741f9f85cf61d276d4c6df7 | [] | no_license | icellus/shell_scripts | f220a90f37a8070b04302a3be80ef03a58517134 | 7dc4d85b5b7fcd6ff98ebc6bdfa6ae4d3df55c48 | refs/heads/master | 2021-08-27T16:43:12.397195 | 2021-08-23T02:40:07 | 2021-08-23T02:40:07 | 143,691,816 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/05/24 00:00
# @Desc : 定时任务,以需要的时间间隔执行某个命令
# @File : task.py
# @Software: PyCharm
import time, os
from monitor import task
def roll_back(cmd, inc = 60):
while True:
#执行方法,函数
task()
time.sleep(inc)
roll_back("echo %time%"... | [
"2283411628@qq.com"
] | 2283411628@qq.com |
efa28e9d986d4fe70e7cfe524ef2a44c04fde8b2 | 38ce870a1a4a9862b5d054aca31f5c0337c82ead | /arduino/libraries/ledtable/documentation/pixelorder_double_spiral.py | 533bf98979abf1d143249c85d3f17016b55d2896 | [
"MIT"
] | permissive | pmerlin/ledtable | 6a4cde37f6987be1a2ae6567aece1ec48c5bc60b | a94d276f8a06e0f7f05f5cc704018c899e56bd9f | refs/heads/master | 2020-04-05T18:38:14.014614 | 2017-01-10T17:15:26 | 2017-01-10T17:15:26 | 157,106,815 | 1 | 0 | MIT | 2018-11-11T18:10:14 | 2018-11-11T18:10:14 | null | UTF-8 | Python | false | false | 763 | py | def s(x, y, w, h):
if y == 0: return x
return s(y - 1, w - 1 - x, h - 1, w) + w
def s2(x, y, w, h):
m = min(x, y, w-1-x, h-1-y)
outer = sum((w - m_*2) * 2 + (h - m_*2) * 2 - 4 for m_ in range(m))
outer = m * 2 * (w + h - 2*m)
_x = x - m;
_y = y - m;
_w = w - 2 * m;
_h = h - 2 * m;
... | [
"niccokunzmann@rambler.ru"
] | niccokunzmann@rambler.ru |
796df0bd81da274209df3eab5785899295b1efb8 | 143fa4b592ca6cbd420d78ceb6991ecce58370cb | /src/anpocs44.py | 9920404c4f039c612ad78e4676f3c7ed73642beb | [
"MIT"
] | permissive | vmussa/anpocs-scraper | 3b07d9f861275404acc870910682aa79604a20b2 | dd042f3765bea7e699b77bcf323738e761e70b17 | refs/heads/main | 2023-04-28T23:12:01.330071 | 2021-05-17T23:29:11 | 2021-05-17T23:29:11 | 356,652,869 | 3 | 3 | MIT | 2021-05-15T00:41:53 | 2021-04-10T17:37:15 | Python | UTF-8 | Python | false | false | 4,128 | py | """Código para a aquisição dos dados dos Encontros Anuais da ANPOCS."""
from bs4 import BeautifulSoup
import pandas as pd
import re
from tqdm import tqdm
import sys
from os import mkdir, sep
from os.path import abspath, dirname, exists
import requests
from helium import (
start_chrome, click, get_driver, kill_brows... | [
"vtrmussa@gmail.com"
] | vtrmussa@gmail.com |
58b16c0c8049c70a9146960656d3f2f7323cab0e | b251a605a8f4cf62970df3d7c2e75a46fc2445b2 | /sva.py | aac2a7ae497d54e722449331dc4c7be943a41429 | [] | no_license | wheatfields/Q | f9fefed09cc598ab3feb872bc87f8dda27c166e1 | a5dd5593b559c2ceae1d6d41337af944f5000e6f | refs/heads/main | 2023-08-03T22:59:08.843170 | 2021-07-02T05:30:59 | 2021-07-02T05:30:59 | 376,154,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,030 | py | # -*- coding: utf-8 -*-
"""
@author: adamw
"""
import pandas as pd
class sva:
"""
Initialise with a path to the document & a sheet name.
"""
def __init__(self, path, sheet_name):
self.path = path
self.sheet_name = sheet_name
# initiate nested classes
self.dlr_... | [
"68405635+wheatfields@users.noreply.github.com"
] | 68405635+wheatfields@users.noreply.github.com |
1ef85ed8de5af85610939be3fd8aaef0b637de4c | 2127976c32452664cbe5bc46e858f6c1059300fc | /spotify.py | f1e603f01287548e6f8b5a843597b714959fb8f9 | [] | no_license | Luis199/spotify | 8c536680652d99b5b63c85859eb6b0e626107057 | 961fd0970305ee8bab8ed9105dad3c07a646a297 | refs/heads/master | 2023-02-09T00:57:01.231526 | 2021-01-05T19:59:16 | 2021-01-05T19:59:16 | 282,363,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import spotipy
from spotipy.oauth2 import SpotifyClientCredentials
birdy_uri = 'spotify:artist:2WX2uTcsvV5OnS0inACecP'
spotify = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials())
results = spotify.artist_albums(birdy_uri, album_type='album')
albums = results['items']
while results['next']:
re... | [
"luiscasado620@gmail.com"
] | luiscasado620@gmail.com |
b1918d70a960ef445232d6b1b21ffd44d9848c48 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /Phys/Urania/examples/KsPiZeroMM_angularPDF.py | a83417211276319e5a15c72d57e48769a1b46477 | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,684 | py | from Urania.Helicity import *
from Urania.SympyBasic import *
from os import *
DiLeptonSpins = [0,1,2] ## DMS: I doube we'll need 2, probably we'll only
## have Pwave (J=1) from the photon, plus maybe some S-wave (J=0)
### transAmp=1 : Changes to transversity amplitude basis
A = doKsPizeroMuMu(DiLe... | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
bf42c98bb55e0b61192663d6f96ce710d0f07d01 | eecc738c416a9ed5ccac250cb1d676a7f104d2fe | /landmarkEmo/dontuse/test.py | 256c616a63876e779034b5636e4b4a24dc3e1020 | [] | no_license | cosmic119/CNN | b331d35e048fd24ad73dcbd5d0481220314d89c2 | a1016323ef2f89020d793fe66e0d4db850a0359a | refs/heads/master | 2021-04-15T03:33:22.834015 | 2018-03-23T02:22:36 | 2018-03-23T02:22:36 | 126,423,542 | 0 | 0 | null | 2018-03-23T02:44:01 | 2018-03-23T02:44:01 | null | UTF-8 | Python | false | false | 10,279 | py | # -*- coding: utf-8 -*-
"""
niektemme/tensorflow-mnist-predict 를 참조하였음
"""
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
#레파지토리에서 테스트 프로그램에 필요한 데이터 다운로드
mnist = input_data... | [
"gksthf3178@naver.com"
] | gksthf3178@naver.com |
89eb8d3c440b20fc430683ddb303868c4dfccc4a | 480459352928aa307317bac9d7c8f0efe427023c | /getting_started/config.py | e7586e40cad89565f5e9aa9ede9c5d8236c38670 | [
"MIT-0"
] | permissive | seeq12/amazon-lookout-for-equipment | 031a265095d7c153d086af6c2b97c17c2bbf835b | cb760aa0f9e2dad8fce13ed7c50282a10e320b40 | refs/heads/main | 2023-06-28T20:30:55.880074 | 2021-07-27T15:00:00 | 2021-07-27T15:00:00 | 390,020,084 | 0 | 0 | null | 2021-07-27T14:45:26 | 2021-07-27T14:45:25 | null | UTF-8 | Python | false | false | 557 | py | # Update the name of the bucket you want to use
# to store the intermediate results of this getting
# started:
BUCKET = '<<YOUR_BUCKET>>'
# You can leave these other parameters to these
# default values:
PREFIX_TRAINING = 'getting_started/training-data/'
PREFIX_LABEL = 'getting... | [
"michoara@amazon.fr"
] | michoara@amazon.fr |
d8c137dda1852fc28941eac7e6a8c8a76905993e | 9bde6cafb4273d721229448d115853ff2f5994a6 | /myblog/blog/models.py | 29739ca1865621b4e4224bca3f600e41f915a179 | [] | no_license | davejonesbkk/myblog | 11eb30b4d75270b3e99f172f27f05ce31e318f93 | 4a5cbeb47154004ef239b16e63155997b1c9afe6 | refs/heads/master | 2021-01-17T17:43:28.465235 | 2016-05-31T02:02:07 | 2016-05-31T02:02:07 | 59,930,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | from django.db import models
from django_markdown.models import MarkdownField
from django.core.urlresolvers import reverse
class EntryQuerySet(models.QuerySet):
def published(self):
return self.filter(publish=True)
class Entry(models.Model):
title = models.CharField(max_length=200)
body = models.TextField()
slu... | [
"davejonesbkk@gmail.com"
] | davejonesbkk@gmail.com |
447a75ff7f1e949a3c268918e94f8ab08d58da0f | 68cd659b44f57adf266dd37789bd1da31f61670d | /2020-01/python/18188_다오의데이트.py | 7c55c44e597a14f68e338a66b4a4458c5ab95c41 | [] | no_license | 01090841589/solved_problem | c0c6f5a46e4d48860dccb3b0288aa5b56868fbca | bbea2f31e5fe36cad100bc514eacd83545fb25b1 | refs/heads/master | 2023-07-02T23:55:51.631478 | 2021-08-04T13:57:00 | 2021-08-04T13:57:00 | 197,157,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | import sys
sys.stdin = open("다오의데이트.txt")
DIR = [[-1, 0], [0, 1], [1, 0], [0, -1]]
def go_dao(y, x, k, route):
global result, rts
if result:
return
if k >= A:
return
flag = 1
for i in range(4):
if can[k][i]:
Y = y+DIR[i][0]
X = x+DIR[i][1]
... | [
"chanchanhwan@naver.com"
] | chanchanhwan@naver.com |
26afa536ebd4f0faec9f6c755154abae49230382 | df0f8bc85e3855c37034ce571f5f0ded8c4ebb90 | /Day_11/AoC_2016_11_2.py | 6a10cac4796753a46068f92565ebb3116ac4fa7e | [] | no_license | jshales4/aoc2016 | 67592f3e40fc631b1d7ae132c70b144d74095ef8 | 3bd8b42dd4363dfec71973cff9e8b19178abb3a1 | refs/heads/master | 2021-01-11T20:18:39.566972 | 2017-02-23T06:42:58 | 2017-02-23T06:42:58 | 77,817,897 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,553 | py | ##AoC_2016_11.py
import itertools
import sys
from copy import deepcopy
from datetime import datetime
def main():
print datetime.now().strftime('%Y-%m-%d %H:%M:%S')
move_tracker = {}
move_watch = True
#Example case
#floors = [['SG', 'SM', 'PG', 'PM'], ['TG','RG','RM','CG','CM'],['TM'],[]]
floors ... | [
"jshales46@gmail.com"
] | jshales46@gmail.com |
c1af50c6c4bae299368467230953b197828dfb68 | 8f4b481b2e92d4a29822d7ea4756d9d51af8ed10 | /RDF/single_frame/rdf_drug_initial.py | 47dac791467bd6943960044a52681100c84319f0 | [] | no_license | Zilu-Zhang/MD-simulation-data-analysis | fbe4d4b94ea3506dfa0fe084e7279ad364f0f108 | 21da1d96418a89f80fd827aef0f0206934046543 | refs/heads/main | 2023-05-30T16:16:09.314265 | 2021-06-08T13:20:03 | 2021-06-08T13:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | import mdtraj as md
import numpy as np
import os
import os.path
import pandas as pd
import openpyxl as pxl
from statistics import mean
from math import sqrt
def dis(ref, tag):
x = ref[0] - tag[0]
y = ref[1] - tag[1]
z = ref[2] - tag[2]
return sqrt(x**2 + y**2 + z**2)
n_frames = 1
for filename in os.... | [
"noreply@github.com"
] | Zilu-Zhang.noreply@github.com |
ba96f4130d8855366f57a4652b61e6a6af74ad00 | b7dec7dcffc5290e8f7856baccdb42d84e9e11e8 | /thesis/urls.py | bcb9bc2faf6e5143e317aaa599f36e9f70626730 | [] | no_license | lthebe/cp_thesis | 406fd5441f7e0944ebf9e0439c9ce3a16cd7df63 | 573f9c339e57f33895e9924b04f3792ceb50e9e1 | refs/heads/master | 2021-06-14T13:27:18.702167 | 2017-01-31T13:56:14 | 2017-01-31T13:56:14 | 80,521,434 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | """thesis URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"laxmi.thebe@gmail.com"
] | laxmi.thebe@gmail.com |
f56222a598de1c4002c0712cef364ba7722e2078 | 6ddfd7082e9126a88ce9357250c96137af5228e5 | /PIplot.py | cb18ffd6cc8c8676f6a12389cc7671e112066070 | [] | no_license | ryantro/ICE-Rb-Cell-Absorption-Spectrum-Plot | 861ef2f970273c1b546319daf345d87be5e094e4 | aca2f7d2145e18b9a8c9bec6c88fdf18d0b320f5 | refs/heads/master | 2022-11-25T13:28:47.851825 | 2020-07-31T22:07:35 | 2020-07-31T22:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,821 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 2 16:57:41 2020
@author: ryan.robinson
"""
import time
import os
from serial import serialwin32 as serial
import numpy as np
import sys, string,subprocess
import nidaqmx
class ICE:
def __init__(self,BoxNum,SlotNum):
self.BoxNum = int(BoxNum)
self.Slo... | [
"ryan.robinson@Vescent.local"
] | ryan.robinson@Vescent.local |
9f079bd4933ce55dbaf3592ee17fa1c5dcd75ac5 | de788449bd7433bbfc7c0574a0d81fd9dd24649f | /geoportal/geoportailv3_geoportal/static-ngeo/ngeo/buildtools/test-eof-newline | 6872c85514ca17a1a053dbfa72b1aa9ce77eb0ca | [
"MIT"
] | permissive | Geoportail-Luxembourg/geoportailv3 | 6ab27bed755ff4f933c2f9700e2d6086ae8f5b68 | 45722f46bd5e4650ed3b01b1920de3732f848186 | refs/heads/master | 2023-08-18T21:02:45.652482 | 2023-08-02T14:12:56 | 2023-08-02T14:12:56 | 24,669,372 | 25 | 17 | MIT | 2023-08-25T13:39:08 | 2014-10-01T07:23:27 | JavaScript | UTF-8 | Python | false | false | 2,302 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2011-2017, Camptocamp SA
# 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 c... | [
"antoine@abt.im"
] | antoine@abt.im | |
d165a083b3e3a41120522e9b4cd22520c188909d | 029fa717816e977e736100128168c1c66161541d | /aries_cloudagent/wallet/tests/test_key_pair.py | b81062d8563ac7d8651bf77dad80875a2f3da169 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0"
] | permissive | estrehle/aries-cloudagent-python | 5cd0ac23851268d435b9eafe6b59e6efdb26ad90 | 1460b2d32c933944b4677cf25a78c4ace07346c8 | refs/heads/main | 2023-09-04T10:31:36.141037 | 2021-11-10T12:16:16 | 2021-11-10T12:16:16 | 424,557,794 | 1 | 0 | Apache-2.0 | 2021-11-04T10:41:01 | 2021-11-04T10:41:01 | null | UTF-8 | Python | false | false | 3,954 | py | from asynctest import TestCase as AsyncTestCase
import json
from ...storage.error import StorageNotFoundError
from ..util import bytes_to_b58
from ..key_type import KeyType
from ...core.in_memory import InMemoryProfile
from ...storage.in_memory import InMemoryStorage
from ..key_pair import KeyPairStorageManager, KEY_... | [
"timo@animo.id"
] | timo@animo.id |
3e35560a675840b2ed59a45d39e280ce612af5c6 | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /suning/api/union/UnionInfomationGetRequest.py | 5a52d242f32e5e4c7c3d65d8e1872c3832f9291a | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # -*- coding: utf-8 -*-
'''
Created on 2016-1-27
@author: suning
'''
from suning.api.abstract import AbstractApi
class UnionInfomationGetRequest(AbstractApi):
'''
'''
def __init__(self):
AbstractApi.__init__(self)
self.goodsCode = None
self.setParamRule({
... | [
"945090896@qq.com"
] | 945090896@qq.com |
2916961de45167313f15922e1456df4053e14745 | afe57be84b5dde07967be0e23f677ed85ab8d4da | /posts/urls.py | a1c411fb775d8e4ef1bf807f6402c87b547e111e | [] | no_license | furgot100/CarHub | 0c3fdab1529c589e04eabe94c615ce953d4501b1 | 417de07dce488b50971396d200c721e0869382a2 | refs/heads/master | 2022-04-28T10:27:47.879441 | 2020-04-22T18:24:54 | 2020-04-22T18:24:54 | 247,791,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | from django.urls import path
from .views import PostCreateView, PostDetailView, PostListView, HomeView, PostDeleteView, ProductListView, ProductDetailView, ProductCreateView, EventListView, EventDetailView, EventCreateView
from django.conf import settings
from django.conf.urls.static import static
app_name = 'posts'
u... | [
"frtsang40@gmail.com"
] | frtsang40@gmail.com |
e03e0083b6c860f813b2cae42fbca20c5014d738 | 6ba1da25bb624c8bf74f1899f64b450602f12ff4 | /Example/PY/django/TestDemo/test_function.py | 257991ced039e50cdddaa45a0e0b660d0048ea62 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-free-unknown",
"FSFAP",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Zoey-dot/pinpoint-c-agent | 1dd58ce89610a7aafcdda842145a764cebe3f783 | c76f9e41d8f2a9fdd8b0c90d52bb30e08bbd634d | refs/heads/master | 2021-04-04T06:58:19.145805 | 2020-08-05T02:14:02 | 2020-08-05T02:14:02 | 263,580,530 | 1 | 0 | Apache-2.0 | 2020-07-01T07:13:35 | 2020-05-13T09:11:23 | null | UTF-8 | Python | false | false | 513 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from pinpoint.plugins.PinpointCommonPlugin import PinpointCommonPlugin
@PinpointCommonPlugin("", __name__)
def test_func1(arg1, arg2):
return "this is test_func1: arg1=%s, arg2=%s"%(arg1, arg2)
class TestUserFunc1(object):
def __init__(self, name, score):
... | [
"su.wei@navercorp.com"
] | su.wei@navercorp.com |
a0f37bf8594ae4e002a3cbda9f0f4fb8efd4c144 | 038dc1f463fba1889264de89369791d7359b4f86 | /requested_events/views.py | c8f249e07f7a2491ed5370300a6202ac0483e330 | [] | no_license | paishrikrishna/BE-Project | 079d979fd1a2b158dadc8f9d72d1153f8c17aa21 | e0949c2523b8fc3d0f0edfd86eaf8717ff824a60 | refs/heads/master | 2023-04-13T11:53:31.312949 | 2021-05-04T13:19:34 | 2021-05-04T13:19:34 | 313,569,032 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | from django.shortcuts import render
from calander.form import events_form
from calander.models import events
from .form import req_events_form
from .models import req_events
from login_page.login_form import login_form
from login_page.models import login_model
from new_users.models import new_login_model
# Create ... | [
"2017.shrikrishna.pai@ves.ac.in"
] | 2017.shrikrishna.pai@ves.ac.in |
0ae55acd20bb59d6c3f499e32e0f526820a351d7 | 822d3cd484b54f0531fc205520c765a8321c0613 | /pyFile/8.面向对象/2.类的属性/9.类方法和静态方法.py | a0ccbf84964d8f9059c7feb1ae5efeedb1a3e65a | [] | no_license | mghxy123/learnPython | 31d1cc18deeed5a89864ca0333fe488e0dbf08b4 | 00740e87d55a4dffd78773deaff8689485df31e8 | refs/heads/master | 2021-07-21T14:31:02.421788 | 2020-06-27T11:28:01 | 2020-06-27T11:28:01 | 187,751,182 | 0 | 0 | null | 2020-06-07T05:14:05 | 2019-05-21T02:58:35 | Python | UTF-8 | Python | false | false | 1,232 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File : 9.类方法和静态方法.py
# Author: HuXianyong
# Mail: mghxy123@163.com
# Date : 2019/5/16 0016
#类中普通函数的方法
# class Person:
# def normal_method(): #可以吗? 这样是可以的没有语法上面的问题,执行也没问题,只是大家都默认不这么写
# print('normal')
#
# # 如何调用?
# Person.normal_method() #可以吗? 这个是可以的,应为只是直接调... | [
"mghxy123@163.com"
] | mghxy123@163.com |
c603c10469c17a5fe10f107b6cfe4f567d52bce1 | e294a32686c46c520186326be47a48861aaacdad | /final number while(終極密碼).py | 219dcd95b9b4f7a4fc730498539f43d897995102 | [] | no_license | goodgood9897/python-2020-8 | 6381894fb2e68f35fe3d583aec6761b32e22149c | 375969d7c457340659b35d1a9fb41479e0b05c09 | refs/heads/master | 2022-11-30T06:35:24.609085 | 2020-08-07T09:03:37 | 2020-08-07T09:03:37 | 284,589,524 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import random
a = 1
b = 100
number = random.randint(1,100)
while True:
print('Now%d-%d'%(a,b))
answer = int(input('Please enter nummber:'))
if answer<a or answer>b:
print('Please enter again.')
elif answer>number:
b=answer
elif answer<number:
a=answer
elif ... | [
"noreply@github.com"
] | goodgood9897.noreply@github.com |
d7336abe08b51fb335e57cf3d53ee20b79886453 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/insights/v20160301/_inputs.py | 5910733c44e6efa9bc7563418d54942acbf6f519 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,307 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
213fc24bf448ac094d3843b30e9c24e1aaa77fcc | 402b45344b310c76c37f354c30a82d1934667735 | /crawl_push.py | 2435ece7d58e2e06518fb2919706a8d32263b4d1 | [] | no_license | yuktmitash21/Crawler | 5cba755cba669a55d9e38d5e95166760cc0417cd | d9fb5710f5ca3dea9c3516e0ed7b963d4a07ff83 | refs/heads/main | 2023-03-13T23:25:45.524622 | 2021-02-07T13:24:53 | 2021-02-07T13:24:53 | 336,657,238 | 0 | 0 | null | 2021-02-07T13:24:54 | 2021-02-06T23:20:31 | Python | UTF-8 | Python | false | false | 1,730 | py | import pandas as pd
import requests #Pushshift accesses Reddit via an url so this is needed
import json #JSON manipulation
import csv #To Convert final table into a csv file to save to your machine
import time
import datetime
def getPushshiftData(query, after, before, limit):
url = 'https://api.pushshift.io/reddit... | [
"ymitash3@gatech.edu"
] | ymitash3@gatech.edu |
987828b08e77fc4ed6a670121d87f280fc0aed0b | 5e0a7d90b3fd5d16bbc52eb0c8a118b835c17bad | /test/maxicode.py | e8ab9114db9fee3362ec2c70d7acb04ecd94aac4 | [
"LicenseRef-scancode-secret-labs-2011",
"MIT",
"BSD-2-Clause"
] | permissive | ehpale/elaphe | 424abd206ce2af95d6e7de49758ca96cd6f797c8 | 0a0c51ee8627cccc57d557330ba6c2f2c5266960 | refs/heads/master | 2022-03-06T19:43:08.986519 | 2022-02-25T18:53:46 | 2022-02-25T18:53:46 | 59,607,180 | 11 | 5 | NOASSERTION | 2022-02-25T19:00:33 | 2016-05-24T20:40:54 | PostScript | UTF-8 | Python | false | false | 812 | py | symbology = 'maxicode'
cases = [
('001.png', 'This is MaxiCode'),
('002.png', 'This is Maxi^067ode', dict(parse=True)),
('003.png', ('152382802^029840^029001^0291Z00004951^029UPSN^02906X610'
'^029159^0291234567^0291/1^029^029Y^029634 ALPHA DR^029P'
'ITTSBURGH^029PA^029^004'... | [
"whosaysni@gmail.com"
] | whosaysni@gmail.com |
f29fc6830528398b792fd60578b01a78f12aa4e7 | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /ayhanyalcinsoy/Desktop/lxde/base/libfm/actions.py | ad79cdbb6f0b2d887aa5244a18b52080cbb19379 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "libfm-%s" % (get.srcVERSION())
def setup():... | [
"ayhanyalcinsoy@gmail.com"
] | ayhanyalcinsoy@gmail.com |
555920b473ecc5e50b86552eb52b4dc9e1a29a9c | 522303c2fc1840bd3288b1be2ed1787b77ceff7d | /279.py | b09688cc59bec97c14657835b17bc17c9e976e62 | [] | no_license | RickyLiTHU/codePractice | 0b0fc66fc32a651c5288645c98d0a58acdd6f7a1 | 74988e6d02968acb5fe8da811df6c1e706f2b125 | refs/heads/master | 2020-03-23T04:36:42.256827 | 2018-08-30T08:15:39 | 2018-08-30T08:15:39 | 141,093,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | class Solution(object):
def numSquares(self, n):
"""
:type n: int
:rtype: int
"""
edges = []
for i in range(1, int(math.ceil(math.sqrt(n)))+1):
edges.append(i*i)
depth = 1
nodes = set([n])
while nodes:
... | [
"noreply@github.com"
] | RickyLiTHU.noreply@github.com |
9275404a0fb19e0fa17944bb3c32530ebb0cca93 | 5fdbd06b033464fdd5bc5be7a181422a92e5fc3c | /RandomForestWithGPs/GPPython/gp.py | 3d3681d4d33dcd90192f3a3b1c7e12bd86a8cf17 | [] | no_license | themasterlink/RandomForestWithGPs | 02ab4b4473caef734c7234348163b973c03f73df | fcbd294b381ecba570ad34aca9eda1e70bf4e95e | refs/heads/master | 2021-01-17T12:49:05.304383 | 2017-09-11T14:40:17 | 2017-09-11T14:40:17 | 59,106,215 | 2 | 2 | null | 2017-06-12T14:07:05 | 2016-05-18T10:34:39 | C++ | UTF-8 | Python | false | false | 6,865 | py | #!/Users/Max/anaconda/bin/python
import numpy as np
import json
from pprint import pprint
import math
import scipy
from scipy import linalg
import matplotlib.pyplot as plt
import matplotlib.cm as cm
with open("init.json") as data_file:
data = json.load(data_file)
class GaussianProccess:
def __init__(self, fil... | [
"themasterlink93@googlemail.com"
] | themasterlink93@googlemail.com |
8886c4eff59f8379795b40f8995408fb237f04c7 | c6221e1163b7c1cdb0a1bc6e29da2dcbec04d1b8 | /Core/game.py | 4de0c1df275a0f209ceae7e11870ed60d7e2d01a | [] | no_license | Dexton/Tesla-V.-Edison-Demo-Prototype | 674e7620908b2920fde776444756823138580a32 | 7cebdbc24a6c78bdfc460c17a8d62596593cfe82 | refs/heads/master | 2021-01-24T03:38:25.794850 | 2011-10-09T00:37:09 | 2011-10-09T00:37:09 | 2,540,805 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | import pyglet
from game_batch import GameBatch
class GameStates:
MAIN_MENU = 0
PLAYING = 1
PAUSED = 2
GAME_OVER = 3
class GameWindow(pyglet.window.Window):
def __init__(self, *args, **kwargs):
""" Creates necesary items and displays the menu """
super(GameWindow, self).__init__(10... | [
"loktacar@gmail.com"
] | loktacar@gmail.com |
e8492bd500e419e50fa3815209d4889eb2e4e971 | c761f3fbce728e61cbcf5179f1d3f27e1e5625cd | /register_key.py | 1328baddc2fe4d7e5f91b2052b07daa49e53649f | [] | no_license | philopon/usermon | 16033d41436efe2cf4971bcd3b25f99cf82de318 | 7f97db09a65466e2133d4304f9fe5ba212299598 | refs/heads/master | 2021-01-18T16:51:56.457593 | 2017-04-21T13:06:12 | 2017-04-21T13:06:12 | 86,775,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | #!/usr/bin/env python3
def main():
import sys
import os
import pwd
import pamela
pw = pwd.getpwuid(os.getuid())
ssh_dir = os.path.join(pw.pw_dir, '.ssh')
auth_keys = os.path.join(ssh_dir, 'authorized_keys')
os.makedirs(ssh_dir, mode=0o700, exist_ok=True)
with open(auth_keys, 'a'... | [
"philopon.dependence@gmail.com"
] | philopon.dependence@gmail.com |
da850d8841ddddfdccfc6bde153467956b91789c | 78e60a7d8a67ed76244004e8a3ed573fbf396e41 | /samples/get_zip_codes.py | a89c105f5ec1a635d350ba870418f9f735a0bb60 | [
"MIT"
] | permissive | Crivez/apiclient-python | 837a9f7cc0453ccd3121311adc7920b5fe6b3e33 | 860fc054f546152a101e29b1af388c381075ac47 | refs/heads/master | 2023-06-08T13:24:09.249704 | 2021-06-17T12:16:35 | 2021-06-17T12:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from voximplant.apiclient import VoximplantAPI, VoximplantException
if __name__ == "__main__":
voxapi = VoximplantAPI("credentials.json")
# Search for zip codes in Germany.
COUNTRY_CODE = "DE"
COUNT = 1
try:
res = voxapi.get_zip_codes(COUNTRY_CODE,
count=COUNT)
... | [
"andrey@voximplant.com"
] | andrey@voximplant.com |
ec76be96a998db58443e1d0b6cf215fe81c6c74e | 386cff3bff62a6fb76ba22fd41e3c4f112bae6ba | /marathon/subscriber.py | c5605c7b54352bef497888ef5530763635bb8f99 | [] | no_license | davidbliu/scaffolding | 7c960acdc39528be5d9bed5068809c2b5f02bbc4 | ff921b669f171075c2f06d195f455fa521b25f50 | refs/heads/master | 2016-08-07T21:15:12.797544 | 2014-07-03T15:48:58 | 2014-07-03T15:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | #!/usr/bin/env python
import argparse
import atexit
import sys
import urlparse
from flask import Flask, request, jsonify
import marathon
from stores import InMemoryStore, SyslogUdpStore
app = Flask(__name__)
# re-initialize later
events = None
event_store = None
def on_exit(marathon_client, callback_url):
ma... | [
"david.liu@autodesk.com"
] | david.liu@autodesk.com |
8d5168f30b7e5f51483fcba73a2d034e20b80ae8 | fe822705c38caf70c8a72433291acb3a729a0539 | /backend/delivery_app/services/logdata.py | 2c1474d24434b68bc2bbd67c691a705c785fe72f | [] | no_license | tanficial/delivery-food-fighter | 138db44dbfee33d0f9f4ecd4ea832436910d8878 | a73a4df208ef94537f6f4374b1a7aa476bc23d3c | refs/heads/main | 2023-09-02T10:54:05.089348 | 2021-11-02T23:56:18 | 2021-11-02T23:56:18 | 421,084,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from delivery_app.models.logdata import Logdata, db
def add_logdata(id):
"""
log 이벤트 생성 시 logdata DB에 저장
"""
try:
new_logdata = Logdata(post_id = id)
db.session.add(new_logdata)
db.session.commit()
return new_logdata
except Exception:
db.session.rollback()
... | [
"tanficial9574@gmail.com"
] | tanficial9574@gmail.com |
a7571ea7181658d263514690d7191439a399b264 | 8c1b60dbbdbc84ae8cbd34f7679540036b04df84 | /m5.py | 97a59fdf765e7d91673b005f279dc849831f19c2 | [] | no_license | KatyaPinich/ECG_classification_project | fd654fceaf0df99338a5d083545f0898030be998 | 37c1a21b9fc425be0f86b81272fdecebe96ce327 | refs/heads/master | 2023-07-25T09:37:50.177846 | 2020-03-05T12:11:45 | 2020-03-05T12:11:45 | 242,001,325 | 0 | 0 | null | 2023-07-06T21:55:49 | 2020-02-20T22:13:05 | Python | UTF-8 | Python | false | false | 1,580 | py | import torch.nn as nn
class M5(nn.Module):
def __init__(self, num_classes):
super(M5, self).__init__()
self.conv_block1 = nn.Sequential(
nn.Conv1d(in_channels=1, out_channels=128, kernel_size=80, stride=4),
nn.BatchNorm1d(num_features=128),
nn.ReLU(),
... | [
"katyapinich@gmail.com"
] | katyapinich@gmail.com |
5a82456358fe6bffb55775bcea1ef64c6a01c840 | 9f72ad0c091df885df5953286003d23f25216602 | /Tarefa5/testClient2.py | c2396d0f28ac570b6764acb221eabd7f6bccef6c | [] | no_license | SD-CC-UFG/felipe.gemmal.sd.ufg | 0d96f50a34d5052df42454d8a6c7965fa8a2a035 | 472d38137c641570278cee2ae9f957fbdfc81188 | refs/heads/master | 2020-03-27T11:50:06.795260 | 2018-12-13T10:26:56 | 2018-12-13T10:26:56 | 146,510,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | #Cliente basico acesso indireto de Felipe Gemmal
# -*- coding: utf-8 -*-
import os
import socket, string
import sys
nameServer = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
ip = 'localhost'
porta = 12388
print("Conectando")
nameServer.connect((ip,porta))
print("Enviando requisicao")
#tipo de servico requisi... | [
"lipegemmal@hotmail.com"
] | lipegemmal@hotmail.com |
5a573494952b197ef81f13cde9b7c7b8ce088c5c | 234d650ff5d906c2e3ce8da37c7b725c694791a0 | /dxy/items.py | 6b256d68ace5de8eb111d8b72fffeefaa5badeb1 | [] | no_license | IvanQin/dxy_spider | 7846a0aeb96f8725e091be09db20c198c559b36c | ed1e73e09986f2397151d369a08586cc7e6574da | refs/heads/master | 2021-01-25T09:21:02.082754 | 2017-06-09T04:15:43 | 2017-06-09T04:15:43 | 93,814,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class DxyItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
title = scrapy.Field()
link = scrapy.Fi... | [
"yifan.qing@datarx.cn"
] | yifan.qing@datarx.cn |
3ae1533fbdd3e8eab796faa6ec41d76f5cbed112 | 39800224358654c8225aefa25a0daf26e489c33f | /reviews/reviews/urls.py | 78ca205221d204726b1df8f89f1278efb47a3986 | [] | no_license | dprestsde/Review_system | 59e5f73716a6ab02e7cecd140519b4505cf1c278 | b636a568b51189c9f78f874461e6eaa323317868 | refs/heads/master | 2021-09-22T21:49:20.164221 | 2018-09-17T12:22:35 | 2018-09-17T12:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | """reviews URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"noreply@github.com"
] | dprestsde.noreply@github.com |
a44db705bdc58cdcecdcd4b8200bf85a3d08fc83 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/group/_get_group_join_request_public_v2.py | 32ba9735f4911a02f803f73dab69c4e7a260ec52 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,611 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Group Service (2.18.1)
# pylint: disable=duplicate-code
# py... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
c2d9305312002748edb2d0e5470f541784c71352 | 3fc00c49c6b5a5d3edb4f5a97a86ecc8f59a3035 | /shared_models/test/test_api.py | ae9465bb6b3b41416d097c202b1034470650a378 | [] | no_license | yc-hu/dm_apps | 9e640ef08da8ecefcd7008ee2d4f8f268ec9062e | 483f855b19876fd60c0017a270df74e076aa0d8b | refs/heads/master | 2023-04-07T13:13:55.999058 | 2021-04-12T10:19:21 | 2021-04-12T10:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | from django.test import tag
from django.urls import reverse
from rest_framework import status
from shared_models.test import SharedModelsFactoryFloor as FactoryFloor
from shared_models.test.common_tests import CommonTest
class TestUserAPIListView(CommonTest):
def setUp(self):
super().setUp()
self... | [
"davjfish@gmail.com"
] | davjfish@gmail.com |
32965056a1b7a8f68e29a888ddf16692219f8202 | 6f2675eee55b7ebc5adf9c2176ced8cb59fc64d4 | /dataInterKingdee/interDebug.py | f5873ce9a0c97db0f8dd05bed388d20b019fdced | [] | no_license | wildmanwang/proDataInter | 8c2b65fa96ad45b21165d997b1769a28e12fc42a | f5a1f1fb195c66bf586bd999465c7e3b16453369 | refs/heads/master | 2023-06-07T11:57:16.763251 | 2023-06-03T08:54:56 | 2023-06-03T08:54:56 | 157,559,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # -*- coding:utf-8 -*-
"""
"""
__author__ = "Cliff.wang"
import os
from interConfig import Settings
#from interProcess import InterProcess
from interControl import InterControl
if __name__ == "__main__":
try:
path = os.path.abspath(os.path.dirname(__file__))
sett = Settings(path, "config")
... | [
"cliff.w@qq.com"
] | cliff.w@qq.com |
270875ed2be025781a975375972379cf8f211f80 | dfad28a2e1a0199c0117e551fd1e31804804d5b9 | /app/auth/views.py | d2df7a97666207276aa6648ef9f85af4a25d98bc | [
"MIT"
] | permissive | wilbrone/Pitches | c33d60b142b43de9ccf60a86cf59acbc262c6711 | b20d234fd930a6551f26d9cf863c6d1631b62bc2 | refs/heads/master | 2022-12-09T08:02:08.631177 | 2019-11-25T23:47:13 | 2019-11-25T23:47:13 | 223,405,696 | 0 | 0 | MIT | 2022-12-08T06:55:48 | 2019-11-22T13:09:30 | Python | UTF-8 | Python | false | false | 1,583 | py | from flask import render_template,redirect,url_for, flash,request
from flask_login import login_user,logout_user,login_required
from . import auth
from ..models import User
from .forms import LoginForm,RegistrationForm
from .. import db
from ..email import mail_message
@auth.route('/login',methods=['GET','POST'])
def ... | [
"wilbroneokoth@gmail.com"
] | wilbroneokoth@gmail.com |
a7dcd151d0dd3ea4bc81bb4a0fca9c6818c60ec5 | f03a0d77c4f5524e8958263962ddb04a120ed6d6 | /Lab8/wordladder5.py | 1a1c82c4ebcd985f50f3bbdd129ff28bd4f5c4bc | [] | no_license | b3rton/OpenSourceBlog | 0a54566a6d542a41e2e8018287faef705a66fc35 | 4185c7b46629ac054903229d9a5a027110d5d662 | refs/heads/master | 2021-05-30T10:09:43.183994 | 2015-11-13T20:00:52 | 2015-11-13T20:00:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | """
Words/Ladder Graph
------------------
Generate an undirected graph over the 5757 5-letter words in the
datafile words_dat.txt.gz. Two words are connected by an edge
if they differ in one letter, resulting in 14,135 edges. This example
is described in Section 1.1 in Knuth's book [1]_,[2]_.
References
----------
.... | [
"nathan.spero.berton@gmail.com"
] | nathan.spero.berton@gmail.com |
62ec86a4fa3abd1261e1c0a8452250ff222b6759 | dedbf1f67bc741203f685745ecfde3d00f3f3d87 | /src/simpleseq/encodings.py | b5629cc5604c31b327f2eb6875bc5d37b3b73f34 | [] | no_license | ambrosejcarr/simpleseq | 1bee31b806dc19b7801ed52d73c47a5482db7d96 | a9760db8470ccd578e6b82837bed12187389dbb8 | refs/heads/master | 2016-08-12T05:58:12.885835 | 2016-02-17T16:33:14 | 2016-02-17T16:33:14 | 50,446,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py |
class DNA3Bit:
"""
Compact encoding scheme for sequence data.
"""
_str2bindict = {65: 0b100, 67: 0b110, 71: 0b101, 84: 0b011, 78: 0b111,
97: 0b100, 99: 0b110, 103: 0b101, 116: 0b011, 110: 0b111}
_bin2strdict = {0b100: b'A', 0b110: b'C', 0b101: b'G', 0b011: b'T', 0b111: b'N'}
... | [
"mail@ambrosejcarr.com"
] | mail@ambrosejcarr.com |
4b5730763abcb86812d2a804110e3fc6c15f7c6c | 27de78beab7b46b08be620e06f8805d14de155d1 | /Q3_BP.py | 4cc4d42282a78fcef65f4b5fefb25989a5c01e7a | [] | no_license | kzil88/Quant | c3f517cf507cbb97774738c152087a660dc59e31 | 711800349a065bd9534f323337147b494c91c156 | refs/heads/master | 2021-04-15T14:41:17.189825 | 2018-12-04T08:40:42 | 2018-12-04T08:40:42 | 126,697,511 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation
from keras.optimizers import SGD
import DC
from keras.layers import Flatten
import numpy as np
import keras
import datetime
import pymysql
if __name__ == '__main__':
time_temp = datetime.datetime.now() - datetime.t... | [
"noreply@github.com"
] | kzil88.noreply@github.com |
a0cb0e3618382fd03b6ca832ea20a7034a40057c | cc7dcbc2d2b85c4769ab4bfb5f92bbe6f158b1bc | /Competitions/Comp4/start_sound.py | 87e6432903e6abe11567cff4177b2484faedd6c1 | [] | no_license | MandyMeindersma/Robotics | c091e5b248bb067db4631e2de481d18417996933 | f58916bb293d68c176847363a25eb7270a304965 | refs/heads/master | 2023-01-08T07:34:51.223767 | 2023-01-01T05:40:12 | 2023-01-01T05:40:12 | 118,049,272 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
from sound_play.libsoundplay import SoundClient
# from sound_play.msg import SoundRequest
import rospy
import time
rospy.init_node('sound')
soundthing = SoundClient()
time.sleep(1)
# soundthing.play(SoundRequest.NEEDS_UNPLUGGING)
# soundthing.voiceSound("Testing the new A P I")
soundthing.playW... | [
"meinders@ualberta.ca"
] | meinders@ualberta.ca |
8a35692c001a9c87e06840d701a8da708dedcbb2 | 8186a0b52da5692178c72e865ab05a08d133a412 | /MachineLearning.py | 29e2c182c8e664d6888629192f033295d5bcbf63 | [] | no_license | DanWertheimer/COS802 | c4e7d8d3a06f04efef998daaa0a57bdbc6232ed0 | 656e3ca62e44f8fda1967af0ba4b5e38120f2e8b | refs/heads/master | 2021-07-21T15:38:31.895643 | 2017-10-30T08:14:31 | 2017-10-30T08:14:31 | 108,819,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,813 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 29 17:23:39 2017
@author: danwertheimer
"""
1209/10000
import pandas as pd
from sklearn import preprocessing
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn.model_selection impor... | [
"noreply@github.com"
] | DanWertheimer.noreply@github.com |
23e10462cf68f0d4848893ca60ea2362f183a88f | 16da6040330dd1e8f88478b31e958dba88d96cbf | /ddpg_agent.py | 46bb0ccd5e835eb29f8695de83ac4e17026128ab | [] | no_license | vgudapati/DRLND_Continuous_Control | 0c5c5098a167b44f0f2a1f957ab3080e28e55265 | e55f5df74d4489821b322754570a26e552a2da59 | refs/heads/master | 2020-04-16T01:52:14.500904 | 2019-01-12T01:54:21 | 2019-01-12T01:54:21 | 165,188,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,194 | py | import numpy as np
import random
import copy
from collections import namedtuple, deque
from model import Actor, Critic
import torch
import torch.nn.functional as F
import torch.optim as optim
'''
BUFFER_SIZE = int(1e5) # replay buffer size
BATCH_SIZE = 512 # minibatch size
GAMMA = 0.99 # discount ... | [
"noreply@github.com"
] | vgudapati.noreply@github.com |
9f04557904bdeeb5a5b0b9e265605429682ff434 | a867b1c9da10a93136550c767c45e0d8c98f5675 | /G_11_RemoveKthNode.py | 408aa2a8a0bdec884c65ff5c410cb79045ed72b6 | [] | no_license | Omkar02/FAANG | f747aacc938bf747129b8ff35b6648fb265d95b6 | ee9b245aa83ea58aa67954ab96442561dbe68d06 | refs/heads/master | 2023-03-25T19:45:08.153403 | 2021-03-28T07:13:08 | 2021-03-28T07:13:08 | 280,783,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | import __main__ as main
from Helper.TimerLogger import CodeTimeLogging
fileName = main.__file__
fileName = fileName.split('\\')[-1]
CodeTimeLogging(Flag='F', filename=fileName, Tag='Linked-List', Difficult='Medium')
from Datastruct.masterLinkedList import l
arr = [1, 2, 3, 4, 5, 6]
# arr = [1, 2]
for i in arr:
... | [
"omkarjoshi4031@live.com"
] | omkarjoshi4031@live.com |
5be0edf09990b940847ed51efb8d7cc5cde7d449 | 70ead0a39a0217c3c1bc6b48f902987c883c0868 | /templatemail/backends/locmem.py | 87fd0941385de853fc14caa37e8ac9140c79ae53 | [
"MIT"
] | permissive | timdownsisarealboy/django-template-mail | a5f369fff8f3d147f63196705490c1782a9b99bb | 64ab909da41d1a90c14969687cfd97512eaedc60 | refs/heads/master | 2021-01-20T19:06:20.796790 | 2013-07-12T17:18:28 | 2013-07-12T17:18:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.core.mail.backends import locmem
from base import BaseEmailBackend
class EmailBackend(locmem.EmailBackend, BaseEmailBackend):
def send_messages(self, email_messages):
email_messages = self.render_messages(email_messages)
super(EmailBackend, self).send_messages(email_messages)
| [
"bar.benoit@gmail.com"
] | bar.benoit@gmail.com |
8a55a174178d00541f365a08542d4d792b52fcc5 | 7f456f36ecb35b2f898f3257a45ec79cf248f4e0 | /project/source/DQN_old.py | 92afa0878256b031c322a5ea8741476c00ad77b8 | [] | no_license | Akihiro-Nishihara/ActionGameAI | 0dcbd511bf54837dd145ae548452c2e7d1986ffe | d3c9e91cb84f1eb6125588338ea2a6e1567def3b | refs/heads/master | 2022-12-08T15:53:13.160680 | 2020-09-16T17:23:12 | 2020-09-16T17:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,436 | py | import os
import numpy as np
import datetime
import math
import sys
import shutil
from keras.models import Sequential
from keras.layers import Dense, Conv2D, MaxPool2D
from keras.optimizers import Adam
from keras.utils import plot_model
from collections import deque
from keras import backend as K # Kerasは自身で行列計算とかしない,... | [
"ocean90light@gmail.com"
] | ocean90light@gmail.com |
b9e795b45a5b99bd04447a64e926dfb936b8a89e | 4308886d6562c87b9fff3f5bc3696dd4968209b5 | /Whats Your Name.py | 79103203d37c6605d8e1e9fcdd6b7b7e5b911152 | [] | no_license | rivalTj7/Primera_Tarea_Python | e3f10d8f372e55078b30a835851e3f12a5607db1 | a74ce4af39f0de46e831adc568a2c0bbf61909fb | refs/heads/master | 2023-03-01T17:50:22.619024 | 2021-02-07T07:29:01 | 2021-02-07T07:29:01 | 336,726,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | #11- What's Your Name?
def print_full_name(a, b):
print("Hello "+a+" " +b+"! You just delved into python.")
first_name = 'Ross'
last_name = 'Taylor'
print_full_name(first_name, last_name) | [
"rival.alex7@gmail.com"
] | rival.alex7@gmail.com |
4cc39e7bddd75222d0771f991900ed2d1d80c680 | fe1d902383ec4d9884bbc0438461b6960c15bb7d | /models/farkas.py | 6bf3a06d42dec68e0b7ff7aeaf76b2b682f1a936 | [] | no_license | APooladian/FarkasLayers | 63f40d58f7965a0094672fbf3ce866407e3b77a3 | 85710800a7dd959c7bb82e97210bec2afc4a426b | refs/heads/master | 2020-07-07T15:36:55.298600 | 2019-11-12T03:49:33 | 2019-11-12T03:49:33 | 203,391,987 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,912 | py | import math
import numpy as np
import torch as th
from torch import nn
from torch.nn import functional as F
from torch.nn.modules.utils import _pair
from .utils import View, Avg2d
from .blocks import Conv
class FarkasLinear(nn.Module):
def __init__(self, in_dim, out_dim, bn=True, nonlinear=True, dropout=0.,
... | [
"aram-alexandre.pooladian@mail.mcgill.ca"
] | aram-alexandre.pooladian@mail.mcgill.ca |
ab7c71a677644efe5b14cfcd69d86aae4be88786 | 20766840efca8977b1246c2c8ad05a15388e826c | /모듈/insa2.py | 0b6ccc8964acb9f3544b984470b2522ce8237833 | [] | no_license | Chaenini/Programing-Python- | 0780c7880b2d15b7a210f11975a7c851b56a1d3f | a4aa9f7b021bae02677815f1a8b74d2420637958 | refs/heads/master | 2020-07-10T20:41:25.957058 | 2019-12-09T00:55:30 | 2019-12-09T00:55:30 | 204,366,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6 | py | #139p
| [
"s2018w16@e-mirim.hs.kr"
] | s2018w16@e-mirim.hs.kr |
2866adf3865f8ad42fe7d0810cf0266c2c3ec479 | 77ef4019ee6ce45abf3b5e21f2b33f3998620cd1 | /base/message.py | 9b4845620508555ad671bf3bd1d942c5554df6fe | [
"MIT"
] | permissive | kevinrpb/rfid-protocols | 243ef09a248c8b3229f60d93784e13d372baa3f3 | 01543f995f17d92fab0b159cf1c85f4ff65cd402 | refs/heads/main | 2023-02-16T03:21:56.322256 | 2021-01-19T17:41:59 | 2021-01-19T17:41:59 | 318,453,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | from enum import Enum
from bitarray import bitarray
class MessageKind(Enum):
READER_TO_TAG = 0
TAG_TO_READER = 1
def __str__(self) -> str:
if self == MessageKind.READER_TO_TAG:
return 'READER_TO_TAG'
elif self == MessageKind.TAG_TO_READER:
return 'TAG_TO_READER'
else:
return ''
... | [
"kevinrpb@hotmail.com"
] | kevinrpb@hotmail.com |
747403576f24d62c684e4cad16f2b82581d8a8fb | bb048e7cc8ffd76a1c0a5b041b2ec5ea23fe95b8 | /conftest.py | 2f442eac6695282b90be09a6bf59a08ffce8a8b9 | [] | no_license | Carling-Kody/pura_demo | af68f17fc3b1424cddaf63ede793df064dea3a14 | 4d7870995cc88b34c36db00173c6510dadc69186 | refs/heads/main | 2023-08-13T18:46:39.230402 | 2021-07-08T22:40:09 | 2021-07-08T22:40:09 | 381,835,920 | 0 | 0 | null | 2021-07-08T22:40:10 | 2021-06-30T21:22:41 | Python | UTF-8 | Python | false | false | 9,084 | py | """
`conftest.py` and `pylenium.json` files should stay at your Workspace Root.
conftest.py
Although this file is editable, you should only change its contents if you know what you are doing.
Instead, you can create your own conftest.py file in the folder where you store your ui_tests.
pylenium.json
You c... | [
"kodycarling19@gmail.com"
] | kodycarling19@gmail.com |
4bbf47389bde47d911e2861fb4f2fc9e2599284a | 8ebca2bcb8c73daecc912f00fffb5fea8d918c32 | /Lib/site-packages/tensorflow/contrib/summary/summary_test_util.py | 9ad53269d8398a006219e01c4ebdc2491fc707b4 | [] | no_license | YujunLiao/tensorFlowLearing | 510ed61689a72dcb53347bd3e4653470893ecc4a | 1a383b5183a409e017657001eda4dc68e4a6bcf9 | refs/heads/master | 2022-12-07T16:01:26.942238 | 2019-06-04T16:34:46 | 2019-06-04T16:34:46 | 177,408,903 | 0 | 0 | null | 2022-11-21T21:21:36 | 2019-03-24T12:01:54 | Python | UTF-8 | Python | false | false | 2,874 | py | # Copyright 2017 The TensorFlow 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 applica... | [
"18916108830@163.com"
] | 18916108830@163.com |
2fa4ab95d64e2940ff958f0cf6fc45151207da79 | 67819ca1c5030d936413ddbaa08ed245b7b9358d | /app/backend/hiStoryBackend/hiStoryBackend/wsgi.py | dd4233b7ffe0739198a5a1c86e59932b7f74728a | [] | no_license | bounswe/bounswe2018group7 | 9ac94fb93113571fdd43c2e9b91ea2ba318cce9c | 9c56cb2f28f189853f4aacdb587b85544f25b2c3 | refs/heads/master | 2023-03-05T09:18:43.445698 | 2022-04-23T19:13:44 | 2022-04-23T19:13:44 | 120,274,361 | 12 | 3 | null | 2023-03-03T15:20:37 | 2018-02-05T08:12:49 | JavaScript | UTF-8 | Python | false | false | 174 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hiStoryBackend.settings')
application = get_wsgi_application()
| [
"cburakaygun@gmail.com"
] | cburakaygun@gmail.com |
b695146b5baec03e2372b136427fca9502a8b6e6 | 6a47b50684e9a0dcbf145acea402bd97e298c89d | /Python Programs/helloAll.py | 10f799d276892bb3a0572f7e1c3782922396aac3 | [
"MIT"
] | permissive | AkshayPradeep6152/letshack | a37e132c408aa68a2232cbab7eadaafb58267e26 | f820e438921c6706fb2565379db6681184676698 | refs/heads/main | 2023-08-13T10:38:11.495481 | 2021-10-03T05:05:01 | 2021-10-03T05:05:01 | 300,655,139 | 8 | 96 | MIT | 2021-10-03T05:05:02 | 2020-10-02T15:17:34 | Java | UTF-8 | Python | false | false | 17 | py | print("helloAll") | [
"noreply@github.com"
] | AkshayPradeep6152.noreply@github.com |
c119687b11afe9b22fca389be33ff9b8a804cf22 | 9322c270beaf1019328bf14c836d167145d45946 | /raoteh/sampler/tests/test_graph_transform.py | af315325cddb45fdc81619cf995488fd53736710 | [] | no_license | argriffing/raoteh | 13d198665a7a3968aad8d41ddad12c08d36d57b4 | cdc9cce8fdad0a79dbd90dfcdec6feece8fc931f | refs/heads/master | 2021-01-22T19:41:25.828133 | 2014-03-10T22:25:48 | 2014-03-10T22:25:48 | 10,087,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,511 | py | """Test graph algorithms relevant to Rao-Teh sampling.
"""
from __future__ import division, print_function, absolute_import
import itertools
from collections import defaultdict
import networkx as nx
from numpy.testing import (run_module_suite, TestCase,
assert_equal, assert_allclose, assert_, assert_raises)
... | [
"argriffi@ncsu.edu"
] | argriffi@ncsu.edu |
3bdd06f837466e17a98dd8946a3ad205b882c0ee | 8c801a9606722a3ed960c0472c85987254beaab9 | /VirtEnv2/bin/html2text | ef10b835a3d4cb89975973af434d23204ccf1837 | [] | no_license | boyleconnor/MacWorld | 0377f24417b09e952edee4b4983ac17eb53be806 | 89fb982a23d5965f452f7c0594fdde16185b966e | refs/heads/master | 2022-07-09T00:28:55.856046 | 2014-07-25T02:06:25 | 2014-07-25T02:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | #!/Users/connor/PycharmProjects/MacWorld/VirtEnv2/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'html2text==2014.7.3','console_scripts','html2text'
__requires__ = 'html2text==2014.7.3'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('html2text==2014.7.3... | [
"cboyle@macalester.edu"
] | cboyle@macalester.edu | |
68d3e5ce7d725d753fe712d6b84fc9b1056b3b77 | a50badcad45aa17cac0148470a165e89e4d9f352 | /errors.py | 56af8f4bb2358b465d314887db56a16ef688abc1 | [] | no_license | deemoowoor/employee-stats | bf53e15e3af7e52a6a6828e8e539a5d945782dee | 5b29f103c3327fe18ea1998777141b610589e6af | refs/heads/master | 2022-12-12T08:12:28.088128 | 2020-05-20T08:44:47 | 2020-05-20T08:44:47 | 265,500,108 | 0 | 0 | null | 2022-12-08T09:57:35 | 2020-05-20T08:27:27 | Python | UTF-8 | Python | false | false | 154 | py |
class ApiError(BaseException):
def __init__(self, message):
self._message = message
def __str__(self):
return self._message
| [
"andrei.sosnin@gmail.com"
] | andrei.sosnin@gmail.com |
48a3c15283ec705f100a9181029b8e252e62f99e | a58689339cf11a04280cb6f627da442d2e6d2128 | /detector.py | e101ec893dc4d28dedc51a5a11c210fd2a101bee | [] | no_license | thuyngch/CISDL-DMAC | d1928fa7023986220d4d7b21d0e8eb73991a98fd | 4a4e24051dedb4e534291a71ec32571b07ba7217 | refs/heads/master | 2020-05-25T12:10:26.804658 | 2019-06-02T14:38:16 | 2019-06-02T14:38:16 | 187,793,220 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
@author: liuyaqi
"""
import torch
import torch.nn as nn
import math
affine_par = True
class Detector(nn.Module):
def __init__(self,pool_stride):
super(Detector, self).__init__()
'The pooling of images needs to be researched.'
self.img_po... | [
"noreply@github.com"
] | thuyngch.noreply@github.com |
ea37b89193a3166b30ca50a361245e3dbc673ab7 | 5184ea2fd27e01467d5b027864d14b2d4638ba1b | /Number theory/526/526.py | 849f1678e4527667650f1c3ea2b0b7b3558b4af8 | [] | no_license | zc1001/leetcode | 1587f951e52dd08cfcbb2c6b3f5cbff5cb9b3a67 | 45b20789ae00bb3713ab30159ac4f4af7eea55fa | refs/heads/master | 2021-07-11T19:26:24.647433 | 2020-09-27T08:21:01 | 2020-09-27T08:21:01 | 203,901,667 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,614 | py | import math
import copy
import operator
# 打表
# 执行用时 :16 ms, 在所有 python 提交中击败了100.00% 的用户
# 内存消耗 :11.7 MB, 在所有 python 提交中击败了18.75%的用户
class Solution(object):
def perm(self,data):
if len(data) == 1: # 和阶乘一样,需要有个结束条件
return [data]
r = []
for i in range(len(data))... | [
"jlbczhangchao0800@126.com"
] | jlbczhangchao0800@126.com |
723e222cf53b147363a4bf4988a03938b087787c | ee341e95e484a8594f9942c920bf739b11b70658 | /Job1/MapReduce/mapper.py | 8be43816fbde16505668fa1db7d9d4d617c8bf12 | [] | no_license | FedericoCialini/Progetto1BigDataRomaTre | acbd7ac78c10448197abb85a59ccc6c73fb03477 | 84313d1d4613763c1276f33186eadbad950ddb19 | refs/heads/master | 2022-09-09T13:10:04.974717 | 2020-05-18T20:57:47 | 2020-05-18T20:57:47 | 258,604,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!/home/federico/anaconda3/bin/python
import sys
def mapping():
lines = sys.stdin.readlines()
prices = lines[1:]
for line in prices:
Ticker, OpenValue, CloseValue, Adj_close, LowThe, HighThe, Volume, Date = line.strip().split(",")
year = Date.split("-")[0]
if year >= '2008':
... | [
"federicocialini@gmail.com"
] | federicocialini@gmail.com |
88267b9d5edb8a48d3ceb3ce7f9c307f1a46e175 | 55965f592cb7e915cd68bd371ee1a6ad2a6e0247 | /libmngmtsys.py | 79288d746d1e8cdb428259f150297c49244931cb | [] | no_license | Upasna4/Training | 2b5b57fc3e5229304860f153db93d912a44472bf | 33c6eeb565c422e40ea88d50af787f58b9f0da6d | refs/heads/master | 2020-08-05T03:50:36.280910 | 2019-10-02T16:36:09 | 2019-10-02T16:36:09 | 212,383,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,733 | py | memberData = {}
bookData = {}
borrowData = {}
m_id = 101
b_id = 201
print("Library Management System\n"
"1.Add Member\n"
"2.Add Book\n"
"3.Book Borrowing\n"
"4.Book Returning\n"
"5.Member Status\n"
"6.Book Status\n"
"7.Exit")
while True:
choice =... | [
"upasnabhat17@gmail.com"
] | upasnabhat17@gmail.com |
cd83a748401283dfbf2bddb5137bb34063e8eb43 | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/50/50.powx-n.py | c24eb3b7c7bcc033fb5286680caebed06bbe3c0f | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 802 | py | #
# @lc app=leetcode id=50 lang=python3
#
# [50] Pow(x, n)
#
# https://leetcode.com/problems/powx-n/description/
#
# algorithms
# Medium (27.38%)
# Total Accepted: 281K
# Total Submissions: 1M
# Testcase Example: '2.00000\n10'
#
# Implement pow(x, n), which calculates x raised to the power n (x^n).
#
# Example 1:
... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
7b5a81f5531be906c6c75c6ea6ee45ae41407e10 | 188950fb7b1fce4840b41e1e9454f0133a8d75ce | /src/Server/Controller/guess_controller.py | a2518f5c1fdefce113aeaec0371319b7b16a82fa | [] | no_license | cloew/WordGuessAngular | 3f5c6a1e0e14f6e905ec78a618b606ff3cb3e798 | 0d889cd3bb9cafe35a6e7e2ccba97914a26825b9 | refs/heads/master | 2021-01-01T05:53:26.776161 | 2014-09-01T14:55:39 | 2014-09-01T14:55:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from Server.game_wrapper import GameWrapper
from kao_flask.controllers.json_controller import JSONController
class GuessController(JSONController):
""" Controller to allow a player to guess the word for the current Round """
def performWithJSON(self, gameId):
game = GameWrapper(id=gameId)
... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
b7c80a21298c1316985aac7e42d5886a612a3783 | a95f9fb15eccaf4c8a25549aeb52fb1bb517f8ce | /label_extractor.py | 98bffcf2ee33da1d7d0999b0f1516d714e3bf091 | [] | no_license | Kirich2323/ml | 441144b26eac19f10c0b773e6c9aff82fa58246d | 5ced175d0e5ffedeb56edb07c809decc77e1154f | refs/heads/master | 2020-03-11T18:27:33.204495 | 2018-04-26T01:10:47 | 2018-04-26T01:10:47 | 130,177,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | import xml.etree.ElementTree as ET
import re
class BaseLabelExtractor:
def __init__(self, *args, **kwargs):
pass
def get_labels(self, data):
ans = []
for f in data:
ans.append(self.extract_label(f))
return ans
class ProblemExtractor(BaseLabelExtractor):
def __i... | [
"ivadik2323@gmail.com"
] | ivadik2323@gmail.com |
b49df1cc1b4948c46ef6cec8398200ea89ae37fa | 67048c855300ffc1fa192eee1da241d7f8e85682 | /pizza.py | 97cdb1c8caa56c039d6815b7062e06cb161ab1b7 | [] | no_license | JennymarBerroteran/Umbrella | 07e4f286f46da749c04d59769bcef4cf763f9a95 | c1271e156bf7657179e0f209353d77babe2a06ff | refs/heads/master | 2020-09-08T08:25:09.823352 | 2019-11-24T22:27:57 | 2019-11-24T22:27:57 | 221,077,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | fav_pizza = ['pepperoni', 'cheeze', 'margarita']
for pizza in fav_pizza:
print(f'I like {pizza} pizza \n')
print('I really love pizza')
| [
"noreply@github.com"
] | JennymarBerroteran.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.