blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e7a515daeaa03636535a18bbda0da4090a2ea830 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/network/v20200601/express_route_circuit.py | 727cf5612ac08490037b0bda33dc7615a0e558e1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,206 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
334a7424f11eea5cd7689a57c259d03cefc4dac1 | fa6253e760dc8e778d6035ad7b10132c90547a9d | /rowscolumns.py | 478cf9e4ec7d7619c3283517d1219f8ff7333d2f | [] | no_license | akhileshrao/Real-Time-Speech-Processing-using-MFCC | 20b7fecd49e8aa77e81bd36d4c49288df67cd652 | fa06193f018ff605dabb26fe263acafc57c01db2 | refs/heads/master | 2021-01-19T04:25:39.445459 | 2016-06-10T19:10:26 | 2016-06-10T19:10:26 | 60,869,863 | 1 | 0 | null | 2016-06-10T19:06:03 | 2016-06-10T18:45:07 | Matlab | UTF-8 | Python | false | false | 125 | py | import numpy as np
def rowscolumns(a):
finallength = list(np.shape(a))
return finallength[0], finallength[1]
| [
"noreply@github.com"
] | noreply@github.com |
fc54ff31f139acd7999d67ea2eb33653f913edbd | aa3d9eae904bc2510ccc783c2070e4e197fbc245 | /hal4000/stagecontrol/HaNikon1StageControl.py | bdb4ca0602f100b411ba785bc04fb4a7a84067c5 | [] | no_license | andor-halab1/storm-control-halab | 31a8370d4337a08003923cc8909fda6362e63b9e | f786abbd7114a15ad957d5e8b31da95189ec9e6c | refs/heads/master | 2020-06-19T01:53:08.158118 | 2017-05-19T19:02:44 | 2017-05-19T19:02:44 | 74,928,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | #!/usr/bin/python
#
## @file
#
# Stage control for Nikon TiU
#
# Hazen 04/15
#
from PyQt4 import QtCore
# stage.
import sc_hardware.nikon.tiEStage as tiEStage
# stage control thread
import stagecontrol.stageThread as stageThread
# stage control dialog.
import stagecontrol.stageControl as stageControl
#
# Stage con... | [
"ha-myong@win.ad.jhu.edu"
] | ha-myong@win.ad.jhu.edu |
d8977944729ef7dde2acd5ccfcfd1ea5a9729b9d | b1ea8ca04c07b50ad141aa636243e921d2c5174f | /lesson_8/les_8_task_1.py | 3bf3dffaca5287e623d7cb86317757c7ebe47184 | [] | no_license | ToporovV/algorithms | 7fc8bbdf115b1fef034521c67816ade0e15fb389 | c560d8e4d94d539922ae01d6660fdc747c5f0422 | refs/heads/main | 2023-05-26T01:36:55.811630 | 2021-03-21T15:22:56 | 2021-03-21T15:22:56 | 315,136,369 | 0 | 0 | null | 2021-03-21T15:22:56 | 2020-11-22T21:32:50 | Python | UTF-8 | Python | false | false | 775 | py | # Определение количества различных подстрок с использованием хеш-функции.
# Пусть на вход функции дана строка. Требуется вернуть количество различных подстрок в этой строке.
# Примечание: в сумму не включаем пустую строку и строку целиком.
import hashlib
def count(text):
str_ = str(text).lower()
size = len(st... | [
"top.vetal@yandex.ru"
] | top.vetal@yandex.ru |
73a9e1f1d8616b75fec6dd74a7c994515663d66a | e20e08426767fde594d7b84ad55d699273d664b5 | /Finance/migrations/0007_hd2.py | 645a32d4f5a497d706d47693f583199a2268c460 | [] | no_license | IssaShergy/uerp | ebfa4b9f2a2a637b511c3cd8f3543fedfda377ec | db020acaf11b124ec94e407968073f07de978b12 | refs/heads/master | 2022-10-30T02:31:36.115819 | 2022-10-11T02:30:26 | 2022-10-11T02:30:26 | 261,157,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # Generated by Django 2.2.10 on 2020-04-24 13:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Finance', '0006_hh2'),
]
operations = [
migrations.AlterField(
model_name='trantablemain',
name='TranNo',
... | [
"shergy123.im@gmail.com"
] | shergy123.im@gmail.com |
3218c80e2388c12f18ccc476f3ba1e767afcc633 | 257dca672ec6f57d63ab2f603c82b9e34c623ace | /experiment/migrations/0009_auto_20160511_2152.py | aab6ae012dbd2ddbdf7985a419071b99cc6d1455 | [] | no_license | keryil/leaparticulatorjs | df59f64789d382641a229f6a8d2556bfe5d61603 | 5d0630b272ce4ca489731256c61eecd4af7863ff | refs/heads/master | 2021-01-01T05:14:27.547376 | 2016-05-20T22:29:30 | 2016-05-20T22:29:30 | 59,297,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-11 21:52
from __future__ import unicode_literals
from django.db import migrations
import sortedm2m.fields
class Migration(migrations.Migration):
dependencies = [
('experiment', '0008_auto_20160511_2136'),
]
operations = [
mi... | [
"keryilmaz@gmail.com"
] | keryilmaz@gmail.com |
4c119e4d899ded17fc322cbed2aae93f00f17728 | 28b4c4676cb016e35cc7b1048097628caa113114 | /sso/relay.py | 99757032575f381faeec89c1b1124012853f5fa4 | [
"MIT"
] | permissive | shiroyuki/voila-id | 829127ef258c829f33d6f4079486829e3325f208 | da86daef255d23b73ad6f2ba67fba02201407f09 | refs/heads/master | 2016-09-06T16:56:45.724263 | 2014-08-25T05:50:43 | 2014-08-25T05:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | from sso.common import Controller
from sso.security import AccessMode
class Relay(Controller):
def get(self):
routing_map = self.component('routing_map')
if not self.session.get('auth'):
return self.redirect(routing_map.resolve('authentication'))
auth = self.session.get('auth'... | [
"jnopporn@shiroyuki.com"
] | jnopporn@shiroyuki.com |
afc7ff303711279f4f741cdd9577ab3cd04dc3f8 | 18be4773d724caf93305588db62e921e7c54c08e | /seriesapp/apps.py | 787d1bdde2760e0bf828504287b376bf7ecdff7a | [] | no_license | ck46/showtimeapp | 7178c3e6f4fa3932106a01450308f844721479d8 | dc4c96f7d1f0531320109c93ae6a47fff24577db | refs/heads/master | 2020-05-20T23:32:02.421511 | 2019-05-09T13:15:03 | 2019-05-09T13:15:03 | 185,802,951 | 0 | 0 | null | 2019-05-09T13:20:20 | 2019-05-09T13:20:19 | null | UTF-8 | Python | false | false | 158 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class SeriesappConfig(AppConfig):
name = 'seriesapp'
| [
"chipilej@gmail.com"
] | chipilej@gmail.com |
b7dc4ef518dfe58cca8c9099f34546f029eed5de | 5686b51c592b0ea293127c51bd27cea17073d8a0 | /data/pascal_voc_dataset.py | 8809f11cad37952ae297dffc9f58facc3c8d99b6 | [] | no_license | hushell/semisup_semantic | 727026983ebd00daf91e3f983a1ca78e3b225eec | 54a2b076959081f0dab42802fa5c3a082f83b9f4 | refs/heads/master | 2022-10-02T17:07:07.237702 | 2020-06-08T23:05:29 | 2020-06-08T23:05:29 | 110,006,424 | 1 | 0 | null | 2017-11-08T18:12:28 | 2017-11-08T17:14:33 | Python | UTF-8 | Python | false | false | 5,505 | py | import os
import collections
import json
import torch
import torchvision
import numpy as np
import scipy.misc as m
import scipy.io as io
import matplotlib.pyplot as plt
from tqdm import tqdm
from torch.utils import data
from data.data_loader import get_data_path
class PascalVOCDataset(data.Dataset):
def __init__(... | [
"dom343@gmail.com"
] | dom343@gmail.com |
323314a44358a166ba601398ae2f8308055495fa | cfc46fd56c16ac9c010bcf0c1eb50da3047d1b2b | /toscametrics/general/text_entropy.py | d41f0bfbd5d377be29b2831b990d4c15a8b08cbf | [
"Apache-2.0"
] | permissive | radon-h2020/radon-tosca-metrics | d93ef5b3dc53c7863ba98a985919237fe6c4aadf | d0a10e10f2d897299a04f69290f09d5589bc039f | refs/heads/master | 2021-08-24T13:53:43.207745 | 2021-07-06T08:44:00 | 2021-07-06T08:44:00 | 242,997,596 | 3 | 0 | Apache-2.0 | 2021-03-29T13:47:46 | 2020-02-25T12:45:05 | Python | UTF-8 | Python | false | false | 811 | py | import re
from math import log2
from toscametrics import utils
from toscametrics.blueprint_metric import BlueprintMetric
def splitter(x):
return re.sub(r'\s+', ' ', str(x)).split(' ')
class TextEntropy(BlueprintMetric):
""" This class measures the blueprint's Shannon entropy for keywords frequencies """
... | [
"stefano.dallapalma0@gmail.com"
] | stefano.dallapalma0@gmail.com |
a71cb201dda325e4e407ec23dacc16f13d7d9233 | d484260ac38e19a351e4d8afd4753acd79890a2a | /KukaCommunication/py_openshowvar.py | e760b87e8e7d112f4d9c06e1172b23ba0b181adc | [] | no_license | anuragtyagi04/robotics-carpuzzle | b0d68099fbba9f8ff00fed129d81dfbc3621d25c | d0e0b1dd6b49b32daf3ab35a64749a4c073cd3d6 | refs/heads/master | 2020-12-18T13:42:41.663727 | 2019-08-10T10:03:52 | 2019-08-10T10:03:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,343 | py | '''
A Python port of KUKA VarProxy client (OpenShowVar).
From https://github.com/linuxsand/py_openshowvar
'''
from __future__ import print_function
import sys
import struct
import random
import socket
__version__ = '1.1.5'
ENCODING = 'UTF-8'
PY2 = sys.version_info[0] == 2
if PY2: input = raw_input
... | [
"pietgoempel@gmail.com"
] | pietgoempel@gmail.com |
62466900dcd96ee12c80c2de0caf7009d0d74e3a | 4d81fabb3c6c5a935b556961122167e46913a35d | /student/migrations/0001_initial.py | 0d95ee1ff94bff855828dd55e97f7c343f1a6afe | [] | no_license | natmurei/python-project | 3c57f659e7b669b5982fee1fe3b2b0a07dd3a620 | 9480dce18cb2a47188505f3607c2bc8ddff7e603 | refs/heads/master | 2022-05-05T09:59:06.136360 | 2019-11-21T15:49:40 | 2019-11-21T15:49:40 | 223,203,134 | 0 | 0 | null | 2022-04-22T22:45:52 | 2019-11-21T15:18:41 | Python | UTF-8 | Python | false | false | 1,170 | py | # Generated by Django 2.2.3 on 2019-07-18 12:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('course', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
... | [
"nasambunat@gmail.com"
] | nasambunat@gmail.com |
15c4c337da37325296520d7b90ef341f3f3ce0d7 | 833606e54bc3b3fe146a33b8d87936a91777ce8d | /ardrone_emulator/src/ardrone_emulator/srv/_Control.py | 3a71bf68a8a05a1812c9754d8ed463338992cbaf | [] | no_license | hmcRobotLab/hmc-robot-code | 21b3fff32d974a4b1753cefcce100ecba29ecf78 | fbac5ec6a4577a08bf20c3d6bddbaa609d8b0a9c | refs/heads/master | 2020-04-28T17:59:58.085368 | 2012-09-14T06:23:20 | 2012-09-14T06:23:20 | 4,565,062 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,496 | py | """autogenerated by genmsg_py from ControlRequest.msg. Do not edit."""
import roslib.message
import struct
class ControlRequest(roslib.message.Message):
_md5sum = "cba5e21e920a3a2b7b375cb65b64cdea"
_type = "ardrone_emulator/ControlRequest"
_has_header = False #flag to mark the presence of a Header object
_ful... | [
"arnold@robotlab"
] | arnold@robotlab |
4c4d68043c4bc0a57b1bd05f255f2df83d6dd551 | 0d8f2b10bc309a7bce1e30216bef2add7a7a4844 | /Django/Django/mysite/polls/migrations/0001_initial.py | 6d786528b1db633e16a00aa431ab22ff02d5472d | [] | no_license | Engy-Bakr/python | 7a9e69aee39cc573e2a2a6e2466c07796c0ec5f9 | ddb6b067f8eddb8481a7f249fc70271a9a0b13cb | refs/heads/master | 2021-09-06T10:58:40.490187 | 2018-02-05T21:05:37 | 2018-02-05T21:05:37 | 119,743,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | # Generated by Django 2.0 on 2018-02-01 11:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"https://github.com/Engy-Bakr?tab=repositories"
] | https://github.com/Engy-Bakr?tab=repositories |
520dbb614c35e4653909930e884df9e80c28bd2d | e4a598bef358dee5ce23c6b09784c9c22b850dcc | /widgets.py | c8b7f596aab6c58ceebd1d6d014888b529171565 | [] | no_license | mcecchi/octoscreen | 7e9c2600d017d34c9e100c6ee5581a9f16ce7e88 | ce0f7abdd550b3dd0160ebdcca5a0a126a79864f | refs/heads/master | 2021-01-15T17:15:14.562743 | 2017-06-08T00:36:10 | 2017-06-08T00:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,284 | py | from __future__ import print_function
import os
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.properties import ObjectProperty
from kivy.properties import StringProperty
from kivy.properties import BooleanProperty
from kivy.properties import NumericProperty
from kivy.pr... | [
"haytowntim@embarqmail.com"
] | haytowntim@embarqmail.com |
300df449749708fbcee94f8ec49bd22eb9deb089 | 0bc3133c1c816e4e167893cfa87e569bc0b0bcdf | /0x08-python-more_classes/3-rectangle.py | 69b9ad1e7cc473911cab389c11d8c14aafcfc852 | [] | no_license | MokhtarTouiri/holbertonschool-higher_level_programming | 668fa91197a01764893039a736315c67edf580ee | b7284619b55e9729d9e3f07417660905ab69f9ec | refs/heads/master | 2023-05-23T02:09:51.884037 | 2021-06-14T15:13:35 | 2021-06-14T15:13:35 | 259,732,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | #!/usr/bin/python3
""" Module """
class Rectangle:
""" Mokhtar """
def __init__(self, width=0, height=0):
self.width = width
self.height = height
""" Mokhtar """
@property
def width(self):
return self.__width
""" Mokhtar """
@width.setter
def width(self, value):... | [
"design.solutionts.tn@gmail.com"
] | design.solutionts.tn@gmail.com |
c5fa70baf76c52c1e7edd22a04caa0f0124d5192 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_10971.py | 1e427429e1f1fb08ee4d28ae4224b1b47e60d17e | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | # sampling random floats on a range in numpy
np.random.uniform(5,10) # A single value
np.random.uniform(5,10,[2,3]) # A 2x3 array
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
75e7ba35655f4cdf53fa6305bd1dc6a4b77cfe7f | 97ea14a44c54f7cdf699d06f423b1264f2e5ed03 | /src/by_levenshtein.py | bf3c4b170baa1848013ea36bff95c95e1b322299 | [
"MIT"
] | permissive | shabatar/knowledge-spaces | cf6d8817a894b454ecef241b9cd2eb2b6f5a4f04 | f9572ce6b1bab94769d1de04c4a24307f7180e15 | refs/heads/master | 2022-01-19T11:16:30.233722 | 2019-05-19T11:47:32 | 2019-05-19T11:47:32 | 163,208,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | import csv
import json
import numpy as np
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics import accuracy_score, classification_report
from sklearn.model_selection import train_test_split
from sklearn.multiclass import OneVsRestClassifier
from sklearn.naive_bayes im... | [
"computerstaat@gmail.com"
] | computerstaat@gmail.com |
a14ab72ec56dcdf32130aec46a3fce224d7d6a1d | fadb4a7a913a222018851a1dda4406e0e0484a5f | /myproject/urls.py | de6580dea2a9844630c6e2460f7f654c9c4c54a5 | [] | no_license | iameduard/GitDjango | 5b9f87263e44cb81ad8eef972c7b66573c176472 | 4cb8f6d540b62314492a6df931341f83a95c2639 | refs/heads/master | 2020-04-22T07:06:57.530510 | 2019-02-21T00:15:55 | 2019-02-21T00:15:55 | 170,210,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | """myproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-bas... | [
"iameduard@hotmail.com"
] | iameduard@hotmail.com |
3e054b8bd85cb761bd98326a7df7f4c0a09c6aba | c7fda71ef70a7ffcc59ba648e164f5b7666d3fc8 | /test/parser/unit_operators/testcases/QLinearMatMul/QLinearMatMul_generator.py | 41957d7255dfc5d02f6e93c9baa069aadce0d6e2 | [
"Apache-2.0"
] | permissive | ai-techsystems/deepC | 6c7df32ba61f2e85fc1eab5af4ef4f5c1368cf71 | 064a7cc04f96e20013ad7ae26a6abd6ef16ab77c | refs/heads/master | 2023-08-04T06:08:20.817613 | 2022-10-29T15:12:26 | 2022-10-29T15:12:26 | 193,276,319 | 343 | 69 | Apache-2.0 | 2021-08-19T19:39:50 | 2019-06-22T20:23:12 | C++ | UTF-8 | Python | false | false | 2,426 | py |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not ... | [
"sharma.ravit@gmail.com"
] | sharma.ravit@gmail.com |
49701f514f7f7bad1621e01f60499ec0a7f0070a | b72f8c38be680d56b710a41fc7e34821523588b9 | /yaris/admin.py | 8e32fa1923fcd8a4cd67d4331adfff226131b33f | [] | no_license | gnyylm/ams | 7c96eed3c568d23548d737485b4f97276f8d8d44 | 8c8f4b99b4aaceb903c87fef854e5e88519c642a | refs/heads/master | 2020-04-24T20:55:18.856755 | 2019-03-03T19:14:19 | 2019-03-03T19:14:19 | 172,260,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | from django.conf import settings
from django.contrib import admin
from .models import yaris,oduller,ulkeler,iller,temsilci,kurallar,sponsorlar
class AdmUlke(admin.ModelAdmin):
list_display = ['ulke']
prepopulated_fields = {"slug": ("ulke",)}
admin.site.register(ulkeler, AdmUlke)
class Admiil(admin.ModelAdm... | [
"gnyylm@gmail.com"
] | gnyylm@gmail.com |
66c7ce3fc88e56bb85265b9ebfa07a68547baa08 | a673c432c6be4906cb80942cd9f4bec02cfa7dc9 | /django_messages/forms.py | 4b86f3b1a461ee1088524aad704079421903e4d6 | [] | no_license | passakornC/vzociety | 0ba22e10e45418e307e386d0a4c7184a84890664 | cb97a32b760b48d70b62640beefcbbef302dff5f | refs/heads/master | 2023-02-08T18:51:38.744876 | 2020-12-27T13:59:49 | 2020-12-27T13:59:49 | 324,773,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | from django import forms
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.utils import timezone
if "pinax.notifications" in settings.INSTALLED_APPS and getattr(settings, 'DJANGO_MESSAGES_NOTIFY', True):
from pinax.notifications import models as notification... | [
"passakornchoosuk@gmail.com"
] | passakornchoosuk@gmail.com |
c953fe1e232785a94fc2ec1246cd313b9c5e0168 | 94201f25614d4c957f7c3fa16f06da2f6b854491 | /lib/python3.6/site-packages/blocks/main_loop.py | a3bf0eaf034944b37d7ffaf11ed7083107218bc5 | [] | no_license | cjbear/BackPocketSocial | 8a3c622aa3cf88cb41cd78bb83eb9d04b98e9712 | 498f3174c1692a10c4ee1d36d8ca7005f4fc8628 | refs/heads/master | 2022-12-13T14:35:24.299387 | 2018-12-04T14:09:50 | 2018-12-04T14:09:50 | 137,601,288 | 0 | 1 | null | 2022-12-08T02:11:57 | 2018-06-16T18:18:22 | Python | UTF-8 | Python | false | false | 12,680 | py | """The event-based main loop of Blocks."""
import signal
import logging
import traceback
from blocks.config import config
from blocks.log import BACKENDS
from blocks.utils import reraise_as, unpack, change_recursion_limit
from blocks.utils.profile import Profile, Timer
from blocks.extensions import CallbackName
logge... | [
"30752468+cjbear@users.noreply.github.com"
] | 30752468+cjbear@users.noreply.github.com |
cd9a54d3a52552823d07480de1929f1793a48d71 | 6fde03bd90ad6025a15535e7ffe2071c7963b919 | /2018/day25/challenge.py | baee26bec110f9f1b6037862f520de69cbfa8338 | [
"Apache-2.0"
] | permissive | ericgreveson/adventofcode | 5620fb31862af96ee60ba9133548f40b23d35d4f | 6671ef8c16a837f697bb3fb91004d1bd892814ba | refs/heads/master | 2021-06-21T17:02:40.380886 | 2020-12-24T11:15:27 | 2020-12-24T11:15:27 | 159,993,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | from aoc.challenge_base import ChallengeBase
def manhattan_dist_4d(p1, p2):
"""
Compute manhattan distance between 4D points p1 and p2
"""
dist = 0
for axis in range(4):
dist += abs(p2[axis] - p1[axis])
return dist
class Challenge(ChallengeBase):
"""
Day 25 challenges
"""
... | [
"egreveson@brainomix.com"
] | egreveson@brainomix.com |
60ea5067fc698b5801e526344a985e7778af3308 | fce6b5c0e513826fbcd74e0b22ed2543b0e5d01c | /client/node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi | 771fabb5c454e1bec33de6dbb64bf3772c453831 | [
"MIT"
] | permissive | lukepassmore/manager | b54fd5603fdba7236d7bbaff5f89aaf438340678 | f6d00f647a2da9a24cb79429ae941222ee3fcd17 | refs/heads/main | 2023-05-06T18:26:13.205275 | 2021-05-27T20:51:59 | 2021-05-27T20:51:59 | 371,500,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"dcheck_always_on": 0,
"debug_nghttp2":... | [
"43517238+lukepassmore@users.noreply.github.com"
] | 43517238+lukepassmore@users.noreply.github.com |
afe11d1033c0af9c586eb0ac088d3f083c15409b | 44d62a165f943ca752795be97b5921767c034f29 | /iblrig/frame2TTL.py | e20a493f101e1a7f882816f9d47bac791410a1f8 | [
"MIT"
] | permissive | magically-solutions-india/iblrig | 1d2c52d9966f3b3c9f681fde37a9926e35b62542 | 0d428591bd91d22feed5254f36a5dc9e104d4ff5 | refs/heads/master | 2020-12-20T03:41:08.808129 | 2020-01-22T10:07:55 | 2020-01-22T10:07:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,300 | py | import logging
import struct
import numpy as np
import serial
import iblrig.alyx
import iblrig.params
log = logging.getLogger('iblrig')
class Frame2TTL(object):
def __init__(self, serial_port):
self.serial_port = serial_port
self.connected = False
self.ser = self.connect... | [
"nbonacchi@gmail.com"
] | nbonacchi@gmail.com |
e61562e0b288dce372a49eb34d6462236ab75a15 | 3a117858e61c87b703c694d8e1b6da61e6074851 | /src/.history/Test/HiwinRT605_Strategy_testsocket_20190626140818.py | ae6dddd6e9834397236b8fe1d7181f7c4ff0b95c | [
"MIT"
] | permissive | SamKaiYang/ROS_Socket | 4daa2c66181a76038e20161a44f1362084b6bd58 | aa131496617cec0a9c32141565faa668db738eb9 | refs/heads/master | 2020-05-25T22:02:02.468922 | 2019-07-18T09:02:35 | 2019-07-18T09:02:35 | 188,009,003 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,551 | py | #!/usr/bin/env python3
# license removed for brevity
#策略 機械手臂 四點來回跑
import threading
import rospy
import os
import numpy as np
from std_msgs.msg import String
from ROS_Socket.srv import *
from ROS_Socket.msg import *
import math
import enum
import Hiwin_RT605_Arm_Command as ArmTask
##----Arm state-----------
Arm_state_... | [
"tt00621212@gmail.com"
] | tt00621212@gmail.com |
8d8afb530f9359242dfc2f843b8c4c001d862b61 | 71c5eef14f4eda876e99ce51b6eac37850cf60c7 | /main.py | 0dc5e241ea0d86e6cb4a84906df52f567ee431b9 | [] | no_license | adampower48/NLP | 2aa31835f6aebeea982e3899a66c86af0da967d3 | 5ee3afa819f33cc975de2d97554faa218792d7ce | refs/heads/master | 2020-03-24T18:23:05.902317 | 2018-10-08T19:32:36 | 2018-10-08T19:32:36 | 142,890,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,270 | py | import sys
import numpy as np
from tensorflow import keras
import data_loader as dl
import models as my_models
# Works with large single text bodies
FILENAMES_DATASETS = {
"lorem_ipsum": "datasets/lorem.txt",
"dracula": "datasets/dracula.txt",
"shakespeare": "datasets/shakespeare.txt",
"trump_tweets... | [
"adam.power48@mail.dcu.ie"
] | adam.power48@mail.dcu.ie |
5cb221135ebab9ccdaf966c2ad8bb40ef7eb0fd4 | cd008b14cadec0dd5792aff86f6ceef3d4506a40 | /DeepLearningPolycubing/test.py | 9efdef96e2b8bdd7d4beaeca7400cc05f6cf5738 | [] | no_license | snowfox1939/DeepShape | 4642a22bb614b35e75b63e3948199d9f0bd644af | 0b56a5d906ddedf2a609b8ef8df1b13db04692f4 | refs/heads/master | 2021-09-20T18:46:48.656974 | 2018-08-14T07:15:46 | 2018-08-14T07:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,482 | py | import matplotlib
matplotlib.use("nbagg")
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
from utility import *
from model import *
import torch
import torch.nn as nn
import torch.utils as utils
import torch.nn.init as init
import torch.utils.data as data
import torchvision... | [
"david.cleres@epfl.ch"
] | david.cleres@epfl.ch |
5852b4d12c9588b252fed3e01bd1cf20893b29d4 | d0ed545c98b55c2640374b8d8a93c25f3d211ba7 | /Python/LEDControl.py | d5ef9b910f52b27fa9c57cc6a113f69ff19904b8 | [] | no_license | mohsinobaid/A-framework-for-IoT | 71a09843abc0d28cb12a40234f7bd5a7c329947a | 569fefdd0e723655e34ee9ed68e5a637dbb51702 | refs/heads/master | 2021-01-15T21:15:33.049629 | 2016-02-27T18:47:55 | 2016-02-27T18:47:55 | 52,638,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import serial
import time
#ser = serial.Serial('COM7', 9600)
ser = serial.Serial('COM7', 9600, timeout=0, stopbits=serial.STOPBITS_TWO)
ser.write('1')
time.sleep(10)
ser.close() | [
"mohsinobaid@gmail.com"
] | mohsinobaid@gmail.com |
2450814533832c1abc008339e64b4cf98eedf527 | 0206ac23a29673ee52c367b103dfe59e7733cdc1 | /src/fao_un/fao_explore_text_file.py | 8f720005daa4892cb920451ae2460557678d06ed | [] | no_license | guziy/RPN | 2304a93f9ced626ae5fc8abfcc079e33159ae56a | 71b94f4c73d4100345d29a6fbfa9fa108d8027b5 | refs/heads/master | 2021-11-27T07:18:22.705921 | 2021-11-27T00:54:03 | 2021-11-27T00:54:03 | 2,078,454 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | __author__ = 'huziy'
def main():
path = "/skynet3_rech1/huziy/Global_terrain_slopes_30s/GloSlopesCl1_30as.asc"
with open(path) as f:
for i, line in enumerate(f):
if i < 6:
print(line)
if 3000 < i < 4000:
nums = [int(s.strip()) for s in line.spl... | [
"guziy.sasha@gmail.com"
] | guziy.sasha@gmail.com |
ae2057a6e870aada3e725b34897c39c627d411d1 | 75536104fabfab9d6bec15ee1dde5bb31637c37b | /1.py | 646535f75b68a170a9ee461c687091886a3c36d0 | [] | no_license | Kairzhankarasu13/Git | 16073cfda5098f83abe5917515e7b906fe7113df | 61a74b69d348a4bd1cbce1fa1a8da9256e2f32bf | refs/heads/master | 2023-08-15T19:04:50.836979 | 2021-09-23T14:22:52 | 2021-09-23T14:22:52 | 411,606,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # print("Git Git")
# print("введите арифметическую операцию через пробел")
# print()
# a,b,c = input().split()
# a = int(a)
# b = str(b)
# c = int(c)
# if b == "+":
# print(a+c)
# elif b == "-":
# print(a-c)
# elif b == "*":
# print(a*c)
# elif b == "/":
# print(a/c)
# print("input a")
# print()
#... | [
"13@gmail.com"
] | 13@gmail.com |
45f729a981afb122294e2da4251e45b64f4e8d1f | 34f34c47906a463b638c671bd2d5728af60c72df | /MyOwnPackage/mymath.py | 130372c68ad7eaa30b13dae50d166288ed6e4722 | [] | no_license | kandarpam87/Python_Learning | 944e10bf8e79f95738ccb71711f3d7b560dc1990 | 19b66c7d0cf0223aed7e85509139c66569a35f11 | refs/heads/master | 2023-01-24T05:54:55.667598 | 2022-12-22T17:52:49 | 2022-12-22T17:52:49 | 267,500,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import math
pi = math.pi
def circle_area(r = 1):
return pi * r**2
def square_area(s = 1):
return s**2
def recangle_area(l =1, b = 1) :
return l * b
| [
"kandarpa_malipeddi@persistent.co.in"
] | kandarpa_malipeddi@persistent.co.in |
2b41ae652336689b7532d99b72130cadec1aef65 | ac74c4cb0667297ae4d1df86255765c9f34c144e | /tictactoe.py | 0afce2d780551462a2f873958ba4507a5cd65496 | [] | no_license | tonydepa/tictactoe | 1e16ca30d69fe5980b5d3e8243e05ff792bd2272 | 55fc930ccf7f8c8814320f67380dda1cef93bea9 | refs/heads/main | 2022-12-28T23:48:11.965897 | 2020-10-05T15:54:13 | 2020-10-05T15:54:13 | 301,462,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | from IPython.display import clear_output
def display_board(board):
clear_output()
print(' | |')
print(' ' + board[7] + ' | ' + board[8] + ' | ' + board[9])
print(' | |')
print('-----------')
print(' | |')
print(' ' + board[4] + ' | ' + board[5] + ' | ' + board[6])
... | [
"noreply@github.com"
] | noreply@github.com |
fdc49c401594bfeedd386ae27bb05f633ca944f7 | 2e47965927cda1501eabeef42ff9b13db5ab512c | /python/removeMarkersThatLack.py | b1f0eee1f53ca3a80dbedb715426d5866ec1a03d | [] | no_license | bioinformagical/scripts-cluster | d87f356b7536b871385c64e1b050bbe6df646f7e | 31ffe567eace4c6ab402bf23b23cdd53a17e328c | refs/heads/master | 2020-07-01T07:44:58.769323 | 2019-08-07T16:53:51 | 2019-08-07T16:53:51 | 201,091,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | #!/usr/bin/python
import re
import sys
import die
###### This will read in tab delimited GBS marker hapmap file (eg from brassica)
# Going to remove all markers that have not at least 30% of the individuals present (No idea if this should be 30,50, 90%)
# USAGE: python /Users/rreid2/scripts/python/removeMar... | [
"robofjoy@gmail.com"
] | robofjoy@gmail.com |
d81eac1bc73b2cb86b22f4cf6e66f1ade04c72ea | 6dc31356f9ee4bf984b54f1f00c6d249199a37ac | /No.169_Majority Element.py | 9326b92049a184b9bd8aed25403ea2d7dbb6f57f | [] | no_license | miayuxin/leetcode | 0016af492744caab7717f9802e823739e64445eb | 0f565cc8a83c9f6143e0b7363a2bb47fb6dea7d0 | refs/heads/master | 2023-03-27T20:58:08.693006 | 2021-04-02T01:21:53 | 2021-04-02T01:21:53 | 261,366,360 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class Solution:
def majorityElement(self, nums):
candidate = None
count = 0
for i in nums:
if count == 0:
candidate = i
count += 1
elif i == candidate:
count += 1
else:
count... | [
"ikuyuhsin@gmail.com"
] | ikuyuhsin@gmail.com |
ba3a3b4bcd0e8914bf50fee262e2e48f5d65e1f1 | ac6c5850cc4f259244ae763e6118c7fa3ce668da | /scheduling/submission.py | 52d9fe24bbff3bd46a65ea8b84b245ccc447e177 | [] | no_license | angelicaperez37/cs224w-221-project | 5535550c4c3449255d017d0ee386f6074bb33cb4 | 327e586ac923f0aa17d2370d2aace8da2267edd8 | refs/heads/master | 2021-05-30T00:34:08.313845 | 2015-12-12T01:30:20 | 2015-12-12T01:30:20 | 44,551,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34,670 | py | import collections, util, copy
############################################################
# Problem 0
# Hint: Take a look at the CSP class and the CSP examples in util.py
def create_chain_csp(n):
# same domain for each variable
domain = [0, 1]
# name variables as x_1, x_2, ..., x_n
variables = ['x%d... | [
"deepyamd@corn17.stanford.edu"
] | deepyamd@corn17.stanford.edu |
c2c096ac99f6a8ef635bfe244d6f1b363cafbb99 | 25bb4e760769cc483a20f27b6312698891dce034 | /algorithms/dynamic programming/fibonacci-modified-English.py | 43e913d6860797d42644fb453e498a9e8ba33f17 | [] | no_license | rangaeeeee/codes-hackerrank | e13d22adff1ef74974e34251d9bfac6cfd36f2b0 | ce7fdf7f336c10164fd2f779d4ed3713849d7c2b | refs/heads/master | 2021-01-19T17:07:28.451983 | 2017-09-01T18:05:33 | 2017-09-01T18:05:33 | 101,049,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
t1,t2,n = map(int,input().split())
result = [None] * (n+1)
result[1] = t1
result[2] = t2
for i in range(3,n+1,1):
if result[i] == None:
result[i] = result[i-2] + result[i-1]**2
print(result[n]) | [
"rrangarajan.85@gmail.com"
] | rrangarajan.85@gmail.com |
ac945bcb023571646693087f5e57bd8b8b9b8876 | 76df5083e544e05f8e13ba2d526dd0002de69260 | /lesson10/learn_json.py | a9182c3d46a0ddcd70d5815421a23f70035769c5 | [
"MIT"
] | permissive | yoyo929/learn-python | b0eafbae49a239103ad149d8e209a47d2877356d | 27530f3a37377ab0296b3ab3c985896bd7d9be8a | refs/heads/main | 2023-03-26T12:58:25.770602 | 2021-03-07T12:41:01 | 2021-03-07T12:41:01 | 334,331,095 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,076 | py | # JSON is short for JavaScript Object Notation
# 是一种数据存储格式,就像python里的字典
# JSON Object <-- {} --> Python的dict 对象,字典
# JSON Array <-- [] --> Python的list 数组,列表
# module 是模块的意思
import json
# numbers = [2, 3, 5, 7, 11, 13]
# with open('lesson10/numbers.json', 'w') as f:
# json.dump(numbers, f) # 把numbers转换为json格式,写到... | [
"275813514@qq.com"
] | 275813514@qq.com |
812f0756e1b6b47085b05cdfe5bb31706fea3a48 | d91a61442d0ba0547301f54e7f63039ab5346198 | /for/exe_5_soma_impares.py | e24ac2e7564b8fc8ec7eb560600909bf26b37fd9 | [] | no_license | pedroceciliocn/programa-o-1 | a41bf89475939ad1791320c8fa4845744921ec19 | 15f8a3dbc13f4cbbc15f2b626ccef47fe145cc3f | refs/heads/main | 2023-07-12T20:06:20.632304 | 2021-08-17T22:05:57 | 2021-08-17T22:05:57 | 377,301,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | """
Somar os inteiros ímpares entre dois valores
inteiros informados pelo usuário.
"""
n_1 = int(input("De o primeiro valor do intervalo: "))
n_2 = int(input("De o segundo valor do intervalo: "))
s = 0
if n_1 > n_2:
n_1, n_2 = n_2, n_1
for i in range(n_1, n_2 + 1):
if i % 2 != 0:
s += i
print(f"... | [
"pedroceciliocn@gmail.com"
] | pedroceciliocn@gmail.com |
681fa0897b893828e94acf0f3d5018fd86f857f4 | 530aeb6e76720fe577c2adc8c61e0bf811f7cf1b | /2_Easy_Cipher/rot_n.py | 2fa1600989aa69605f02c97638fa8a2094a8b2e8 | [] | no_license | IzuruYokotsuka/ksnctf | 3b38a472a152501986a7d96c7fec9ff94e6ab3d4 | 7069ba3d36551e0c6142baf3b83f7c53e14b7acc | refs/heads/master | 2020-06-02T10:21:48.175060 | 2019-06-10T08:17:26 | 2019-06-10T08:17:26 | 191,125,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # $ python rot_n.py s rot
import sys
def _rot_n(c, n):
if 'a' <= c and c <= 'z':
return chr((ord(c) - ord('a') + int(n)) % 26 + ord('a'))
if 'A' <= c and c <= 'Z':
return chr((ord(c) - ord('A') + int(n)) % 26 + ord('A'))
return c
def _rot(s, n):
c = (_rot_n(c, n) for c in s)
prin... | [
"izurudazyo@gmail.com"
] | izurudazyo@gmail.com |
bd2be70e948d6957ceca507b2d58feba34736b39 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/network/azure-mgmt-network/generated_samples/hub_route_table_delete.py | 6e2f314f2351a185a63bd8d45de74648f9983c8e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,554 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
97034b0791ecbbc32ec3dd190fc4ad4d33a03e63 | b8c670d92b5fdf8a14d6c6aa40ba928d00b4efb0 | /map1.py | e8a068ad75e7d829e894f00cde6c2a706eda2738 | [] | no_license | tel-andrew/labirint_project | 999c705cc44dbddc7af58ea859038348c0adbac2 | 1a7e96d0e31e48ec50aa1eb89c97adc78295c803 | refs/heads/master | 2020-05-19T21:55:33.679930 | 2019-05-06T14:56:34 | 2019-05-06T14:56:34 | 185,236,135 | 0 | 0 | null | 2019-05-06T16:54:43 | 2019-05-06T16:48:36 | Python | UTF-8 | Python | false | false | 149 | py | start = 0
end = 2
graph = [[0, 9, 0, 5, 0],
[9, 0, 1, 0, 3],
[0, 1, 0, 6, 10],
[5, 0, 6, 0, 0],
[0, 3, 10, 0, 0]] | [
"sams051834@gmail.com"
] | sams051834@gmail.com |
028558da8df607b5bc312be745c5cf058b3be2f6 | 33235882d6ca6c5abec927bff09b38002210dffa | /antlr4/__init__.py | 050985747a500ac3ad4c20417bdd06bf03915aa5 | [] | no_license | fmyblack/sqlGrapher | 4215dc99efd2c5128cf7523d78dfd06a84e91a90 | 1d057a848d91352038e754864e660b45be3c7554 | refs/heads/master | 2021-04-25T23:33:16.203526 | 2017-10-17T08:40:57 | 2017-10-17T08:40:57 | 107,241,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | from antlr4.Token import Token
from antlr4.InputStream import InputStream
from antlr4.FileStream import FileStream
from antlr4.StdinStream import StdinStream
from antlr4.BufferedTokenStream import TokenStream
from antlr4.CommonTokenStream import CommonTokenStream
from antlr4.Lexer import Lexer
from antlr4.Parser import... | [
"fmyblack@gmail.com"
] | fmyblack@gmail.com |
ae509852a3742073f93ac1666bf0e0e01ca54378 | 6db6cf01cf83bbf0e1601a386c40e24d218ab3d6 | /pyqtgraph_demo/multiplePlotDragWidget.py | 91cddd03fd8a36a5f1e164b6d7fd7d589690f082 | [] | no_license | geniustesda/pyqt_pyqtgraph_study_note | 2d54d187b33a4cc35b90943066c2980dd39620ad | fb2be114c24fd8d3fb1d618cf1d89eec88af079c | refs/heads/master | 2023-06-10T04:43:54.595864 | 2021-07-07T08:52:02 | 2021-07-07T08:52:02 | 217,658,570 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,649 | py | from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5 import QtWidgets
from pyqtgraph.Qt import QtCore, QtGui
from pyqtgraph import LinearRegionItem
import sys
import pyqtgraph as pg
import numpy as np
from pyqtgraph import GraphicsObject
import pyqtgraph.functions as fn
class MyInfiniteLine(pg.InfiniteLine):
... | [
""
] | |
d5b48ab4ed8d6eada147da06f51d8ce0ebc7e09b | ac38f7b6373e4ffed220ad541af2dce53e4393ab | /FaceData.py | 4dc721f4371ed0efe0bd4282388466a923593a93 | [] | no_license | vkr-code/Face-Recognition-Tool | 38c49eab0932530e56e8a07f4865eee6a9bb7681 | 7a935346769839a94fdc36e93a303c8371007e5e | refs/heads/main | 2023-03-07T16:02:53.073516 | 2021-02-26T11:22:20 | 2021-02-26T11:22:20 | 341,301,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | import cv2
import numpy as np
import pandas as pd
cap=cv2.VideoCapture(0)
face_cascade=cv2.CascadeClassifier("haarcascade_frontalface_alt.xml")
skip=0
face_data=[]
dataset_path='./Data/'
file_name=input("Enter the name of the person: ")
while True:
ret,frame=cap.read()
if ret==False:
continue
faces... | [
"noreply@github.com"
] | noreply@github.com |
d3e7fa2aaadbc1ef7b137effb3f0d55c54501441 | 085a41aa8cf80c3c64783b15459fb37f5d067aac | /railroad2.py | 06fe6705c210e74fe7f5735fcef283779097ca41 | [] | no_license | CamilleSalvinien/OpenKattis | 25155e352d689387fe63f2352181805e0d07309b | d8c4b0898022d664039fc8135141ffc40c5fe95b | refs/heads/main | 2023-04-30T16:00:33.571115 | 2021-05-09T18:20:33 | 2021-05-09T18:20:33 | 327,402,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | x, y = map(int,input().split())
if y%2 == 0:
print("possible")
else:
print("impossible") | [
"noreply@github.com"
] | noreply@github.com |
fb3de3e1e992cf59a0db77e1e77140ba3f9e8072 | 64dfafd940d77129b38865ccac869aadffb868ff | /natural_satmass_plots.py | 0a3c6e64ef4ce8f400172a6e12b45c5a341759a2 | [] | no_license | RaymondSimons/foggie_local | 242d4ef5fa814d44747b2bc38825433ade73de9f | f10bc56ef90b274d08fc81c8d02ddd9b653dfd19 | refs/heads/master | 2021-07-07T18:03:27.996681 | 2020-07-30T16:34:40 | 2020-07-30T16:34:40 | 147,853,943 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,178 | py | import glob
from glob import glob
from astropy.io import fits
from scipy import interpolate
plt.rcParams['text.usetex'] = True
plt.ioff()
plt.close('all')
DD_to_t = np.load('/Users/rsimons/Dropbox/rcs_foggie/outputs/DD_time.npy')[()]
#DDs = arange(44, 800)
DDs = arange(44, 800)
sat_ns = arange(0, 12)
clrs = ['blue'... | [
"rsimons@jhu.edu"
] | rsimons@jhu.edu |
6a537256ae128da241043ae9b8c8aab4d7277d98 | 3da61c2815c6c52836a6014c1eacd8cca75e5e69 | /tests/test_io.py | 9b78a064fa7bfdb3b0dbde70b15940b9a75d8861 | [
"MIT"
] | permissive | horoiwa/optga | 16cce9ce920345e5549069e04b2d1008fe531c38 | ebe77445a1abd475f150db4d623637c593eed41c | refs/heads/master | 2022-04-11T06:46:36.279047 | 2020-04-03T04:06:02 | 2020-04-03T04:06:02 | 225,391,768 | 3 | 2 | null | 2020-01-06T13:03:01 | 2019-12-02T14:18:45 | Jupyter Notebook | UTF-8 | Python | false | false | 2,734 | py | import shutil
import os
import pandas as pd
from optga.optimizer import Optimizer
from optga.support import (get_linear_model, get_onemax_model,
get_onemax_samples)
class TestIO:
def setup_method(self):
pop_size = 500
length = 10
init_population = get_onemax_... | [
"horoiwa195@gmail.com"
] | horoiwa195@gmail.com |
6e702da0cf7dffbb86e76e8c3eaf8fcb5ecadd91 | f62fc947bfac7b775bf05c8ac0a3ba28ce7c366a | /binding.gyp | 129617bdc0364e66d9dbbecaa3af681835fd0dc8 | [] | no_license | deepak1556/napi-worker-crash | d55e4ddd68b1c82594a5416aea83eab52eb746c1 | e1b9f4d740277dc7527f613a5f83a37fefaaafe2 | refs/heads/main | 2023-02-04T13:21:10.505866 | 2020-12-08T07:02:53 | 2020-12-08T07:02:53 | 319,554,782 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | gyp | {
'targets': [
{
'target_name': 'Test',
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
},
'msvs_settings': {
'VCCLCompilerTool': { 'ExceptionHandling': 1 },
},
'defines':... | [
"hop2deep@gmail.com"
] | hop2deep@gmail.com |
cba3267fc1a634b25b0ca18b959b737bd7ad0cde | 9f1db0cce0aebc6c14c7e3c4adfa424bbc20c968 | /project/lit/migrations/0008_auto_20151112_0935.py | e03309c46b32757228973dba1d3bbb8e0d673561 | [] | no_license | JoshAddington/hawc | 6b8f9efb0dec2aeb972a66a636dfc7493502003b | 28cb8a2690ba934134c4dd4660d51e573cd6b895 | refs/heads/master | 2020-12-25T17:16:05.746517 | 2016-06-10T18:03:32 | 2016-06-10T18:03:32 | 44,217,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import utils.models
class Migration(migrations.Migration):
dependencies = [
('lit', '0007_auto_20151103_0925'),
]
operations = [
migrations.AlterField(
model_name='refere... | [
"shapiromatron@gmail.com"
] | shapiromatron@gmail.com |
494c64fc17e2f64556f8eb04d0118971a887dd60 | aa14cf545f30528a8371f3bb9795a37d22ec1561 | /parser.py | edbc18f1a41156e4955b5425ad455ceec426e297 | [] | no_license | ELLDER054/gizmo-in-python | 72fccaa954998dd458ce7c0aa0093db82828feea | 8b0b5c54a4779ddd294ce31d9853ff6e69262fc8 | refs/heads/main | 2023-05-04T07:50:30.843790 | 2021-05-26T16:56:30 | 2021-05-26T16:56:30 | 352,426,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,262 | py | from error import Errors
from myast import *
error = Errors()
class SymbolTable:
def __init__(self):
self.table = []
def set(self, name, typ, lenArgs=None):
if lenArgs is None:
self.table.append([name, typ])
else:
self.table.append([name, typ, lenArgs])
def... | [
"noreply@github.com"
] | noreply@github.com |
69a804c507365deb078ecc69332d2ffa90e580e1 | fac4c2fa64e6a22d0a80eec7b65c93d7a6236b7f | /original-modules/text-to-text-transfer-transformer-master/t5/models/gin/objectives/span.gin | 2da19b4e5ebab684ee90690c65fafe40978d8775 | [
"Apache-2.0"
] | permissive | zouning68/nlp-transfer-learning | ec2b9e91f4b3bb9d77bf88dd78282f6ff5aaa4fd | e9b1544b55905ceb2235471f036abc1d7c4160db | refs/heads/master | 2023-04-13T18:25:22.206475 | 2020-01-15T02:36:19 | 2020-01-15T02:36:19 | 228,514,893 | 2 | 0 | Apache-2.0 | 2023-03-24T23:36:35 | 2019-12-17T02:21:15 | Python | UTF-8 | Python | false | false | 1,801 | gin | # -*-Python-*-
# Random pattern of noise and non-noise spans.
include 'objectives/denoise.gin'
preprocessors.unsupervised.preprocessors = [
@preprocessors.select_random_chunk,
@preprocessors.reduce_concat_tokens,
@preprocessors.split_tokens,
@preprocessors.denoise,
]
inputs_length = 512
noise_density = 0.15
prepro... | [
"noreply@github.com"
] | noreply@github.com |
c60e91a227c303c491d9425ba9d9f6a446c32f9c | fbb1550dc5437d672ed0137bd7711eba3290dee3 | /students/Tianx/Lesson5/Test_database.py | c4385297943991da9151d9e507cecb1a4bc6db39 | [] | no_license | JavaRod/SP_Python220B_2019 | 2cc379daf5290f366cf92dc317b9cf68e450c1b3 | 5dac60f39e3909ff05b26721d602ed20f14d6be3 | refs/heads/master | 2022-12-27T00:14:03.097659 | 2020-09-27T19:31:12 | 2020-09-27T19:31:12 | 272,602,608 | 1 | 0 | null | 2020-06-16T03:41:14 | 2020-06-16T03:41:13 | null | UTF-8 | Python | false | false | 1,719 | py | from unittest import TestCase
import database as db
class TestDatabase(TestCase):
def test_import_data(self):
"""Test importing data"""
db.clear_db()
counts, errors = db.import_data('/Users/Tian/Documents/PythonClass/Tianx/SP_Python220B_2019'
'/students/Tianx/Les... | [
"xietian628@yahoo.com"
] | xietian628@yahoo.com |
70fe8e8b64018de3046f650a5b1487419d30a178 | af259acdd0acd341370c9d5386c444da6a7a28a6 | /Deep-Learning-in-Python/04-Fine-tuning-keras-models/02-Changing-optimization-parameters.py | de78e0ef25b6108c14e0a39d883bc0b1c62905bf | [] | no_license | pace-noge/datacamp | fcd544f6478040660f7149b1a37bfd957eef9747 | eeffb8af233e7304c0f122a48e6b4f78ee7c650e | refs/heads/master | 2020-07-04T12:41:29.635167 | 2019-09-17T10:11:39 | 2019-09-17T10:11:39 | 202,289,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,013 | py | """
Changing optimization parameters
It's time to get your hands dirty with optimization. You'll now try optimizing a model at a very low learning rate, a very high learning rate, and a "just right" learning rate. You'll want to look at the results after running this exercise, remembering that a low value for the loss ... | [
"noreply@github.com"
] | noreply@github.com |
e00636abdfb80b92e41cf30784c894caed7f6519 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/battle_control/controllers/team_bases_ctrl.py | 4d0149d8b224752e45e0be7a44f2f435f4a1e495 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 12,531 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/battle_control/controllers/team_bases_ctrl.py
from collections import defaultdict
import BattleReplay
import BigWorld
import SoundGroups
from helpers import dependency
from skeletons.gui.battle_session import IBattleSessionProvi... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
c456334712deb6b4039306cb77999000abea130c | b50698d22303b97c3fe0fa234663c702ef01c7ae | /tcpserver.py | 80585a9f571740ebf8e935e21cdb98edc19445f7 | [] | no_license | atm5tc/rtlsdrwebserver | 386569bc5b10b9b8c789ad620f400d87684d89ac | 95194c3af6d9b4bda3d4fd31d01c69225d2c11a4 | refs/heads/master | 2020-06-18T08:13:12.382334 | 2019-07-10T15:15:22 | 2019-07-10T15:15:22 | 196,227,803 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | import socket
from binascii import hexlify, crc32
from struct import pack
from playsounds import *
HOST = ''
PORT = 4000
tone1 = gen_tone(100, 0.015625, 900)
tone2 = gen_tone(100, 0.015625, 300)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((HOST, PORT))
s.listen(1)
print('Running Server')
while True:
... | [
"noreply@github.com"
] | noreply@github.com |
7322cea2eee33a10e282c1cbf9a2395b4e68ae49 | 86f21b97386664bf9371c9ab8a0e06c3ed7880d1 | /sols/day04.py | d832321fcebc8f69507acd0dcfaec22b84c1de45 | [
"MIT"
] | permissive | melngr/aoc18 | 62ee83dd7fc346229f139a49bdbf56d8c602f7e2 | d9390baa95842d4aa5d79e06e6f11e743d3df916 | refs/heads/master | 2021-10-07T23:48:05.395085 | 2018-12-05T19:59:40 | 2018-12-05T19:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | # day04.py
# Griffin Melnick, melnick DOT griffin AT gmail DOT com
from collections import defaultdict as ddict
import operator
import os
import re
import sys
a_ans = None
b_ans = None
# sol() allows for summarized solutions
def sol():
f = open( os.path.join( os.path.dirname(__file__), "../inputs/day04.txt" ), '... | [
"melnig@users.noreply.github.com"
] | melnig@users.noreply.github.com |
892e63c6236b2bc2512a8e8545e0efa9b0084fa8 | 2efda4e99b5b9da5041d4984b71a2121561a29d3 | /EEELibrary/agent.py | fa288decb38fa6729b03c4a9a57f89f9d4fedece | [] | no_license | yunaisme/Cyber_Graduation_Project | 2ff31284ced20688cad9e4546fad2d3af2217cdf | 5388fe8a3dce0c6053ff00522c50390e8a6160b1 | refs/heads/main | 2023-07-30T12:50:15.754026 | 2021-09-26T14:20:19 | 2021-09-26T14:20:19 | 397,037,621 | 0 | 0 | null | 2021-08-17T01:04:28 | 2021-08-17T01:04:27 | null | UTF-8 | Python | false | false | 7,087 | py | import pandas as pd
import numpy as np
import datetime
import math
import os
import requests
class mouse:
def __init__(self, filename, label):
self.filename = filename
self.label = label
mouse_dir = os.environ.get('COLLECT_DIR', '')
self.path = mouse_dir+filename
self.time =... | [
"7942jgh@gmail.com"
] | 7942jgh@gmail.com |
651e24f03fd3f08eabc8bebae16f01ee81e5d8f3 | 978a6480d460359f998a218100f4774ab635dfc5 | /utilities/data_wrangling.py | 0404309ef5d49ad7b30fdb811b73b24a14ad5182 | [] | no_license | AndreMejiaG/model-deployment | 2c20c2a23a81d4028179f222788878064a332ba8 | 7c8cb8c1a37447220922052875a8c403abbafc0d | refs/heads/main | 2023-01-24T11:20:23.814448 | 2020-12-05T02:12:28 | 2020-12-05T02:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import logging
import pandas as pd
import config.config as cfg
from sklearn.model_selection import train_test_split
logger = logging.getLogger(cfg.logger_app_name)
def load_data(filepath: str, **kwargs) -> pd.DataFrame:
dataframe = pd.read_csv(filepath, **kwargs)
logger.info('Se han cargado los datos correct... | [
"stivenlopezg2@gmail.com"
] | stivenlopezg2@gmail.com |
5e0a6579311fedcddab8080d26f57ed34fcb99de | afbf14387bd4d8769037ef5a37fb0160badf904f | /opencv_functions.py | a9cc111f3a7170c5287b73d3a625bc1c350ae2f2 | [] | no_license | ronalddas/Pneumonia-Detection | f6bf861de3fcd6c86d41b07eea7cc7a9794ed713 | 32ea983db37d60eba88b74730c07846e2a4a4d00 | refs/heads/master | 2020-05-19T19:34:44.724794 | 2019-05-06T13:54:13 | 2019-05-06T13:54:13 | 185,183,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | """
import os
filename="9ee07fd5-612d-4a33-89a6-12fa8ce9bb48.dcm.png"
ss="python3 -m keras_segmentation predict --checkpoints_path='path_to_checkpoints' --input_path='static/uploads/100983183.jpeg' --output_path='static/predictions/'"
os.system(ss)
"""
import cv2 as cv
import traceback
#original_image_loc="/home/ron... | [
"ronald1das@gmail.com"
] | ronald1das@gmail.com |
0b48cbc2d5abad6730b9340dedb71813af032d7c | c2a697da60598ef498c74f2041da738706bad4d5 | /wordcloud_gov_report_2.py | f1e5b67f95088484fbcef3d17f5f8ec4d9307c53 | [] | no_license | cxd375727676/program_design | 97bd3c5b76f62fb72c27a3a5e188f1c18c1e521d | 4b7d4549b49136328988a0975ad63f3a1df4dab4 | refs/heads/master | 2020-06-25T23:22:24.849416 | 2019-07-29T13:53:14 | 2019-07-29T13:53:14 | 199,452,426 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # -*- coding: utf-8 -*-
# 文字填充在非白色部分(需白色背景五角星)
import jieba
import wordcloud
from scipy.misc import imread
mask = imread(r"input\fivestar.jpg")
#with open(r"input\新时代中国特色社会主义.txt", "r", encoding="utf-8") as f:
with open(r"input\关于实施乡村振兴战略的意见.txt", "r", encoding="utf-8") as f:
t = f.read()
ls = jieba.lcut(t)
txt ... | [
"375727676@qq.com"
] | 375727676@qq.com |
b430c0d93306ec90c5265ecf56f214596df4921e | e5c09b4a54ea21c3782fb11ffb993410e4c6d98a | /sorting_a_list_with_out_sort_function.py | b7af1b2787de270ae4d621d8e4d0d360c6f684f3 | [] | no_license | modukurusrikanth/python-inventateq | 077c3c62642c07dfd8b3fd8c2aaaf83b836776e4 | 1f9151168919532c866db9288b57f44a9985a20f | refs/heads/master | 2021-08-20T06:08:20.516212 | 2017-11-28T11:28:40 | 2017-11-28T11:28:40 | 112,326,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | #!/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
list_1 = [9, 8, 1, 6, 3, 2, 10, 12, 11, 201, 209, 99, 203,4,-5,4]
print("The list is:", list_1)
req = raw_input("Enter 'a' for ascendin order and 'd' for descending order:")
for i in xrange(len(list_1)):
for j in xrange(i+1,len(list_1)):
if r... | [
"noreply@github.com"
] | noreply@github.com |
530054b5f5bfcf224797ff7cb03ce8898da54858 | 6c5a2649bd7dce505e108d5ceb862d9a3912ca8b | /score_of_data.py | dc556bef64979e96be25a36395d5a45b68c9bbf1 | [] | no_license | maidao/machine_learning_Intermediate | 680295ba8b9282312cd499151e57ef03e1a55283 | 7cb5a05b4bdd30f0555faa3705d7ab20793d61b5 | refs/heads/master | 2020-06-18T07:33:47.152520 | 2019-07-17T10:03:00 | 2019-07-17T10:03:00 | 196,215,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_absolute_error
def score_dataset(X_train, X_valid, y_train, y_valid):
model = RandomForestRegressor(n_estimators=10, random_state=0)
model.fit(X_train, y_train)
preds = model.predict(X_valid)
return mean_absolute_error(... | [
"md.maidao@gmail.com"
] | md.maidao@gmail.com |
4519fcc8a1257679325f218d2d8e4791a247000c | 0265aa3b7a00121c51d98d2f2032cb3c2130709b | /arcade/python/unique_characters.py | b5bbe6b46afa0b5b8248b4eab2744a014baca51a | [] | no_license | csgear/codefights | 45d9ba2ff97bb3e23444d418233a7ada8e8a6dc2 | 8ab18a59301a6946fc5a89f569812c7616f9b898 | refs/heads/master | 2021-01-12T04:08:00.386703 | 2018-08-10T09:04:37 | 2018-08-10T09:04:37 | 77,506,465 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py |
def uniqueCharacters(document):
return sorted(set(document))
if __name__ == '__main__':
document = "Todd told Tom to trot to the timber"
print(uniqueCharacters(document)) | [
"csgear@live.com"
] | csgear@live.com |
8cdb95ee98bec7fca5fd2fe6237cc4b8fe1ae58b | b032e625e3b894d0c83ae2926fd62536dd437cb7 | /p110.py | e9c90397244bedd95a9ccba868a8919acfc603f4 | [] | no_license | sarthakwhjr/p110 | 5ac5fff016995ae70611366ff7eae6afd2bb827f | b8e5f58b1f331ae0a9752cd1ef5db3a10519278e | refs/heads/main | 2023-07-26T14:42:09.232961 | 2021-09-08T12:42:41 | 2021-09-08T12:42:41 | 404,343,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import csv
import pandas as pd
import plotly.figure_factory as pff
import statistics
import random
import plotly.graph_objects as pgo
df=pd.read_csv("tempdata.csv")
data=df["temp"].tolist()
def randommean(counter):
dataset=[]
for i in range(0,counter):
randomdata=random.randint(0,len(data)-1)
... | [
"noreply@github.com"
] | noreply@github.com |
87cddce92b5071b9d47617bca4b11461da55b66a | 046207f434966462fff55f634ba5a450d2208534 | /CodeUp/1259_0186.py | d3941c4ae56ec159bd0e541f26d3f46a954997cd | [] | no_license | sungsikyang92/pythonStudy | e293e1ac8af443809f840ccee7052a8f57480b70 | 26522b5e232ccd9ab25c52122d254aa7249a8fdf | refs/heads/master | 2023-07-04T16:58:40.318976 | 2021-08-04T02:00:27 | 2021-08-04T02:00:27 | 365,398,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | n = int(input())
sum = 0
for x in range(1, n+1):
if x % 2 == 0 :
sum += x
print(sum) | [
"sungsik.yang92@gmail.com"
] | sungsik.yang92@gmail.com |
7d2a6233a9a612e060fee57342c2438698320f9b | 2113deb701d852cf03e24911a78c370f4446903d | /backend/django_web_calculator/django_web_calculator/wsgi.py | 1282170823af30e07ba9bed544f7f016e044ac3e | [] | no_license | ShancoVils/web_calc_repos | c286f2ccf2ddb1f59a8b2462e5a6417b67452994 | 66fb167378085944357e96dc0c0401d59f5806fc | refs/heads/master | 2023-07-18T08:47:42.425717 | 2021-09-10T12:00:15 | 2021-09-10T12:00:15 | 404,023,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for django_web_calculator 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"pernens@mail.ru"
] | pernens@mail.ru |
80124fb4c9f3f3e1eb6d7e6fc6343552f974ab00 | a38b627df11c1ff4f271b3a832fbe6579e3cb790 | /manage.py | de14d16d2cd4cf0e9a6494f85d9e939479259f3c | [] | no_license | single-repozit/Null | 330a4cdf4268de91c95c1c62837f7609ba954eab | 9942f4e6157d64125b3bb1b3319d12ac804482f0 | refs/heads/master | 2021-05-05T06:26:48.765345 | 2018-01-24T18:04:14 | 2018-01-24T18:04:14 | 118,800,740 | 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", "Null.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you... | [
"dr.dany@yandex.ru"
] | dr.dany@yandex.ru |
45a941542c6eb500c823b5d445f76412a2149b8a | 1208ac3718420c4a118ab6b777d99980b85f952a | /112.py | aabd7878a6fe754ceb9cd8e4a711f5e799a5cd90 | [] | no_license | deimelperez/150_Py_challenges | 6ab9aea77c9c117b682790bfe36fb5e280cb8afc | b58f55312e7abf30cb7cb6d68b249bb5dcd3c862 | refs/heads/master | 2023-03-13T02:30:15.095467 | 2021-03-04T19:02:11 | 2021-03-04T19:02:11 | 344,579,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import csv
file = open ('111 Books.csv','a')
title = input('Enter title: ')
author = input('Enter author: ')
date = input('Enter date: ')
newRecord = tile + ',' + author + ',' + date + '\n'
file.write(str(newRecord))
file.close()
| [
"deimelperez@gmail.com"
] | deimelperez@gmail.com |
6ce8f379b30a6b9cf254cf43308afce13b24d067 | 882ed605f76575c4bc836952c14a667fea259028 | /functs.py | 58b55c56c3e229113dc71a0b9e1e47f6e360f700 | [] | no_license | Parker-Johnson/MAE6226 | 0b97814f26259359cb6e6bdb7e15e8f9d2d1d69d | d7428998a4567c7ab47b33c8a0c8f356c900c1e0 | refs/heads/master | 2020-04-17T05:21:41.098556 | 2019-05-05T20:43:23 | 2019-05-05T20:43:23 | 166,275,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | import math
import numpy as np
def get_velocity_vortex(strength, xv, yv, X, Y):
u = +strength / (2 * math.pi) * (Y - yv) / ((X - xv)**2 + (Y - yv)**2)
v = -strength / (2 * math.pi) * (X - xv) / ((X - xv)**2 + (Y - yv)**2)
return u , v
def get_stream_vortex(strength, xv, yv, X, Y):
psi = stren... | [
"pjohns1995@gwu.edu"
] | pjohns1995@gwu.edu |
69a692f69279f5075583c5453a69f1f6df3bec6c | 079989df1765293d3536b98f841630246bb77a85 | /information/models.py | 69782d9228cdbcd29e08eba464dd17a09dce24be | [] | no_license | R-Mielamud/ClasssixSite | fb74cf71acc55fd32b7be0b4365ff3b2099d5d7c | 0d3bc58b4e13ddc29f0a7f2025a6c813d828433f | refs/heads/master | 2020-12-27T08:10:52.040513 | 2020-07-09T19:19:15 | 2020-07-09T19:19:15 | 237,826,755 | 1 | 0 | null | 2020-02-10T13:18:41 | 2020-02-02T19:47:34 | HTML | UTF-8 | Python | false | false | 723 | py | from django.db.models import *
from diary.models import Subject
class TeacherData(Model):
full_name = CharField(max_length=100, default="")
subject = ForeignKey(Subject, on_delete=CASCADE, related_name="teacher_data_sets")
def __str__(self):
return "{} | {}".format(self.full_name, self.subject)
... | [
"2m.roman2@gmail.com"
] | 2m.roman2@gmail.com |
2497cfe49693743af6f390ab5ee75b6bd96ebf9e | 48894a44b01b055c9d88eb93f4472fa1da72441b | /run.py | ffab80d383c6be37ca0c1c76c9b9eb84500f98b7 | [] | no_license | Biking0/ambari_monitor | 4f349846f5be9042854427979e844934db3881c0 | 137cd8d7b051253a616c6b106722cac539616610 | refs/heads/master | 2020-08-10T22:39:44.331360 | 2020-03-19T05:41:22 | 2020-03-19T05:41:22 | 214,435,780 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | #!/usr/bin/env python
# -*-coding:utf-8 -*-
#********************************************************************************
# ** 文件名称:run.py
# ** 功能描述:ambari 监控项目启动所有监控程序
# ** 输 入 表:
# ** 输 出 表:
# ** 创 建 者:hyn
# ** 创建日期:20191020
# ** 修改日志:
# ** 修改日期:
# ****************************************************************... | [
"1342831695@qq.com"
] | 1342831695@qq.com |
5264e111233945faf45b9aefd6d120ef0d823acf | 8a5ab3d33e3b653c4c64305d81a85f6a4582d7ac | /PySide/QtXml/QDomDocumentFragment.py | 05e5e380013867b6c5bff79ce5d82cf2508b4f84 | [
"Apache-2.0"
] | permissive | sonictk/python-skeletons | be09526bf490856bb644fed6bf4e801194089f0d | 49bc3fa51aacbc2c7f0c7ab86dfb61eefe02781d | refs/heads/master | 2020-04-06T04:38:01.918589 | 2016-06-09T20:37:43 | 2016-06-09T20:37:43 | 56,334,503 | 0 | 0 | null | 2016-04-15T16:30:42 | 2016-04-15T16:30:42 | null | UTF-8 | Python | false | false | 801 | py | # encoding: utf-8
# module PySide.QtXml
# from /corp.blizzard.net/BFD/Deploy/Packages/Published/ThirdParty/Qt4.8.4/2015-05-15.163857/prebuilt/linux_x64_gcc41_python2.7_ucs4/PySide/QtXml.so
# by generator 1.138
# no doc
# no imports
from QDomNode import QDomNode
class QDomDocumentFragment(QDomNode):
# no doc
d... | [
"yliangsiew@blizzard.com"
] | yliangsiew@blizzard.com |
9516b5b406a52345e21d6d3b966357153dec278e | cd7153d21744cbcdb97236accea74b2ff1f805f5 | /Customer Accounts.py | 1a76d662fbebc0082f12509d2396cff4d52963ac | [
"CC-BY-4.0"
] | permissive | otawestside/otawestside.github.io | 9b4ed4bed5a7c4411a8c418af48c402c0548a219 | e309d2d8b41a86e8177ef89d57a937d9f6bd8d6a | refs/heads/master | 2020-04-05T14:11:11.864432 | 2017-07-04T01:40:07 | 2017-07-04T01:40:07 | 94,817,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | import sys
sys.version
print(Company Ledger)
customer_one = input("Name:") #customer data
print('Customer Name:', customer_one)
balance_one = float(input("Enter Current Balance:"))#account balance
print("Balance due the first of the month:", balance_one)
payment_made_one = float(input("Payment:"))#payment amount
print(... | [
"otalkattan@gmail.com"
] | otalkattan@gmail.com |
445fe25ab37a37347c95410335a6af57e7ac434e | 7768aec09f88671e8e2325e2282c10e4ea815db0 | /forum/migrations/0014_auto_20200513_1810.py | 0bc42b0b76813700fde2d7c53753d980b0aac579 | [] | no_license | wawrze/django-forum | 3862037c728cbcf003e47b9c82f7e91c021a2a40 | c9f4bf818be303060189297beba141b0273e946d | refs/heads/master | 2021-03-24T00:29:21.178026 | 2020-05-13T16:12:32 | 2020-05-13T16:12:32 | 247,497,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # Generated by Django 3.0.4 on 2020-05-13 16:10
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('forum', '0013_auto_202005... | [
"mateusz.wawreszuk@gmail.com"
] | mateusz.wawreszuk@gmail.com |
a1eeec87fa4a9209016a291784668093eb5e72cf | e5e4d4e480248cc34a245b6e9ca48f7315226d6e | /learning_templates/basic_app/templatetags/my_extras.py | ceb456f177aefe6ff851d07a5d72c53653b0c24d | [] | no_license | chemcope82/django_deployment | 0eea7866027e9e2c661f7b2077292a927bb0da19 | 2d8e8cb5ce1569ef2ff6024103caa24be817d41f | refs/heads/master | 2020-08-04T12:55:14.645357 | 2019-10-01T16:20:31 | 2019-10-01T16:20:31 | 212,143,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django import template
register = template.Library()
@register.filter(name='cut')
def cut(value,arg):
"""
This cuts out all values of 'arg' from the string
"""
return value.replace(arg,'')
# register.filter('cut', cut) | [
"traviscopeland@fb.com"
] | traviscopeland@fb.com |
9228d566a160f755a23268c9469f27f1eecca76e | d6fa97271ff295d4e1838de700105bb53967c032 | /python/fromBook/chapter6/22_divide_conquer/84-different-ways-to-add-parentheses/84-m.py | b513596f471681949422ac1ea0691352d245a444 | [] | no_license | Cenibee/PYALG | 989b4e8d8f61d5decc13248dcea7ebc04e0df0c2 | 14d19ebc475d6da0fbef9b8f3bff506dfb307b51 | refs/heads/master | 2023-07-12T21:15:30.131102 | 2021-08-14T04:19:58 | 2021-08-14T16:09:52 | 322,007,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | '''
못 풀었다 나중에 다시 풀어보자
'''
from typing import List, Tuple
class Solution:
def diffWaysToCompute(self, input: str) -> List[int]:
opers = {
'+': lambda x, y: x + y,
'-': lambda x, y: x - y,
'*': lambda x, y: x * y
}
def get_number(s: int, e:int) -> Tuple... | [
"ksj3452@naver.com"
] | ksj3452@naver.com |
1a1b25fc8c24554f7190b90d529bd53fdea7f86e | f3e9cabfa31638f3de80f5b39794a3fc2a8edc7e | /src/py3.x/ml/16.RecommenderSystems/RS-usercf.py | 97d0e54c7c09effb2a1f102b859a7782462a2ccd | [] | no_license | Michael-24/ML-master | 21ef050c32b8a156f6346456aa686f7bdb8f10e1 | bb4ff4252db9f4657f395b76d4bbe20d9edef29a | refs/heads/master | 2023-03-18T06:34:48.472023 | 2020-08-07T04:37:45 | 2020-08-07T04:37:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,223 | py | #!/usr/bin/python
# coding:utf8
'''
Created on 2015-06-22
Update on 2019-05-16
Author: Lockvictor/片刻
《推荐系统实践》协同过滤算法源代码
'''
from __future__ import print_function
import sys
import math
import random
from operator import itemgetter
print(__doc__)
# 作用: 使得随机数据可预测
random.seed(0)
class UserBasedCF():
''' TopN recomme... | [
"2553627958@qq.com"
] | 2553627958@qq.com |
5daacbb5c310ae52f58e6c3a1a8626f6ac694d13 | 8f0d0a03a58421f7ff11223378ee82e3f64a8979 | /uarthandler.py | b630632a6931140b2974151cd23208fd09a90775 | [] | no_license | minosg/py-uarthandler | e64d3ec1d0146ae7ca505ef5bcec0c1e7503ffd8 | 9c7b7c7c29bfe77f1b90c738d857bcc614544f83 | refs/heads/master | 2021-01-10T06:38:56.582681 | 2015-10-14T10:23:08 | 2015-10-14T10:23:08 | 44,237,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,514 | py | #!/usr/bin/env python
"""uartHandler.py: Simple non blocking uart handler module .It assumes a newline
return protocol that separates ascii lines with \n. Raises ValueError if
Serial fails."""
__author__ = "Minos Galanakis"
__license__ = "LGPL"
__version__ = "0.0.1"
__email__ = "minos197@gmail.com"
__project__ = "... | [
"minos197@gmail.com"
] | minos197@gmail.com |
c86b9cbe78e6fdeb9b8aec3758fc4a287f49b756 | 68bead25621c958395894b4969422274f803bb3f | /DayOne.py | bf4b106f4ebb4cc1fae2d8e938679a1b8015f931 | [] | no_license | svtm/adventofcode | 5be48268fda0d07ca5864de6de9808bac3f0b1ef | e55b9f843c768bd5765b9c940fd5fb7ce225bfc7 | refs/heads/master | 2021-01-10T03:13:40.635870 | 2015-12-23T15:33:21 | 2015-12-23T15:33:21 | 47,872,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | floor = 0;
position = 0;
with open("inputs/DayOneRoute.txt") as file:
for word in file:
for ch in word:
position += 1;
if (ch =='('):
floor += 1
elif (ch == ')'):
floo... | [
"eirik.niel@gmail.com"
] | eirik.niel@gmail.com |
3810a9e948c34313e813a1fe7c302f115e7b368c | 0a28bcde2499e6a41e16d88ed62cd2e80a5b464d | /hb_quant/huobi/service/account/get_account_balance_by_subuid.py | 29532076b68ed85bd1db6979439b5886c05dab41 | [
"MIT"
] | permissive | wenli135/Binance-volatility-trading-bot | 2cfe66007294b13a89b16d1622d50ce1615f1d66 | 75a03ad61df0e95492128fb6f1f419d4dc256ab3 | refs/heads/main | 2023-06-13T06:40:43.855256 | 2021-07-01T02:03:25 | 2021-07-01T02:03:25 | 373,853,320 | 0 | 0 | MIT | 2021-06-04T13:38:26 | 2021-06-04T13:38:26 | null | UTF-8 | Python | false | false | 696 | py | from huobi.connection.restapi_sync_client import RestApiSyncClient
from huobi.constant.system import HttpMethod
from huobi.model.account import *
class GetAccountBalanceBySubUidService:
def __init__(self, params):
self.params = params
def request(self, **kwargs):
sub_uid = self.params["sub-u... | [
"wenli@quchaogu.com"
] | wenli@quchaogu.com |
a0f55279b7b12ecb0811a9fdd1a2d9e0a84b8f08 | 83b4b8493264d6f5782d29d92d764e4a1c6b4dbf | /apps/dojoPong/migrations/0011_auto_20180620_0954.py | 56ddaad96082f8e1a0a913e6f78b73bfa3df1eda | [] | no_license | IronWhiskey/ScoreBoard | 3a8c8f17646ea885f9c49b5481bbcedcc6a27052 | 0b53115b95d078d7213d56943eb9b364d53c3cb7 | refs/heads/master | 2020-03-21T17:04:40.548039 | 2018-06-27T14:39:25 | 2018-06-27T14:39:25 | 138,811,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-20 14:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dojoPong', '0010_auto_20180620_0950'),
]
operations = [
migrations.AlterFi... | [
"solidelk@gmail.com"
] | solidelk@gmail.com |
f068188c918dd463ff044c0824b04beafa1bdc43 | 8be73ed035120ab06ac5fca8fec32a53ad9ec952 | /project/urls.py | 5e6cfbae96fcddb4afdec4a29401924f4388fb72 | [] | no_license | SurajLodh/Django-rest-def_Crud | 70491620ad80340f1baba0afc0ed5f4939c57c0a | 5314dd0b74627afe7971c53f37c871620f66f736 | refs/heads/main | 2023-08-25T17:35:32.770548 | 2021-10-31T07:25:03 | 2021-10-31T07:25:03 | 360,196,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('app1.urls')),
] | [
"surajlodh10962@gmail.com"
] | surajlodh10962@gmail.com |
821fdeabe60f1e627804abdf568a7505ab5abef5 | 6f27bb37cfb5550c5c669c3c95595255fe2066bb | /Algos/EEA.py | b372bded0e7f7b8f44bc3c0566d3666147478cae | [
"MIT"
] | permissive | Sazzad-Saju/RSA-Cryptosystem | 657f9c7e6dc14715366ab60b22125e46a92b3534 | 26a6bf5a62dc19bba4bdded31da840c4fb20bcc6 | refs/heads/master | 2022-12-12T08:43:48.690379 | 2020-09-14T16:43:49 | 2020-09-14T16:43:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | def extended_euclidean_algorithm(a, b):
"""
Returns a three-tuple (gcd, x, y) such that
a * x + b * y == gcd, where gcd is the greatest
common divisor of a and b.
This function implements the extended Euclidean
algorithm and runs in O(log b) in the worst case.
"""
s, old_s = 0, 1
... | [
"noreply@github.com"
] | noreply@github.com |
4b8f7adcc2e93f1b932a529e3d38d174e7004cf9 | 64a94ed5f323c43e3a4de25d89d7ac0edb0eec29 | /math/gcd.py | f9cf3ce90082cdb8fd65853050ededfc3a925055 | [] | no_license | stevewyl/MyLeetCode | e7b086da34b6b29ea679c94a54e50691e1842875 | 652bac5d010b7478a6ec4a8fc0a52395c69bf75c | refs/heads/master | 2022-12-08T17:32:28.885102 | 2020-08-17T02:20:33 | 2020-08-17T02:20:33 | 280,806,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | # 辗转相除法,缺点:大数取模慢
def gcd_v1(a, b):
big = max(a, b)
small = min(a, b)
if big % small == 0:
return small
return gcd_v1(big % small, small)
# 更相减损法,缺点:运算次数多
def gcd_v2(a, b):
big = max(a, b)
small = min(a, b)
if big % small == 0:
return small
return gcd_v1(big - small, smal... | [
"yilei.wang@ifchange.com"
] | yilei.wang@ifchange.com |
29cff6d8c3117c518a9ab74b682916b64efc225e | 9b0bdebe81e558d3851609687e4ccd70ad026c7f | /数据结构/栈/04.合法的出栈顺序.py | 1f404b5a1970e989acf41c5634f48a5b42087105 | [] | no_license | lizenghui1121/DS_algorithms | 645cdad007ccbbfa82cc5ca9e3fc7f543644ab21 | 9690efcfe70663670691de02962fb534161bfc8d | refs/heads/master | 2022-12-13T22:45:23.108838 | 2020-09-07T13:40:17 | 2020-09-07T13:40:17 | 275,062,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | """
1到n的数字序列,入栈,每个数字入栈后,即可出栈,也可在栈中停留,求该数字序列的出栈序列是否合法。
@Author: Li Zenghui
@Date: 2020-03-21 21:19
"""
from queue_and_stack import MyStack
def check_is_valid_order(arr):
s = MyStack()
for i in range(1, len(arr)+1):
s.push(i)
while not s.is_empty() and arr[0] == s.top():
s.pop()
... | [
"954267393@qq.com"
] | 954267393@qq.com |
00e4f15ba9104e26b7dedcc81c2eafa0bc9d8e45 | a087d07ef405fffa5f4ebdb7d384d103085ea9dd | /prac_08/taxi_test.py | 1a23abe7bbd3914e67755401d376b9f894c24e95 | [] | no_license | Naoki-Da-Costa/cp1404practicals | afb3b389b0fd4ad8cad7da049be5a6862c8def01 | b7df423b931f7f78285aa6fbbf63f285525ef467 | refs/heads/master | 2022-12-31T17:12:18.908203 | 2020-10-22T11:56:07 | 2020-10-22T11:56:07 | 289,488,323 | 0 | 0 | null | 2020-09-10T10:39:41 | 2020-08-22T13:00:01 | Python | UTF-8 | Python | false | false | 271 | py | from prac_08.taxi import Taxi
new_taxi = Taxi("Prius 1", 100)
new_taxi.drive(40)
print(new_taxi)
print("current fare ${:.2f}".format(new_taxi.get_fare()))
new_taxi.start_fare()
new_taxi.drive(100)
print(new_taxi)
print("current fare ${:.2f}".format(new_taxi.get_fare()))
| [
"naoki.dacosta@my.jcu.edu.au"
] | naoki.dacosta@my.jcu.edu.au |
5ad80828ddb191d646a7e1762a79bac93995c2c3 | e447547c68c83cce9114e31793de269015d73129 | /src/parseToJson.py | a5a7fab114ed4ea709e7731d0c60aed1efd5ad13 | [] | no_license | Milan-J-S/Code-Comprehension-MCQs | dd4300ac02ce1482ee22ba5e2ddaf71023762fec | 50270709ccb4ae5ef4f666fe73a0c8e58db88d7c | refs/heads/master | 2020-08-07T12:16:24.578043 | 2020-02-11T17:20:55 | 2020-02-11T17:20:55 | 213,445,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,399 | py | #------------------------------------------------------------------------------
# pycparser: c_json.py
#
# by Michael White (@mypalmike)
#
# This example includes functions to serialize and deserialize an ast
# to and from json format. Serializing involves walking the ast and converting
# each node from a python Node o... | [
"milan.j.srinivas@gmail.com"
] | milan.j.srinivas@gmail.com |
3c529ae269ee934c4054b11ee4820bf91ff843d7 | e42adbfe85ebf7bc4b6936e8d003d988f3e681c0 | /svea_starter/src/svea/src/controllers/control_interfaces_old.py | cbb2f8b1b4aad48c97057c6902d339bbbfd4bb9c | [] | no_license | emmaj7/sml_summerproject | f0c6924cee428fd6de64ecdb45fc58bfb7bb27f1 | 1151267d10c3b37fde53045b494c3f7494322099 | refs/heads/master | 2022-12-24T08:06:23.516464 | 2019-09-23T15:02:28 | 2019-09-23T15:02:28 | 191,755,042 | 1 | 0 | null | 2022-12-10T19:00:08 | 2019-06-13T12:03:14 | C++ | UTF-8 | Python | false | false | 13,589 | py | #!/usr/bin/env python
"""
ROS interface objects for sending control to a SVEA car.
This module simply contains the implementations of the ROS interface
code wrapped in objects. The launch files for each interfaced ROS node
still needs to be run BEFORE initializing these objects, unless the
code is being run with a si... | [
"tranbarsjuice@gmail.com"
] | tranbarsjuice@gmail.com |
8936a742754f9969a1c0d5b40f9445ba9cc820ae | 0c546c9a65f4ec697a0031b4c7ddef7af368984d | /clastersWindow.py | cb739254cdc15dc079e61e0d24f58f047cfe5bc2 | [] | no_license | MichalMaciszka/si_proj | 68722ea0b4ce0279a660b971d400647a23c33cc2 | 718ec8b1ce7eb8663f6dde04dfe3333c6c5b2a8e | refs/heads/main | 2023-05-10T00:02:02.537081 | 2021-06-09T22:32:10 | 2021-06-09T22:32:10 | 363,241,348 | 0 | 1 | null | 2021-06-02T13:22:14 | 2021-04-30T19:37:49 | Python | UTF-8 | Python | false | false | 3,191 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'clasters.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import Q... | [
"noreply@github.com"
] | noreply@github.com |
bfb07a677744c632403c11ad877d20b216e9ac01 | 10ed4852e58268cd295f9ae82383d599f28a9f0e | /app/migrations/0004_wells.py | 74e9c71b8e8797565f4f672008b8a06ce2313977 | [] | no_license | k-root/its_farm | dfae6f5cc3faafb5918f947ea7764ee08dcdf013 | 9717ea791490546333a49c11ce4e67648a22da90 | refs/heads/master | 2021-01-21T03:21:48.539538 | 2017-10-05T04:20:59 | 2017-10-05T04:20:59 | 101,892,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-09-13 13:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_member_relation'),
]
operations = [
migrations.CreateModel(
... | [
"kaushik.k15@iiits.in"
] | kaushik.k15@iiits.in |
81dd6b67d2f0dd29a2cb53407f6305faf83db033 | fd818c2aec668f53b227ee449410240dcded426b | /Source/JackBasicStructLib/ImgProc/ImgHandler.py | b493a0819845fe243f6c5b909d9280f3d1452731 | [
"MIT"
] | permissive | NPU-IAP/NLCA-Net | a40cba78f7cf725439fa5470143611c4b0436b42 | a5e03dd8370a8fa41552155aabaf8fb531b0ac22 | refs/heads/master | 2023-04-06T06:38:54.596168 | 2021-04-02T07:53:06 | 2021-04-02T07:53:06 | 243,279,223 | 9 | 0 | MIT | 2023-03-25T00:08:03 | 2020-02-26T14:13:34 | Python | UTF-8 | Python | false | false | 1,930 | py | # -*- coding: utf-8 -*-
from JackBasicStructLib.Basic.Define import *
def ReadImg(path):
img = Image.open(path).convert("RGB")
img = np.array(img)
return img
def ReadPFM(file):
file = open(file, 'rb')
color = None
width = None
height = None
scale = None
endian = None
header... | [
"raoxi36@163.com"
] | raoxi36@163.com |
11a6f509dac11d1628a4239ad6e3882798927964 | 1839a3881de40db86a2c1e50086ccd6562ed221e | /UnetVgg11/network/textnet.py | cf1ac08f05461b500ccb74444b31ded0a846858b | [] | no_license | weijiawu/Yibao-cup_competition | 491c3e63ee1398c97339e95d5299f2aa2ea8af32 | 84369b038d8c3b3b2e9bfeae824518e49586612e | refs/heads/master | 2020-05-07T12:09:22.987473 | 2019-04-10T06:41:16 | 2019-04-10T06:41:16 | 180,490,552 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,052 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import torch
import torch.nn as nn
import torchvision.models
import torch.nn.functional as F
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
class UnetVgg11(nn.Module):
def __init__(self, n_classes=3, num_filters=64, v=1):
super(UnetVgg11, self).__init__()
... | [
"wwj123@zju.edu.cn"
] | wwj123@zju.edu.cn |
165ee5fd66aeb6ac69a6639f029b320d336eb6d4 | a596d773e011ca0f4e75c725a24bb263b67b16d1 | /MINDIVNO.PY | 8d937c6f7dca64910cd6f2ccb8a096b2c985fe19 | [] | no_license | shamiliraghul/python | 47b1ca1b4be40d89b014755c51b8da9787b3ffff | 207b6a3d6222d95af9c74b6f91a94f8f6115b3d5 | refs/heads/master | 2020-05-23T02:04:20.900868 | 2019-07-19T07:10:05 | 2019-07-19T07:10:05 | 186,596,277 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | n=int(input())
C=0
for i in range(1,n+1):
if n%i==0 and (n/i)%2!=0:
print(i)
break
| [
"noreply@github.com"
] | noreply@github.com |
b56a95bf60edaec28f862d869f2ab44adec50ab6 | e083853bbe95beac5925e3a41fdd64d19f80ac84 | /BrefPlotter.py | adfdae7e5e41557f0a5d078ef9beb6e134134f36 | [
"BSD-2-Clause"
] | permissive | barajasr/Baseball-Reference-Plotting | 6bc1017136408e37c6e69d697ab926a63c1ae22c | 0b2939224973888bea86600f5aa4d4506a46a392 | refs/heads/master | 2021-01-25T07:35:15.845092 | 2015-10-07T21:17:19 | 2015-10-07T21:17:19 | 42,706,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,496 | py | #! /usr/bin/env python3
import argparse
import BrefScraper as brf
import Plot
import Teams
parser = argparse.ArgumentParser()
parser.add_argument('--csv',
choices=brf.CSV[1:], # Already empty by default
default='',
help='Set flag to save or read from csv fil... | [
"barajsar89@gmail.com"
] | barajsar89@gmail.com |
dea6745e243b7a67b860dc3d86998254c22d6dd9 | 112e792b80f0ba5f0989a297156d1554e18034d9 | /testapp/migrations/0003_person__etag.py | 77350671fec980d95092bece88612d0351d2bf1b | [] | no_license | VNG-Realisatie/vng-api-common | ba4537c230f47f0b0ba305eccc289eef09be56f2 | 609c931b3f8b640aa6dff6d02cfb799745f25eb5 | refs/heads/master | 2023-06-26T22:52:50.419762 | 2023-06-20T11:20:53 | 2023-06-20T11:20:53 | 136,349,326 | 4 | 14 | null | 2023-09-01T14:26:58 | 2018-06-06T15:31:27 | Python | UTF-8 | Python | false | false | 629 | py | # Generated by Django 2.1.8 on 2019-09-05 06:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("testapp", "0002_auto_20190620_0849")]
operations = [
migrations.AddField(
model_name="person",
name="_etag",
field=mod... | [
"sergei@maykinmedia.nl"
] | sergei@maykinmedia.nl |
07dbc9321bc6c5f35086aa1f7ce23e8e342d48cd | 61dda8703d5a8e8025898bc36b23768b12869dd9 | /devel/lib/python2.7/dist-packages/posInfo/msg/__init__.py | 6ef6b408cc1220f264e3c46ef84be2d1de557756 | [] | no_license | MinzhiYoyo/myT265_2_ACFLY | 22639b6ae09f0877e8fa6a55b3fa8917aef07440 | 416b241d2d81b8382553aa77fb64fa9d4a40aa38 | refs/heads/main | 2023-06-16T09:21:52.275156 | 2021-07-10T07:33:06 | 2021-07-10T07:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | from ._PositionInfo_M import *
| [
"2498369702@qq.com"
] | 2498369702@qq.com |
2eced005cebbaac44b3e0fdcdd8acdef7be12064 | f9e169c92e3a3049cc7e3e191dd54555ea969959 | /server/friendbook_master/views.py | f4608ba6b19826650ba2bab7dff8dd142a297b3c | [
"MIT"
] | permissive | leroyjvargis/friendbook | 5d1a739844aa80557520dcbf4f406586820c3c44 | 1b649ca69292b21f1033267138f590271b4ff210 | refs/heads/master | 2020-04-02T04:48:41.911016 | 2016-05-01T18:35:22 | 2016-05-01T18:35:22 | 57,702,294 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.http import HttpResponse
import datetime
def hello(request):
return HttpResponse("Welcome to FriendBook! :)")
| [
"leroyjvargis@gmail.com"
] | leroyjvargis@gmail.com |
1b3cbfda1f86acdd3181ce829d8f465d465cbee4 | 45cdffbd1ae65b631cf274bf6b7c7f7754dbd49a | /ecomm/home/migrations/0002_auto_20200623_2144.py | 8a431451db10bf0c665f8c765a4514455cc99ac1 | [] | no_license | happy-parle/E-commerce-based-website | 24964798681cea55ee73973eca066ea90fccb081 | 7ac3125c35352c8d8f1882e7d2d8b788b53f6862 | refs/heads/master | 2022-12-10T00:17:02.881417 | 2020-08-10T15:54:59 | 2020-08-10T15:54:59 | 286,514,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | # Generated by Django 3.0.7 on 2020-06-23 16:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='category',
fie... | [
"parlehappy@gmail.com"
] | parlehappy@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.