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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d04cb2622f5281172fbe0d1ddeff08036cbfe7a | da2c53055505d9511931da1ea4f9cce594534cb0 | /lassoregression/test/predict_test.py | 1c4617938a86fb9f3bbf8b2047f5574d07791135 | [] | no_license | Techcovery/ml | 18369ab9bf533d15e27fb8e5b24ddecde63213b7 | 5afccf1ac7a958d36345bceb98d1b73d514eb79e | refs/heads/master | 2021-02-09T14:24:30.265950 | 2020-03-05T12:18:46 | 2020-03-05T12:18:46 | 244,292,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import unittest
import numpy as np
import pandas as pd
from stock_prediction import get_data, preprocess_data, pred_split,train,test,predict
df = get_data()
s={'Adj. Close': [2.456],' HL_PCT':[22.38],'PCT_change' : [4.576], 'Adj. Volume':[1.245]}
pre= pd.DataFrame(s)
class Testpredict(unittest.TestCase):
def test... | [
"meenakshi@techcovery.in"
] | meenakshi@techcovery.in |
cf40c9c88eb9cbea4da4ed6889981e1e774f7678 | e240dabc5ef2c53d36f1831b95d0228022333602 | /manage.py | 3ea996ecf93362c62a69f82036468af42de959ca | [] | no_license | MIS233NightsWatch/nights-watch | df7bccf31c1de08b6850ca66f67adf89263a0e21 | c1c1a47e5ed0820625747092458595da069597c2 | refs/heads/master | 2023-02-18T19:51:26.185220 | 2021-01-19T19:14:26 | 2021-01-19T19:14:26 | 331,063,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'nightswatch.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"77643862+candoymaz@users.noreply.github.com"
] | 77643862+candoymaz@users.noreply.github.com |
698b4c5639aebefc124da318b19ab20bf47b6605 | aeb1f26b5a38d4a7245fc2dabf91dcbf3325a223 | /Day 1/Lab 05 - MongoDB/models.py | ba3533d64b23c6c2f10556af8c62ad36f2536810 | [] | no_license | jaikritnegi/Piper-2020 | 7f7169a9d266d71cd0da42b7eed4e2f4a02a0938 | bb7bc77d6715f32ab4c9df97084d8a1e0f92aa92 | refs/heads/master | 2022-05-16T17:59:22.120696 | 2022-04-21T14:14:25 | 2022-04-21T14:14:25 | 244,566,322 | 0 | 1 | null | 2020-03-29T14:11:56 | 2020-03-03T07:10:28 | HTML | UTF-8 | Python | false | false | 1,134 | py | #!/usr/bin/env python3
#########################################################
# This is the database processing file. (aka. Models)
# It contains the DB connections, queries and processes.
# Uses principles of Models, Views, Controllers (MVC).
#########################################################
# Import modu... | [
"theo@apacit.com.au"
] | theo@apacit.com.au |
7c8c2a58f3045202da95ecc099ecf34f17af5165 | 53f2efac5be917c8f5c365580930ca6457813ee0 | /PySpike/examples/distance_matrix.py | b04833a205b2a4537310994ee1b40953f90c188a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | jcylim/PythonSpikeAnalysis | ef5fa6a5261ed877951edef248ef91d5f40c4e5d | 3cda536a48c531e8b1fa890b44fcfef763f91255 | refs/heads/master | 2018-09-24T02:26:42.891917 | 2018-09-12T00:29:24 | 2018-09-12T00:29:24 | 117,602,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | """ distance_matrix.py
Simple example showing how to compute the isi distance matrix of a set of spike
trains.
Copyright 2014, Mario Mulansky <mario.mulansky@gmx.net>
Distributed under the BSD License
"""
from __future__ import print_function
import matplotlib.pyplot as plt
import pyspike as spk
... | [
"noreply@github.com"
] | jcylim.noreply@github.com |
b694a28ffa1f63fc562066d77f3e7125197de3a4 | 28e8ff11d8d4d633e9bd69390eb8504dc52d34ac | /python/paddle/distributed/fleet/runtime/parameter_server_runtime.py | 0d4c3944c72a2edaae4d97be1b7587969285cba1 | [
"Apache-2.0"
] | permissive | zhupengyang/Paddle | 1cda899a18de8725bfbbcedfcf45bce0bc2706a7 | 226b4a95df0c992dfaf37cca2c0e89eb730dd298 | refs/heads/develop | 2023-08-30T22:09:01.452182 | 2023-03-01T09:35:50 | 2023-03-01T09:35:50 | 186,746,928 | 0 | 0 | Apache-2.0 | 2023-07-19T01:56:42 | 2019-05-15T04:05:53 | C++ | UTF-8 | Python | false | false | 28,201 | py | # Copyright (c) 2020 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 appli... | [
"noreply@github.com"
] | zhupengyang.noreply@github.com |
b83da3baf529b047b85ccd87913f6a4319ab06ff | 125f4de24510a16bd890b298b905bff0af4df431 | /netSalary.py | c8d173f162b49165e9afea2240d4dbb8b9603c07 | [] | no_license | cmclaug3/real_repo | 8ef888a4a3b0d1f3e8359524f219bf4f06cc2fcf | 5fb0c0ec6d66bf6401eb1e9d212f5ecc62f141fe | refs/heads/master | 2021-01-21T08:40:25.005821 | 2017-05-18T01:49:04 | 2017-05-18T01:49:04 | 91,637,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | #for the 2016 tax year
#still need to auto complete list(s) of taxRun() for MatPlotLib
import matplotlib as mpl
def taxRun():
salary = 10000
while salary <= 300000:
if salary <= 9275:
netSal = salary * 0.9
elif salary > 9275 and salary <= 37650:
netSal = sala... | [
"mclaughlin848@gmail.com"
] | mclaughlin848@gmail.com |
da968bfafd7aafad69a5827aa0547fa7f1659994 | fbef64947766c8faa30f140e1aca9d02258e1bc3 | /app/models.py | 9b68cde961c22ab0630eb0e526b06a0858dff474 | [] | no_license | yebingln/flask_base_method | c2997d3dec27536d474502f69670c76c7d1aecf7 | 0e903be58537f2710666a47d4265b543e614e2f0 | refs/heads/master | 2021-04-15T11:07:56.714141 | 2018-03-25T08:02:09 | 2018-03-25T08:02:09 | 126,676,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | from app import db
class Username(db.Model):
#定义表名
__tablename__ = 'username'
id = db.Column(db.Integer, primary_key = True)
nickname = db.Column(db.String(64), index = True, unique = True)
email = db.Column(db.String(120), index = True, unique = True)
def __repr__(self):
return '<Use... | [
"yebingbing@wecash.net"
] | yebingbing@wecash.net |
68b54e70382cdd4a0198bd401b8281a41aedd8bf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03835/s488234349.py | e56e10d8295dca46ab608cfccce640f2972f7441 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | k,s = map(int, input().split())
ans = 0
for i in range(k+1):
for j in range(k+1):
t = s - (i + j)
if 0 <= t <= k:
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ae2fcc09ca9d7c3da6c9eaf154af02af2a6ad9d1 | 0e3a3743607ffbafa22899feb54268ece2c85219 | /game_life/game_life/draw.py | dd439b6cd93d0f6d462c1c6120567cb09f725574 | [] | no_license | BerezinAlexander/GameOfLife | 86f628e6d48491d8e3f0c4804cba83fb9b005b40 | 63d4687d429ab7253ba14fb18630ccf0e30713d5 | refs/heads/master | 2021-01-20T20:44:59.392418 | 2016-07-08T20:03:04 | 2016-07-08T20:03:04 | 62,812,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | import math, sys, pygame
from pygame.locals import *
from settings import *
class Draw(object):
blackCells = []
def __init__(self,scr):
self.screen = scr
def drawAll(self):
for i in range(0, COUNT_CELLS_Y):
for j in range(0, COUNT_CELLS_X):
self.drawCell((j,i... | [
"elmario2pro@gmail.com"
] | elmario2pro@gmail.com |
a6e327049dea6cff676999c5edfe63b51e6d1fe1 | 073ccead29df24ffb45dd6088a1dee5845500824 | /sic/jupyter_notebook_config.py | 058d0ebf8a40cc47b198a15cd73ce817bdbadee1 | [
"Apache-2.0"
] | permissive | ebridge2/FNGS_website | 4c33ddc2dde3baa73cc542921ea3f7729b5707fa | cc904e3471865b82e8125141322d7634aaad9e5f | refs/heads/master | 2020-08-01T01:10:56.925032 | 2019-01-19T23:28:36 | 2019-01-19T23:28:36 | 73,585,814 | 0 | 2 | null | 2017-05-14T04:17:20 | 2016-11-13T00:02:44 | HTML | UTF-8 | Python | false | false | 20,503 | py | # Configuration file for jupyter-notebook.
#------------------------------------------------------------------------------
# Configurable configuration
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Logg... | [
"ebridge2@jhu.edu"
] | ebridge2@jhu.edu |
c6ebae4c39070dc4f956e0aa6d460198565a6724 | 8e01f8c0c6ae1ab1f2cd34408577dc8affb8288e | /slingsby/articles/migrations/0002_auto_20150305_2339.py | e7d8f839fe8f0fac077f1092d88772230280b0ed | [] | no_license | TelemarkAlpint/slingsby | b8122f0a367d81c2cf8809a91827426de9e93e2c | e480ebf12f7d5dddeca242b1c0ed508631a6674c | refs/heads/master | 2021-01-10T15:12:28.205841 | 2017-09-13T21:20:01 | 2017-09-13T21:20:25 | 8,419,417 | 2 | 0 | null | 2020-03-17T21:19:35 | 2013-02-25T22:11:16 | Python | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='subpagearticle',
nam... | [
"git@thusoy.com"
] | git@thusoy.com |
16029c51540d37d6d48bd8bf4d006122701b4ff2 | cd75c7984ee18ffc073de11aab6bac62db836315 | /rest_api/api/urls.py | c50288a7d84b10aa7ee05d2a2efc88aefeb1f06d | [] | no_license | tej1996nitrr/UsersDjango | 7b118dd9e5bcc0a7c39bbc47b3a13f514a3d3099 | c545db14769269d845a1691f4d8f5a5e07566754 | refs/heads/master | 2022-12-15T02:51:45.109251 | 2020-04-01T13:24:25 | 2020-04-01T13:24:25 | 249,545,659 | 0 | 0 | null | 2022-12-08T03:57:42 | 2020-03-23T21:15:16 | Python | UTF-8 | Python | false | false | 570 | py | from django.urls import path, include
from .views import CreateCategoryView, CreatePostView, DetailsCategoryView, DetailsPostView
from rest_framework.urlpatterns import format_suffix_patterns
urlpatterns = [
path('category/', CreateCategoryView.as_view(), name='create_category'),
path('posts/', CreatePostView.... | [
"tejaskanikdaley1996@gmail.com"
] | tejaskanikdaley1996@gmail.com |
1c83a75fe59247734e5b5b2a03c834eaaf798818 | aef2e5771a317036dc6404b1d7b3377b8daf3fa9 | /schoolEnv/Scripts/django-admin.py | 28104616921f2e19759d7b0a076fdc2e40ac05dc | [] | no_license | dineshsaud/SchoolManagementSystem | 389378cab27acb8ea83c8519fce65d0540d15fd8 | a6ae47593bc4b857206fe90e8655d52e3d770cf1 | refs/heads/master | 2023-04-05T07:00:04.773846 | 2021-04-09T14:57:04 | 2021-04-09T14:57:04 | 352,843,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | #!d:\professional\projects\student_management_system\schoolenv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
... | [
"dinesh.47saud@gmail.com"
] | dinesh.47saud@gmail.com |
bd7cd0bc11efd48285e127b906ba495594119bce | eb96978756d470f3e4095237143ca67c96e2cb34 | /mcts_pure.py | 4d0f1806ef07b2e7a6abe6f63832232b7deb6f64 | [] | no_license | vxfla/AlphaGo-Zero-Othello | 9858a4ba53cc61f461e893db3a79af83093c7b78 | e69b172fd317cce70361f61cbccf671dd99e52f9 | refs/heads/main | 2023-04-13T22:10:40.524693 | 2021-04-27T08:13:12 | 2021-04-27T08:13:12 | 362,030,877 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,498 | py | # -*- coding: utf-8 -*-
"""
A pure implementation of the Monte Carlo Tree Search (MCTS)
@author: vxfla
"""
import numpy as np
import copy
def rollout_policy_fn(board):
"""a coarse, fast version of policy_fn used in the rollout phase."""
# rollout randomly
action_probs = np.random.rand(len(bo... | [
"noreply@github.com"
] | vxfla.noreply@github.com |
e49cdc5351429f420e687db033f42b0372a9cb85 | 04f62ef783a15d8d13b735317d37c1417ce3969f | /hms/forms.py | 07bb8b6cb55ba4d8a0da9d70cbff5f348647c142 | [] | no_license | AniketCPatel/hospitalmanagementsystem | c5cfbe91f8c5f5007b86f2d827c4fe958c95bd06 | 8b9ddca78956d81529ec73a012c79c5fbe82f840 | refs/heads/master | 2023-05-26T16:06:09.506280 | 2023-05-13T13:10:43 | 2023-05-13T13:10:43 | 276,889,563 | 1 | 1 | null | 2023-05-13T13:11:03 | 2020-07-03T12:00:58 | CSS | UTF-8 | Python | false | false | 11,070 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, IntegerField, DateField, SelectField, BooleanField, FloatField
from wtforms.validators import DataRequired, Length, ValidationError
from datetime import date as dt
from hms.models import Patient, Medicine, Diagnostics
class L... | [
"bhaskar.srivastava2011@gmail.com"
] | bhaskar.srivastava2011@gmail.com |
c80e8bf4a6a4c78181338fb3c4aa68fa024e4b56 | dca02aaddfc5f5e13c2a027d6e92c679bbdcf6d9 | /planner/admin.py | 8b1970df6be579f7fb0a96ea7f960896acaa43e2 | [] | no_license | tchayen/schedule_planner | 2ee745235ba57d3126aba27944ce4bc1c9b867b9 | d97b3297fffb1085d3210969864bdd9923cfd0ff | refs/heads/master | 2020-03-13T22:13:28.005254 | 2018-06-16T13:08:30 | 2018-06-16T13:08:30 | 131,312,281 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django.contrib import admin
from .models import Student, Subject, Teacher, Event, SingularChange, ChangeRequest
admin.site.register(Student)
admin.site.register(Subject)
admin.site.register(Teacher)
admin.site.register(Event)
admin.site.register(SingularChange)
admin.site.register(ChangeRequest)
| [
"tomek.czajecki@gmail.com"
] | tomek.czajecki@gmail.com |
2e68567a4ca6a3b4d11909c08d1b9dabf745ac80 | ccd99dbb3f207f793a1224de7cee6783bbe522bd | /acornaccounting/accounts/models.py | e63686970ae375653c2bea5ce0fa027afa3c8377 | [] | no_license | clehner/AcornAccounting | 1ee2b8ac4259aeba5e9be7969ebb0de145b6253f | a8ec9685fc9c8a66ebb1cda4f9dd56413bf59ce0 | refs/heads/develop | 2020-12-11T07:59:12.693717 | 2016-05-01T22:07:40 | 2016-05-01T22:07:40 | 57,803,105 | 0 | 0 | null | 2016-05-01T20:26:40 | 2016-05-01T20:26:39 | null | UTF-8 | Python | false | false | 17,684 | py | import calendar
import datetime
from decimal import Decimal
from caching.base import CachingManager, CachingMixin, cached_method
from django.core.urlresolvers import reverse
from django.db import models
from mptt.models import MPTTModel, TreeForeignKey, TreeManager
from entries.models import Transaction
from .manage... | [
"pavan.rikhi+agit@gmail.com"
] | pavan.rikhi+agit@gmail.com |
4a8af6f1266f61b2f95c6c51138c2fbac0291dd6 | 24ddabe34bb1e054489bec4c41f01678e547644a | /env/bin/python-config | cee07dbcd588d64c9e63af9edfdee52daaa2e1a6 | [] | no_license | jamesBlackwood187/live_sports | 9bed12954f4a91c9da9985f3af2c13d7f7ef2c63 | 1ba6d83e5d7c372a8667b851e589b375ce68a4fe | refs/heads/master | 2021-09-05T04:10:47.141204 | 2018-01-24T03:15:11 | 2018-01-24T03:15:11 | 118,705,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | #!/home/jim/Documents/Programming/live_sports/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
i... | [
"jimblackwood3@gmail.com"
] | jimblackwood3@gmail.com | |
86158ba972b588256136d51e4ae6672785f5eee1 | b4afb44b8f483c048716fe12d778186ce68ac846 | /AutoFrameworkForAppiumPy/com/qa/automation/appium/cases/ios/ffan/common/check_network.py | 47a35ee729958f64215c24e69771b597aaf20c60 | [] | no_license | liu111xiao111/UItest | 64309b2c85f6d2334d64bb0875ba9ced459ebb1e | 67e2acc9a99da81022e286e8d8ec7ccb12636ff3 | refs/heads/master | 2021-09-01T18:30:28.044296 | 2017-12-28T04:36:46 | 2017-12-28T04:36:46 | 115,585,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | # -*- coding: utf-8 -*-
from subprocess import Popen, PIPE
CONNECTION = 0
NOCONNECTION = -1
NOFIND = -1
class CheckNetworkStatus:
'''
usage : Check Network status.
'''
def __init__(self):
pass
def checkNetwork(self):
cmd = 'adb shell ping -w 3 baidu.com'
ret = P... | [
"tl@neusoft.com"
] | tl@neusoft.com |
5e79063c4eb9290e3c9d46f9992f95066db7cf5e | 6f0c99a5959b69f3d44c4232806f72e90777416c | /HOME/AllTheSame.py | bff1e0c926c7eec293abf31add148ea8998f97c7 | [] | no_license | Marshall00/CheckiO-tasks-solutions | 72cb270ed2f375b0e0c3a214bfdd4e81d72eec71 | ff4bd786b94e3e24509c6507f48d25f70c2f83cf | refs/heads/master | 2020-04-16T12:01:04.809750 | 2019-01-25T21:24:57 | 2019-01-25T21:24:57 | 165,561,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from typing import List, Any
#Set contains only unique values so this is quite efficient way to check whether all values are the same
#and not unique at the same time
def all_the_same(elements: List[Any]) -> bool:
s=set()
for element in elements:
s.add(element)
return len(s)==1 or len(s)==0
| [
"noreply@github.com"
] | Marshall00.noreply@github.com |
6332cda9d0f4aff1be100186a947b7e100874cde | 958f2bb760a3ada920259ef413b815db8175e153 | /src/CodeChef/Beginner/HOW MANY DIGITS DO I HAVE/main.py | 08244e570c931f74306f827cd9997e8bd7f787f5 | [] | no_license | arrebole/Leisure | e5639b172a2c58fe84e7458ddd7a90e661e8fee0 | 8a8b8b9906f32ce6fc365f9981bb265a8574ba86 | refs/heads/master | 2021-07-14T20:02:17.063526 | 2019-02-04T12:10:47 | 2019-02-04T12:10:47 | 140,957,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py |
def main():
num = str(input())
res = len(num)
if res <= 3:
print(res)
else:
print("More than 3 digits")
if __name__ == '__main__':
main()
| [
"326093153@qq.com"
] | 326093153@qq.com |
6c2b0ec871da90bd20e7740ce6523b2aa2714c4a | 9c6839009b7c881e3d6a319564b6bf9bc50aaba1 | /cookbook/four/7SliceOfIterator.py | b55b65ac1a8dc0959f092309534d33628e15d2f8 | [] | no_license | dalq/python-cookbook | d28cb05aaf54e4d2c6056a2ff6d0c8027997460f | 7bcd0c68e26269772123887ce8589b7f9db0bd3f | refs/heads/master | 2020-03-26T17:43:56.960886 | 2019-08-11T07:11:21 | 2019-08-11T07:11:21 | 145,177,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | # 对迭代器做切片操作
import itertools
def count(n):
while True:
yield n
n += 1
c = count(0)
# 切片类似于substring操作
for x in itertools.islice(c, 10, 20):
print(x) | [
"quandaling@gmail.com"
] | quandaling@gmail.com |
264048207f5dd818c316e8123ea4bdd1dea8956d | a1c83eb0e682d068d607c2e120ae1b6a2791d7db | /GRB_Info_Script.py | 038f18b7d97e9847b03bd8868906ee5b0ca96f6d | [] | no_license | FGCUStellarResearch/OphiuchusPy | e20abff43a46272d2a505eceb397d52ea79e8db7 | 8e69c7dbfa8b1eee72a6ec60ca1fa0f199722531 | refs/heads/master | 2021-01-25T10:56:40.626163 | 2020-03-30T17:20:19 | 2020-03-30T17:20:19 | 93,893,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,024 | py | import numpy as np
import astropy as ap
import pandas as pd
import requests
from bs4 import BeautifulSoup
import re
import sys
from datetime import datetime
from dateutil.parser import parse
sys.setrecursionlimit(10000)
# Following takes NASA circular webpage and turns it
# into a Beautiful Soup object that can be u... | [
"noreply@github.com"
] | FGCUStellarResearch.noreply@github.com |
dab97767b2c6055b92960964b331c73625ba4fec | 177457e3d4c7575e33139e3ee205bd641f657bc4 | /conditional.py | a85842557c311e82e742a73dd7754374f2da84e8 | [] | no_license | laylow278/Global_Code | 44342290d1b68c1ad721c7edd0270df1931a8eb4 | e21835b422ba82d9f361fc4237b70a3663d2be53 | refs/heads/master | 2020-06-18T08:32:14.261048 | 2019-07-17T16:26:53 | 2019-07-17T16:26:53 | 196,233,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | def even():
a = [x * 10 if x % 2 == 0 else x for x in range(0, 20)]
print(a)
even()
def age():
a = int(input("How old are you: "))
if a < 18:
print("You are not up to the required age")
else:
print("You are up to the required age")
age()
#print("The age of the person")
print("... | [
"kwabenaokyere278@icloud.com"
] | kwabenaokyere278@icloud.com |
364728cd83b127d6eeb34938d1d4dd9be8dd794e | e993c53e4e1a52acc8279129c67feb0d3a1b9cbc | /catkin_ws/src/o2as_cad_matching/cfg/CadMatching.cfg | 2ffd7a6a9e0af0082bdd6b1054b9a6e0b92447db | [
"MIT"
] | permissive | DevwratJoshi/ur-o2as | 134ec87d371a7d9f9b64cbeb4030b23cf114812d | 265249c27908a79a301014168394db0c0dc2204c | refs/heads/master | 2021-01-03T16:03:57.344339 | 2020-02-17T03:58:39 | 2020-02-17T03:58:39 | 240,143,319 | 0 | 0 | MIT | 2020-02-13T00:21:52 | 2020-02-13T00:21:51 | null | UTF-8 | Python | false | false | 2,602 | cfg | #!/usr/bin/env python
PACKAGE = "o2as_cad_matching"
from math import pi
from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
object_id = gen.enum([
gen.const("01_BASE" , int_t, 1, "Base Panel"),
gen.const("02_PANEL" , int_t, 2, "Outp... | [
"FvDrigalski@gmail.com"
] | FvDrigalski@gmail.com |
9e90df95e59de10a43e6085045adb77c5d333abc | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.5/django/conf/locale/et/__init__.py | 1de82d1d47675d85c8bc8f0ca94a0c8ea68b3dc2 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/django/conf/locale/et/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
2b9b9d0ac172a8ff41e3fd2bf9c7f4615ee50606 | 49abb1dc3fd85ac19d576ae32c9be7cdc7740966 | /BostonHousingPriceComplexity.py | 9a23dd113af7fd47e4ff98b35c22eed3475f759d | [] | no_license | hemanth171/Python_Practice | 1bfe50db982d9b1d46e6ea0013c09c5d7e8900fc | 5440c504a9d7e754791c5e466ecea51e46a37cdf | refs/heads/master | 2021-01-11T03:23:50.504045 | 2017-01-07T05:37:24 | 2017-01-07T05:37:24 | 71,011,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | import pandas as pd
import numpy as np
import sklearn.learning_curve as curves
import matplotlib.pyplot as plt
from sklearn.tree import DecisionTreeRegressor
from sklearn.cross_validation import ShuffleSplit
data = pd.read_csv('/Users/hemanth/Documents/Python_workspace/Udacity_machine-learning_projects/machine-learni... | [
"hemanth171@gmail.com"
] | hemanth171@gmail.com |
96818b870c57707871eaa9aaa64013c4dddb882d | e483b0515cca39f4ddac19645f03fc1695d1939f | /google/ads/google_ads/v1/proto/errors/mutate_error_pb2.py | 7d4341f914f9ea47ea5cab80d378555a1d3b6cf3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | BrunoWMello/google-ads-python | 0af63d2ca273eee96efd8a33252d27112c049442 | 9b074a037d10f0c1208a00d5d41a8e5e25405f28 | refs/heads/master | 2020-05-27T04:37:47.669144 | 2019-05-24T17:07:31 | 2019-05-24T17:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,602 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v1/proto/errors/mutate_error.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from g... | [
"noreply@github.com"
] | BrunoWMello.noreply@github.com |
14f43cd1be497bb89a36cbd573576c72721e6709 | 6ba4f4510bb51cc0c9faf194dc35912a83fc8ffb | /teste_vm_kafka.py | fd92e2cecda226c171f1445bcaa36ac2bc3cb09e | [] | no_license | samuelamico/DataStreaming | 194b4512f053f099ffb8707018e945abf82502cd | c14c8aa7007ff3fc7b548a952f6ffb7b293efef3 | refs/heads/master | 2022-12-31T03:52:03.959133 | 2020-10-16T14:42:08 | 2020-10-16T14:42:08 | 271,403,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from kafka import KafkaProducer
import logging
logging.basicConfig(level=logging.DEBUG)
import datetime
producer = KafkaProducer(bootstrap_servers=['node1'])
for _ in range(10):
producer.send('testtopic', )
producer.flush()
| [
"sam.fst@gmail.com"
] | sam.fst@gmail.com |
cfe79c50b98515eb3fd3bd6729341e41f85520f8 | 3f64af6db9a501fe514ec1a42615d3f917421d9b | /Pratice-exos/ex3.py | c636737de89a13d29d6c622ddb72b99199986f42 | [] | no_license | HaoLIU94/lpthw | a2e29f1d91c471915c6dce481f9dbf89a62deff3 | d2be17ba43e09ba64a3a0f6afc9482ab8e79df01 | refs/heads/master | 2020-04-05T13:07:43.110560 | 2017-08-23T08:00:10 | 2017-08-23T08:00:10 | 95,100,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | import random
while 1:
num=random.randint(0,100)
step=0
while 1:
step+=1
guess=int(input('Input your guess\n'))
#print num,guess
if num>guess:
print'Your number is smaller'
elif num<guess:
print'Your number is bigger'
elif num==guess:
... | [
"liuhaoxdu@gmail.com"
] | liuhaoxdu@gmail.com |
293911e9042b0fc10e37a93f80b1de096fba81ab | bf6df506321f30e8e0cfa6df0c8ab32cac6713ce | /connect-four/betsy.py | fb4ce7389a9de58d8eee3612402a5e4d87aafe36 | [] | no_license | smilliken/aigames | dfaaf251e5fcc188ef818866bedf323b8638b82a | ed8fb8b18c116fa516f79ff6fce31b66a426a0e4 | refs/heads/master | 2020-12-03T13:25:26.708404 | 2015-01-14T23:30:52 | 2015-01-14T23:30:52 | 13,794,619 | 5 | 8 | null | 2013-11-14T06:18:32 | 2013-10-23T05:50:46 | Python | UTF-8 | Python | false | false | 8,412 | py | #!/usr/bin/env python
import sys
import copy
import argparse
import runner
FUCK_IT_MOVE = 4
DEBUG = False
def list2str(l):
s = ""
for ll in l:
s += str(ll) if ll != None else " "
return s
def nextmove(game,diagchk):
global nnn
# --- old code begin
# if there is a winning move, take ... | [
"kiru@hulk.(none)"
] | kiru@hulk.(none) |
8163ac9890bf96132ae47653327983d53f705752 | 1ef8abf54412c0ae59236532c588eed4063c1473 | /TD3/TD3.py | 9cd8e7e68a2a70dcbbfc9fd2c02a33869e94c02c | [] | no_license | hehejeongmi0124/JeongMiWTRMLN | 5ebc982da35926f1e179035f899c4a93d7ffd638 | e3be377818b6419b4f7f4ab31765e18b53b854de | refs/heads/main | 2023-02-25T04:29:40.975303 | 2021-02-04T16:18:42 | 2021-02-04T16:18:42 | 336,009,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,353 | py | import copy
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
# Implementation of Twin Delayed Deep Deterministic Policy Gradients (TD3)
# Paper: https://arxiv.org/abs/1802.09477
class ActorCritic(torch.nn.Modu... | [
"noreply@github.com"
] | hehejeongmi0124.noreply@github.com |
1b211e2af8bd47e80d621774445befeff125077b | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /day10/day10/5.进程_server.py | 6bcdd06a147b6b6b577b373066d3137b7a7fe994 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 509 | py | import socket
from multiprocessing import Process
def func(conn):
while True:
conn.send(b'hello') # msg必须是字节类型
message = conn.recv(1024) # n是接受消息的最大字节数
print(message)
if __name__ == '__main__':
sk = socket.socket()
sk.bind(('127.0.0.1',9001))
sk.listen()
while True:
... | [
"13269469526@163.com"
] | 13269469526@163.com |
53c338a2bf6735812b6fac338fbbd370974fc717 | 45a0434de7cb5aaf51f372a9ea39c2e62528e8d7 | /models/hier_seq2seq_sampled_softmax_v2.py | 57077006e62eeedc48d15c7745215cf8d05261ee | [] | no_license | hongtaowutj/Seq2Seq-Keyphrase-Generation | 44b5b24f3af7a85c24fc5ef231c53c1dac7e48ff | 6f2d08222b108b543b7628b32e98480f2e3a32b0 | refs/heads/master | 2020-03-27T10:43:09.941194 | 2018-07-23T07:21:35 | 2018-07-23T07:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,712 | py | # -*- coding: utf-8 -*-
# author: @inimah
# date: 25.04.2018
import os
import sys
sys.path.append(os.getcwd())
sys.path.insert(0,'..')
import numpy as np
import tensorflow as tf
from keras.models import Model
from keras.layers import Input, Embedding, Dropout
from keras.layers import LSTM, GRU, MaxPooling1D,... | [
"i.nimah@tue.nl"
] | i.nimah@tue.nl |
1335fef3e197e1e1fb26246728086b9d7211b857 | 27777bf9167175b38a04fb06ac739e595477ed31 | /google/cloud/security/iam/explain/importer/importer.py | 890c1cf30999fa36eaf756c886319da9378233b7 | [
"Apache-2.0"
] | permissive | denzel-morris/forseti-security | a34ef62aec4a26ffa55d1e29d0277991ac9c2a19 | f30eb2cf13dde94d4e94bf469a80fc3e9362330a | refs/heads/master | 2021-01-25T09:38:49.806582 | 2017-06-08T20:40:00 | 2017-06-08T20:40:00 | 93,870,441 | 0 | 0 | null | 2017-06-09T15:05:14 | 2017-06-09T15:05:14 | null | UTF-8 | Python | false | false | 7,139 | py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"henryc@google.com"
] | henryc@google.com |
e59464b4639a32b0f24d85deaa5508f3fb28ba1d | 3554b97674bee752d455f23cea23f4548213de33 | /row_n/slu.py | e6c379e47459de3824f09ee985c0a17589750a42 | [] | no_license | MartinoMensio/Time-SLU | 2436d0e22033c4d7a3447b72dc53c55b8ef2feb2 | a2b37b883f2294cceb441d47e45f049f26eb0f35 | refs/heads/master | 2021-07-04T23:23:23.960495 | 2017-09-28T17:56:34 | 2017-09-28T17:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,773 | py | import tensorflow as tf
import numpy as np
from slu_preprocess import slu_data
from slu_model import slu_model
import random
from sklearn.metrics import f1_score
from sklearn.preprocessing import Binarizer
import sys
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
def one_hot(idx, T):
# intent di... | [
"b02902126@ntu.edu.tw"
] | b02902126@ntu.edu.tw |
2d742d0514e2f6b3d504abf2415972f06a362098 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/shared/utils/decorators.py | fd6a83b489698ea258530d5b9b8f79437a048a1b | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,312 | py | # 2017.05.04 15:26:22 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/shared/utils/decorators.py
import time
import adisp
import BigWorld
from debug_utils import LOG_DEBUG
from gui.Scaleform.Waiting import Waiting
from debug_utils import LOG_WARNING
from string import join
class process(object):
... | [
"info@webium.sk"
] | info@webium.sk |
dcb1f2d5206242d8688f8f96f919baad154ae844 | 63db0777f18ff8f91476619bbf387e99c35427e8 | /fe_utils/data_loader.py | 54b295b18f788a7194f1186fe6fe745274b8d933 | [] | no_license | rbiswasfc/pyFEM | de71aeca89b2f53e2e341f8e6cefa5a6fa7795e9 | 4b510215fd1d09d24c22346304d4609825b48c6f | refs/heads/master | 2022-11-15T11:44:53.654022 | 2020-06-21T07:35:56 | 2020-06-21T07:35:56 | 265,102,520 | 0 | 0 | null | 2020-06-21T07:35:57 | 2020-05-19T00:54:22 | null | UTF-8 | Python | false | false | 4,309 | py | import os
import sys
import numpy as np
import pandas as pd
from openpyxl import load_workbook
class MeshDataLoader(object):
'''
class to read Abaqus generated input file
'''
def __init__(self, filepath, sheet='Sheet1'):
'''
initialize the MashDataLoader class
@params:
... | [
"rajjjabiswas@gmail.com"
] | rajjjabiswas@gmail.com |
998e499c33d7cf97aac886a590ff582788fdf695 | 9665f8afd85673aa5b80613b4531af3ddf8aa785 | /client/room.py | 3d8854af3d1fb1ef000a55e90f68eda70a38efc5 | [] | no_license | mattgarrett/glove | 47e6419b8905e88ebc5432c5961f1c814e1f09e9 | 095d9302ac413959556056d5ce17c5faa93c1ad7 | refs/heads/master | 2021-01-13T02:15:48.378779 | 2013-09-30T02:56:48 | 2013-09-30T02:56:48 | 12,673,478 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 370 | py |
def Load(filename):
f = open(filename, "r")
room = Room(f.readlines())
f.close()
return room
class Room(object):
def __init__(self, tiles):
self.tiles = tiles
def getWidth(self):
return len(self.tiles[0])
def getHeight(self):
return len(self.tiles)
def getOb... | [
"perlarssn@gmail.com"
] | perlarssn@gmail.com |
762bbc4944a0d0c29a1dcd2e53b9acebe049ae6f | 14b7c38341e50d9097fc01a8e3cf42bacd94d540 | /manage.py | 16f64ccfb5aad7b8efebad36011f522a98851fb8 | [] | no_license | IgorZn/dronov-dj21 | cdc3d6806bffbd4ddf156f16e03cbe47f0b50d04 | 2c3e1d8aa0ec6a36ec2e269f8fffdbf2a0d74ec7 | refs/heads/master | 2020-05-02T19:17:09.621298 | 2019-03-28T08:00:01 | 2019-03-28T08:00:01 | 178,155,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dj21.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you... | [
"igor_znamenskii@epam.com"
] | igor_znamenskii@epam.com |
9c3f9f51396f6f3545bd1cf7459ba94da7ce6a3b | 5e6f11a11c1c58d29167a08358b28399becd256a | /play42_proto/migrations/0006_nbet_published_date.py | 9fae87410a836cc0f58435b5ca22e2a515377c79 | [] | no_license | Developer1881/play42_test | 163394b1ad8450de920cdaf3ae6b7255320ad0ac | 690fc63611abc7c5cd1303d09eae91915811a020 | refs/heads/master | 2020-04-25T21:13:49.201040 | 2019-02-28T10:55:55 | 2019-02-28T10:55:55 | 173,074,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.1.7 on 2019-02-27 17:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('play42_proto', '0005_auto_20190226_2256'),
]
operations = [
migrations.AddField(
model_name='nbet',
name='published_... | [
"maksym.usyk@gmail.com"
] | maksym.usyk@gmail.com |
7143de65f6dd04af33d60bae4931d39c8209fba0 | d7c3b0ed329d0ac6379f55c452aa73de489290e7 | /migrations/versions/5db55e634b0c_.py | 907c266b60e91729c1a86c9257d41c91bd3686a8 | [] | no_license | LuluhAltayyar/01_fyyur | ae2c74c2b3809a3d31b32dfbc81ee4863390d1d1 | e64f9f3d82c27b846480ce02f1af6ed548aae106 | refs/heads/master | 2022-12-30T17:24:57.031908 | 2020-10-18T16:58:18 | 2020-10-18T16:58:18 | 305,151,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | """empty message
Revision ID: 5db55e634b0c
Revises: 6ed3d30fec21
Create Date: 2020-10-14 20:48:25.872817
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5db55e634b0c'
down_revision = '6ed3d30fec21'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"luluhaltayyar@gmail.com"
] | luluhaltayyar@gmail.com |
20d91335a29e56b4681ad4d730ae9f79e4ff8216 | d09f76e45bdd43543a0c89169ca5a917868e5057 | /apps/usuario/permissions.py | 995892c804920b35fe6a494b5c86c65d20342657 | [] | no_license | MarihecMiranda/backend_django | 85a65b67fa1bb06ba98dc3e04f5ac912ba3c9629 | b1819c2214e594e9012121a50a9cdc5172b0fe65 | refs/heads/master | 2023-08-13T16:25:58.873861 | 2021-09-26T17:50:56 | 2021-09-26T17:50:56 | 410,755,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | """Permissions"""
from rest_framework import permissions
class IsAuthenticatedAndAdminUser(permissions.BasePermission):
def has_permission(self, request, view):
if request.user.is_authenticated:
user = request.user
return user.tipo_usuario_id == 1
return False
class Allo... | [
"marihecmiranda160498@gmail.com"
] | marihecmiranda160498@gmail.com |
f43ed6ab1ca6d87d2ff8ae25f6f0f52f0eb742e1 | 8a2f7835c505258766733dd51e790ae75bd9cf89 | /src/creature.py | 2166a66ae57bb93a6db5558641ec8de6a0dcdcc1 | [
"MIT"
] | permissive | Flowshu/gym-mtg | d66444c0a85bb3809dfd943336ed72b765f0720d | 9aa816528d34b47929bf8beb91df1a049b07a2a7 | refs/heads/master | 2022-09-17T00:30:05.730854 | 2020-05-30T22:31:17 | 2020-05-30T22:31:17 | 268,169,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | class Creature():
def __init__(self, power: int, toughness: int):
self.base_power = power
self.power = power
self.base_toughness = toughness
self.toughness = toughness
self.attacking = 0
self.blocking = -1
| [
"floowshu@gmail.com"
] | floowshu@gmail.com |
63fcf587bc74a534a95792f578ea6cbee6711702 | b84278cceba9a491c3bc1ae6067e85219c373077 | /program zuraw/zuraw.py | e63f6031f7427b0383ea6a9a570d047759e2f8e9 | [] | no_license | mateuszac/Prywatne | 25a22bba387c4cd0c01581f9821773e65bc3c204 | 7faa6de63557663548a751a4871f0f10af8595e7 | refs/heads/master | 2023-05-13T22:41:02.889921 | 2021-06-02T22:21:16 | 2021-06-02T22:21:16 | 370,494,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,446 | py | """ Ten plik odpowiedzialny jest za wczytanie wszystkich elementów interfejsu graficznego, dopisanie funkcjonalności
do elementów GUI oraz definicję klasy, której obiekt będzie włączał program zuraw """
from PySide2 import QtWidgets # import biblioteki Pyside
import gui_qt
import json
import datetime
class ZurawGUI(g... | [
"mateuszac@tlen.pl"
] | mateuszac@tlen.pl |
4b7c2ae2049ee3aaa74f6dec50e90bf1d202e4cc | 03d2b98b192041e3670de868751d1e55153b7848 | /store/urls.py | 1525375d6908930d7efad663f23d66157ff606d6 | [] | no_license | George1215/Mauzo | 65c5b961f813d729260d4028d5fdbc8d21528316 | af66c74fcb2af5e0e7398625aeef0c78e0f9b73d | refs/heads/master | 2023-03-18T03:02:44.983765 | 2021-03-17T09:57:08 | 2021-03-17T09:57:08 | 311,621,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from django.urls import path
from . import views
# After function views have been created in views.py file
# their urls are then configured in this file
# After creating this file we first need to import
# this file as seen on line 2
urlpatterns = [
# inside here we provide the web url then the location
# of ... | [
"George1215"
] | George1215 |
4e7b448c811913d6959e1e611f2dcf7826c9d898 | 395cf3a5c8f2a0d6a7e021ff7f06d0e3174510e7 | /tasks/task4.py | f2b52d62d45ac74e23d9427d7f96fe68ef5e4b0f | [] | no_license | pogrebnoijak/matrixAlgo | ecee4daf4c2ed996c5e0192f9c7d00dbdf309c9a | 8eb107ed7bf35a723ffa18a5d291ee0316d92b34 | refs/heads/main | 2023-01-11T02:18:22.239143 | 2020-11-14T15:18:24 | 2020-11-14T15:18:24 | 312,841,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | from common import*
from math import copysign
def pred_Givens(A, st, i, j):
if A.isCMatrix():
kv = sqrt((A[j][st] * A[j][st].conjugate() + A[i][st] * A[i][st].conjugate()).real)
else:
kv = sqrt(A[j][st] * A[j][st] + A[i][st] * A[i][st])
if (kv == 0): return (1, 0)
c = A[j][st]/kv; s = -... | [
"p-a-k-12@mail.ru"
] | p-a-k-12@mail.ru |
d45fe6ced6c0c8dd415898057afc50d100773804 | daebfb285c1968c9391443a969c7d8a11e85a9d4 | /test_case/userInfo/test_editUserInfo.py | 162b1093c141a365023bb6ae18473c4d68f29c8f | [] | no_license | lnsoftware/himo_api_test | e80a0bd3991337990ec3f921636104fca35badfd | 3c281ff8d42bbfe1db437eeb7c5d4532ed15ecc8 | refs/heads/master | 2023-02-23T04:23:53.843208 | 2021-01-27T11:47:10 | 2021-01-27T11:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,330 | py | from common.readYaml import GettingDate
from common.logger import Logger
import traceback
import logging
import allure
from common.queries import *
from conf import Api_Url as c
from httpRequests._requests import *
'''
测试用例模板
不需读取用例文件的脚本将caseName,casedata行删除即可
Looger('')中的传参控制生成的日志文件名
FileLevel控制写入日志文件的日志等级
'''
# cas... | [
"969538532@qq.com"
] | 969538532@qq.com |
55f5b7fb23d9eac95b06c148e02e1b96a786e653 | 18ca387f008d46020d5ca3b35851d9585cfa8066 | /ipproj/ipproj/filter/custom_filters.py | 143bd02b37a0db37dff3889515ef1a16a7891972 | [] | no_license | syx528911137/crawler | 0d7c7bf4a0613016a5870e2875737bf3cbe4ac76 | 9d998bc2f6676b43fa45f4cef11b7f0f23f81e81 | refs/heads/master | 2021-01-23T11:33:32.046098 | 2017-06-02T09:22:33 | 2017-06-02T09:22:33 | 93,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,070 | py | import time
import connection
from scrapy.dupefilter import BaseDupeFilter
from scrapy.utils.request import request_fingerprint
import hashlib
from scrapy.utils.python import to_bytes
from scrapy.utils.url import canonicalize_url
class RFPDupeFilter(BaseDupeFilter):
"""Redis-based request duplication filter"""
... | [
"syx528911137@163.com"
] | syx528911137@163.com |
9698c1bda3f8a40fbdba50a3a231155f8bdd49af | 74837368ece5c26474bce922d9a3f1c2d74e23f1 | /剑指offer/67_把字符串转换成整数.py | 173432340b56bb93e287215047bf3e5ba9cda613 | [] | no_license | houhailun/leetcode | 5a2e8a5a23b3a63f1a32a39b42bf195861292d70 | 1ca58b87e5edfa8db389f14e3a9105e92b4ae85f | refs/heads/master | 2021-06-11T08:17:45.506361 | 2021-03-30T02:22:24 | 2021-03-30T02:22:24 | 158,809,894 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | #!/usr/bin/env python
# -*- encoding:utf-8 -*-
class Solution(object):
def strToInt(self, str):
"""
:type str: str
:rtype: int
"""
if not str:
return 0
str = str.strip()
res = ''
flag = ''
for i, ch in enumerate(str):
... | [
"houhailun@126.com"
] | houhailun@126.com |
245153fb6f9a6d98014a1e9e0f76d395e6fe0cf6 | f5625da9dd2f2f485c5be71ca578c5c2349d491c | /clientes/migrations/0001_initial.py | 6cb9bc3f3168b97889183c2c18684106867bfaac | [] | no_license | PinneappleTech/api-loja | 3a3035a88096f0d93e9f7a83c57324be7ff99971 | 9e93603dffc186ec11503df550e2ae41a1c5fcfe | refs/heads/master | 2022-12-22T10:44:23.449671 | 2020-09-26T18:16:52 | 2020-09-26T18:16:52 | 271,883,890 | 0 | 0 | null | 2020-09-26T18:16:54 | 2020-06-12T20:24:13 | Python | UTF-8 | Python | false | false | 2,038 | py | # Generated by Django 2.2.13 on 2020-06-14 23:45
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"christianoliveirati@gmail.com"
] | christianoliveirati@gmail.com |
71bae5b57bd978555acd8f94f55a75779c4e5c5a | a4e59c4f47873daf440374367a4fb0383194d2ce | /Python/129.py | 73d145f89ea0e90f96faa9bfc9b762b6c30ecb3d | [] | no_license | maxjing/LeetCode | e37cbe3d276e15775ae028f99cf246150cb5d898 | 48cb625f5e68307390d0ec17b1054b10cc87d498 | refs/heads/master | 2021-05-23T17:50:18.613438 | 2021-04-02T17:14:55 | 2021-04-02T17:14:55 | 253,406,966 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def sumNumbers(self, root: TreeNode) -> int:
return self.pathsSum(root, 0)
def pathsSum(self, node, pathSum):
if no... | [
"tvandcc@gmail.com"
] | tvandcc@gmail.com |
46a9b73b216d552301303aa6213244c41530d272 | 3f4ecca0d27acff484c9ff267c85bf90de7fd26a | /automation/Reconstruction/VisualSFM_Stub/convert_to_km.py | a5437fb1ffbc4573e04b0d6ff37e6e03021fd281 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | calizarr/PhenoPiSight | c22cce9f877ed10b8f0e56b677d1b605cbec2b78 | 9ee01dfa5e11a16e43ae1c71f1effcf58f22435a | refs/heads/master | 2021-10-20T21:43:27.174731 | 2018-03-19T23:02:39 | 2018-03-19T23:02:39 | 56,785,696 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | #!/env/bin python
filename = "vsfm_cm_dim_1D.gcp"
with(open(filename, "r")) as fn:
content = fn.readlines()
for line in content:
lst = line.strip().split()
lst[1] = str(round(float(lst[1]) + 1006290000, 2))
lst[2] = str(round(float(lst[2]) - 467520000, 2))
lst[3] = str(round(flo... | [
"calizarr@gmail.com"
] | calizarr@gmail.com |
bff7121aa75e1962699fb4d3c932d756eee4998d | 23f0c0971249c1d32154f2a1e583aaa2a6add6f4 | /main.py | 7f8ae84d2d4539e10fb85f7d7606d48ef773d0ed | [] | no_license | bryansha/testpython | 68ab29728c7b90d26fdf48b3d72fb8978dc826c9 | 02a61b259d780f5d16ab6c7b3f197e8b9ea966c6 | refs/heads/master | 2020-08-06T09:44:12.917377 | 2019-10-20T02:07:32 | 2019-10-20T02:07:32 | 212,929,869 | 1 | 0 | null | 2019-10-20T02:07:33 | 2019-10-05T01:53:45 | Python | UTF-8 | Python | false | false | 45 | py | test = input("what is this? ")
print ("nice") | [
"30011082+bryansha@users.noreply.github.com"
] | 30011082+bryansha@users.noreply.github.com |
b1c175946b13f6e1a1d34e00cfd67af5509ab0c9 | f08966948513371ed743782a271f1d50cd4ca7f8 | /page/h1/migrations/0001_initial.py | 84f0653890dda35d85c87540ae97750fb6172fc7 | [] | no_license | mj-mrowiec/djangostart | 73b02eb548e4b336e3f0509efd6c9124f04648ec | 2031a2205ca9c6eff5a11542188d94c0fcbb0942 | refs/heads/master | 2022-11-19T09:09:41.546649 | 2020-07-16T19:28:56 | 2020-07-16T19:28:56 | 261,537,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # Generated by Django 3.0.6 on 2020-05-12 19:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Products',
fields=[
('id', models.AutoField... | [
"mjmrowiec@gmail.com"
] | mjmrowiec@gmail.com |
02dd44f332501940be487fedecd01bc3e5b63f57 | c1d0dd3ff5ce828c574e6ee70d8fb4c84e80c4f0 | /exercise6.py | cf786602beb162c6ab2072c22f3b48eeb908f2fc | [] | no_license | bachns/LearningPython | a458601a38ccd689a6931dfdba2c56889ec7f82a | 37975414fb409d28620235f8dabff50c18aeae6c | refs/heads/master | 2020-06-01T23:03:53.456624 | 2019-07-02T07:57:27 | 2019-07-02T07:57:27 | 190,960,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # Write a Python program which accepts a sequence of comma-separated numbers
# from user and generate a list and a tuple with those numbers.
# Sample data: 3, 5, 7, 23
# Output:
# List: ['3', ' 5', ' 7', ' 23']
# Tuple: ('3', ' 5', ' 7', ' 23')
numbers = input("Enter sequence of comma-separated numbers: ")
list = numbe... | [
"bachns.dev@gmail.com"
] | bachns.dev@gmail.com |
4cdd42d03b2bd76ba7a3d4163a005f172e46d917 | 48259f77d8b51b795147c05f186ca8e75581521d | /test2.py | 07f2eaee3ad61dc784c81966dd5acf541d2f2e4a | [
"Apache-2.0"
] | permissive | mukilan88/stack-scrape | c6b0e75e43c62e4dc1060c2eb9b0d1a876b81464 | 841687e1a2bf74cc1d86f420b79d55d9639db6a6 | refs/heads/master | 2020-09-08T02:24:57.939768 | 2019-11-19T13:21:54 | 2019-11-19T13:21:54 | 220,984,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | # header file imported
from bs4 import BeautifulSoup
from selenium import webdriver
import pandas as pd
# path = path of the chrome drive from the folder and r is raw file
path= r"C:\\Users\\Jothi\\Desktop\\Mukilan\\chromedriver\\chromedriver.exe"
driver = webdriver.Chrome(executable_path = path)
# creating a file na... | [
"hca.try@gmail.com"
] | hca.try@gmail.com |
467792315c48414eeb4fae9e07b3051262869d86 | 756a833d2752cff341525b4d298a468a95039dd6 | /Practicas 3/Practica rest_framework/DBZ/Ki/api/urls.py | efad7d6a21253d78fddfe3f89ad6c5676ac72471 | [] | no_license | DavidGarcia72/PracticasPhyton | 44552688ae5de9809c5f7b889296c571c8f27d8e | 68c1c0bbd5934d03d8fef196fbdde90ff570a69f | refs/heads/master | 2020-03-28T02:36:24.874254 | 2018-12-08T01:02:42 | 2018-12-08T01:02:42 | 147,583,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py |
from django.urls import path
# from home import views
from Ki.api import views
app_name="api_ki"
urlpatterns = [
path('list_tweet/',views.ListTweetAPIView.as_view(),name='listAPI_view')
]
| [
"noreply@github.com"
] | DavidGarcia72.noreply@github.com |
700274e9d3c8fde164223e060e3ab756b02ff229 | 8e1eb3c9301877e45d755c2e12f5d1d5de397939 | /spider.py | c6c77878477ce50fb0c5a777a62e8251d270554f | [] | no_license | FrankChe/Spider_DUT | ebac23a08c0b370c1a8d1ee23b380e4ac077485e | 1e13e07eefbe6f12032fc492967e2be6caaeaae0 | refs/heads/master | 2020-06-02T04:35:59.876887 | 2015-08-13T10:03:10 | 2015-08-13T10:03:10 | 40,461,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,871 | py | # -*- coding: utf-8 -*-
__author__ = 'chexiaoyu'
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import urllib
import urllib2
import cookielib
import re
from pyquery import PyQuery as pq
import getpass
import time
#DUT计算绩点
#项目存在的问题:由于大连理工大学教务处的网站的成绩查看页面是JS产生的,Url中最后一个参数是通过js动态产生的,目前不是到应该如何解决该问题。
class DUT:
... | [
"chexiaoyu@haizhi.com"
] | chexiaoyu@haizhi.com |
e1ba925a4435f433489b2055d93863fc11d8fbdc | dea198896f679e577a3fd0923e3fa4470da4b9cc | /journal/pyfakefs_mutants/BOR_BitOr_mutant_1507055613.py | 24e4baeeed3757779ce893133b9ecc68ff79cce6 | [] | no_license | naustarg/cbmcmutate | f138ab2b04b4be70d735de90815ac670ae6042ce | a6ee6fd395338bb2dfd6bdffabb2dc484cb303f1 | refs/heads/master | 2020-04-04T08:10:15.913309 | 2018-05-21T18:23:58 | 2018-05-21T18:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219,331 | py | # line: 91
'A fake filesystem implementation for unit testing.\n\n:Includes:\n * FakeFile: Provides the appearance of a real file.\n * FakeDirectory: Provides the appearance of a real directory.\n * FakeFilesystem: Provides the appearance of a real directory hierarchy.\n * FakeOsModule: Uses FakeFilesystem to pr... | [
"agroce@gmail.com"
] | agroce@gmail.com |
b38817766b89821af82682c902835de7d8f40f4e | 5900fed6bded365e269502dc4a460b29405412c9 | /Common/typeguard.py | d94868d91d241c80bc5e37317141a6d0f63ecfd5 | [] | no_license | feliciazhang/tsuro | 4e0435dd17674e7088c1bf329dcc2bfb25a93436 | 842de3ad7f3eb869ed1e8cfcf94033ccce38baf7 | refs/heads/main | 2023-03-31T22:26:06.612294 | 2021-04-07T20:15:47 | 2021-04-07T20:15:47 | 355,670,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,846 | py | """
This file is vendored from https://github.com/agronholm/typeguard
In this file we made a few changes (review the git history for exact diffs):
* Add support for `typing_extensions.Literal`. This library only supported `typing.Literal`
which is not available in python3.6.
* Always guess at forward references rath... | [
"zhang.fel@northeastern.edu"
] | zhang.fel@northeastern.edu |
3d1a809c6c4500d274f3fed38d2e4329ad8d8fd1 | 5d5e1f6d4f2ef1bd516b096c5219d5c696c12dfd | /sloth/core/labeltool.py | 76ca3a7881846ae3d3405023b0e4405c92d4fd8e | [] | no_license | WJtomcat/MySloth | caf1dc4227f1272ba0660290312a99ba19fa67cf | 28807745e58c2bb3dcc9496a6ffe7ea4cfce7641 | refs/heads/master | 2021-09-08T04:30:27.955337 | 2018-03-07T02:11:57 | 2018-03-07T02:11:57 | 109,780,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from PyQt5.QtGui import *
from PyQt5.QtCore import *
from sloth.gui.labeltool import MainWindow
class LabelTool(QObject):
def __init__(self, parent=None):
QObject.__init__(self, parent)
self._mainwindow = MainWindow(self)
self._mainwindow.show()
| [
"wangju_cn@163.com"
] | wangju_cn@163.com |
35b0b17ca058a4213445abfdb3222aa67dceb8e9 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/carbonui/camera/behaviors/cameraBehavior.py | 0e12ce3324f0f6b154ae49f02a86cd143e92084a | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | #Embedded file name: carbonui/camera/behaviors\cameraBehavior.py
"""
Simple base class for camera behaviors.
Contains base functionality and Corified versions of common functions needed.
"""
class CameraBehavior(object):
__guid__ = 'cameras.CameraBehavior'
def __init__(self):
self.gameWorldClient = sm... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
75fb1a637548f775e450421fd7ced33fb2ee8d3d | be6338ad65cdf46931c02816d5d074c07e10a878 | /Practice/ProjectEuler/Problem6.py | 868eac39077ac2455cddfa6e565f59fef8483d52 | [] | no_license | sny-tanaka/practicePython | 89f7d6c341ebf4241c0e5c0ef26de131a2720995 | 98907074ba8244ff523780eb9065e4899d2b8163 | refs/heads/master | 2022-01-15T09:37:16.569366 | 2021-12-31T10:14:35 | 2021-12-31T10:14:35 | 125,780,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | '''
最初の10個の自然数について, その二乗の和は,
1^2 + 2^2 + ... + 10^2 = 385
最初の10個の自然数について, その和の二乗は,
(1 + 2 + ... + 10)^2 = 3025
これらの数の差は 3025 - 385 = 2640 となる.
同様にして, 最初の100個の自然数について二乗の和と和の二乗の差を求めよ.
'''
#二乗の和
def sum_of_square(n):
s = 0
for i in range(1, n+1):
s += i * i
return s
#和の二乗
def square_of_sum(n):
... | [
"s05.t12.030@gmail.com"
] | s05.t12.030@gmail.com |
846c9fbdef43172258524dd78cf06a2b7b570b55 | f39c0056abbc178579d37f6b36a905d55c7cbae9 | /log/__init__.py | 1cb629d1c98b697ea834557c6c98a048727132a3 | [] | no_license | Paul-Michaud/elo | 41cdadd61b262efb333555db1169098d9360e618 | 338ee27f3a045f6c736af733402d4bb1fa3ee34a | refs/heads/master | 2022-01-12T00:09:50.600579 | 2019-04-30T19:42:22 | 2019-04-30T19:42:22 | 184,308,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | """
Custom Logging
"""
from .log import logger
| [
"paul.du56@gmail.com"
] | paul.du56@gmail.com |
c8dd68af4b22458adfed98f16219e4ab50e39b6b | adad318902262dffa68023ef1be3f9290d6b7ded | /ppci/irutils/io.py | c0d177ba761e624bff0dc95c3391b99b4100b7bb | [
"BSD-2-Clause"
] | permissive | ForceBru/ppci | e2324b772ed7486f1154bbf85c3a4469515059ab | 7bca8fa0c7adce37c62716186c786ce5cbd9d189 | refs/heads/master | 2022-11-07T19:18:11.907546 | 2020-06-24T12:38:12 | 2020-06-24T12:38:12 | 271,379,816 | 0 | 0 | BSD-2-Clause | 2020-06-24T12:38:13 | 2020-06-10T20:35:58 | Python | UTF-8 | Python | false | false | 23,140 | py | """ Module to serialize and deserialize IR-code.
Take an IR-module, and turn it into a dict or json.
Then, this item can be persistet or send via e-mail.
Next up, take this dict / json and reconstruct the
identical IR-module from it.
This can be useful in these scenario's:
- Compilation caching: store the IR-code an... | [
"windel@windel.nl"
] | windel@windel.nl |
f9a3efbbcda797b37945644319f4b1c6d7fa59ca | 8afc3a05d68f85696c145d21cc228fa40f63003b | /conversionrefactored.py | d033a114af961758af2df75f96475d72d6fe0eea | [] | no_license | jf4rr3ll/IS211_Assignment6 | 478769bfda0e953f88904d854abc48df6d4bb1bb | 9eab88444af8055be38cd40f99d072a52b83adfe | refs/heads/master | 2021-01-12T13:00:54.953501 | 2016-10-11T00:08:31 | 2016-10-11T00:08:31 | 70,111,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test functions"""
import conversion
def convert(fromUnit, toUnit, value):
fromUnit = fromUnit.lower()
toUnit = toUnit.lower()
temp = ['celsius', 'fahrenheit', 'kelvin']
dist = ['meters', 'miles', 'yards']
tempfuncs = [conversion.celsius_to_fahrenhe... | [
"jf4rr3ll@gmail.com"
] | jf4rr3ll@gmail.com |
b16a7d2303c6584ceaae6c79e8bd71faad1e197f | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/py2/toontown/effects/FireworkSparkles.pyc.py | 7c201e409d069ab5b1d3220e537f0c082007c3e2 | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,693 | py | # 2013.08.22 22:19:53 Pacific Daylight Time
# Embedded file name: toontown.effects.FireworkSparkles
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.particles import ParticleEffect, Particles, ForceGroup
from EffectController import EffectController
from PooledEffect impo... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
2f4db38a3a1591db3042a3d16dbd30478a312b0e | 07b37ca45d38edea112895049acf76d96ff07eff | /3.Processing&UnderstadingText/recommended_dependency_parser.py | 2ced66cfba94395977f015428833ccba515d6df6 | [] | no_license | KRBhavaniSankar/NLTK | e335944de346be72a01c92221b0bf58d85475fb9 | 4b228338566996fbccee72cb6afaa199a6496787 | refs/heads/master | 2020-03-12T23:03:59.981112 | 2018-05-11T01:15:28 | 2018-05-11T01:15:28 | 130,858,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py |
sentence = 'The brown fox is quick and he is jumping over the lazy dog'
#Load dependencies
from spacy.lang.en import English
parser = English()
parsed_sent = parser(unicode(sentence))
print(parsed_sent) ,type(parsed_sent)
dependency_pattern = '{left}<---{word}[{w_type}]--->{right}\n--------'
for token in parsed_se... | [
"krbhavanisankar@gmail.com"
] | krbhavanisankar@gmail.com |
c88fa98dd0e0537d0e55bc7c506d2e699dbb8f03 | ec6515f0deca115cda0163d6efd3b69ac877b1c6 | /venv/bin/pip3 | 012f3f3b24bfa8794baf177dc086edbead6d5c41 | [] | no_license | tatsunorijp/TrabalhoSHM | 77d77a16af6d1fc26e8d5d282f96caa688f963e8 | ed7c8f22434b007739c9066b8b145cbf28a11075 | refs/heads/master | 2020-05-29T20:41:25.246401 | 2019-06-06T23:38:02 | 2019-06-06T23:38:02 | 189,344,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | #!/Users/tatsunori/PycharmProjects/TrabalhoSHM/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"tatsunoripai@gmail.com"
] | tatsunoripai@gmail.com | |
f73cc0c41be3afa6673f0ee927aad9ee826ffacb | 4da38e659c5390d7b86ca69674729e346770d3b1 | /Tests/test_Population_Sampling.py | d8a4e91e75883d6b9c79306e5d99014d092ef3a8 | [
"MIT"
] | permissive | meahesachin/statscalc | 586838461e91121ca348334297cada052ad870b2 | 431b39299494d9188848f2829e7269e385612d89 | refs/heads/main | 2023-01-09T12:48:52.223466 | 2020-11-10T00:31:33 | 2020-11-10T00:31:33 | 309,814,968 | 0 | 1 | MIT | 2020-11-10T00:31:34 | 2020-11-03T21:47:10 | Python | UTF-8 | Python | false | false | 1,054 | py | import unittest
from Calculator import calculator
from pprint import pprint
from Statistics.populationsampling import PopulationSampling
import random
class PopSamplingTestCase(unittest.TestCase):
def setUp(self) -> None:
self.populationsampling = PopulationSampling()
def test_instantiate_populationsam... | [
"mb535@njit.edu"
] | mb535@njit.edu |
b3d32d101d268acb425dad293bb7d7ad398883e8 | 7722ab888cdc815524566351f24412d9909a6031 | /pyotda/build/lib.linux-x86_64-3.7/ot/lmnn.py | 1be95b84aae67896a0441c6e57ec463c72d31d7b | [
"MIT"
] | permissive | mfouda/MLOT | c42bdf9ccc9dbf693098c3a70cb65c901534e8e7 | 87623294c49cece089bc21aa0e90b6ad735621a9 | refs/heads/master | 2022-11-03T18:35:10.812315 | 2020-06-09T09:28:58 | 2020-06-09T09:28:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,642 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Distance metric learning for large margin nearest neighbor classification
# Kilian Q.Weinberger, Lawrence K. Saul
# Journal of Machine Learning Research
# 2009
from sklearn.utils.validation import check_array
from sklearn.utils.validation import check_random_s... | [
"tanguy.kerdoncuff@univ-st-etienne.fr"
] | tanguy.kerdoncuff@univ-st-etienne.fr |
78fc991a1014c50f1012814c34bcd40c58596c95 | 1a194118c60a22b0b4e039e3949403d00b2df8ea | /others/find_planned_roll.py | 3083ee0ac915357f643152f702fcf8eb5377049f | [] | no_license | tisobe/Ocat | 645e62cbd05a4b050c6ca45966271e4108d2fe74 | a1d66ee8163f73a23ce3964f1347365c8a4e36ae | refs/heads/master | 2020-12-24T06:47:07.753060 | 2016-11-17T18:24:54 | 2016-11-17T18:24:54 | 73,399,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | #!/usr/bin/env /proj/sot/ska/bin/python
#############################################################################################################
# #
# find_planned_roll.py: find roll angle and the r... | [
"isobe@head.cfa.harvard.edu"
] | isobe@head.cfa.harvard.edu |
d018f1d0babe1ace6fc29381446346cddfd4e2a2 | 39e1320c74bcf0bbebb855645b4f538e9ef361f4 | /src/genui/projects/models.py | 352d603101f8e355490bba68659b5203e196e5ba | [
"MIT"
] | permissive | Tontolda/genui | 4c684e08e78b848e5afa7e4333bbea46c30d9d51 | c5b7da7c5a99fc16d34878e2170145ac7c8e31c4 | refs/heads/master | 2023-04-14T12:57:31.774323 | 2021-01-29T08:01:30 | 2021-01-29T08:01:30 | 344,443,814 | 0 | 0 | NOASSERTION | 2021-04-24T14:56:35 | 2021-03-04T11:00:54 | null | UTF-8 | Python | false | false | 2,454 | py | from django.conf import settings
from django.db import models
from polymorphic.models import PolymorphicModel
from abc import ABCMeta, abstractmethod
from django.utils import timezone
class PolymorphicAbstractModelMeta(ABCMeta, type(PolymorphicModel)):
pass
class PolymorphicAbstractModel(PolymorphicModel):
_... | [
"sicho.martin@gmail.com"
] | sicho.martin@gmail.com |
4324a32d19079bf790c5cf6c5bc8e545a8d1107f | 27bac30d486816b45ef679319c2e62a4d52bbb76 | /accuracy.py | b3574bcf486600105d72b632e75f49428fc37baf | [] | no_license | wabyking/unipd-DIACR-Ita | 283f94f9ddf880b190a85045c46c95d879ee2cdb | c25540943031538cbb569c4771c7b6cdefc9408c | refs/heads/main | 2023-02-06T21:37:10.735918 | 2020-12-10T05:15:24 | 2020-12-10T05:15:24 | 309,956,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | import sys
import os
from sklearn.metrics import accuracy_score
def main(truth, submission):
D_truth={}
D_submission={}
with open(truth,"r",encoding="utf-8") as f:
for line in f:
line=line.split()
D_truth[line[0]]=int(line[1])
with open(submission,"r",encoding="utf-8... | [
"810553967@qq.com"
] | 810553967@qq.com |
da4a32962100827a0d1787dccf3a4722e5168197 | c7bde9b78057cc60c9ccd03145b5baf55284c875 | /blah.py | 356e579ee69aaab75cf027fcac689390897a3106 | [] | no_license | sseaver/tic_tac_toe | cb38f1cd11d879ee94eb91fbcd9b40a5736aaea8 | 7607123435419b0862d7e36373263f3592eeca9e | refs/heads/master | 2021-01-17T19:13:53.498545 | 2016-09-21T21:58:10 | 2016-09-21T21:58:10 | 68,764,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py |
def winning():
column_zero = [row[0] for row in game_matrix]
column_one = [row[1] for row in game_matrix]
column_two = [row[2] for row in game_matrix]
if column_zero == ["X", "X", "X"]:
return True
print ("X has won the game!")
elif column_zero == ["O", "O", "O"]:
return Tru... | [
"sseaver321@gmail.com"
] | sseaver321@gmail.com |
70b09e5245552f40904f0ac5b1dabf0e8ef879b3 | 341bd2d71b6b6e3af734f16989aeb450e3e73624 | /HMC6343A.py | 5c8c749d819dc0cab48d0b18bb3f51cb5f52419b | [] | no_license | ControlEverythingCommunity/CE_PYTHON_LIB | 5c170f7e3763ab3b160a5fc33f2bb96d4798c7e2 | 736b29434a451a384c2f52490c849239c3190951 | refs/heads/master | 2021-01-12T00:39:25.374689 | 2017-08-30T21:54:47 | 2017-08-30T21:54:47 | 78,751,564 | 7 | 7 | null | 2017-12-15T11:08:48 | 2017-01-12T14:05:11 | Python | UTF-8 | Python | false | false | 4,911 | py | # Distributed with a free-will license.
# Use it any way you want, profit or free, provided it fits in the licenses of its associated works.
# HMC6343A
# This code is designed to work with the HMC6343A_I2CS I2C Mini Module available from ControlEverything.com.
# https://www.controleverything.com/content/Acceloromet... | [
"ryker1990@gmail.com"
] | ryker1990@gmail.com |
31258350066a3ecbe1b2c5fa7339afa8bbaded0a | 6d8b23c419de95073b2205207bbbc3cd5f7c51fa | /Monterrey/ANN_output/20-06-2019_15-36-06/model_formulation.py | 861ad3361e6f8af8fa58206fdc2d9651800f1b3d | [] | no_license | gucoloradoc/AQForecasting | 947a3c10adb71e3266ad5c63d700b9d9e62a8c3f | 18d4ef8084adcdbf36903d13bdc6515aec13b00b | refs/heads/master | 2022-01-19T00:34:42.252736 | 2019-06-29T16:43:50 | 2019-06-29T16:43:50 | 190,243,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,619 | py | #%% Libraries needed for model formulation
#pylint: disable=no-name-in-module
from tensorflow import keras
from sklearn import metrics
import numpy as np
import pandas as pd
from datetime import datetime
import os
import sys
import shutil
#%% creating folder to save outputs
out_path="Monterrey/ANN_output/"+datetime.no... | [
"zurjak88@gmail.com"
] | zurjak88@gmail.com |
7c3c6cbf803a00ea766c4754e34c13afd97ebbc4 | e3d5a089bc65d038fd3aaa6055df72708cc7dc8e | /face1.py | 143d90fd9fd623b6267b4c4a5444d35d3d02b037 | [] | no_license | Nidhishenvi/minorProjectFaceRecoginition | 7cf1c8b8281b28ba0cd738dff8a62a917eb6623b | 4700d712adb12b66a13fde78a5b95728da58d610 | refs/heads/master | 2022-11-20T19:30:12.916293 | 2020-07-21T15:19:38 | 2020-07-21T15:19:38 | 281,432,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | import numpy as np
import cv2
import pickle
from twilio.rest import Client
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
recognizer = cv2.face.LBPHFaceRecognizer_create()
recognizer.read("trainer.yml")
labels={"person_name":1}
with open("labels.pickle","rb") as f :
og_labe... | [
"shenvinidhi@gmail.com"
] | shenvinidhi@gmail.com |
2b14157940ef5363d69a24f849c13c308f832d8e | 1d22535d457e7ee53b0916cc75038412d5e263f9 | /bluecollarbi/bin/markdown_py | 07ca9dee434bb41251a934e59c47dc24799240c8 | [
"MIT"
] | permissive | rencesar/BlueCollarBI | fa15bb0283fa3ae3eea46fe0777402f25d0c5403 | 2cdf71ef15124855baee6c6e69101f36369c9922 | refs/heads/master | 2020-04-03T01:11:49.512419 | 2018-10-10T03:31:39 | 2018-10-10T03:31:39 | 154,923,333 | 0 | 0 | MIT | 2018-10-27T03:48:00 | 2018-10-27T03:47:59 | null | UTF-8 | Python | false | false | 1,052 | #!/Users/Drake/dev/bluecollarbi/bluecollarbi/bin/python3
"""
Python Markdown, the Command Line Script
========================================
This is the command line script for Python Markdown.
Basic use from the command line:
markdown source.txt > destination.html
Run "markdown --help" to see more options.
... | [
"louddrm@gmail.com"
] | louddrm@gmail.com | |
f78595d08444277cfc35c1fa5eacd1048b5960d6 | 27c5592ea0df177a697750b092b8aff48a02b4d0 | /tests/test_parser.py | 50d39ff584657a2829eeb1d29ccfbaa32de9071c | [
"MIT"
] | permissive | b3b/ipython-restmagic | 8ca009dd3f2c016a20edf27ab7eb73f425b91ff6 | 6d7665374d97239acdeccd86cb92289aab7660d9 | refs/heads/master | 2021-11-24T08:56:17.694263 | 2021-05-16T18:15:18 | 2021-05-16T18:15:18 | 147,660,884 | 6 | 1 | MIT | 2021-11-08T18:31:04 | 2018-09-06T11:02:59 | Python | UTF-8 | Python | false | false | 8,811 | py | import pytest
from restmagic.parser import (
ParseError,
RESTRequest,
XPathParser,
ResponseParser,
UnknownSubtype,
expand_variables,
parse_rest_request,
parse_json_response,
remove_argument_quotes,
)
from .utils import response_with_content
@pytest.fixture
def json_response():
... | [
"ash.b3b@gmail.com"
] | ash.b3b@gmail.com |
fd8b773813e15c6655ea2f1fa0dd72bbe07d2e9c | 2d5171ac7f2640ed73b48aebf4b96e29d5cad818 | /ABC164/D.py | 1d6040a7c8e43dbb4d68df474ac22cf5856aacee | [] | no_license | kentahoriuchi/Atcorder | d7b8308424175f32d47f24bb15303695780e1611 | f6449d4e9dc7d92210497e3445515fe95b74c659 | refs/heads/master | 2023-06-06T09:26:46.963642 | 2021-06-13T15:08:04 | 2021-06-13T15:08:04 | 255,396,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | S = input()
count = 0
l = [0]*2019
l[0] = 1
mod = 2019
tmp = 0
for i in range(1,len(S)+1):
tmp = (tmp + int(S[len(S)-i])*pow(10,i-1,mod))%mod
l[tmp] += 1
for j in range(2019):
if l[j] >= 2:
count += l[j]*(l[j]-1)//2
print(count)
| [
"dorahori_108@yahoo.co.jp"
] | dorahori_108@yahoo.co.jp |
9b05da4aa7783cdfdcd7b9c1c3d6d21427abc5e7 | 98e78a6481330d1eb4afcd706cabecea712c33bc | /psnr.py | 92aa921f0113d76ca5cedc11a603441cd002140d | [] | no_license | zampie/Animation-standing-segmentation | 9b08df4dbab1fb14f7c1c1da1e5464afa9f9bd3c | 2d7b8b75a49bd34fd13a3cf3632e58c3a4ba36df | refs/heads/master | 2020-09-28T18:17:22.872940 | 2019-12-09T11:19:17 | 2019-12-09T11:19:17 | 226,833,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | import math
import numpy as np
from PIL import Image
import math
import cv2
import skimage
# img_A = '立ち/イージス/基本.png'
# img_B = '立ち/イージス/全裸.png'
img_A = '016400_data_A.jpg'
img_B = '016400_data_B.jpg'
img_A = Image.open(img_A)
img_B = Image.open(img_B)
img_A = img_A.convert('RGB')
img_B = img_B.convert('RGB')
# --... | [
"zampielzp@gmail.com"
] | zampielzp@gmail.com |
a1453f77a8fd8eb705cbce7eeabba2f607626caa | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/prb_control/entities/sandbox/pre_queue/ctx.py | 72525ca7d0d926af5be80b5ae0c31108efc663d7 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,055 | py | # 2017.08.29 21:45:38 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/prb_control/entities/sandbox/pre_queue/ctx.py
from constants import QUEUE_TYPE
from gui.prb_control.entities.base.pre_queue.ctx import QueueCtx
from gui.shared.utils.decorators import ReprInjector
@ReprInjector.withParent(('getVe... | [
"info@webium.sk"
] | info@webium.sk |
dc008e87ae658cad49b083987d13d00f12b92284 | 986eac22aaac1762a2ccc1c6faa09a283cad1245 | /imdb/views.py | 3005d44e98e9926bb8542e91d35a9254712d018f | [] | no_license | Fuzail96/fynd | 582d2311cd182573049b98e2d3048ea66269cedb | aebaa39badad16fb51c52e8c0eba340f0afb237a | refs/heads/main | 2023-04-26T06:55:35.299658 | 2021-05-09T10:13:22 | 2021-05-09T10:13:22 | 365,524,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,587 | py | from rest_framework.response import Response
from django.db.models import Q
from .models import Movie, Genre
from .serializers import MovieSerializer
from . import docs
from django.views.decorators.csrf import csrf_exempt
from drf_yasg.utils import swagger_auto_schema
from rest_framework import status
from rest_framewo... | [
"fuzail@codewave.com"
] | fuzail@codewave.com |
27727ee760922c91f8eb67e3583f5896607d47b5 | cad85affff920480ea7df51c6caa96478133c4e9 | /NMC_sim/PSA/run_wnv_psa.py | 9f9c92b7b9ab88c632af3649fac35fe210cd626f | [] | no_license | altonrus/blood_safety_portfolio | 5095382d02e4e822b7198e6d66d225dbccd212e2 | d49a6cb5f8864b561ece9e610ce1eae8ba5b6dd3 | refs/heads/master | 2023-03-07T17:43:42.803844 | 2021-02-22T19:13:17 | 2021-02-22T19:13:17 | 272,998,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import os, sys, time
n_iters = 10000
n_jobs = 200
iters_per_job = n_iters/n_jobs
N_rep = 2000000
iter_start = 1
for job in range(n_jobs):
with open("PSA_WNV_%03d.sbatch" % (job), 'w') as f:
f.write("#!/bin/bash\n")
f.write("\n")
f.write("#SBATCH --job-name=PSA_WNV_%03d\n" % (job))
f.write("#SBATCH ... | [
"alton@LAPTOP-28UTSKNG.stanford.edu"
] | alton@LAPTOP-28UTSKNG.stanford.edu |
218d3ed1c58ad7f4bfc7b1ce49d8780eb94c0a57 | ab8a34e5b821dde7b09abe37c838de046846484e | /twilio/sample-code-master/api/v2010/authorized_connect_app/fetch-default/fetch-default.6.x.py | 511f053b487454f45e009737f2279a5ad002bea5 | [] | no_license | sekharfly/twilio | 492b599fff62618437c87e05a6c201d6de94527a | a2847e4c79f9fbf5c53f25c8224deb11048fe94b | refs/heads/master | 2020-03-29T08:39:00.079997 | 2018-09-21T07:20:24 | 2018-09-21T07:20:24 | 149,721,431 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
authorized_connect_app = cl... | [
"sekharfly@gmail.com"
] | sekharfly@gmail.com |
ff838d42226d27d960c29df551b9804f4672fa7b | a3b749c69f9ed3d10e1013754428b3a07ef49137 | /presupuestos/urls_presupuestos.py | 6fc26f4e85dda9c6aa5b0fe7ea4920f69b929b79 | [] | no_license | adrian052/SPSD | 7dd8b4aece3ad2e3ece34624f86d488c0f368dcf | f93dee58ada43abe0e3cc06ca3e4ef2d17006791 | refs/heads/main | 2023-05-27T16:40:09.995245 | 2021-06-08T22:32:59 | 2021-06-08T22:32:59 | 315,161,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django.urls import path
from presupuestos.views import lista_presupuestos, nuevo_presupuesto, \
eliminar_presupuesto, editar_presupuesto
app_name = 'presupuestos'
urlpatterns = [
path('lista/', lista_presupuestos, name='lista'),
path('nuevo/', nuevo_presupuesto, name='nuevo'),
path('eliminar/<int... | [
"vagrant@ubuntu1804.localdomain"
] | vagrant@ubuntu1804.localdomain |
ceed677c7860a45708530b8cfd78ba2844b2a644 | 2cdf45f74588f97436021176305ffaa924a4bd51 | /TheMainWindow_Controller.py | 5ea548ffeedc3ee4730826b4325b42fd4ec21c8f | [] | no_license | geomPhantom/PyQt-Vimeo-API-Task | f2b260452ef9b1d3b5e52be57c3ed593f4e37112 | 4e0a2ba574c063cbe473e1d5a9ceff7bfb0603fb | refs/heads/master | 2023-04-02T15:55:02.503172 | 2021-04-08T16:13:15 | 2021-04-08T16:13:15 | 355,940,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,044 | py | from PyQt5 import QtWidgets, QtCore, QtGui
from PyQt5.QtGui import QPixmap
import os
import requests
from cryptography.fernet import Fernet
import vimeo
import urllib.request
import TheMainWindow
from NewFolderWindow_Controller import NewFolderWindow_
from MoveVideoWindow_Controller import MoveVideoWindow_
from EditTit... | [
"51483763+geomPhantom@users.noreply.github.com"
] | 51483763+geomPhantom@users.noreply.github.com |
fc93a77f048adfe6f2ce5d1f161f8df8b430469f | 70370cf9e2ef9f64da042a92d1a14afd1d78d1fd | /test_/settings.py | e06f975ae33f96c42be0c25ccc42948764517804 | [] | no_license | Zhumatai-prog/test_ | b631356eb1a623cef5be5a863c2f951e3acdb24f | c7b576348810ca1c136e19130ec4046fa23d9444 | refs/heads/master | 2023-06-03T16:57:32.456888 | 2021-06-16T01:48:39 | 2021-06-16T01:48:39 | 377,332,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | """
Django settings for test_ project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib i... | [
"j131198@gmail.com"
] | j131198@gmail.com |
33a8d784d7f8f3deb7ad0658c87f075c88e9b9e9 | 6f2380fe4087783603a36ce966ab9b5e99ac4cbb | /webdemo/apps/gift/migrations/0003_auto_20190716_1538.py | 634d052e2155a50198d815572df360bde1dd7f74 | [] | no_license | zhlxcl/Python1904xcl | aab0d4989d9065bff5d5334a1a1e1188cbd3619d | f4cc21ed0fb6d40349490a084b983b4e897c8d91 | refs/heads/master | 2022-12-14T20:12:16.014524 | 2019-07-19T08:47:19 | 2019-07-19T08:47:19 | 194,625,840 | 0 | 0 | null | 2022-11-22T04:07:44 | 2019-07-01T07:53:59 | JavaScript | UTF-8 | Python | false | false | 818 | py | # Generated by Django 2.2.3 on 2019-07-16 07:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gift', '0002_member_status'),
]
operations = [
migrations.CreateModel(
name='Ads',
fields=[
('id', m... | [
"2870175885@qq.com"
] | 2870175885@qq.com |
58cf0834f823dd0d8a8bd8bf7a9e75ff3fd5d662 | 7485a3de7e461f84382d9713aefe6b3860871dff | /roteiros/roteiro 4/rot4ex4.py | c06441dfc7a2dc735dd9e44eab56e62d689d2520 | [] | no_license | davidpvilaca/prog1 | 816670e65976ea20dcbe1d20f11b65c6722a989f | 36959a0b26689b13109e39af206c3f7fd01ca9a8 | refs/heads/master | 2016-09-06T02:46:45.174323 | 2015-05-27T21:25:18 | 2015-05-27T21:25:18 | 27,457,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # DAVID VILAÇA
# 26/11/2014
# EXERCÍCIO 4
import turtle
#recebe um parametro inteiro
#retorna um desenho na biblioteca turtle
def f_lados (x):
#variaveis internas
ze = turtle.Turtle(); n = 0; i = 0
ze.speed('fast')
n = 360/x
for i in range(x):
ze.forward(n)
ze.right(n)
return (turtle.done())
def ... | [
"davidpvilaca@hotmail.com"
] | davidpvilaca@hotmail.com |
dbdf959fef97ff0fd75cae317aef2107ff37c098 | 887618c9a069fb996bda9cc5dd4749406b21abb5 | /rew.py | aef137a6ae9497606e1ef5dbd6ad2064de8a39b1 | [
"MIT"
] | permissive | AlexPl292/rew | e138636866c41951879e1a082270b4a3cf059894 | aa45c2a44aa2dbeb1f62521fbf7c8ae1f9bd9685 | refs/heads/main | 2023-04-19T09:19:20.191706 | 2021-05-08T21:16:35 | 2021-05-08T21:16:44 | 365,564,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | #!/usr/bin/env python
import subprocess
import sys
from pathlib import Path
def main():
command = sys.argv[1:]
command.insert(0, "brew")
result = subprocess.run(command)
return_code = result.returncode
if return_code != 0:
return
if len(command) <= 1:
return
if command... | [
"AlexPl292@gmail.com"
] | AlexPl292@gmail.com |
0615cccaa29d7378c2edef98d3e1ab29fa9a44ba | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/HanoiDocumentsGetRequest.py | a8388d7a45fc9eab1cb0d78258a5e7a11749c1d2 | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class HanoiDocumentsGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.code = None
self.current_page = None
self.id = None
self.name = None
self.p... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
6ea4fb9c6455a858013bd542634687b28ef21118 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1CM1g1o9RKDdtDKgcBWE59X2KgTc2TcYtC_alpha.py | 7fd7dede51a72fd1062c3b8743dc3d392f7fa5e8 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,160 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1CM1g1o9RKDdtDKgcBWE59X2KgTc2TcYtC_alpha(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
70fe5c456b42dd78f15685e9e182b6cacfd37304 | 8655ca251a952f3e371d8ea73150dbbb01fccd35 | /第二章/2-3.py | 7c6e01c87b4b4da2dfc47fa4c8c09de05a55f66e | [] | no_license | Alexno1no2/algorithm-python | 5809a94779dad1ae9ac4fbe94fe5483950690828 | 421a2e8a5bbf00acaa7b2fda9ed531a1b4948aab | refs/heads/master | 2022-09-02T09:32:33.686272 | 2020-05-23T15:56:11 | 2020-05-23T15:56:11 | 265,877,782 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | ListValue = [1,5,6,2,4,3]
ListPointer = [3,2,-1,5,1,4]
head = 0 #head是指向链表第一个元素的指针,需要自己定义
print(ListValue[head]) #直接输出第一个元素的值
next = ListPointer[head] #给next赋初始值
while next != -1: #next是指向下一个元素的指针,不等于-1代表后面还有元素
print(ListValue[next]) #输出下一个元素中存储的值
next = ListPointer[next] #把指针变为下一个元素中存储的指针 | [
"limengxiong@foxmail.com"
] | limengxiong@foxmail.com |
6dde338bcc7fddaae949b9729cc251a9894a4ea9 | dfa77374ba7f3f8bf7965e646527dedc622085d7 | /gcastle/castle/algorithms/gradient/dag_gnn/torch/utils/__init__.py | ec03d569f9032a54c2eb5a05fba3e6d671e7adca | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/trustworthyAI | 7aa72721df59c3c4f75b7b9a037c5b71fb1284a1 | 238cbc41865ddf629bb6ae92c2e1445be27f98b8 | refs/heads/master | 2023-08-28T13:36:10.929075 | 2023-08-15T12:51:46 | 2023-08-15T12:51:46 | 248,501,097 | 832 | 206 | Apache-2.0 | 2023-08-15T12:51:47 | 2020-03-19T12:46:47 | Python | UTF-8 | Python | false | false | 17 | py | # coding = utf-8
| [
"zhangkeli1@huawei.com"
] | zhangkeli1@huawei.com |
c7bc909df2b9d50b6164a5a8acd7bc98138794af | dd86b578b14b71c704c5230568c11698d59151a7 | /accounts/admin.py | 0b9eb6ba7468e926fc705abe58aa196e3fdf7a67 | [] | no_license | rakeshsinghkushwah4/social | 19736ccc66a7af02044826dd3901c04d99828871 | 21498aa8e622f3ca7dcab38da1ec609f2d3db5dc | refs/heads/master | 2022-09-04T22:58:47.856609 | 2020-05-23T08:24:38 | 2020-05-23T08:24:38 | 266,294,365 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from django.contrib import admin
from accounts.models import profile
# Register your models here.
admin.site.register(profile) | [
"rakeshsinghkushwah09@gmail.com"
] | rakeshsinghkushwah09@gmail.com |
e3517cad4b4f26c368888c1a47a7f8f203e03a49 | ffc7d38c8952c3ec70607d649080baeb676171de | /ImageUploaderApp/migrations/0006_auto_20210514_1906.py | 49b3ebb6003e2cfe7eae1995f3659744ad19b931 | [] | no_license | justyna-eevee/ImageUploader | bfcaf460c1259fd1c95c3d06ea79300c1ed6e17c | 4994a18f61de915eb82e9610543a740a724ecc33 | refs/heads/master | 2023-04-24T12:00:06.010391 | 2021-05-16T13:10:07 | 2021-05-16T13:10:07 | 367,056,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # Generated by Django 3.2.3 on 2021-05-14 19:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ImageUploaderApp', '0005_alter_accounttype_types'),
]
operations = [
migrations.RemoveField(
mo... | [
"justyna.zaczyk@onet.pl"
] | justyna.zaczyk@onet.pl |
6fb4f0d13f849eb1b5e059fec7712d6d8c2ea181 | 8647d911c5a1b765f363c6d904923bfdd9035276 | /4.py | 0d2993fae7b0e616700256e8c21d30b624b7512f | [] | no_license | Thilagaa22/pythonsql | 693f334405d074deffb3dded33be32c2d6a05a49 | 41ef9ffac38adf9501be88e8d6881bc10ebaf37d | refs/heads/master | 2020-05-22T22:43:45.410818 | 2019-05-14T08:45:31 | 2019-05-14T08:45:31 | 186,551,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | s = input()
print(s+'.')
| [
"noreply@github.com"
] | Thilagaa22.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.