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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c3d4834bbc46156f17c4081635c11a08d327dd1 | 710e96b1435bc43cc260512df75af5dd3b2afd13 | /code/1044.py | 6b217c61734025d6ab42ff1303588769ee0ced7d | [
"MIT"
] | permissive | minssoj/Learning_Algorithm_Up | 94ca8166c9a5d87917cf033ad8415871684241c4 | 45ec4e2eb4c07c9ec907a74dbd31370e1645c50b | refs/heads/main | 2023-01-08T20:52:32.983756 | 2020-11-05T17:49:45 | 2020-11-05T17:49:45 | 301,926,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | # [기초-산술연산] 정수 1개 입력받아 1 더해 출력하기(설명)
# minso.jeong@daum.net
'''
문제링크 : https://www.codeup.kr/problem.php?id=1044
'''
n = int(input())
print(n + 1) | [
"minso.jeong@daum.net"
] | minso.jeong@daum.net |
8fa5e8e7b1fb0820c60a8b499bcdaf74e557bd2c | ee9910f736a28a229242247c15c8c3b53d0b4c04 | /TimeTracky/tests/unit/test_handlers.py | 746813f73b219dcea75181f6c9b44f44a83b0834 | [] | no_license | toadesina1/TA-Soft-engin | 85d3590fb8ed71fe6d9d2872af8f21fd9fcd30ae | 94c76a99e09d233ce11829c37c6a43809d605229 | refs/heads/main | 2023-04-15T17:39:04.506827 | 2021-04-23T19:42:37 | 2021-04-23T19:42:37 | 332,826,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,257 | py | from __future__ import annotations
from collections import defaultdict
from datetime import date, datetime, timedelta, timezone
from typing import Dict, List
import pytest
from timetrackylib import bootstrap
from timetrackylib.domain import commands
from timetrackylib.services import handlers, unit_of_work
from... | [
"noreply@github.com"
] | toadesina1.noreply@github.com |
e6389abc5d2da97c1d3db8c67355bd1223f92ff2 | 644ed18c5959b7633605db80e49a805adcac4eae | /Yolo.py | c170f99c083064525ec257e1eb1bdc8c28e4ac6c | [] | no_license | Shaileshraajk/Smart-Waste-Segregation-System-using-Python-and-ML | 7586e598d9e151353c7598694a600887daaaf986 | 2896f640137030ad16a781ccbaab7997a69fde81 | refs/heads/main | 2023-07-16T07:25:05.911955 | 2021-08-10T07:17:38 | 2021-08-10T07:17:38 | 394,559,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,029 | py | #Packages
import cv2 as cv
import numpy as np
import urllib.request
import threading
from pyfirmata import SERVO
import pyfirmata
import time
import paho.mqtt.publish as publish
obj=0 #No. of Objects
flag=0
j=0
k=0
bio=0 # No. of Biodegradable Objects
nbio=0 # No. of Non-Biodegradable Objects
# Rob... | [
"noreply@github.com"
] | Shaileshraajk.noreply@github.com |
fbd36cd5309b3248e8bf30b421adc6ce2092a674 | 6b46ffdb30a98b3e3f8da1e8f385522b5b48f02a | /backend/comment/models.py | 28fd8ca85a6046abe176cfb0e4da1efb5f701a61 | [] | no_license | eve-klopfenstein/luna | 27829f3a3c98368249f58c2b667fa339683bc3fd | 1b93c639618bfcc1c5c7feaa85627497b3072a2e | refs/heads/main | 2023-05-01T10:59:40.109986 | 2021-04-02T14:14:24 | 2021-04-02T14:14:24 | 367,734,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from django.contrib.auth import get_user_model
from django.db import models
from review.models import Review
User = get_user_model()
class Comment(models.Model):
author = models.ForeignKey(to=User, related_name='comments', on_delete=models.CASCADE, blank=True)
review = models.ForeignKey(to=Review, related_n... | [
"radovic_dusko@yahoo.com"
] | radovic_dusko@yahoo.com |
0894ab4443b0c20e40c07b66f35c003920e6f84e | 39735aac6631d2992b47ad7645930266322a4774 | /tensorflow_probability/python/distributions/distribution_test.py | d25be8d069320024879b7b4b5336383f16bf12b7 | [
"Apache-2.0"
] | permissive | Abdelpakey/probability | b96dff53fab9d9405f39d224fa77ff13f871c5db | b43d491fade784ae216a026823d2d27d7317264f | refs/heads/master | 2020-04-01T05:26:28.718050 | 2019-02-15T15:47:16 | 2019-02-15T15:47:16 | 152,903,143 | 0 | 0 | null | 2018-10-13T18:39:10 | 2018-10-13T18:39:31 | null | UTF-8 | Python | false | false | 13,317 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
b604a4ebbf17a27ae884d5f13df2ff0d7a3fe205 | 30baf29e5cf882af3e5af64c7f1a9eab6c259b55 | /ActorCritic-CartPole/SAC/networks.py | 72d3e7c27c72f94180c4afd5b247ec048c094395 | [
"MIT"
] | permissive | Frostday/PytorchProjects | 5cb4cad908504af4ce1a05f718ef1c245c754bf3 | ddfc19d6c34ce7b519e41f69e9b83ead2789a020 | refs/heads/master | 2023-05-10T16:29:52.846854 | 2021-05-28T13:56:44 | 2021-05-28T13:56:44 | 296,635,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,371 | py | import os
import torch as T
import torch.nn.functional as F
import torch.nn as nn
import torch.optim as optim
from torch.distributions.normal import Normal
import numpy as np
class CriticNetwork(nn.Module):
# evaluates the value of a state and action pair
def __init__(self, beta, input_dims, n_actions, fc1_di... | [
"dhruvgarg01@gmail.com"
] | dhruvgarg01@gmail.com |
f14510c92f51411a5b1fbf7e23edff82daf6ca18 | b18ef775594417725557839e2242916b1ca4cfd6 | /python/Classes/Classes: Dealing with Complex Number.py | dd425c93223e1638470a88b5e16efd229f5c1ab5 | [] | no_license | sharique-ansari/Hackerrank-solutions | 567a83ab6bd90bf2fbc0bcbbedd3eec75be5daf8 | 33c85d1671e64ae7d8ed79c03eb85122ee670dc5 | refs/heads/master | 2020-03-22T14:15:09.711607 | 2018-07-20T00:42:40 | 2018-07-20T00:42:40 | 140,164,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | import math
class Complex(object):
def __init__(self, real, imaginary):
self.real = real
self.imaginary = imaginary
def __add__(self, no):
return Complex(self.real + no.real, self.imaginary + no.imaginary)
def __sub__(self, no):
return Complex(self.real - no.real, self.im... | [
"sharique098@gmail.com"
] | sharique098@gmail.com |
7604931d489d0270763c4e39b5a4ad29ac7908aa | 14688c03b10bba09af01ef6fd7720714ab805ac2 | /core/migrations/0005_talk.py | 22215c0f051addb4284395590447ac21c79de111 | [] | no_license | CodeAkio/eventex | 440765b72c6a7848f2f140bd09d2c7e0bae91a86 | 3120a70268a375cd6f612c979d797f0f3dafaa16 | refs/heads/master | 2023-04-26T23:24:13.466668 | 2019-12-26T23:07:14 | 2019-12-26T23:07:14 | 218,868,491 | 0 | 0 | null | 2023-04-21T20:39:24 | 2019-10-31T21:59:26 | Python | UTF-8 | Python | false | false | 683 | py | # Generated by Django 2.2.6 on 2019-12-21 17:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_auto_20191219_2049'),
]
operations = [
migrations.CreateModel(
name='Talk',
fields=[
('... | [
"codeakio@Mac-mini-de-Victor.local"
] | codeakio@Mac-mini-de-Victor.local |
e5580409284141245e84051d896e22d0fb6f3a7d | 9e18a644070eb59c4b632b08acf57ef2a6cc4b39 | /lib/read.py | dee895d95673e15a1959870758cf83d790dd2f7f | [] | no_license | cwon789/cwon789-Seeing_through_fog_porjection_npz | a82339808ad96597c5c658ce26c42439a358c447 | f00533f749ea122174f714b3d9376fabdcb7c21a | refs/heads/main | 2023-05-25T04:52:19.775202 | 2021-05-21T15:02:54 | 2021-05-21T15:02:54 | 369,570,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,589 | py | import numpy as np
import os
import json
from pyquaternion import Quaternion
def read_label(file, label_dir, camera_to_velodyne=None):
"""Read label file and return object list"""
file_name = file.split('.png')[0]
object_list = get_kitti_object_list(os.path.join(label_dir, file_name + '.txt'), camera_to_v... | [
"cwon789@naver.com"
] | cwon789@naver.com |
ff22a34e9a956fa4c76ccb221f9d964d39375203 | 6cd3de9d6aa0c52602010aa857966d5dc4d57442 | /mlprodict/onnxrt/ops_cpu/op_lp_normalization.py | b8f5b8b7274ac89c8fb4bd972bdfda60a72b2e4c | [
"MIT"
] | permissive | xadupre/mlprodict | 2307ca96eafeeafff08d5322184399bb5dc1c37e | f82c8a26a60104948c67849b1c4af95ca812c153 | refs/heads/master | 2022-12-10T18:50:36.953032 | 2020-09-03T08:53:58 | 2020-09-03T08:53:58 | 292,824,744 | 1 | 0 | NOASSERTION | 2020-09-04T10:56:45 | 2020-09-04T10:56:44 | null | UTF-8 | Python | false | false | 837 | py | # -*- encoding: utf-8 -*-
# pylint: disable=E0203,E1101,C0111
"""
@file
@brief Runtime operator.
"""
import numpy
from ._op import OpRunUnaryNum
class LpNormalization(OpRunUnaryNum):
atts = {'axis': -1, 'p': 2}
def __init__(self, onnx_node, desc=None, **options):
OpRunUnaryNum.__init__(self, onnx_no... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
5b38841d59350b4d58e32b73c5ae85f640564118 | b1eb11a4586ca7478720071f0b4435d97d181f62 | /squad/src/fused_layer_norm.py | b9a96781f90daeef3ab98aa55bf44d5c21272fe3 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | houshuaishuai/course | 1930db8585a7c12ff656b27a2c7c2543587e032f | bd25dbeb20008ab8451186cf7d7a15444a139335 | refs/heads/master | 2023-05-07T01:37:38.456039 | 2021-04-01T07:32:59 | 2021-04-01T07:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,003 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"zhengnengjin@huawei.com"
] | zhengnengjin@huawei.com |
31b45216c88ef58099dcd987e59f7ab88ce816d2 | f86e28cb032ae88315a4d03b57eb2cf806d294a6 | /grap_main/apps.py | bc4b5b1dd6245b167aeb24d1d13a942c29a08e1c | [] | no_license | JjVera96/playbar | 24398fdecbc12935da49ca0c9abffa4f83eff297 | ddefdc3df7e24e185c423657a42c38eeb72c0ff1 | refs/heads/master | 2022-12-16T05:21:53.183454 | 2020-03-04T19:31:58 | 2020-03-04T19:31:58 | 244,983,743 | 0 | 0 | null | 2022-04-06T17:39:05 | 2020-03-04T19:16:17 | JavaScript | UTF-8 | Python | false | false | 159 | py | # apps.py
from django.apps.config import AppConfig
class GrapMainConfig(AppConfig):
name = 'grap_main'
def ready(self):
from . import signals
| [
"jjvera96@gmail.com"
] | jjvera96@gmail.com |
f2faa761dae3e182df133a6570d623251e4fa4ff | a15f20fec49aff81948abc2a390dcb2131caa1b7 | /armstrong.py | d6d90e49c089c89858e637764d37a413c6b02b11 | [] | no_license | aarushmagotra/armstrong-number | 1421640f34c966410de4d6f90625571078c094bc | fe21940ee0f857ce3de66af2433482d927e67205 | refs/heads/main | 2022-12-21T05:30:09.117396 | 2020-10-02T15:44:32 | 2020-10-02T15:44:32 | 300,637,856 | 0 | 1 | null | 2020-10-02T15:29:44 | 2020-10-02T14:19:14 | Python | UTF-8 | Python | false | false | 1,412 | py | def main ():
print()
print('WElCOME! Here I will help you to find a if a number is an armstrong for power 3 :)')
print()
print('And if not then I will tell you the next armstrong number of the entered value')
print()
n = int(input('Enter the number to you want to find te next armstrong of: '))
... | [
"noreply@github.com"
] | aarushmagotra.noreply@github.com |
f0bea7110c4665b40940a96d7809ac081eddf1a6 | 718583bc7567810e3f041f83a65673d643833608 | /bubble_chart/bubble-chart-exercise.py | 65bc8f31559982e7a75e2ea1d6cdc028b5e3e074 | [] | no_license | gbdsantos/plotly-dashboard-with-dash | 276dec4ddd9de3b3788d8e8768a8fe25559a2996 | b0af57ee6ebcbff35b9e3fd374933ee3b5ea5f0f | refs/heads/master | 2022-07-09T11:06:50.622408 | 2018-10-18T18:47:07 | 2018-10-18T18:47:07 | 148,810,714 | 0 | 0 | null | 2022-06-21T21:25:26 | 2018-09-14T15:50:59 | HTML | UTF-8 | Python | false | false | 905 | py | #######
# Objective: Create a bubble chart that compares three other features
# from the mpg.csv dataset. Fields include: 'mpg', 'cylinders', 'displacement'
# 'horsepower', 'weight', 'acceleration', 'model_year', 'origin', 'name'
#######
# Perform imports here
import pandas as pd
import plotly.offline as go
import plo... | [
"gbsantos.it@gmail.com"
] | gbsantos.it@gmail.com |
bd3ca4f5a6607ccb16f36dcb692e8cc31ab821fa | 48e32d67b984fc7505a9b1556b0273cede2848e4 | /ske_customization/customizations_for_ske/internal_import/stockgroup_items.py | 3b94e0b7a97680c7eaa06ff8052437286d1477b7 | [
"MIT"
] | permissive | akshay83/ske_customization | 86c776d37000ed97ddee63bb5ee84901d610414a | 910e8ca88ffc83554ebb23f7480901dba9f08221 | refs/heads/master | 2021-01-02T23:09:00.888981 | 2020-05-08T07:41:52 | 2020-05-08T07:41:52 | 98,892,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | import frappe
class InternalImportStockGroupItems:
def __init__(self, value):
self.process_node = value
self.process()
def process(self):
#print "DEBUG: PROCESSING: STOCK GROUP:"+self.process_node.stock_group
if not frappe.db.exists({"doctype":"Item Group","item_group_name": self.process_node.stock_... | [
"mehta.akshay@gmail.com"
] | mehta.akshay@gmail.com |
10eaeac02a5dcc162ac6889c1a4182414870249d | 4f49c1de4683bd00f5b831a0c7fd2b431b627be5 | /object_properties_panel.py | 36028619ed216e14b535d3acd7be96cd2d144287 | [] | no_license | PyrokinesisStudio/BlenderArchitectureAppTemplate | 6ce1c4896b7eee423c24558f10bc32bf3a2bdaac | 6b18bdca380d658288cd605c2e794473f57a04b0 | refs/heads/master | 2020-03-18T17:13:01.424253 | 2017-12-22T07:42:59 | 2017-12-22T07:42:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,162 | py | import bpy
import math
from bpy.app.translations import pgettext_iface as iface_ #for decimate modifier
from . import unit, utils
enum_object_tabs = [('INFO'," ","Show the Main Information"),
('DISPLAY',"","Show Options for how the Object is Displayed"),
('MATERIAL',"","Show the... | [
"dev.andrewpeel@gmail.com"
] | dev.andrewpeel@gmail.com |
bbbb760b22d3a07d2b3d10445c267f72ed9fcfbd | e0b6f5bd451aa8af3273fbc948799637681342e1 | /scripts/wm_representation/functions/IEM_conditions/IEM_condition.py | 244e5b35232d3da6732fe524c6e5c3d6790c863a | [] | no_license | davidbestue/encoding | 6b304f6e7429f94f97bd562c7544d1fdccf7bdc1 | c27319aa3bb652b3bfc6b7340044c0fda057bc62 | refs/heads/master | 2022-05-05T23:41:42.419252 | 2022-04-27T08:34:52 | 2022-04-27T08:34:52 | 144,248,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,024 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 1 18:24:32 2019
@author: David Bestue
"""
## Import functions prom the previous path
import sys
import os
previous_path = os.path.abspath(os.path.join(os.getcwd(), os.pardir))
sys.path.insert(1, previous_path)
from model_functions import *
from fake_data_generator imp... | [
"davidsanchezbestue@hotmail.com"
] | davidsanchezbestue@hotmail.com |
64ced12d14e6ef07689ff4230e0e91e5529ae4b7 | 44849991f507933ebc7ed4e8e37819a529be539e | /steps/step09.py | f4696c0a213f1cce610937e96f56827da22d84d5 | [
"MIT"
] | permissive | NukeA/deep-learning-from-scratch-3 | 4ff60e8ac5b157a05079fc3b8a2ea69acec9ece5 | e48a7b8788827a16cc9f81adc135a3a14989bea5 | refs/heads/master | 2022-11-02T00:58:56.621011 | 2020-06-16T04:36:23 | 2020-06-16T04:36:23 | 273,873,741 | 1 | 0 | MIT | 2020-06-21T09:34:25 | 2020-06-21T09:34:24 | null | UTF-8 | Python | false | false | 1,780 | py | import numpy as np
class Variable:
def __init__(self, data):
if data is not None:
if not isinstance(data, np.ndarray):
raise TypeError('{} is not supported'.format(type(data)))
self.data = data
self.grad = None
self.creator = None
def set_creator(s... | [
"koki0702@gmail.com"
] | koki0702@gmail.com |
a83e3e891b8fdc17c32fdcc50c55461de5f3d5e6 | 02d37a773141af3d37ece2e66d32c51d5365aed3 | /appengine_hkp/parser.py | 731e1f777ede8013247a24b7a17cec8246860bbe | [
"MIT"
] | permissive | drastrom/appengine-hkp | 4f61be3474c62fd3d4380224d31d137c78eb0e2c | d34affb482f47974316ac0e2a48983fd5ac10b85 | refs/heads/master | 2021-01-25T09:20:38.163889 | 2018-12-10T20:53:33 | 2018-12-10T20:53:33 | 93,815,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,774 | py | #!/usr/bin/env python
from google.appengine.ext import ndb
import codecs
import datetime
import pgpdump
import pgpdump.packet
import pgpdump.utils
from . import models
from . import uni_utils
def load_key(key_asc):
data = pgpdump.AsciiData(key_asc)
entities = []
pubkey = None
curkey = None
curuid = None
subke... | [
"github@jdrake.com"
] | github@jdrake.com |
474f0fa585fe803e09517019b929e36d9d8d6f83 | f0a3209d739e6ce0a58e70eb4e25442d3012b57c | /Backend/getClothesofOutfit/getClothesofOutfit.py | d35792dcfdcacb3474fadc34487c6292eb8e2304 | [] | no_license | js1342/Backend | be73ec490369d6a4a12f3b249f14e54b66a28205 | 1856e32d2603f6a9e6cd5ea58e9f1a105748150a | refs/heads/master | 2023-02-03T04:17:07.677284 | 2020-12-24T07:43:56 | 2020-12-24T07:43:56 | 316,378,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | import json
import time
import boto3
from boto3.dynamodb.conditions import Key, Attr
############## DB 정보 ##############
dynamodb = boto3.resource('dynamodb', region_name='us-east-2')
outfit_table = dynamodb.Table('Outfit')
clothes_table = dynamodb.Table('Clothes')
user_table = dynamodb.Table('User')
category_table ... | [
"32619843+kmj1995kr@users.noreply.github.com"
] | 32619843+kmj1995kr@users.noreply.github.com |
84fe758f6eacb7fe7424096d7021391445ce414e | aa70ce959d0237ed7f2af438c351e93f231d49dc | /16-720B-HW1 Spatial Pyramid Matching for Scene Classification/chendil/code/visual_words.py | bb8a4535f5ff7e83f855b4caae175012963522b0 | [] | no_license | c11/16-720-Computer-Vision | 0fcf9bbacbb94c79da9466a28e9fb7a073c3c4fa | ac201820e7be947df350ede0ba9c7eb617acd0aa | refs/heads/master | 2023-03-16T15:29:32.754875 | 2018-11-29T15:02:47 | 2018-11-29T15:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,808 | py | import numpy as np
import multiprocessing
import imageio
import scipy.ndimage
import skimage.color
import sklearn.cluster
import scipy.spatial.distance
import os,time
import matplotlib.pyplot as plt
import util
import random
def extract_filter_responses(image):
'''
Extracts the filter responses for the... | [
"chendilin92@gmail.com"
] | chendilin92@gmail.com |
b62ee27024d05328ebb4cf87044e452d5be84b1a | 34088b8e82bc64a10678a08c03db2732d52f0c1a | /Pinbot/app/dash/migrations/0018_auto__add_field_resumedailyreportdata_resume_down_proportion.py | ba80829f546552507a844e0a3e81dcce76bb676a | [] | no_license | winghou/myFirstProfile | 757d82f5391f3672e48db4aa5774e26a48a5ecc7 | 8fc5d16de7b6449cba058f4d2459bbb0c8438f77 | refs/heads/master | 2020-05-31T13:42:28.554703 | 2016-03-23T11:30:13 | 2016-03-23T11:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,426 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'ResumeDailyReportData.resume_down_proportion'
db.add_colu... | [
"Newfarming@NewfarmingdeMacBook-Pro.local"
] | Newfarming@NewfarmingdeMacBook-Pro.local |
ba41f7aef79a7bcb7d8f12a8308d4d45eacd1ce8 | 6f4e925bf4538d104f1e3e9754d4297c5504ab80 | /python/recall/app/domain/__init__.py | 55879d938b278a1a92324ce2cb752388ae90ff9d | [
"MIT"
] | permissive | kingreatwill/openself | 7f02282da3e0b1f328c3627d83ba2b5ed4563dc8 | 8517d24e665b39371835ecd2ed0cd3509a5d9d62 | refs/heads/master | 2023-01-23T13:15:49.491402 | 2020-11-19T02:39:52 | 2020-11-19T02:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import models
class Domain:
def __init__(self, model: models.db.Document):
self.model = model
# 列表;
def list(self, size=10, index=1, **kwargs):
size = int(size)
index = int(index)
return self.model.objects(**kwargs).skip((index - 1) * size).limit(size)
# 明细;
def g... | [
"kingreatwill@qq.com"
] | kingreatwill@qq.com |
5dd63b2b9df8c5af5403c212e5f8fa25f11a8055 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/contrib/learn/python/learn/learn_io/generator_io.py | 784781d7368490a10d5dbc9cd5842f4bed98eda3 | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,499 | py | # Copyright 2016 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... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
3c2d7ec8c77ae7c529adc37d5a27cb476d8f7a1b | 67d517b6f8ba789d9086bac9374d6d25cc9a410d | /topical/migrations/0016_tag.py | fd330c76f41484eabdcc082ad620ab3c659d8f81 | [] | no_license | Topical-Troupe/topical-backend | 2f43c83a3b69cbaf7b07aaec30c1d0dec75a794f | 54be5eb25f4c9d32f67be683ac1b1069e07ba8ab | refs/heads/main | 2022-11-25T00:41:47.478747 | 2020-08-06T15:58:06 | 2020-08-06T15:58:06 | 280,196,461 | 0 | 0 | null | 2020-08-05T03:01:49 | 2020-07-16T15:57:44 | Python | UTF-8 | Python | false | false | 633 | py | # Generated by Django 3.0.8 on 2020-07-27 22:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('topical', '0015_auto_20200727_1744'),
]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
... | [
"britton.wolfe1999@gmail.com"
] | britton.wolfe1999@gmail.com |
38911df2e5bdda7b60117af3dd5a796f464a1f0e | 42171d6536bc649386cffb76e8c722880df23ade | /ldi.py | d7514e39e7c20bab9b8a2e6d6e8e4fa37e9f9636 | [
"Apache-2.0"
] | permissive | SLDGroup/NN_Mass | 11301c3cc4ca8b0bbd42f0633569b0b2373f14f8 | 1de4bb575911a8fc8b06eec7b215ef86c1ac6c4a | refs/heads/main | 2023-05-02T07:42:19.356074 | 2021-05-26T04:03:31 | 2021-05-26T04:03:31 | 352,197,180 | 4 | 3 | Apache-2.0 | 2021-03-31T23:42:57 | 2021-03-27T23:08:05 | Python | UTF-8 | Python | false | false | 2,298 | py | import torch
import torch.nn as nn
import torchvision.transforms as transforms
from torch.autograd import Variable
import torch.nn.functional as F
from torch.utils.data import Dataset,DataLoader
from torchvision import transforms, datasets
import random
import numpy as np
import argparse
import datetime
import datas... | [
"aonier1995@163.com"
] | aonier1995@163.com |
d791a58bb7fbc1afbe5cd755200f3867b52cb84f | fb82730f79db7f3f6033c59e5959b51cca10077c | /todoapp/migrations/0001_initial.py | e83f2362bceb4774a625b1e39aacae1f989d84d5 | [] | no_license | BhargavaCS/ToDoApp | dfd79330c02ab8311387a5d6399cc608f5676ceb | 9d6be297826115a8799685820e8a909cebc706ca | refs/heads/master | 2021-01-01T04:47:30.416088 | 2017-10-19T07:32:46 | 2017-10-19T07:32:46 | 97,245,520 | 0 | 1 | null | 2017-10-19T17:41:17 | 2017-07-14T15:01:31 | CSS | UTF-8 | Python | false | false | 1,253 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-13 13:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"rambhargavasbr@gmail.com"
] | rambhargavasbr@gmail.com |
f58f33159e66f1a62c496e69b925b392e7e346bf | 4b0ad6cd4917a6ce4fda0703515b4733c4cc84ac | /ipynb/Script/beamf_fib_fixed.py | 8d9f7c9bd28d8ae690eae7ff1f6698b9528bdc63 | [] | no_license | tciodaro/sonar-analysis | 8f089709590dbe6f329e504c69e72408e48c72bf | fd04bd77c63da962ba2b5ea3fab24f113a61a8c9 | refs/heads/master | 2021-09-06T00:56:33.825318 | 2018-02-01T04:08:58 | 2018-02-01T04:08:58 | 115,443,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,872 | py |
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
from scipy import signal
print 'DEFINING ANGLES AND SENSOR ARRAY'
sound_speed = 1482.0 # meter per second
nsensors = 20
Lsensor = 2.14 # in meters
print 'STARTING FIB FIXED CALCULATION'
Fs = 16000
Ts = 1.0/Fs
freq_range = np.arange... | [
"ciodaro@mymacpro.local"
] | ciodaro@mymacpro.local |
f8d8ee4061dbff936f37094f60a8e6e5b2dbd040 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy241.py | d59a29805cadc73e57d6ef26c5940d08ffc753ef | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | # qubit number=2
# total number=11
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
e87cc969beea20d7c66caebfb0bc39aae6e58bb3 | ceeca29791e36e1a83f7019c60180d1644096939 | /techparty/event/migrations/0003_auto__add_field_event_can_signup_before.py | 3cf959fbfa2b55399ecf07d053a6fdff0619c871 | [] | no_license | gztechparty/techparty | 0eab101bf3d52000dfe819b645cf337398960238 | 232c063f886e015e3a9af5db364167b7e3044575 | refs/heads/develop | 2020-06-08T07:12:37.820849 | 2019-06-04T10:02:26 | 2019-06-04T10:02:26 | 9,009,069 | 4 | 8 | null | 2014-08-05T15:13:40 | 2013-03-25T15:18:23 | CSS | UTF-8 | Python | false | false | 10,060 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Event.can_signup_before'
db.add_column(u'event_event', 'c... | [
"jeff@fallever.com"
] | jeff@fallever.com |
6cfde358feb3d86dc0581bcf306e3b8e4488b215 | a3779f5bfa96756ab80d12ab2e816c0563f200b2 | /backendFunctions.py | c6bb5d8d2a32bb5d5ea7dd6047d82ad6c19cfa56 | [] | no_license | ashraychowdhry/splitway | 141e2ab2738e14f425b52edd00f110f2a408e1b6 | e344433ed0b6bcab65d4a201fca085dce78c01f6 | refs/heads/master | 2020-09-02T11:57:01.357917 | 2019-11-18T15:44:38 | 2019-11-18T15:44:38 | 219,112,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import requests
import json
import urllib.request
import datetime
def findCoordinates(address):
address = address.replace(" ", "+")
addressURL = "https://maps.googleapis.com/maps/api/geocode/json?address=" + address + "&key=AIzaSyCdaPXmz8jQexyn-kWR9rmiumUuLn3GgMs"
with urllib.request.urlopen(addressURL) as ... | [
"peytonhowelle@gmail.com"
] | peytonhowelle@gmail.com |
eff958ea898766a48ee4dca2ae3178f7da519a30 | 05172b2f9ac3cc2dc925631fcb49513b3e02ea2c | /DynamicProgramming/PartitionEqualSubsetSum.py | d1d5db0937b6d583bd53fb5782b3ffef4a7c6914 | [] | no_license | KickItAndCode/Algorithms | cbe1ea95c1e655cbfa0b829d3bd2a2a78d7d862f | d41e8a2262cede3154bc5b48c43fb60ac098e385 | refs/heads/master | 2020-04-26T07:08:37.127285 | 2019-12-17T03:46:10 | 2019-12-17T03:46:10 | 173,385,735 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | # 416. Partition Equal Subset Sum
# Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.
# Note:
# Each of the array element will not exceed 100.
# The array size will not exceed 200.
# Example 1:
# ... | [
"henderson@Roberts-MacBook-Pro-3.local"
] | henderson@Roberts-MacBook-Pro-3.local |
c97b3d8514f6e9fc644921f067cee1140ab673d1 | f2f9c6c5daacfa5e65ea091cb01b3069ae11dbf0 | /setup.py | abfad6d5d7276fd25bfb17751188a0ed74b093dc | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | TSL-Mitchell/elyra | 774bc21ce3f639dd3457e0d84dfdd589d338ba21 | 2a16b9b7343ed2e8e7e667bafe20cf6a73f7297f | refs/heads/master | 2023-01-25T05:30:21.990303 | 2020-11-26T23:04:52 | 2020-11-26T23:04:52 | 316,352,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,790 | py | #
# Copyright 2018-2020 IBM Corporation
#
# 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 wr... | [
"mitchell@truis.com.au"
] | mitchell@truis.com.au |
c3e40fb6c21a8b78a1912a6dddd65973f62ce9b6 | a82dfb61b17fa66b9c75fe871401cff77aa77f56 | /libmcell/definition/doc.py | 48cdb0ffba9e2e4089d530fbc690a17b0601d563 | [
"MIT"
] | permissive | mcellteam/mcell | 49ca84048a091de8933adccc083d31b7bcb1529e | 3920aec22c55013b78f7d6483b81f70a0d564d22 | refs/heads/master | 2022-12-23T15:01:51.931150 | 2021-09-29T16:49:14 | 2021-09-29T16:49:14 | 10,253,341 | 29 | 12 | NOASSERTION | 2021-07-08T01:56:40 | 2013-05-23T20:59:54 | C++ | UTF-8 | Python | false | false | 7,463 | py | """
Copyright (C) 2021 by
The Salk Institute for Biological Studies
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""
import sys
import os
import yaml
from constants import *
from gen import indent_and_fix_rst_chars, yaml... | [
"ahusar@salk.edu"
] | ahusar@salk.edu |
e518747ac7ebdccaa7c58444e65cf3a2287c92f6 | c2252ab71bddf1438b26104f0959a9d9cde58f21 | /Pingala/Pingala/wsgi.py | eb85e86316dc82844fbb671c162189eec3ace5ea | [] | no_license | Dragnoid99/CS253 | 4880ea95cedac51a6e071fcb3e9ca32be60d197a | fc3c28e9d5a2af04e88b550571084a0ba759036d | refs/heads/master | 2021-04-18T11:50:00.194863 | 2020-03-23T21:55:24 | 2020-03-23T21:55:24 | 249,541,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for Pingala project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"noreply@github.com"
] | Dragnoid99.noreply@github.com |
a3277c30695fa06eebfb826382d70f019c490e2f | bc480c714cc086ed1d7b9df0e8e4e587bc608e6f | /Day04/str.py | f032ec63e609d7f92ee2ee26427b840bd0cd3ad5 | [] | no_license | What-After-College/Python-Batch-038 | a989ad093ea3dba6ce219ad2acf7ec6dc01e7bff | 441f1c1a4214a928b1f33ed3852b46ee3c4bb492 | refs/heads/master | 2022-11-29T05:04:22.914240 | 2020-07-15T08:21:07 | 2020-07-15T08:21:07 | 277,481,214 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | hi = "Hello "
name = "Thor"
# print(hi,name)
# print(hi,end="")
# print(name)
# print(hi+name)
# print(hi-name)
# print(hi*name)
# print(hi*3)
# print(len(name))
# print(len(hi))
# batch = "Rhythm Argha Sahil Pooja Aman"
# print(batch[10])
# print(batch[-12])
# print(batch[13:24])
# print(batch)
# batch.insert(0... | [
"akanshuraj@gmail.com"
] | akanshuraj@gmail.com |
7550cdf18ede46735b48149495fb32bd50f1b306 | 8b46f0afd133e001686014582a7cf2efa9b2ae3b | /challanges/ll_kth_from_end/conftest.py | 5c0b48e662693d63056e6fdcbb1e91b61a3abec2 | [
"MIT"
] | permissive | Patricia888/data-structures-and-algorithms | f6af0e88e7445062b8881bfd88783c88dcb546c6 | 8963acf857b9f7069eeeea2884b41376986c3d7c | refs/heads/master | 2018-09-07T17:30:48.099569 | 2018-07-30T23:40:30 | 2018-07-30T23:40:30 | 126,067,848 | 0 | 0 | MIT | 2018-05-15T02:08:32 | 2018-03-20T18:55:49 | Python | UTF-8 | Python | false | false | 172 | py | import pytest
from .ll_kth_from_end import LinkedList as LL
@pytest.fixture
def empty_ll():
return LL()
@pytest.fixture
def small_ll():
return LL([1, 2, 3, 4])
| [
"praftery8@gmail.com"
] | praftery8@gmail.com |
784fa6caf340114754975f11ff4b7c651ff70421 | bdd6ab129de61947945b380a487a3ee923f542f3 | /singleton-less/pipeline/pangene_test_2/analysis.py | 3ea0807047a8273d00e1ff710ea261d221a92786 | [] | no_license | InfOmics/pangenes-review | 1e27c1fd1a93fb7a5fd764c4090f7a4a2a207b0b | a74f8f9d615de6a76aa1918c2c4e9d0c1f0c8385 | refs/heads/master | 2021-01-07T12:14:37.891227 | 2020-06-01T14:20:27 | 2020-06-01T14:20:27 | 241,686,261 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,352 | py | from pathlib import Path
from subprocess import call
import numpy as np
import pandas as pd
def getGenomeDistribution(path_clus):
#qui calcolo l'istogramma della "genomes per class distribution"
histogram = dict() #numero di famiglie che toccano X genomi
for line in open(path_clus,'r'):
genes = line.strip().spl... | [
"vincenzo.bonnici@gmail.com"
] | vincenzo.bonnici@gmail.com |
834df0212f5bbb8fa18876bb86326951b7c3b43c | f6252f763b46053d81ffcc19919a5adcb0fff069 | /trax/rl/envs/fake_env_test.py | 3a16ff7d30443efec3e095e4c9be87d1bdddef79 | [
"Apache-2.0"
] | permissive | codespeakers/trax | ee5da9e39b83b173034ff2638d856dec38e9675a | 9fc11bca7accda0394d629cac96558f4539d7f61 | refs/heads/master | 2020-12-14T15:50:49.634706 | 2020-01-18T20:52:27 | 2020-01-18T20:52:27 | 234,796,218 | 0 | 0 | Apache-2.0 | 2020-01-18T20:51:52 | 2020-01-18T20:51:51 | null | UTF-8 | Python | false | false | 1,942 | py | # coding=utf-8
# Copyright 2019 The Trax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"afrozm@google.com"
] | afrozm@google.com |
293abfae62da020ede610808540be26b601231b4 | 73179def098e16d86b34d2c387bd40e34413411c | /Ex061.py | 0904d3968a4b5d33fe3176c6ec369ea93dc3b1b2 | [] | no_license | RogerMCL/PythonExercises | 2ad1b8d92ecdd276b282b58681b271c55ddb35e7 | f5a462636c171aa901157eda04137edce9650f4b | refs/heads/main | 2023-04-30T10:34:28.333885 | 2021-05-06T17:20:47 | 2021-05-06T17:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #EXERCÍCIO 061 (UPDATE 051):
print('==== 10 TERMOS DE UMA PA ====')
n = int(input('Primeiro termo: '))
r = int(input('Razão: '))
print('')
c = 1
while c != 10:
print(n, end=' -> ')
n += r
c += 1
print(n)
'''for c in range(0, 10):
print(n, end=' -> ')
n += r
print('FIM')''' | [
"noreply@github.com"
] | RogerMCL.noreply@github.com |
12712297da94e00fbf92f666e30f60c4f50f505e | 0047e5e17a2212f17be6dbc42b2502663d9de5ee | /runner_wine/experiment.py | bed70ae8d38b302eed8ee0b964da9720ec9c849d | [
"Apache-2.0"
] | permissive | caiyueliang/mlflow-example | 75a845b1c076725d47a07f656db7d0cdfebc3fb8 | b65631243098620b27d64cbb950536acfd8922c1 | refs/heads/master | 2020-06-09T01:00:13.754282 | 2019-07-25T10:11:06 | 2019-07-25T10:11:06 | 193,338,830 | 0 | 0 | null | 2019-06-23T11:16:22 | 2019-06-23T11:16:22 | null | UTF-8 | Python | false | false | 479 | py | from mlflow.tracking import MlflowClient
client = MlflowClient()
experiments = client.list_experiments() # returns a list of mlflow.entities.Experiment
print("[experiments] %s" % experiments)
run = client.create_run(experiments[0].experiment_id) # returns mlflow.entities.Run
client.log_param... | [
"393900414@qq.com"
] | 393900414@qq.com |
5a0c7f2232c9b5b9b6aebd0299f3b756198fbcab | a1488a281e582373b7270d85059f08330c0b685d | /dueros/directive/Display/tag/NewTag.py | 86f19cc6e51950cde6ea45a11b1821aef4bfab0f | [
"Apache-2.0"
] | permissive | xuchengzhi/bot-sdk-python | 473fb8e7df629a6168983e26de74546bbca32768 | 966d103d55f9f1220c00d806ac13d0754015a31c | refs/heads/master | 2020-12-06T17:00:55.587643 | 2019-10-18T02:54:45 | 2019-10-18T02:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!/usr/bin/env python3
# -*- encoding=utf-8 -*-
# description:
# author:jack
# create_time: 2018/9/17
"""
desc:pass
"""
from dueros.directive.Display.tag.TagTypeEnum import TagTypeEnum
from dueros.directive.Display.tag.BaseTag import BaseTag
class NewTag(BaseTag):
def __init__(self):
super(NewTag,... | [
"wangninghb@gmail.com"
] | wangninghb@gmail.com |
b5e8212fd31a82a108a7519c7d44f6b887b52698 | a50b92f2a972f6b9094dfadafd0187de74a362d4 | /form/urls.py | f984a3c7b51d60fc07ab5b34becc2560911be6ba | [] | no_license | ganievdev/UzTube.uz | c2dc20a9f8b13ad61ed333a2552296f922a5ea41 | 776a0750dc88da4a98bcf734b71fcbb3f5b604f2 | refs/heads/main | 2023-06-28T05:18:37.066289 | 2021-08-06T07:12:16 | 2021-08-06T07:12:16 | 393,289,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | """content URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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')
Class-based... | [
"algoprogram01@gmail.com"
] | algoprogram01@gmail.com |
15e2870866bde27351395ad4b2a7a69bc48e1a26 | ec5f6799611a9b4f3d3a8a62bfb276ba0406c621 | /Interpolation/bisimulation/step4/checkstep4.py | cbc07708aee11080b4b84ec392fd62eec25e9477 | [] | no_license | formal-verification-research/Modest-Probabilistic-Models-for-NoC | 50dc14a495fce7e6e0ee622bbb348c8fa8a70e39 | 5c02029296f676fcd6812b4dd5fb97afda454af6 | refs/heads/master | 2023-07-25T16:04:05.747355 | 2023-06-23T16:40:16 | 2023-06-23T16:40:16 | 165,334,654 | 4 | 1 | null | 2022-03-07T17:17:36 | 2019-01-12T01:51:34 | SMT | UTF-8 | Python | false | false | 5,710 | py | import os
import re
probabilityRegex = re.compile(r'(\d\.\d+|0)\n')
probabilityTable = {
"0" : [(1/9), (16/81), (20/81), (4/27), (1/9), (1/27), (1/27), (1/27), (2/81), (2/81), (1/81), (1/81)],
"1" : [(1/9), (2/9), (2/9), (4/27), (1/9), (1/27), (1/27), (1/27), (1/27), 0, (1/27), 0],
"2" : [(1/9... | [
"benjaylew@el176-threadripper.usu.edu"
] | benjaylew@el176-threadripper.usu.edu |
e145f747afa99d212bbec96ef87895a4f4b34bec | 362f8eeb4dad793eb488f4e80acb65ace793c6e8 | /function/bot_chart.py | b2ed9587bcdc6971d9cdb6c1b3bd2f45d379130b | [] | no_license | louxinye/lxybot_v2 | ab3613fab060b9d8d805482a9705fbdaab776cd9 | 8ac3ce319491d81e2ec5dda54c778e317fd56719 | refs/heads/master | 2021-04-15T07:59:17.103282 | 2018-12-03T03:01:29 | 2018-12-03T03:01:29 | 126,855,317 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,406 | py | # -*- coding: utf-8 -*-
# osu!新人群chart系统
import re
from function import bot_osu
from function import bot_SQL
chart_bid = [338646, 808996, 71829]
now_turns = 4
force_mod = []
allow_mod = ['EZ', 'HR', 'HD', 'SD', 'PF', 'DT', 'NC', 'FL', 'SO']
# 提交chart,效果如下:更新用户信息
def submitChart(user_qq):
userinfo = bot_osu.sear... | [
"1061566571@qq.com"
] | 1061566571@qq.com |
55d3b7638da30ef127a474aa62d94baf1f6ed049 | 86330954b156feab96469e240dc7eb3be4844b6b | /ros2_ws/install/pi_car/lib/python3.8/site-packages/pi_car/pi_car.py | 6b5defe4aa51d0abfaff6190f189426ebf0473e5 | [] | no_license | b0hne/pi_ar_project | 25ccf85b1ed3c74c10ad5e6d3b2f037f1ae5ccae | 7f3a91638e4d30aa97f433e4e9a8bbd88ca1e1f2 | refs/heads/master | 2022-12-08T06:34:13.682564 | 2020-08-13T22:58:55 | 2020-08-13T22:58:55 | 287,394,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | import rclpy
from rclpy.node import Node
from geometry_msgs.msg import Twist
import board
import busio
import adafruit_pca9685
import operator
DC_OFF = 0
# DC_MIN = 24575
DC_MIN = 25575
DC_MAX = 65535
DC_DIFF = DC_MAX - DC_MIN
MOTORS = 4
FREQUENCY = 100
# top to bottom, left to right
FORWARD = [13, 15, 2, 0]
BACKW... | [
"sebastian.benkel@tum.de"
] | sebastian.benkel@tum.de |
23458d70bd4f9ae696d8d81fa5c01f56971f7da7 | 3b7474148c07df7f4755106a3d0ada9b2de5efdc | /training/c25_flask/examples/world_api/original/tools.py | 1dc1684dc799c4417844116947e284621a8d0bee | [] | no_license | juancsosap/pythontraining | 7f67466846138f32d55361d64de81e74a946b484 | 1441d6fc9544042bc404d5c7efffd119fce33aa7 | refs/heads/master | 2021-08-26T05:37:15.851025 | 2021-08-11T22:35:23 | 2021-08-11T22:35:23 | 129,974,006 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | import pymysql
from flask import request, jsonify, render_template, make_response, abort
def xmlify(template, value):
text = render_template(template, value=value)
response = make_response(text)
response.headers['Content-Type'] = 'application/xml'
return response
def prepare_response(template, info... | [
"user.nuage@gmail.com"
] | user.nuage@gmail.com |
65f46d501c7c32b10b708b08a9717deeef8c4ff4 | 460fb7cd2f60dedfa65f93521f8d9126fc68a420 | /6-a-knapsack/knapsack.py3 | f093114b54e75f357da5595cc5643e8a441a2324 | [] | no_license | mahdihasnat/Competitive-Programming-Core-Skills | 71c9c06907058f8715616a817ac6e6db94bf2eab | 648e69338a4262d6d9d64a0970409077a17868a6 | refs/heads/master | 2022-11-06T18:53:08.553890 | 2020-06-18T19:28:43 | 2020-06-18T19:28:43 | 272,723,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py3 | # -*- coding: utf-8 -*-
import sys
def main():
n, W = map(int, input().split())
items = [list(map(int, input().split())) for _ in range(n)]
result = []
dp = [[0] * (W +1) for _ in range(n+1)]
for i in range(1, n+1):
w = items[i-1][0]
v = items[i-1][1]
for j in range(... | [
"mahdibuet3@gmail.com"
] | mahdibuet3@gmail.com |
6c7175ef0bf5c454553094b3f009ebac86114775 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/violin/_metasrc.py | 466d497ebca4399340d12c5b16b62c2cd713264a | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 392 | py | import _plotly_utils.basevalidators
class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(self, plotly_name="metasrc", parent_name="violin", **kwargs):
super(MetasrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
ed... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
f429f737cd6c9f3cb23fa464de6ec7f9685132fd | 0469618e876fb9c027cafd909246ba899a30c4d2 | /tests/models/test_optimade_json.py | 548ae189793cd2f8bd1cf448662e973a52239d37 | [
"MIT"
] | permissive | JuDFTteam/optimade-python-tools | ed88ab9e23bb6a5440956a7d831215fb00386d2a | 96a4ff9cdb148fd39b024beda2e02667f99547d9 | refs/heads/master | 2023-02-18T22:06:24.844480 | 2021-01-15T18:39:11 | 2021-01-15T18:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | from optimade.models import DataType
def test_convert_python_types():
"""Convert various Python types to OPTIMADE Data types"""
from datetime import datetime
expected_data_type = [
DataType.STRING,
DataType.INTEGER,
DataType.FLOAT,
DataType.LIST,
DataType.DICTIONAR... | [
"noreply@github.com"
] | JuDFTteam.noreply@github.com |
71de969b7a916bf5eab2c78a574d3186cf9d290b | 365186abceefc51e811706ad325a2f53a63a25f8 | /tests/scripts/comparisonPlots.py | e0fbf4cda1982e9d1ea7945d69f32ca47e3b51b7 | [
"MIT"
] | permissive | tboudreaux/pytopsscrape | a857bdca8558bf86f7afd5f8f3e6d2e5ca90fa64 | c9f95e6a6419debb0b6a22f22d1574a8bbf73bd0 | refs/heads/master | 2023-04-06T17:48:08.812425 | 2023-04-04T00:01:13 | 2023-04-04T00:01:13 | 532,559,997 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import matplotlib.pyplot as plt
from pyTOPSScrape.parse import load_opal
import os
import datetime
def make_comparision_plot():
TargetPath = "./GS98Target.opac"
TestPath = "./GS98TestResult.opac"
OPALPath = "./GS98OPAL.opac"
targetTime = datetime.datetime.fromtimestamp(os.path.getmtime(TargetPath))
... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
d37148f04674bda7b996896bf1686b7c6b7db8c4 | a8b0599af76b5393039431f876be00d628a1fe43 | /backend/kangas/server/__init__.py | 4f348efc3c7c9d70831cec668eae3966b7210d79 | [
"Apache-2.0"
] | permissive | comet-ml/kangas | c951f648d890dca5a66cbab405d3437be2f3e9e3 | df0c1a495032cc4f1c367c74fcb0ef6e5a2063be | refs/heads/main | 2023-06-12T23:38:43.068259 | 2023-06-05T18:38:34 | 2023-06-05T19:28:33 | 550,324,241 | 944 | 41 | Apache-2.0 | 2023-06-05T19:28:35 | 2022-10-12T15:10:04 | Jupyter Notebook | UTF-8 | Python | false | false | 2,379 | py | # -*- coding: utf-8 -*-
######################################################
# _____ _____ _ _ #
# (____ \ _ | ___) (_) | | #
# _ \ \ ____| |_ ____| | ___ ___ _ _ | | #
# | | | )/ _ | _)/ _ | |(_ / __) |/ || | #
# | |__/ ( ( | | |... | [
"doug.blank@gmail.com"
] | doug.blank@gmail.com |
6c06a62093cbb8abc57c9f55f9cf82b806b88996 | f10df3fa468d46d7ac43580cb193784c200dca86 | /Ethererum Developers Interviews/ethereum_interviews.py | f2768b6ceef8ee297e872709e502afb0f16b7b9a | [
"MIT"
] | permissive | lenamax2355/Kaggle-Compendium | 5f517e994e69aee54eca6fa0144a373e6a73500b | 61634ba742f9a0239f2d1e45973c4bb477ac6306 | refs/heads/master | 2022-11-21T19:17:15.483561 | 2020-07-15T18:40:28 | 2020-07-15T18:40:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import pandas as pd
import generic_topic_detector
filepath = "C:\\Users\\rupachak\\Desktop\\Kaggle Data\\Ethereum Developer Interviews\\interview.csv"
interview_frame = pd.read_csv(filepath)
text_list = interview_frame['Who are you and what are you working on?'].values
text_list = list(map(lambda x:str(x),text_list))
... | [
"rupachak@adobe.com"
] | rupachak@adobe.com |
b6ae5f7abc5a2801d14fbb1bfd2ac98248a07ad6 | f4d7937547c8d25649c3078b9a799f966b96399d | /AlphaZero/train/sequential/selfplay.py | 656945db38dfb55be766f5bd227cb8bd468aafab | [
"MIT",
"Apache-2.0"
] | permissive | water-vapor/AlphaZero | eec7ec9359efa2e6d7560cc41f3ac6956524c07d | 920162071c7a1557cbf45ffdecd840ee2b25b88f | refs/heads/master | 2021-03-19T10:38:46.775914 | 2018-06-05T09:23:47 | 2018-06-05T09:23:47 | 97,711,015 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import os
import numpy as np
from AlphaZero.game.gameplay_go import Game
from AlphaZero.train.sequential.nn_eval_seq import NNEvaluator
def selfplay(best_player_name, base_dir='data', num_games=25000):
""" Generate self play data and search probabilities.
Results are stored in data/selfplay/<best_playe... | [
"zzhaoah@connect.ust.hk"
] | zzhaoah@connect.ust.hk |
14f2874208906f621bdbf9f032deefe4c6b5337e | e90a5ab7a29babfc2f4c0de6958a3897a4901d34 | /Array/Plus One.py | a3648118dc325284fe3d3ad7decde76e435f1d8b | [] | no_license | Aleena-Mishra-10/LeetCode-Problems | 031dfe5ce589d26373321c05bda7a7b5bd712fdf | af3685a30892c9da9335dc95449f2b2081cc0a11 | refs/heads/main | 2023-08-04T04:10:30.288583 | 2021-09-17T05:51:19 | 2021-09-17T05:51:19 | 328,077,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | class Solution:
def plusOne(self, digits: List[int]) -> List[int]:
stri = " "
for i in range(len(digits)):
stri=stri+str(digits[i])
print(int(stri)+1)
ans=[int(x) for x in str(int(stri)+1)]
print(ans)
return ans
| [
"noreply@github.com"
] | Aleena-Mishra-10.noreply@github.com |
1215168ddbc7f8a6ee183800bdd85d6cce9fbc46 | dd5a986ef4bc625e07b23ff5c98c3296f43a8ec2 | /mysite/settings.py | 771010c4ac70bdf1b82f02c36d258802bb248e87 | [] | no_license | maheshlangote1/my-first-blog | dafe1d7dcca08a0b20c6c999bc711fd21825474a | 6f69be64727f6501f89e47467df2874172922725 | refs/heads/master | 2021-09-02T09:31:02.716380 | 2018-01-01T13:02:40 | 2018-01-01T13:02:40 | 115,900,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"maheshlangote1@gmail.com"
] | maheshlangote1@gmail.com |
caac4b906ea5a48d94d2730fe65597e6501777c8 | 48858c685f1c60755b2eaa4aa4005336cd061fee | /server.py | 9a3edcf5a5224ca4f0f37fc2d67f6b9c1529877a | [] | no_license | jinky0ung/MyProject | c8052aa75a129f2a6180a1cc5009d553b1e1bd0b | 3430a4521ce0b9d69be43fd83c7eebebd6937b90 | refs/heads/master | 2023-05-23T22:39:39.398447 | 2020-02-28T03:33:03 | 2020-02-28T03:33:03 | 232,560,873 | 0 | 0 | null | 2023-05-22T22:17:27 | 2020-01-08T12:41:58 | Python | UTF-8 | Python | false | false | 4,089 | py | # 패키지설치: requests, flask, pymongo, beautifulsoup4
import requests # url로 요청을 보낼 때 사용하는 친구
import openpyxl
from bs4 import BeautifulSoup # 크롤링, HTML을 찾기 쉽게 만들어주는 친구
from flask import Flask # API, HTML 요청을 받았을 때 적절한 결과를 내려주는 친구 (서버 프레임워크)
from flask import render_template # HTML을 예쁘게 브라우저로 내려주는 친구
from flask import j... | [
"noreply@github.com"
] | jinky0ung.noreply@github.com |
8fc7949fc9a35ac9fe1f07a7a6aad32c1d35a8bf | f87e1a6712041174046f26fdb8464e5d871babd4 | /basics.py | ea6b3b35bfec36f0430b04d080fad1278fbe066b | [
"MIT"
] | permissive | jdidi-boujneh/xyz | fe6a8ce73ab9d4b8925a34a4639d63058e603e00 | 714cd5cb90d6e37d7fc819e3fa2cb996bff2c890 | refs/heads/master | 2022-12-26T14:53:47.294185 | 2020-09-14T14:44:32 | 2020-09-14T14:44:32 | 295,428,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from flask import Flask, render_template
if __name__ == '__main__':
app.debug = True
app.run()
app = Flask(__name__)
@app.route('/home')
def home():
return render_template('home.html')
if __name__ == "__main__":
app.run(debug=True)
| [
"noreply@github.com"
] | jdidi-boujneh.noreply@github.com |
1e1ae4854016d822cbf704f310b243729c7e3e4a | 21acc25dd3969318dd8476e364fe2fb4eabfe4f4 | /podcastninja/migrations/0005_auto_20150423_1005.py | 5c94549f4db338ebc255bd4a0a32cb7727b5426a | [] | no_license | monty5811/podcastninja | 72dc98375974b1714a8457b09126981a76166b9a | 94a55536270f3e1c4e4f2160e0a24e79c9f40b7f | refs/heads/master | 2020-05-17T01:24:57.312486 | 2015-05-25T15:18:03 | 2015-05-25T15:18:03 | 35,883,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('podcastninja', '0004_podcastitem_s3_url'),
]
operations = [
migrations.AlterField(
... | [
"montgomery.dean97@gmail.com"
] | montgomery.dean97@gmail.com |
abe4a8aa610e86e4477086253dd53fe9bd29e75a | ac20cab9371639dc3b722914c7a7033c9164d574 | /Indian_Liver_Problem/demo.py | 4e0f430790215f5368a91200c9e635328ed0dd2d | [] | no_license | Dishant1997/Electronic-Health-Record | ba6c0fe5f9ae94cbf1f11f07108eb3dc1861bcdc | 199cae790e503d9e50b8ab13b492a3fe040bdc89 | refs/heads/master | 2020-08-13T01:07:21.621527 | 2019-10-13T19:40:49 | 2019-10-13T19:40:49 | 214,879,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 8 10:53:52 2019
@author: abd360
"""
from pycm import *
y_actu = [2, 0, 2, 2, 0, 1, 1, 2, 2, 0, 1, 2] # or y_actu = numpy.array([2, 0, 2, 2, 0, 1, 1, 2, 2, 0, 1, 2])
y_pred = [0, 0, 2, 1, 0, 2, 1, 0, 2, 0, 2, 2] # or y_pred = numpy.array([0, 0, 2, ... | [
"noreply@github.com"
] | Dishant1997.noreply@github.com |
7854099507fd19c58fb6b7397b65f1a9f46d8286 | 20a645c0a25c63592a6042da79d0ca9bdcfd8992 | /2010_11_09_Tennis/test_tennis.py | 597123e586ad8f06d0c7ba7bea4cdbacaa4a1409 | [] | no_license | beatorizu/dojo-campinas | 470b8d9f8d3cb6147793dce97aea08a31638b75d | db5c4869ddb7dccb8fc05c9a3e452fa8727a4e2c | refs/heads/master | 2020-12-27T15:35:50.109185 | 2011-08-09T14:03:48 | 2011-08-09T14:03:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | import unittest
from tennis import Game
class TennisTestCase(unittest.TestCase):
def pontuar_jogador(self, jogador, n):
for i in xrange(n):
self.game.pontuar(jogador)
def setUp(self):
self.game = Game()
def test_se_placar_inicial_eh_zero(self):
self.assertEquals(s... | [
"rennerocha@gmail.com"
] | rennerocha@gmail.com |
184e2752b2c8730b9ad69aadca3ff1754883ae36 | 92d6a36f97ba4691b8b75d471b251bb373015e38 | /development/myprojects/prof/manage.py | ccd13e8c1c03620f469bae6de6f50a905caa39e2 | [] | no_license | aghee/cashconvert | 7e5224c06fa53f2e8abbddf95a6e1d5315202a56 | 654bf952664e5df4e012650dc122b3fe9d9c3c5d | refs/heads/master | 2020-03-16T23:40:35.467388 | 2018-05-13T20:06:09 | 2018-05-13T20:06:09 | 107,349,826 | 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", "prof.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you... | [
"mutembeiagnes@gmail.com"
] | mutembeiagnes@gmail.com |
224fabcf24e1332e5108b87f8f986a1011a7f344 | c5b415c78fb047b6de191842d09573f07a2f3e6e | /media.py | beeb5fc5834c40779236274237c12d27e025b01c | [] | no_license | EsraaQandel/ud036_StarterCode | 72832f87c876691c3efe165c7d0998088770a9bb | 72235f1653237391bdf63e263c97d6ee80e2389c | refs/heads/master | 2021-07-06T02:40:13.258769 | 2017-09-28T20:11:57 | 2017-09-28T20:11:57 | 105,177,783 | 0 | 0 | null | 2017-09-28T17:20:08 | 2017-09-28T17:20:08 | null | UTF-8 | Python | false | false | 493 | py | import webbrowser
class Movie():
""" A class the presents a movie with its title,storyline,image and a youtube trailer"""
def __init__ (self,movie_title, movie_storyline,poster_images,trailer_youtube):
self.title= movie_title
self.storyline = movie_storyline
self.poster_image_url = poster_ima... | [
"noreply@github.com"
] | EsraaQandel.noreply@github.com |
a18876069899c3a874b97e8d190a3a3cc46169c8 | 069134fadf91de5c97a0360c924f4bbc3e885765 | /manage.py | d6fa798186327a5bc28b63c4b76e6e671dad691b | [] | no_license | sparkxgd/stu1803 | be963fc0cd29c53171ea570e1e423d22bdbb665e | 5c0637692fde1292f6611827737f0bd043b6e0d0 | refs/heads/master | 2023-01-14T15:42:34.435236 | 2020-11-18T07:23:25 | 2020-11-18T07:23:25 | 311,538,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'stu1803.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"472036660@qq.com"
] | 472036660@qq.com |
0d7eff129f2e264e1c25ff638064a0a4cba89488 | 6b6630afb6a00636f5a89f14a3f6c45d15b91536 | /todo_dj/todo_dj/asgi.py | 34ccdfe7db5c2e09fb49ce1a7983b0c66839492c | [] | no_license | python0909/todoapp_dj | 0d3ec3947c652e2e37cd4e168d70f52064c1cd3e | 910c33cb5a07bbfde1c460e581e4df1943c43638 | refs/heads/main | 2023-07-09T06:30:58.965985 | 2021-08-04T12:37:03 | 2021-08-04T12:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for todo_dj project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"sainiboyms143@gmail.com"
] | sainiboyms143@gmail.com |
a39e8ae6b206d991cd0614e1fbc9302b6931c6c5 | 6fc7722c7c6ec3a33b294e812f0401c42b785059 | /Camera Tilt Pan/Servo.py | 76e43c070cb1141e3f97b2b4ff9b58de754520c4 | [] | no_license | bitoffabyte/Vr-Bot | cfd975e8142e262a3201e21fae6639c711fc7fda | 2bbad78ec497adf8af9954b27a617a05f7c485ea | refs/heads/master | 2022-11-25T00:26:41.503407 | 2020-07-29T22:06:00 | 2020-07-29T22:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7,GPIO.OUT)
pwm = GPIO.PWM(7,50)
pwm.start(5)
pwm.ChangeDutyCycle(2)
def cfa(y):
return y/18 + 2
n = 0
while n!=200:
n=int(input('Entert the angle '))
pwm.ChangeDutyCycle(cfa(n))
| [
"nr.rnarayan@gmail.com"
] | nr.rnarayan@gmail.com |
857a86a9d1aefc15857f4de3339d34b9a66cbe76 | ccb9c57b6587060bb0715bcf5a5850a617f0526d | /code/client/make_0_1_map.py | 125a9e2b992dbdef562f9d32899d02fc56e9f9b9 | [] | no_license | KodamaSakuno/uw2ol | fbbe7f0c8ad779f6665a5fb695fc2d845c0f5575 | 38818fba1c9af399077c130de99032e4b846a6cb | refs/heads/master | 2023-08-28T07:13:37.271390 | 2021-11-02T16:51:25 | 2021-11-02T16:51:25 | 390,922,353 | 1 | 1 | null | 2021-07-30T03:52:42 | 2021-07-30T03:52:41 | null | UTF-8 | Python | false | false | 1,562 | py | from map_maker import MapMaker
import numpy
import pickle
# add relative directory to python_path
import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
# import from common(dir)
import constants as c
map_maker = MapMaker()
map_maker.set_world_piddle()
matrix = map_maker.world_map_p... | [
"515441483@qq.com"
] | 515441483@qq.com |
a5d672f7f6cc59caef2feca5f7485331ae4c796a | d215553c9da0edfbe849c8820e4806ec57f17f7e | /week-2/is-even.py | 0483c3a2097f54460f1576958c9a72a0f5a04c2a | [] | no_license | mikoada/CA116 | 4237ae8c7f0676999ad532e3e68bc4b57d9c541c | b9eb410591301430a4f77d3320ebc52e631e144a | refs/heads/master | 2022-04-30T08:57:15.688065 | 2018-01-12T22:53:59 | 2018-01-12T22:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | n = input()
print (n / 2) * 2 == n | [
"mixeradamski@gmail.com"
] | mixeradamski@gmail.com |
b99b28711ae0a414e635cb2d218084f25031f62f | d5844448e05b884c4ede2374797b42aaa9c4f22c | /utils.py | 801dbd8024035a04f9d58ec5146e5d87b31b60cc | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | permissive | jb55/lightning-qt | 41bf4abcba1b41e4e1d26c45562f5498d75761a9 | 34d6c990a74a5d6d8a10eb75a98d15a6c7eb1891 | refs/heads/master | 2021-05-22T21:22:08.279518 | 2019-12-24T17:31:41 | 2019-12-24T17:31:41 | 253,102,137 | 0 | 0 | BSD-3-Clause-Clear | 2020-04-04T21:28:55 | 2020-04-04T21:28:54 | null | UTF-8 | Python | false | false | 1,016 | py | import os
import signal
import _thread
import threading
def exit_after(seconds):
"""Exits if the function takes longer than `seconds` to execute.
Actually it simulates a SIGHINT so it is quite adapted to RPC calls.
Taken and adapted from this very clever gist by aaronchall:
https://gist.github.com/aar... | [
"darosior@protonmail.com"
] | darosior@protonmail.com |
df30b6ba3650907388e04031d1f8d41baf23208a | 17aa83a6a1183557165d069fd3e99bef5fd5200e | /internalToEevee.py | 48f62109d7ccaee5bdbd71e45c01e026628dfffa | [] | no_license | stansu/blender_script | f0e4c4009c1a273bdb4dc53268830f240b97dbd6 | f2a49508780f89d6b5cc62055f81a48d8c65edcf | refs/heads/master | 2022-02-05T21:49:36.629749 | 2022-01-05T01:05:50 | 2022-01-05T01:05:50 | 31,686,823 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import bpy
mats = bpy.data.materials
for m in mats:
m.use_nodes = True
mTree = m.node_tree
mNodes = mTree.nodes
mNodes.clear()
if not mNodes.get('Material Output'):
matOutput = mNodes.new("ShaderNodeOutputMaterial")
emitMat = mNodes.new("ShaderNodeEmission")
emitMat.inputs[... | [
"noreply@github.com"
] | stansu.noreply@github.com |
03f4d01b5685fdef317ea928949d4aec520f1672 | 2a122fef580d64605d9a7405e9a06175b6ac684b | /tests/test_skeleton.py | 6e2b0294b71eb99926dbba5cd0d9b308bf37e1f6 | [
"Apache-2.0"
] | permissive | jaggernaut007/margipose-1 | 37688f235e028e912d37bcd3c36ff762783b2597 | f0540aeb6dad40650b97b53835002f9616c38104 | refs/heads/master | 2022-08-23T03:45:48.617093 | 2019-05-09T03:18:34 | 2019-05-09T03:18:34 | 266,761,551 | 0 | 0 | Apache-2.0 | 2020-05-25T11:28:08 | 2020-05-25T11:28:07 | null | UTF-8 | Python | false | false | 2,391 | py | import numpy as np
import torch
from torch.testing import assert_allclose
from margipose.data.skeleton import spherical_to_cartesian, cartesian_to_spherical, \
absolute_to_root_relative, absolute_to_parent_relative, parent_relative_to_absolute, \
CanonicalSkeletonDesc, canonicalise_orientation
def test_spher... | [
"fungalberto@gmail.com"
] | fungalberto@gmail.com |
094fbc3e03007c535e1a2c7772cfc4741c9e240b | 2af520bec5efc61c0b65bbcf09e4ad3a747e6a63 | /1004/main.py | 605d07a0f383bb746b3dd016b61fa2a273caee54 | [] | no_license | Luning644182206/leetcode | 87aa46b65737439156f52a071a81dd3479d24e12 | 63da89183f7309716d18f969481cf82155e679c4 | refs/heads/master | 2020-07-22T02:39:41.040141 | 2019-09-08T02:28:21 | 2019-09-08T02:28:21 | 207,050,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | # coding=-utf8
class Solution(object):
def longestOnes(self, A, K):
"""
:type A: List[int]
:type K: int
:rtype: int
"""
var_hash = {
0: {
num:
},
1:
}
if __name__ == '__main__':
a = 'cabab... | [
"luning04@baidu.com"
] | luning04@baidu.com |
dc9bc77e75ec86cb2ad265207209d03d37bf69a4 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/1929.0_Concatenation_of_Array.py | d8ab060fd5948df008b621e9dca0f8d6bf0d9362 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | '''
执行用时:36 ms, 在所有 Python3 提交中击败了38.78% 的用户
内存消耗:15.1 MB, 在所有 Python3 提交中击败了51.26% 的用户
'''
class Solution:
def getConcatenation(self, nums: List[int]) -> List[int]:
return nums + nums
'''
执行用时:36 ms, 在所有 Python3 提交中击败了38.78% 的用户
内存消耗:15.1 MB, 在所有 Python3 提交中击败了47.15% 的用户
'''
class Solution:
def getCo... | [
"838255715@qq.com"
] | 838255715@qq.com |
83aa2286d7ceded9df2768dbe64446908408c2eb | d8ec4e5f59291a0c2fb5058177d631d06af1af4e | /__init__.py | 3639adbeca82ca6f598acd7acde760ed46f5b4f9 | [] | no_license | kevin808/wfz_academy | 928b96f56ab50333416d120556643533d7074847 | 54b5abd6e592386307a9cc3dfa75e9d59ca9d8ee | refs/heads/master | 2020-06-07T12:15:11.472817 | 2019-06-28T07:14:53 | 2019-06-28T07:14:53 | 193,020,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from . import controllers
from . import models
from . import person
from . import wizard | [
"kevin@Kevins-MBP.lan"
] | kevin@Kevins-MBP.lan |
3668163b33ba19dd7eff00d702f7712c5fd93349 | 8a41a7f9340cfa784cb36d35dca1ecb1630e4097 | /Programming/Python/Databases/mongodb_practice/mongodb_with_docker_container_class_based.py | 2b5256a980b7d9de036f2423af2cae13cf65bfc6 | [] | no_license | anishst/Learn | 02e6b6cce43cf21621d328ef0fc25168267a9a3d | a1aed8b78b19acdb23e20be57b67fb242e0aefc5 | refs/heads/master | 2022-05-13T10:17:40.293640 | 2022-03-30T12:44:21 | 2022-03-30T12:44:21 | 173,595,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,266 | py | # UNDER DEV NOT FULLY WORKING
import uuid
import pymongo
class Database(object):
URI = "mongodb://192.168.1.50:27017"
DATABASE = None
@staticmethod
def initialize():
client = pymongo.MongoClient(Database.URI)
Database.DATABASE = client['items_test']
@staticmethod
def insert(... | [
"anishst@hotmail.com"
] | anishst@hotmail.com |
d9bd6eeef9a6a4e5b9aecea2a28bb6bd45001a4b | fe62edbc1914e7d40c5b7a0f1004d48c2a13ae82 | /Euler_047.py | 74c2249839d0c9ee3d3cb24fb69542dcec0383d3 | [] | no_license | cavandervoort/Project-Euler-001-to-100 | ef854469adc36f0596803aa7cd1b36297c94d595 | 6caa8f98c100954b40e10502011d5ad1e5b08a54 | refs/heads/main | 2023-04-25T09:56:11.109190 | 2021-05-19T20:19:46 | 2021-05-19T20:19:46 | 366,872,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # Problem 47
# Distinct primes factors
primes = [2]
int_list = [-8,-6,-4,-2]
for num in range(3,1000000):
num_check = num
is_prime = True
count_distinct = 0
for prime in primes:
if num_check % prime == 0:
is_prime = False
count_distinct += 1
w... | [
"61097283+cavandervoort@users.noreply.github.com"
] | 61097283+cavandervoort@users.noreply.github.com |
385d4ab16bbc106afda4775ca7680ffe0f015eda | a6d224f77793fab5cb84b1dca189cd3524a90eff | /easycalc.py | adf14d08142568fd8b10210f3382b040486c1b9f | [] | no_license | hmlinux/python-easycalc | 05f1be6c3cce0a191cf1565bd070f20f54c25336 | a8a48e9fb2e18913e5173e6cfc6bf0e4da2706ef | refs/heads/master | 2020-03-14T02:06:33.273181 | 2018-04-28T08:59:35 | 2018-04-28T08:59:35 | 131,392,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,506 | py | #/usr/bin/env python3
# _*_ coding: utf-8 _*_
import re
def matching_formula_value(num):
#判断输入公式是否合法,如包含字符或者特殊字符,做特殊处理
try:
num = float(num)
return True
except (ValueError,TypeError) as diag:
pass
def formatting_formula(formula): #去除计算公式中多余的"+-"号
formula = formula... | [
"741616710@qq.com"
] | 741616710@qq.com |
0f025f1ff3bbc046a84647844b691ff948daa0f2 | 408f8bd2776200443867b92cc94c1f74fa2dea3d | /tutorial/overset/mesh/run_pyhyp.py | d847d5a27c95cea5d8cbc4bf9bc665290cd031b6 | [] | no_license | mdolab/MACH-Aero | 58cb966da6b816597ba3f3d93c865fb0598a02b0 | bb96a16fa7cb1889293a6b51fe20becefd24f74e | refs/heads/main | 2023-09-03T23:32:11.923582 | 2023-08-22T20:21:51 | 2023-08-22T20:21:51 | 211,174,339 | 85 | 56 | null | 2023-09-12T17:32:18 | 2019-09-26T20:18:39 | Python | UTF-8 | Python | false | false | 5,456 | py | # ======================================================================
# Import modules
# ======================================================================
# rst Imports (beg)
from collections import OrderedDict
from mpi4py import MPI
from pyhyp import pyHypMulti
from pyhyp.utils import simpleOCart
from ... | [
"noreply@github.com"
] | mdolab.noreply@github.com |
dc4203b08a720fc5f960f3746692110481e6e020 | bdfa087d82fc8d760d2adce82c95b6e47dba674a | /Argparse/arg10.py | 4e962671da87a755c7c9a909ef57e557b13c3afc | [] | no_license | UppaLouva/python-library | 74f03718a0bb8ad2957cb371b9cfb98d45c7129d | 9031ddd3ead01d64dc0f33ef7ceeb85138a8bc94 | refs/heads/master | 2022-12-18T03:13:56.623621 | 2020-09-23T18:55:17 | 2020-09-23T18:55:17 | 298,060,941 | 0 | 0 | null | 2020-09-23T18:45:12 | 2020-09-23T18:33:48 | null | UTF-8 | Python | false | false | 361 | py | import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-i', metavar='in-file', type=argparse.FileType('rt'))
parser.add_argument('-o', metavar='out-file', type=argparse.FileType('wt'))
try:
results=parser.parse_args()
print 'Input file:', results.i
print'Output file:', results.o
except ... | [
"noreply@github.com"
] | UppaLouva.noreply@github.com |
54025d4983956a4b8d617a830a51fb747d21b130 | 15a86fc7c53ec19d62cc6f12bcd411b6e87db960 | /IT Essentials/IT-essentials Oefeningen/H4_Iteraties/Oef4.5.py | cc515d417d61b5985909bf0b1acafa963328f7bb | [] | no_license | MiloszBoghe/School-Y1- | 2fc6733e725714d76c1b2967baa2bb70ad89c69d | 2715ee13bf46ff7ca9b5d079fe5bdb6b77d2b8af | refs/heads/master | 2022-05-14T10:10:55.471842 | 2020-02-17T19:52:55 | 2020-02-17T19:52:55 | 241,193,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | getal = int(input("geef een getal: "))
while getal <= 1 or getal >= 100:
if(getal >= 100):
print("Fout! Het getal moet kleiner zijn dan 100")
else:
print("Fout! Het getal moet groter dan 1 zijn")
getal = int(input("geef een getal: "))
print("Het getal is: ", getal) | [
"11800460@student.pxl.be"
] | 11800460@student.pxl.be |
a84668d5b3ffbba89c08659fdd78fd2de45b1132 | a495475386da0d019504ddbcb1880dc3443ac83d | /savedata.py | 430ecc5cdc4d55ad074bec5f73610080678d4d0b | [] | no_license | ninedotnine/funtimes | d5b03ea35e1d54b4412230ea21a957f94f497cff | b8c6e2f37498f557c869c16200909053de31077a | refs/heads/master | 2021-01-13T02:23:04.269799 | 2013-06-29T20:29:52 | 2013-06-29T20:29:52 | 10,260,672 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | # savedata.py
# keeps track of the save profile
from settings import datadir
def populateDictionary(dictionary):
try:
with open(datadir + dictionary + '.dat', 'r') as fp:
dictionary = {}
for line in fp:
if line.strip().startswith('#') or line.strip() == '':
... | [
"brianna@tassaron.com"
] | brianna@tassaron.com |
61d9a4aaf739dcc9eb9d67ff61a87ee112ed5f7d | 0bd3aa75bbd55e4e04262e14a9a3f6e2d5ff6739 | /neko.py | 091fec581ac4db4221f7467e4d66ccc1ff896fa9 | [] | no_license | chagama-g/RandomASCIIArt | a5edf222cbf77e3de1c3f520c41e6b1453d4af6f | 47bd0e27ce381d966217dbcecef16f9e888a86fd | refs/heads/master | 2023-03-06T14:17:53.192353 | 2021-02-13T03:25:25 | 2021-02-13T03:25:25 | 338,485,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,868 | py | import random
# original: https://2ch-aa.blogspot.com/2017/10/1010.html
neko = []
neko.append("""
,-、 ,.-、
./:::::\ /::::::ヽ
/::::::::::::;ゝ--──-- 、._/::::::::::::::|
/,.-‐''"´ \:::::::::::|
/ ヽ、::::|
/ ● ヽ|
... | [
"55901504+chagama-g@users.noreply.github.com"
] | 55901504+chagama-g@users.noreply.github.com |
0453ce5cd997d1dcb2f655bdd06348d9781bf042 | 5bffff249e8d264a0e0361cdef4c0196c1c5c352 | /ffnn.py | deecb1b949f17de5be11d77e9ecdabf35c524829 | [] | no_license | Fer0xIsLit/school-project-thingy | 00791543671bfd492234e105e19ed1eef14b1f70 | 9f37867b8e1715f4693aa734fb1a5feb5cf82b9e | refs/heads/master | 2020-09-14T13:48:09.076098 | 2019-11-21T10:21:32 | 2019-11-21T10:21:32 | 223,146,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | import numpy as np
from tqdm import tqdm
import torch
import torch.nn as nn
from torch import optim
import torch.nn.functional as F
s = 'cuda:0' if torch.cuda.is_available() else 'cpu'
device = torch.device(s)
print(s)
fw = open('images', 'rb')
train_img = fw.read()
fw.close()
fw = open('labels', 'rb'... | [
"noreply@github.com"
] | Fer0xIsLit.noreply@github.com |
49f9db31b951b1dbfa1be4501372698254be6474 | 1922a719746ec5dc77478477c2af6acd5197f686 | /faceapi/views.py | 3434ee892586d10e223c2fd424ddf5b31df7a9ed | [] | no_license | Velezer/facewebapi | ef0e6865988094d3d18043abc0fcbb2e27ab4e8c | 931a70fb195f83947c2853d76a8b5ac4aa334ff7 | refs/heads/main | 2023-06-10T22:16:20.096082 | 2021-06-26T09:16:44 | 2021-06-26T09:16:44 | 375,943,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,818 | py | from django.shortcuts import render
from django.http import JsonResponse, HttpResponse, HttpRequest
from .logic import *
import time
import asyncio
# Create your views here.
def index(request):
template = 'faceapi/index.html'
context = {}
pickling_images()
return render(request, template, context)
a... | [
"asvelezer@gmail.com"
] | asvelezer@gmail.com |
c389303e3146bc35ff821cb1d46e512bb30de237 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AnttechMorseMarketingSrtaConsultModel.py | ed15c1198c9962d4b975315a6f97b110b2a9d905 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,452 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AnttechMorseMarketingSrtaConsultModel(object):
def __init__(self):
self._anonymous_mobile_sha_256_list = None
self._blind_mobile_sha_256 = None
self._extend_params = None
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
c89f1e925348210ada55438f3e47f2b3572cbe03 | 0412893529999de784ab9cb914f385ba788a3684 | /test/test_ack_collector_down.py | af6a6ac2ccc5999ccfadc2c84f1e1ec9cacdf9c9 | [
"Apache-2.0"
] | permissive | JeremyTangCD/lm-sdk-python | 0326bf034c16b022b760600dc18fe7aaad42fa26 | 2a15e055e5a3f72d2f2e4fb43bdbed203c5a9983 | refs/heads/master | 2020-04-15T15:39:59.276224 | 2019-01-09T09:55:36 | 2019-01-09T09:55:36 | 164,803,314 | 0 | 0 | Apache-2.0 | 2019-01-09T09:58:55 | 2019-01-09T06:33:40 | Python | UTF-8 | Python | false | false | 1,154 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"jeremy.tang@logicmonitor.com"
] | jeremy.tang@logicmonitor.com |
ad83aa4ab4266c792ad4a348e3344ecc1d9fec0c | 4997d460a2fc64171191a8cb03ac5967c3761772 | /if_hex.py | 2008be8df67f34f027ea338093c2ddbc71957222 | [] | no_license | Otsgolyak/lastchance | 3b7344863debc75619866bfacc0d620078c9296e | efc4f2662acdea974638a9321067084eece0f22e | refs/heads/master | 2021-01-24T01:41:00.770847 | 2018-04-23T11:37:14 | 2018-04-23T11:37:14 | 122,818,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import re
outputfile='../file.txt'
my_file=open(outputfile, mode='w', encoding = 'latin_1')
my_text = '0x012345,0xa1b2c3,0xdeadbeef,0x0x0x0x,0xabcdefg,0123abcd'
text_look_for = r"[0][x][0-9a-fA-F]+\,"
all_results = re.findall(text_look_for, my_text)
print(all_results)
my_file.write(str(all_results)) | [
"36776260+Otsgolyak@users.noreply.github.com"
] | 36776260+Otsgolyak@users.noreply.github.com |
54d35aced507702b82a95b2a8626758792f245cd | ffbbb74911f01e83194fbc87c0f13cf19d0d202d | /cod/textClassifierHATT_Only.py | 5ff424a21846f6c38353d7957b6019c414f90aae | [] | no_license | aliwagdy2580/READ | 11c86c33cb159bda569209b69d6f15ec17eddb8d | 582560e9202169650cf914892a952ffcc37084eb | refs/heads/master | 2022-01-22T16:49:48.089526 | 2019-05-25T15:39:29 | 2019-05-25T15:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,721 | py | # author - Richard Liao
# Dec 26 2016
import numpy as np
import pandas as pd
import cPickle
from collections import defaultdict
import re
from bs4 import BeautifulSoup
import sys
import os
os.environ['KERAS_BACKEND']='tensorflow'
from keras.preprocessing.text import Tokenizer, text_to_word_sequence
from keras.prep... | [
"ahmad@friendlycares.com"
] | ahmad@friendlycares.com |
d0636d524d7e53a4de326695d54a9b0b63be670b | baf9f1db80e8502d287d1f220dd3659f59a1059b | /base3.py | 816d5cc4309cde225d92f109ddf8fbfdb9534533 | [] | no_license | zhangman3187/homework | 099a0cee343f69b552e5f239a5cab283e7aa3596 | 008c77f93043e8ffcb88dd7f80e71d3cf42ffa45 | refs/heads/master | 2021-01-17T22:49:56.018166 | 2017-03-07T14:59:37 | 2017-03-07T14:59:37 | 84,204,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # -*- coding:utf-8 -*-
import requests,json
url='http://android.kuchuan.com/ranklatest?packagename=com.tencent.mm&market=360&date=1487690224850'
r=requests.get(url).json()
print r
print type(r)
print r[u'msg'] | [
"heqiang@wandoujia.com"
] | heqiang@wandoujia.com |
50f13043c20772e09dcd42f04fa833947e2231c1 | dd2e23e401fbfbc65eacc0fdc4000130cca11a98 | /rename_file_duration.py | 6249954f01376ddeb7cd9a5783657fdffb09cadb | [] | no_license | franarama/Scripts | 675b99946a3d509df49fc90393218411787bd67a | b0a3b9115601b8507d1e4f99f7b9e1a0adac1f54 | refs/heads/master | 2020-06-05T11:35:03.452869 | 2019-06-18T00:49:43 | 2019-06-18T00:49:43 | 192,425,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | """
Renames all files in a given folder (MY_PATH)
to the form "filename_XhXmXs"
so it includes the duration of the media file
(h = hours, m = minutes, s = seconds)
"""
import subprocess
from os import listdir
from os.path import isfile, join
import os
import datetime
def getLength(filename):
result = subprocess.Po... | [
"noreply@github.com"
] | franarama.noreply@github.com |
0ae9aaea48fd9efd898ab1f13648756ef229672f | c8e403f868e4e2cd536a1e41bcdc341ad80eb066 | /start_second_hands.py | 0dbbfd13c9916e5f14aff981de60259822c73bec | [] | no_license | BHBSA/hider_deal_price | 28e6a13cd237e88f7c8d290289cb4560f6ff1bd3 | 3ddf9c3b53b696d1baba8f1cc1089e885780aef2 | refs/heads/master | 2022-12-09T01:20:26.660549 | 2018-07-10T01:53:07 | 2018-07-10T01:53:07 | 141,073,585 | 0 | 0 | null | 2022-07-06T19:50:06 | 2018-07-16T01:51:51 | Python | UTF-8 | Python | false | false | 1,474 | py | from crawler.centaline import Centaline
from crawler.fangtu import Fangtu
from crawler.goufangwang import Goufangwang
from crawler.kufangwang import Kufangwang
from crawler.leju import Leju
from crawler.leyoujia import Leyoujia
from crawler.lianjiazaixian import Lianjiazaixian
from crawler.maitian import Maitian
from c... | [
"jijunyu@fangjia.com"
] | jijunyu@fangjia.com |
f81bc8c805a75b8b1b20cfd10b98ebbd4f5ed99e | 96ea95f05aa1806d10668364ca5a26827bdd0eb7 | /main.py | 102777f43818291c554dbdfc63393bd279ee066f | [] | no_license | SheyonFN/test-1 | 083a79f29d44f9a8eb64ce829973edb2c9f15ec7 | 8b4b1b3268df206ec0a9fedc55688de698a3b13a | refs/heads/master | 2023-04-08T06:03:35.084117 | 2021-04-22T08:44:24 | 2021-04-22T08:44:24 | 360,451,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | def on_forever():
pass
basic.forever(on_forever)
def on_logo_event_pressed():
pass
input.on_logo_event(TouchButtonEvent.PRESSED, on_logo_event_pressed)
| [
"83003954+SheyonFN@users.noreply.github.com"
] | 83003954+SheyonFN@users.noreply.github.com |
116bf8d0af389f0ecb875e112d746e771ad16e0a | ec67023382a81849ed624b5274f38cd656aa85e3 | /PracticeBasicThings/LAB05/TEST.py | 8e252792e6316ea4485be5922716ca239c529ae8 | [] | no_license | Natthapolmnc/Python-basic-project | cb4a5e40ace4fe7b49dbb16f24ddb39112dbb54c | c1348bd1450058104d3c12f8a3843a7e85a5dbc1 | refs/heads/master | 2020-04-21T00:24:16.825259 | 2019-02-05T18:53:03 | 2019-02-05T18:53:03 | 169,195,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | num=int(input())
min=max=num
for i in range(14):
num=int(input())
if num<min:
min=num
if num>max:
max=num
print (max,min) | [
"natthapol3011@gmail.com"
] | natthapol3011@gmail.com |
65e6ac1ce7bc66e2698c5af850183ab8830213e4 | 5b814be169e0f0917ec927743d574fbce04fa5b1 | /getWeb.py | e966b5cc9ad5b0c2fd9ac2932db88400cecf27d5 | [] | no_license | Hep-dog/Test | d680695f25a7f15e59434dcdbb449da422c8236c | 49041b1fe2661f790b3b329afcb7e29e9fda4787 | refs/heads/master | 2021-06-30T01:21:08.983692 | 2017-09-16T15:51:02 | 2017-09-16T15:51:02 | 103,758,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | #!/usr/bin/python
# vim: set fileencoding=utf-8 :
import sys
from imp import reload
reload(sys)
import requests
import bs4
from bs4 import BeautifulSoup
def getHTMLText(url):
try:
r = requests.get(url, timeout=30)
r.raise_for_status()
r.encoding = r.apparent_encoding
return r.text... | [
"shenpx91@gmail.com"
] | shenpx91@gmail.com |
c5197a79386ec28ef354380fd30a7a275021810a | 0a5c472821a05cd6d0264a8b7ee80e47b52cb7e9 | /backendapi/backendapi/urls.py | 90cccb52f8c89a305c732eb810b0e951e7ca0675 | [] | no_license | notsojatin/klaarAssessment | 92dbeae608a6ebc6c9cf7374d57292b357682cef | 3003f012293cfcf213d7f95b30980dcb7139a5f8 | refs/heads/main | 2023-06-28T05:12:49.917710 | 2021-07-31T11:34:51 | 2021-07-31T11:34:51 | 391,099,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """backendapi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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')
Class-ba... | [
"awstatic@Jatins-MacBook-Air.local"
] | awstatic@Jatins-MacBook-Air.local |
7000d765cb9ee3d2b521f0360d99992610fa3561 | 27ef726d974817fb39b448feec827ec4e17cbfa4 | /Test_twisted/lib/python3.5/rlcompleter.py | 3c1d9ec5087d55923d6ce22d4b7a843fb4fb4bb4 | [] | no_license | red-one-dataviz/fil_rouge | e6f99e02c1fdd3d7e010e214133c6f1e9d372fef | edb71cbe05f6be65b50f65ffa41edbdaec0786e3 | refs/heads/master | 2021-09-11T15:52:59.010096 | 2018-01-23T11:17:27 | 2018-01-23T11:17:27 | 110,855,607 | 3 | 1 | null | 2018-02-09T20:37:58 | 2017-11-15T16:05:10 | JavaScript | UTF-8 | Python | false | false | 60 | py | /Users/thaianthantrong/anaconda/lib/python3.5/rlcompleter.py | [
"thaian.tt@gmail.com"
] | thaian.tt@gmail.com |
2416f4eb0dd8a8ade535334bf828d63bea818bb7 | d3acfb43d8b81d33e5e6cac1619a1d91d063ea99 | /tests/test_prep.py | 609c99dad583270dfb9ef9bf2a37f1ef06b7c7bd | [] | no_license | ann-cooper/choose-entities | 6e93439f95859ef7b78687356773a6758d61fb0c | 9d8cd658321f9a4ca98dc41864c3bf76e09ef36c | refs/heads/master | 2023-05-25T15:37:45.759599 | 2023-02-07T20:35:29 | 2023-02-07T20:35:29 | 153,012,082 | 0 | 0 | null | 2023-05-23T02:45:36 | 2018-10-14T19:41:51 | Python | UTF-8 | Python | false | false | 476 | py | import pytest
import spacy
from choose_entities.prep_docs import PrepDocs
@pytest.fixture(scope="function")
def setup_docs():
docs = list(PrepDocs("tests/sample_pdfs").prep_docs())
return docs[0] if len(docs) == 1 else None
@pytest.mark.parametrize("vocab_len, type_check", [(1164, spacy.tokens.doc.Doc)])
d... | [
"cooperannc@gmail.com"
] | cooperannc@gmail.com |
0fed27224f23341fd6ebe1d76b42ab9373db1d53 | df1f359a6284e45a884aca5791ee87db2232b164 | /python/security/utl/cache/__init__.py | 740258c936a681316676400cc155db2a845f562d | [] | no_license | wruibo/tools | abb086a32ed3f710676eda24b73ba17735a1cb7c | 9f452b6c57ff211b38ca8ce971396e94c0b2194b | refs/heads/master | 2020-06-28T23:08:27.688380 | 2017-11-03T06:09:53 | 2017-11-03T06:09:53 | 74,459,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | """
cache for data
"""
class vendor:
@staticmethod
def file(name='default', dirpath=None):
"""
open a new file cache
:param name: str, name of the cache
:param dirpath: str or None, cache directory path
:return: obj, file cache
"""
from . import ... | [
"polly@polly.local"
] | polly@polly.local |
60142cf4829b73accbc5a591d9054455638e196f | 08295531e7b00ad49282815fdd43d98a8b8547b6 | /nids_models/NIDS_RNN.py | 00b0f9ac0d16967fb77efa8211dea262b8674bc5 | [] | no_license | SergioArroni/VulnerGAN-py | c2162c5ccd63e55b74c8cf5ce376fc4f64c5aa11 | 5aebfb6056cbb25df1d9d6fbfe0718ad5dbde54d | refs/heads/master | 2023-07-14T01:53:29.666409 | 2021-08-24T02:31:39 | 2021-08-24T02:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,436 | py | import datetime
import os
import shutil
import sys
import traceback
sys.path.append(os.path.dirname(sys.path[0]))
from data_process.my_dataset import Dataset_adv, Dataset, Dataset_mix, Dataset_adv_1,Dataset_shadow
from tensorflow.keras.models import Sequential, load_model, Model
from tensorflow.keras.optimizers import ... | [
"liuguangrui.hit@gmail.com"
] | liuguangrui.hit@gmail.com |
ab7534158f0b002b76e280da30abc773c277e06d | 978855208e71e8b37fcc27989d0d119e9d1c9d83 | /decorator_patterns/class_decorator_with_arguments.py | 3bb45559f97fbf3a6512b57378b77085cc5d1c43 | [] | permissive | jbrt/python-decorator-patterns | 837a14725f52e395bbec6c22a90741b05f85938e | f12cf820bcc4c6be9c810dfd222ca0845131debf | refs/heads/master | 2022-12-15T13:36:32.012764 | 2020-08-30T14:13:48 | 2020-08-30T14:13:48 | 291,475,448 | 0 | 0 | MIT | 2020-08-30T14:13:49 | 2020-08-30T13:27:33 | null | UTF-8 | Python | false | false | 1,199 | py | #!/usr/bin/env python3
class ClassBasedDecoratorWithParams:
def __init__(self, arg1, arg2):
"""
Initialization (takes the arguments of the decorator)
:param arg1: argument one
:param arg2: argument two
"""
print("Initialization of the decorator")
print(f'Ar... | [
"julien@toshokan.fr"
] | julien@toshokan.fr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.