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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f50d822ca3d5a95f8084081a47ecb41255882b1e | 75880ce9ad6885999e17efca78b1e94e613fcd29 | /ergasia8.py | de50c31e1daae70ae79973cadd3ce06c0180538e | [
"CC0-1.0"
] | permissive | nataliavorizanaki/Ergasies_Python_Prwtou_Eksamhnou | 839e519b9b0a7391779725e52ee391bc3d43fac6 | fa8346912c0b6eeee45f76eb1dbbc444e9cecc40 | refs/heads/main | 2023-03-13T03:22:20.518682 | 2021-03-02T17:08:52 | 2021-03-02T17:08:52 | 343,491,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | import requests
import json
import ast
import os
def main():
file_name = input("Please insert file name ")
file_name = file_name.strip()
if os.path.exists(file_name):
infile = open(file_name, 'r')
contents = infile.read()
else:
print("The file does not exist")
flag = True
... | [
"noreply@github.com"
] | nataliavorizanaki.noreply@github.com |
869c25a47aaf7bc6bc5d469a272bb92066b15599 | 59a4fe2fcd8f8a9b8afa3608e69e0236439256c7 | /cross_validation3.py | 9f3758c1cf7a1248f19770e4af0878542248ba76 | [] | no_license | iaminblacklist/sklearn | 6d947c996a129a614bbf39290d7afe8446ab48f7 | 11f85ed26d1751849abab18fb70bcc0bfea8db40 | refs/heads/master | 2020-03-27T23:54:47.844527 | 2018-09-04T14:20:10 | 2018-09-04T14:20:10 | 147,357,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from sklearn.model_selection import validation_curve
from sklearn.datasets import load_digits
from sklearn.svm import SVC
import matplotlib.pyplot as plt
import numpy as np
digits = load_digits()
X = digits.data
y = digits.target
param_range = np.logspace(-6, -2.3, 5)
train_loss, test_loss = validation_curve(
SVC(... | [
"iaminblacklist@gmail.com"
] | iaminblacklist@gmail.com |
bc27b8fa61132158c9004b0c3d96302cee57c123 | c9fde4576216a22e8d5711bbe97adda1aafa2f08 | /model-optimizer/mo/front/caffe/extractor.py | 8f6115655b5973294584661bca6889d30733e4aa | [
"Apache-2.0"
] | permissive | dliang0406/dldt | c703d6a837de3f996528fc8a9543f9530b23342c | d9b10abcebafe8b10ba81e09e433de7a366c072c | refs/heads/2018 | 2020-04-03T08:24:47.723353 | 2018-10-29T07:58:05 | 2018-10-29T07:58:05 | 155,132,108 | 3 | 1 | Apache-2.0 | 2019-10-10T08:39:46 | 2018-10-29T01:03:54 | C++ | UTF-8 | Python | false | false | 5,994 | py | """
Copyright (c) 2018 Intel 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 wri... | [
"openvino_pushbot@intel.com"
] | openvino_pushbot@intel.com |
24e60d5e6ab4bd5e2bb4c8fbc73fed26abb5cbe7 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003815.py | 5e5bdd4608ad234dd7dc490f41749f64838b0581 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
82b9d2923b901208ab629e15f0eb68ab639cb8f1 | 237cb5a6de7d58fd15826c87f44ccb96d2ba7959 | /Material2/rinex2.py | d42551d030fff9a5db40dfaeaa6f867c3573df26 | [] | no_license | walterscorpionblade/Research_JumpOccurance | d5152379715d75f915bcff15a333bcfb5d3d2054 | 691264195a1ca1c537d0456c50aea3e528c8f456 | refs/heads/master | 2020-08-14T05:25:17.085894 | 2019-10-14T17:37:45 | 2019-10-14T17:37:45 | 215,105,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,240 | py | import numpy
from numpy import array, nan, datetime64
from datetime import datetime
# RINEX 2.10 - 2.11
CONSTELLATION_IDS = {
'G': 'GPS',
'R': 'GLONASS',
'E': 'Galileo',
'S': 'SBAS',
}
# RINEX version 2 does not distinguish tracking modes (added in RINEX V3)
# As such, for GPS, simple signal names L1, ... | [
"liuzijun96@rl1-142-37-dhcp.int.colorado.edu"
] | liuzijun96@rl1-142-37-dhcp.int.colorado.edu |
9a7ac17a45a71f1de7afea23e28e8af49840222c | 645aa520f2eff7e6001574e57c986aba129e4dd3 | /tests/test_visualize_pathways.py | 608a46c9346eadcb1ae18f44d046049486192b9e | [
"Apache-2.0"
] | permissive | google/transitfeed | 08c4ecfb6872b6c0dc409d9a35b32ef515e30253 | 104b5a5b339c62a94c1579d7209a41c7c0833e35 | refs/heads/master | 2023-09-05T03:08:17.640950 | 2022-05-23T16:23:53 | 2022-05-23T16:23:53 | 24,061,376 | 680 | 299 | Apache-2.0 | 2022-09-28T09:02:50 | 2014-09-15T15:16:32 | Python | UTF-8 | Python | false | false | 649 | py | import os.path
import unittest
import visualize_pathways
def get_file_contents(filename):
with open(filename, 'rb') as f:
return f.read()
class TestVisualizePathways(unittest.TestCase):
def test_gtfs_to_graphviz(self):
testdata_dir = os.path.join(os.path.dirname(__file__),
... | [
"noreply@github.com"
] | google.noreply@github.com |
bebae2ec181a990c00ab65e8cbacefadfb9f5f8c | afb95e647efe077122e1d774028ac7a39ffc2b88 | /mysite/decrees/urls.py | 3da1b9ea1678b08d6d160aac1f6a06d102345d49 | [] | no_license | hercules261188/unv-proj | c56b32ca41acd26528f5e1b256906315a7023cee | ed762189124ffe4e0016773461466b8506bdaf71 | refs/heads/master | 2021-12-14T23:44:00.360059 | 2017-06-24T11:49:13 | 2017-06-24T11:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | from django.conf.urls import url, include
from django.views.generic import ListView, DetailView
from decrees.models import Decree
# pk — is for primary key
urlpatterns = [
url(r'^$', ListView.as_view(queryset=Decree.objects.all().order_by('-date')[:25], template_name='decrees/decrees.html')),
url(r'^(?P<pk>\d+... | [
"forjob159@gmail.com"
] | forjob159@gmail.com |
a0364d6e371684383b61216b8d9e5677beb97814 | b394bb6bd3e8848688b525f55e82962f152c1bb3 | /demos/upload/linear_systems/Complexity of Mat-Mat multiplication and LU.py | f4e79703fc521e02f24bfee84b294558fbd90ad9 | [] | no_license | lukeolson/cs450-f20-demos | 02c2431d7696348cf9ca1ab67bdd5c44a97ac38b | 040e7dfa15c68f7f426cf69655cb600926f9f626 | refs/heads/master | 2023-01-22T19:12:33.394521 | 2020-12-03T19:48:18 | 2020-12-03T19:48:18 | 288,542,898 | 5 | 10 | null | 2020-10-05T19:39:07 | 2020-08-18T19:13:52 | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python
# coding: utf-8
# # Relative cost of matrix operations
# In[1]:
import numpy as np
import scipy.linalg as spla
import scipy as sp
import matplotlib.pyplot as pt
from time import time
np.alterdot()
# In[2]:
n_values = (10**np.linspace(1, 3.25, 15)).astype(np.int32)
n_values
# In[3]:
... | [
"luke.olson@gmail.com"
] | luke.olson@gmail.com |
90afc3a58e3e9c99e3416d2d843ca5e084f3e87a | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /medium/Rotate List.py | 8ad51c14cc944ec9af60a8ec92c7c8d4a1311263 | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | # -*- coding: utf-8 -*-
# @Time : 2019/10/29 0029 10:26
# @Author : 没有蜡笔的小新
# @E-mail : sqw123az@sina.com
# @FileName: Rotate List.py
# @Software: PyCharm
# @Blog :https://blog.csdn.net/Asunqingwen
# @GitHub :https://github.com/Asunqingwen
"""
Given a linked list, rotate the list to the right by k places, wher... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
fd8aa3ea52ca26a7bff1f7c7d6f9d22f8f4d59b7 | c038d06c31de0919d70c04f517f7490146ff80df | /train_nn.py | b8a8c4cc52d03dcfcdb4e339de6e584971a4eca1 | [] | no_license | KWAN-YWAN/gtd-analytics | 235df79f9b95b1734928cd2a9b4d54c5bf3f88e8 | 10fd7fa2965bb0efcc2396d86d3998afbc0fe7c8 | refs/heads/master | 2020-03-28T18:13:39.976015 | 2018-07-11T21:56:29 | 2018-07-11T21:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,579 | py | #!/usr/bin/env python
import numpy as np
import pandas as pd
# Plotter library
import seaborn as sns
import matplotlib.pyplot as plt
# Own libraries
import data_preparation as prep
from nn import Nn
from sklearn import preprocessing
def filter_data(df):
# Filter for only kidnapping data (1st, 2nd or 3rd attac... | [
"vinh-ngu@hotmail.com"
] | vinh-ngu@hotmail.com |
4a91a67b682f1783ab47dec7b9f606dc53773550 | 0d1fa87b14e5b73f7acad0275845cf290a72b36a | /rlcycle/common/abstract/loss.py | d0aa9136116f8927434fbf189052732269e691e5 | [
"MIT"
] | permissive | RL-code-lib/RLcycle | 101ec129ea8b2b1b8e0f56e3715c65d5bebee35f | 5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569 | refs/heads/master | 2023-08-25T04:53:13.730944 | 2021-09-23T19:46:51 | 2021-09-23T19:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | from abc import ABC, abstractmethod
from typing import Tuple
import numpy as np
from omegaconf import DictConfig
import torch
import torch.nn as nn
class Loss(ABC):
"""Abstract class for callable loss functions
Attributes:
hyper_params (DictConfig): algorithm hyperparameters
use_cuda (bool):... | [
"chrisyoon1729@gmail.com"
] | chrisyoon1729@gmail.com |
3055dd516e30c7c07aa5907cd892549bbcf990a3 | 1fccf52e0a694ec03aac55e42795487a69ef1bd4 | /src/euler_python_package/euler_python/medium/p194.py | 8d5449446e6261f855f92632dbc27e892a2191d5 | [
"MIT"
] | permissive | wilsonify/euler | 3b7e742b520ee3980e54e523a018cd77f7246123 | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | refs/heads/master | 2020-05-27T12:15:50.417469 | 2019-09-14T22:42:35 | 2019-09-14T22:42:35 | 188,614,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | def problem194():
pass
| [
"tom.andrew.wilson@gmail.com"
] | tom.andrew.wilson@gmail.com |
a82fc06568fcb535206a9cbd973e444dcb6fd998 | a97b2f48fc6cbfe3eaa05628b7d5fde0219bd4dd | /saba67.py | b05be9c26301266a39a11edec761e0ffb0b547fc | [] | no_license | sabapathy1234/P.saba | 715cdd4f88432f5e45f79d0d4e43d24213a3e5c6 | 25f55bda92938c7d418801715f44f89473733874 | refs/heads/master | 2020-06-11T17:27:28.997123 | 2019-08-14T10:22:12 | 2019-08-14T10:22:12 | 194,036,280 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | hj23=int(input())
gk=0
for u in range(1,hj23+1):
gk=gk+u
print(gk)
| [
"noreply@github.com"
] | sabapathy1234.noreply@github.com |
c8f61f66a53e7880635f138860299b85e981122f | 609c2898934910e568c6c9858f1dfc9b697a95be | /opentaf/templates/opentaf_ini.py | e16c02ea38b2de9290f5cc08c4e4a1ca6606a7f4 | [] | no_license | cijohnson/OpenTaf | c0c30fe7d2418a2b9fab4ddf37e980e94de7c80e | 43a36649189b21ef79026ec2b4707529b4aa7202 | refs/heads/master | 2021-01-10T13:42:53.332744 | 2016-03-06T07:45:09 | 2016-03-06T07:45:09 | 52,994,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import string
template = string.Template("""
[DEFAULT]
root=$__opentaf_root__
testbed=$__opentaf_testbed__
[PUBLISH]
host=$__test_result_server_ip__
port=$__test_result_server_port__
[SCHEDULER]
host=$__testbed_scheduler_ip__
port=$__testbed_scheduler__port__
""")
| [
"ijohnson@juniper.net"
] | ijohnson@juniper.net |
bc7058a78e6e9bd0a48ef99d6ea623b099bcb7de | 81e88bb831b33cdc84dc2aeeb1b97f709f0c0802 | /main.py | 6920b5473b2e8b873b208bf71db52281d8d0cd83 | [
"MIT"
] | permissive | aroch/protobuf-dataframe | 2fed247c0200ab5a007c0e645fda532aebf96713 | bdd6a13a9ca6f77072c55a05aab79baaef4b712f | refs/heads/master | 2022-11-14T07:18:42.752410 | 2022-11-13T08:30:35 | 2022-11-13T08:30:35 | 203,235,530 | 11 | 3 | MIT | 2022-11-13T08:30:37 | 2019-08-19T19:20:53 | Python | UTF-8 | Python | false | false | 1,315 | py | from pyspark.sql import SparkSession
from pyspark.sql.functions import udf, col
from protodf import schema_for, message_to_row
def specific_message_bytes_to_row(pb_bytes):
# import your protobuf here
msg = message_type.FromString(pb_bytes)
row = message_to_row(message_type().DESCRIPTOR, msg)
return r... | [
"rafi.aroch@gmail.com"
] | rafi.aroch@gmail.com |
e3c58ee32730862e029e9a35c0e4bfde4659c4af | b7e3b6133f58cb75f82652e241ad048edbcff969 | /imitation_learning/generic_training.py | 4bb862bf2996f9eff8c519b885636bf3b434e52c | [] | no_license | e-lab/GameMatch | faf9a3ab54255ac35dcfc1612c1c30ab9186f923 | fc5f751509c904f900e39c0340efd10dd5e0df02 | refs/heads/master | 2021-04-30T22:38:12.630607 | 2018-11-18T22:08:39 | 2018-11-18T22:08:39 | 70,605,678 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,118 | py | '''
Author: Ruihang Du
Description:
Functions for training and evaluating any neural network models
Inspired by the PyTorch ImageNet example https://github.com/pytorch/examples/blob/master/imagenet/main.py
'''
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.optim
from torch.nn.utils... | [
"du113@purdue.edu"
] | du113@purdue.edu |
7360c2ab796b4c4587e67ecf831de16dd660d59d | e92c1b2262c9e868b714166f191077e69464c93e | /access.py | e546d3c594edcdc22a5456c1cb5757a202358124 | [] | no_license | manpages/py-ken | b5588a09bee35096f5a7d1ba700928fb68321621 | 248e73429ee51cf5b29f3146e247e125657f5c3d | refs/heads/master | 2016-09-11T03:29:45.678924 | 2015-02-08T15:18:42 | 2015-02-08T15:18:42 | 28,929,896 | 0 | 1 | null | 2015-01-18T12:19:46 | 2015-01-07T19:24:18 | Python | UTF-8 | Python | false | false | 104 | py | def getCageId(field, x, y):
for (id,c) in field['cage']:
if (x, y) in c['cells']:
return id
| [
"amarr.industrial@gmail.com"
] | amarr.industrial@gmail.com |
365ea7847009dce0a5f2ade2dbb2630f78ad335e | fcb37f2d9069e7dcb95e2c264993993aaef42528 | /room_assistance/indico_room_assistance/notifications.py | 0982ad42e75930c6509fa0ceb7bbf2b03db1eb92 | [
"MIT"
] | permissive | mic4ael/indico-plugins-cern | 56a27f5535c60765a2019a84daadd205adaeec74 | 814fdbb064d556763c90052879f9a909031e35c1 | refs/heads/master | 2021-05-07T15:07:55.673278 | 2019-06-28T07:46:19 | 2019-06-28T07:46:19 | 109,974,520 | 0 | 0 | null | 2017-11-08T12:42:27 | 2017-11-08T12:42:27 | null | UTF-8 | Python | false | false | 1,871 | py | # This file is part of the CERN Indico plugins.
# Copyright (C) 2014 - 2019 CERN
#
# The CERN Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License; see
# the LICENSE file for more details.
from __future__ import unicode_literals
import dateutil.parser
fr... | [
"michal.kolodziejski@cern.ch"
] | michal.kolodziejski@cern.ch |
8685c85161574c016cb792309fb15c9c60c7fc1a | b5e75d3b2536b46fca649d13fbd185b926e285fc | /15.UserDefinedFunction.py | cdbcb8d40204c6ef2e2dbe727d61870733870cfd | [] | no_license | sohag2018/Python_G5_6 | 0333c640a3744cd4f0b7461f536de385d94e6d14 | 1db3eff22e5ad4dc54523dbe38d366cf85c80288 | refs/heads/master | 2022-09-08T22:44:51.672634 | 2020-05-23T22:59:06 | 2020-05-23T22:59:06 | 260,783,717 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #Why do we use function-->to reuse te code
#Syntax:--->def name(arg1,arg2,...): -->argument as per needed
#function for division
def div(x,y):#this function will returns the result for div of two given numbers
print(x/y)
#function for modulas
def div(x,y):#this function will returns the result for modulas of two ... | [
"nafasatzayan@gmail.com"
] | nafasatzayan@gmail.com |
3d9dac643af211b1c1a371f8ce54825e4b229f39 | ac7f3b7c5c9501d880671766439018a67b4a8abc | /Mclass.py | 4446c949803a2b04ff5e8de064913b02c9951103 | [] | no_license | Pratikshresth/Advance-Student-Management-System-using-Mysql-Database | ce63de404d277622bec5fed726172545aaeaea79 | d609410a7eeb246482ebefa08f96c2ec6664ee91 | refs/heads/master | 2023-06-18T04:24:35.825911 | 2021-07-16T09:09:46 | 2021-07-16T09:09:46 | 386,276,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py | class Student:
def __init__(self,fname, lname, city, zipcode, state, gender, email, contact, dob, program,section,clgId):
self.fname=fname
self.lname=lname
self.city=city
self.zipcode=zipcode
self.state=state
self.gender=gender
self.email=email
self.co... | [
"pratik.shrr@gmail.com"
] | pratik.shrr@gmail.com |
48cf0d99548b0c502a76b53d898f7255565a280b | c46a3177866d72d6230016c23db797d207f15ada | /scripts/py/all_mafft.py | 5b4eff56e181fc08c79f495ed3a4835bd96099b8 | [] | no_license | nknyazeva/course_work_5 | 4e560eb649a6506d35b1541527e29e0a4b9d2a7f | fb633557afc8685ff8c0a924a3f56b48a5134685 | refs/heads/master | 2020-07-25T11:33:27.167210 | 2019-11-06T16:52:25 | 2019-11-06T16:52:25 | 208,275,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | in_dir = '/home/nknyazeva/courseWork5/data/result/pn_ps/'
out_dir = '/home/nknyazeva/courseWork5/scripts/pn_ps_mafft/'
def getPutFileName(name):
name = name[:-6]
name = name + '_align_mafft.afa'
return name
for i in range(75):
i = str(i)
if len(i) < 2:
i = '0' + i
name_file_in = in_dir... | [
"knjasewa-nastja@yandex.ru"
] | knjasewa-nastja@yandex.ru |
b6ad629804c56f1e1f28634b0658838b34e35074 | 71f96c4cd3f11ccd38c29085dcc4b7f4125ff572 | /data_structures_and_algorithms/Data_Structures/linked_list/linked_list.py | 8b54469bc2db2273aeedee05bfd423a4b1188ff3 | [] | no_license | MohmmadNada/data-structures-and-algorithms | f0c3dab0a9ccac17c2654bbc251c80657fe4967e | 0ce28a33313b427fd1100cdeaaafe17ffabcefd6 | refs/heads/main | 2023-06-20T17:23:53.489219 | 2021-08-07T14:30:33 | 2021-08-07T14:30:33 | 350,750,841 | 1 | 0 | null | 2021-04-09T13:18:58 | 2021-03-23T14:51:44 | JavaScript | UTF-8 | Python | false | false | 7,638 | py | '''
CC5:
1. Create a Node class that has properties for the value stored in the Node, and a pointer to the next Node.
2. Within your LinkedList class, include a head property. Upon instantiation, an empty Linked List should be created.
* Define a method called insert which takes any value as an argument and adds a ... | [
"mohammad.nada_97@yahoo.com"
] | mohammad.nada_97@yahoo.com |
f3815f70c32f2896f4449435b1bacfddcf8375c9 | 39e647e9ec8524a1cee90ef15f37a3d3bbf8ac43 | /poet/trunk/pythonLibs/Django-1.3/tests/modeltests/proxy_models/models.py | 30f14bc931b97f11cff5cbcf7a99bf9d15829bc7 | [
"BSD-3-Clause"
] | permissive | AgileAdaptiveTools/POETTools | 85158f043e73b430c1d19a172b75e028a15c2018 | 60244865dd850a3e7346f9c6c3daf74ea1b02448 | refs/heads/master | 2021-01-18T14:46:08.025574 | 2013-01-28T19:18:11 | 2013-01-28T19:18:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,229 | py | """
By specifying the 'proxy' Meta attribute, model subclasses can specify that
they will take data directly from the table of their base class table rather
than using a new table of their own. This allows them to act as simple proxies,
providing a modified interface to the data from the base class.
"""
from dj... | [
"ssaltzman@mitre.org"
] | ssaltzman@mitre.org |
1d97335e9b892423815671859110140fd3a0e9e0 | 015806e237bfcd85a3e4eb48bac4461413f26a62 | /website/views.py | 5c0c67478b6c12e19f3532f3baa3ac9a0d9d870d | [] | no_license | alexsteeve/escoladasnacoes | 7fc63ea4da8ab6927184bc62ce25f78534227a7b | c6c9011c146e245a9f3693361a93cd81db822b7a | refs/heads/master | 2020-03-28T04:32:37.159757 | 2018-09-06T19:21:44 | 2018-09-06T19:21:44 | 147,721,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,643 | py | from django.urls import reverse_lazy
from django.views.generic import TemplateView, ListView, UpdateView, CreateView, DeleteView, DetailView
from helloworld.models import Estudante, Curso, Materia, CursoPeriodo, CursoPeriodoEstudante
from website.forms import InsereEstudanteForm
from datetime import datetime
# PÁGINA... | [
"alexsteeve@gmail.com"
] | alexsteeve@gmail.com |
8ac96c23be4a2472b6a1c35d2727a8277d640cef | e3cc4d1cd686dae93b0519244c883816cf79b794 | /tools/ISMmainplotfunction/ISMtools/hgashalf_out.py | 9d2d854132331f4ec85c283ea6c3da0cff8a3b72 | [] | no_license | tkc004/samsonprogram | 620a095ab04719e5339f77968ce444c4c037841b | db24d26fb2100e6b71e93dc82863c3b95fe95126 | refs/heads/master | 2021-01-20T01:46:14.873434 | 2019-09-17T01:05:24 | 2019-09-17T01:05:24 | 89,327,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,624 | py | from stdmodandoption import *
import collections
def hgashalf_out(ssdict):
nested_dict = lambda: collections.defaultdict(nested_dict)
plotdict = nested_dict()
runtodo=ssdict['runtodo']
wanted=ssdict['wanted']
print 'wanted', wanted
startno=ssdict['startno']
Nsnap=ssdict['Nsnap']
sna... | [
""
] | |
425ae4bad5ec2bf6ae6e55096f9b329ab59d9a73 | 022b22d343e2c3d89a865c2b5d684e82c692771e | /frontend_docker/project/main/views.py | 753ec13fe01e0c17192f09af50c9bdade4d1cc2f | [
"MIT"
] | permissive | jessequinn/hbsis | f4050f5f0850001bc3284ce2c94266ccb00a4c70 | 149b8c41c75732dcbcc23e667831fdb42cab786e | refs/heads/master | 2022-12-18T01:13:27.354613 | 2019-02-08T10:27:35 | 2019-02-08T10:27:35 | 169,249,120 | 0 | 0 | MIT | 2022-12-08T01:35:31 | 2019-02-05T13:54:21 | JavaScript | UTF-8 | Python | false | false | 5,545 | py | import datetime
import json
import pytz
import urllib.request
from flask import render_template, request, flash, Blueprint, redirect, url_for
from flask_login import login_required, current_user
from project import app, db
from project.models import WeatherRegistration
from .forms import WeatherRegistrationForm
main_b... | [
"me@jessequinn.info"
] | me@jessequinn.info |
587b7372864dc0539ed6c1cfc0f20d8d6a086cdd | 575c65f490117c12d033a235fa68e3cb4438c602 | /main.py | 0d75c45e71b74f025352fd2536ded28618121711 | [] | no_license | Crucizer/Audio-Player | a115bed97fc37660545f1b51792bfa6e47c59159 | d2617af2002ded1f7b8b88b2aacb5ccf5ae94802 | refs/heads/master | 2022-11-15T00:45:29.742484 | 2020-07-11T14:47:11 | 2020-07-11T14:47:11 | 274,173,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,467 | py | from PyQt5 import QtWidgets, QtGui
# , QLineEdit, QVBoxLayout, QHBoxLayout
from PyQt5.QtWidgets import QApplication, QMainWindow, QSlider
from PyQt5.QtGui import QColor # , QMovie
from PyQt5.QtCore import Qt
import sys
import pygame as pg
from mutagen.mp3 import MP3
import os
import threading
pg.init()
... | [
"noreply@github.com"
] | Crucizer.noreply@github.com |
19e8a2275e77b19545138e9ac5fef6f97bb8fcff | c1bd4f24c0962c3dde93421ae8a1d468e7ea8b3d | /Practica5/E2P5.py | 6aa82c95e5e939e1344f7f25c83ee6c53b9fd4c1 | [] | no_license | AdriAriasAlonso/Python | e9a8994dd08a7b5a962a5b22dca06ad96634394f | 16c122089dc9e7ec5d06edc12d5ff2d2c3cd5d4b | refs/heads/master | 2020-08-15T11:35:22.618884 | 2019-11-05T17:15:36 | 2019-11-05T17:15:36 | 215,334,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #Ejercicio 2 Practica 5: Adrian Arias
n1=int(input("Porfavor, introduzca un número\n"))
n2=int(input("Porfavor, introduzca otro numero\n"))
for i in range(n1,(n2+1)):
if i%2==0:
print ("El numero", i,"Es par")
else:
print ("El numero", i,"Es impar")
if n1>n2:
for i in range(n2,(n1+1)):
... | [
"aarias@cifpfbmoll.eu"
] | aarias@cifpfbmoll.eu |
4b0df2a739e371cc097d3d87f76e0530b774c8e8 | c5238f0de5074b13a0d3f93e474a9cfac8ad0277 | /playback/studio/recordings_lookup.py | 067b5fdeaee186413e45a4b084937f0ae20b409b | [
"BSD-3-Clause"
] | permissive | mayacahana/playback | eb16ec865535d7e7b5148fb505946e4cb198ef9a | fc6083910a66130845d9f0d69853c886df504692 | refs/heads/main | 2023-04-10T12:14:37.673042 | 2021-03-25T09:12:45 | 2021-03-25T09:12:45 | 357,560,067 | 0 | 0 | BSD-3-Clause | 2021-04-13T13:17:25 | 2021-04-13T13:17:24 | null | UTF-8 | Python | false | false | 1,909 | py | from random import shuffle
class RecordingLookupProperties(object):
def __init__(self, start_date, end_date=None, metadata=None, limit=None, random_sample=False):
"""
:param start_date: Earliest date of recording
:type start_date: datetime.datetime
:param end_date: Latest date of r... | [
"eitan@optibus.com"
] | eitan@optibus.com |
96a31bd87d182e38af66c9502dda52cbddd18184 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-ons/aliyunsdkons/request/v20190214/OnsMessagePageQueryByTopicRequest.py | 18afe3920e90c8d8b1f8495a693430691275ac77 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 2,300 | 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 u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
6e6bef69c641d624737033f588ec5773cedcedfa | eda5f94d7d1b8dffe7bd04b78a2002868aa245fa | /json_process.py | 89b33a4538ff6242f2adbb1c60e22b11833a33ef | [] | no_license | oychao1988/myScrapy | 566d353cbadf575a94e1d56ccc1ab80ff0484777 | 10e9ab3ad2878f9cc297d2519b11f77bf233c6f1 | refs/heads/master | 2020-04-24T22:35:38.645097 | 2019-02-24T09:16:03 | 2019-02-24T09:16:03 | 172,317,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import json
from jsonpath import jsonpath
with open('zitems.json', 'r') as f:
# json_str = f.read()
json_dict = json.load(f)
# print(json_dict)
result = jsonpath(json_dict, '$.data.results')[0]
print(type(result))
[print(each) for each in result] | [
"2296458423@qq.com"
] | 2296458423@qq.com |
5c9d0b80d96f14ba60beab833bd3810b25a334f9 | 139318c3c285aca8e1600dbf10192fd91e62a356 | /app/msg_api/msg_routes.py | d8b580b3ddf131dc3839b7e3da720dc6a3d78673 | [] | no_license | Ym4n/messaging-system-python-flask-api | c6543eb2b2a496a6b79ea20281f589ec4a882c42 | 47a9a6272a19167f15ce3b0bca3847929019beee | refs/heads/main | 2023-08-11T21:34:35.644860 | 2021-09-25T08:43:08 | 2021-09-25T08:43:08 | 372,399,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,257 | py | from flask import request, jsonify
from flask_login import login_required, current_user
from app.msg_api import msgapi_bp
from app.db_users import User, Group
from app.db_msg import Messages, Msg_Recipient
from app import db
def msg_is_valid(msg):
""" message validation """
return "recipient" in msg and ... | [
"noreply@github.com"
] | Ym4n.noreply@github.com |
e0e0ac6d1685609a798fb83ff12f8a72911f6e01 | e0e255c7f9adb78044e2fb67b5a9cb85e17b7558 | /actions/actions.py | 37a3b1de3088942a544eb3efdfe1ca8964772d87 | [] | no_license | igupta967937/appointment_bot | f4cc3db7aa96d899fa20ee7fa9fe3cd88a98a0ca | 834ab7d38ebdd3437955fccdea34e6506e5af422 | refs/heads/main | 2023-03-07T00:34:27.591527 | 2021-02-12T12:34:34 | 2021-02-12T12:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | # This files contains your custom actions which can be used to run
# custom Python code.
#
# See this guide on how to implement these action:
# https://rasa.com/docs/rasa/custom-actions
# This is a simple example for a custom action which utters "Hello World!"
from typing import Any, Text, Dict, List
from rasa_sdk ... | [
"noreply@github.com"
] | igupta967937.noreply@github.com |
03bb1c24d6f897fedea3dc2569117cf6c7f50df2 | a5ed71c4f897132a3505107acbf27635f7c13f9c | /Программирование/labs/okno.py | 0b1efa39f56e50993a7ab27430cbe52c1426c510 | [] | no_license | Ksupall/BMSTU_1sem | ecee121ccd8be43165040fd4567f34a935283367 | 4fa47faaf42eea7728202d9a1ed0ab86e900bf2e | refs/heads/master | 2022-12-14T04:29:34.317952 | 2020-09-09T11:07:27 | 2020-09-09T11:07:27 | 294,084,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | from tkinter import *
from math import sin, cos
root = Tk()
root.title('Первое окно в Питоне')
root.geometry('1020x620')
canvas = Canvas(root, width=1020, height=620, bg='#002')
for i in range(21):
k = 50*i
canvas.create_line(10+k, 610, 10+k, 10, width=1, fill ='#007')
for i in range(13):
k =50*i
... | [
"KsenyaPolyakovaaa@mail.ru"
] | KsenyaPolyakovaaa@mail.ru |
4c0cbbd6b354a7c9beb0926c78c9d3d68e787764 | eece94bc273edadee19a40cee51f787037737422 | /corpus.py | f443471c22224decc1f3c7890717ccb9d2066b95 | [] | no_license | mi-chellenguyen/cs-121-project-3 | 0579b9c3a2e0b2d0fe523fecd9fe76fb7d0df4c7 | 4b8be2857210563ffbf52325672fedc4a25fe846 | refs/heads/master | 2022-01-18T14:51:55.851351 | 2019-06-01T05:12:12 | 2019-06-01T05:12:12 | 187,193,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | """
Corpus class is from the same corpus.py given in project 2
"""
import json
import os
from urllib.parse import urlparse
class Corpus:
"""
This class is responsible for handling corpus related functionalities like mapping a url to its local file name
"""
# The corpus directory name
WEBPAGES_RAW... | [
"michn10@uci.edu"
] | michn10@uci.edu |
ab8a538e9a834d5700cf3ac3cd559f7204e23eb8 | 5a7812908f03a96d224dd6afd5e902eaa4a1bc72 | /manage.py | 3aaaca92c24e1833de0e32565da906078c62a89d | [] | no_license | abztrakt/django-badger | 6be5da8eb14b4a1c3b5bd494294ad0e26cd4439a | 4e5a927fdcacfd7aa7f78c713c7d30d3f8ecdd3a | refs/heads/master | 2020-07-10T13:39:35.212601 | 2015-06-17T18:31:33 | 2015-06-17T18:31:33 | 15,320,494 | 0 | 0 | null | 2015-11-13T17:10:25 | 2013-12-19T19:20:39 | Python | UTF-8 | Python | false | false | 309 | py | #!/usr/bin/env python
import os
import sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
def nose_collector():
import nose
return nose.collector()
if __name__ == "__main__":
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"me@lmorchard.com"
] | me@lmorchard.com |
b6e20b9bd79614adeceeaad5b46e60d0cc2692ef | c9d50f032e2ba9144933ec913663d9d6ad264151 | /ShopKeeper/Listener/apps.py | 9e0e89a1f7c1965cbc11959bbe804918c9a70d31 | [] | no_license | RockMeroll/ShopKeeper | 3acf47bfc110f1c26f45c5d91df60ac047794b7a | 471befc0ca967783724afd5b52eb47f061aaedf0 | refs/heads/master | 2021-01-20T08:19:47.336508 | 2017-08-27T13:45:58 | 2017-08-27T13:45:58 | 101,554,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class ListenerConfig(AppConfig):
name = 'Listener'
| [
"rockmeroll@hotmail.com"
] | rockmeroll@hotmail.com |
e7723d9c8eda67ab73bdce61fabc02b82c3baa62 | 0d8ab859bc1848fe0a61e1c926df3b1a4b298141 | /modulo_2/modulo_2/wsgi.py | 5a1eb851fda7ebf1c005e3f62d2c42dfa8aed635 | [] | no_license | alan-damian/django-aplicaciones | 18558ee52e632a09c77c28f90b6505c2a28b4d89 | 59d2f5834f0a6add978ae9f5c1d4cd108e9c8789 | refs/heads/main | 2023-08-22T17:23:04.535882 | 2023-08-08T20:08:25 | 2023-08-08T20:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for modulo_2 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('DJANGO_SETT... | [
"noreply@github.com"
] | alan-damian.noreply@github.com |
11081b54eefdf7a0dc6ee6fe71a46da11fa021ff | 7fe128bad2edcc42bfe2f416f57822faadba7aa6 | /home/urls.py | f04627ace266f0508a1c7c867143b656ed422cc8 | [] | no_license | AlexiaDelorme/site-sephora | e3ad6b7ee6f6bff4ebd655d472e55a5e261426d2 | 4503f93bcedb856ac57585ffa021f9ec9759b0d2 | refs/heads/main | 2023-01-23T12:31:20.599344 | 2020-12-04T22:16:09 | 2020-12-04T22:16:09 | 311,388,760 | 0 | 0 | null | 2020-11-29T14:31:49 | 2020-11-09T15:52:49 | CSS | UTF-8 | Python | false | false | 388 | py | from django.urls import path
from .views import specialty_detail_view, sub_specialty_detail_view, honoraires_view
urlpatterns = [
path('compétences/<int:pk>/', specialty_detail_view, name='specialty_detail'),
path('compétences/détails/<int:pk>/',
sub_specialty_detail_view, name='sub_specialty_detail')... | [
"46656955+AlexiaDelorme@users.noreply.github.com"
] | 46656955+AlexiaDelorme@users.noreply.github.com |
967b041df488aabe60dd198a880e7b38e873786f | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2524/60618/287300.py | 48f5b7e392369d39af807d2dddd3b1123248d6db | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print("1 3 2 4") | [
"1069583789@qq.com"
] | 1069583789@qq.com |
31f6289142f123b7aa1f3408d8c68b0a4c08744b | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_endpoint_connections_operations.py | 4dae2b4662729d3e2714e093eb7ff038afd17b81 | [
"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 | 34,172 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
5a1ab60820fd81cdf5a2c9716a6bd8522f875d10 | 0e046754f5151c9e4916115bb8d547cd1210d144 | /ex40b.py | 77394ff783c97a7957ae61e66e40f08a6fff638f | [] | no_license | teoharianto/python1 | f056730813f4559fd01493bf8d455f13dc5871e9 | aa99ba7df0f1acc349de51fdb0f7c8c370a4482e | refs/heads/master | 2020-09-01T06:53:45.198635 | 2019-11-01T03:17:50 | 2019-11-01T03:17:50 | 218,902,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | class MyClass(object):
def pertanyaan(self):
prompt = "> "
print("Masukkan angka pertama : ")
MyClass.angka1 = input(prompt)
print("Masukkan angka kedua : ")
MyClass.angka2 = input(prompt)
print("-"*10)
| [
"teofilushendry5@gmail.com"
] | teofilushendry5@gmail.com |
650e33ce0f21e78b11f013b0560453ea2a85a6be | 94bfb8b44125c6d7b58409e1979dc95941acd753 | /setup.py | 1e7fbea569df3ec736160c40e28066a550226a3e | [
"MIT"
] | permissive | rkhullar/pearsonr-pure-python | 1ef8eb8ada777fa3e2cf97b5c97122fb6d9ca1f0 | 955fbca6af0a234cf5132d5f83d36a2c411fec7a | refs/heads/master | 2023-03-21T12:56:43.945020 | 2021-03-13T19:54:05 | 2021-03-13T19:54:05 | 347,448,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | from pathlib import Path
from setuptools import find_packages, setup
from typing import List, Union
import pipfile
import re
import subprocess
def read_file(path: Union[str, Path]) -> str:
with Path(path).open('r') as f:
return f.read().strip()
def infer_version() -> str:
process = subprocess.run([... | [
"noreply@github.com"
] | rkhullar.noreply@github.com |
71066e4fbe1454df9a36b16d98c5833f9c368392 | 4d88b5b2a40f140f9235f46a083b51655cfc0c93 | /orastorage/model.py | e94881927b361671cb80ce230dcfc80f30e8a089 | [
"Apache-2.0"
] | permissive | taewanme/orastorage-py | 1c5aac05497f0e91de9bcbea34d9fc5ab4b871a2 | 33b383ef9858fe16503451de781fcc6553592655 | refs/heads/master | 2021-01-21T06:46:50.577726 | 2017-03-02T06:50:42 | 2017-03-02T06:50:42 | 83,281,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
class Identity:
"""
- 사용자 정보
- Account 정보를 이용하여 인증을 수행
"""
def __init__(self, identity_domain, user_id, password=None):
self._identity_domain = identity_domain
self._user_id = user_id
self._password = password
... | [
"taewanme@gmail.com"
] | taewanme@gmail.com |
41865d0a8d31bd029bcf81770e2e5cc7e4de96f3 | bcc4eb1b96ff9117208a07bf91f479695776b684 | /Fase2/arbol_b/nodo_b.py | 001d63088a5c7cd31ca5dccd324c6325335c701d | [] | no_license | JASAdrian1/EDD_SmartClass_201901704 | 5db668697966cc317415e2466c73e79bcf7b2838 | bfc0a362e24b565b5abcd4cc328134a809b12cc6 | refs/heads/master | 2023-09-02T19:54:20.091149 | 2021-11-12T00:01:07 | 2021-11-12T00:01:07 | 394,545,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py |
class nodo_b:
def __init__(self,curso):
self.curso = curso
self.izquierda = None
self.derecha = None
self.siguiente = None
self.anterior = None
| [
"3022643370101@ingenieria.usac.edu.gt"
] | 3022643370101@ingenieria.usac.edu.gt |
fd4261e382f0c2af24db00d077a75a556802c706 | 5c579f811f4f400f8605a13ca85f044411fc8fcb | /Phase3/Code/LSH.py | 7acabdf812bcbcf2d0c227aecf08d13f65884b23 | [] | no_license | Satyak22/Multimedia-Retrieval-and-Analysis | 4c230098f101719cf458cf21de4ec66bca04d902 | c6cdabb02505cd4ccecb0e4f02d676b3a86e1545 | refs/heads/master | 2022-11-11T11:41:35.953323 | 2020-06-24T04:04:42 | 2020-06-24T04:04:42 | 274,545,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,117 | py | import json
import math
import os
import random
import numpy
import pandas as pd
from scipy.spatial import distance
from project_utils import get_data_matrix
from dimensionality_reduction import reduce_dimensions_lda, reduce_dimensions_svd
class ImageLSH():
def __init__(self, num_layers, num_hashs):
print(... | [
"satyakpatel22@gmail.com"
] | satyakpatel22@gmail.com |
f843bedf9cbff64a0edb8722634e6949dba0b446 | 72b55ff8a72209979f6da96f461c41737270396d | /forms.py | c9ecfa8e05ad83a87870e3b887daf066942a64a6 | [] | no_license | KeithCCC/FlaskSamples | 2426a51325abcb1cf8527ead97f36a0e1ecd9736 | 15b348f3ad798084a2048b272b3b7ce6669f7024 | refs/heads/master | 2021-01-23T18:22:41.765447 | 2017-09-07T22:22:37 | 2017-09-07T22:22:37 | 102,790,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from flask_wtf import Form
from wtforms import TextField, IntegerField, TextAreaField, SubmitField, RadioField,SelectField
from wtforms import validators, ValidationError
class ContactForm(Form):
name = TextField("Name Of Student",[validators.Required("Please enter your name.")])
Gender = RadioField('Gender', c... | [
"keithc2chen@gmail.com"
] | keithc2chen@gmail.com |
8fbc50489eff50ed424d41fd9e73da22a933f129 | 4b17b361017740a4113ba358460293e55c9bee49 | /LAB02/04-CloudAlbum-XRAY/cloudalbum/model/models.py | f21c3b69306956a5492bd0f320264da3289f4e9d | [
"MIT"
] | permissive | liks79/aws-chalice-migration-workshop | aa01fa5a585a548c8408ba7448d731deefbbbd18 | 5115117504a3e2b897dc8444be58de0e4e12586a | refs/heads/master | 2022-12-25T09:50:44.821495 | 2018-11-20T03:05:52 | 2018-11-20T03:05:52 | 139,544,736 | 6 | 8 | MIT | 2022-12-08T02:17:36 | 2018-07-03T07:26:11 | JavaScript | UTF-8 | Python | false | false | 3,505 | py | """
model.models.py
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CloudAlbum is a sample application for TechSummit 2018 workshop.
:copyright: © 2018 by Sungshik Jou.
:license: BSD, see LICENSE for more details.
"""
from sqlalchemy import Float, DateTime, ForeignKey, Integer, String
from flask_login import Us... | [
"liks79@gmail.com"
] | liks79@gmail.com |
2e12d79fa9ad4afdc9d45903736aa325321b8bdf | 780b01976dad99c7c2ed948b8473aa4e2d0404ba | /scripts/alphas_archive/zw_contfut/alpha_ichimokucloud_long_bullish_feb02_.py | ac7c5e278698c535bbbd3bc0ba40df1577ab83ca | [] | no_license | trendmanagement/tmqrexo_alexveden | a8ad699c2c3df4ce283346d287aff4364059a351 | 4d92e2ee2bc97ea2fcf075382d4a5f80ce3d72e4 | refs/heads/master | 2021-03-16T08:38:00.518593 | 2019-01-23T08:30:18 | 2019-01-23T08:30:18 | 56,336,692 | 1 | 1 | null | 2019-01-22T14:21:03 | 2016-04-15T17:05:53 | Python | UTF-8 | Python | false | false | 1,430 | py | #
#
# Automatically generated file
# Created at: 2017-02-09 10:10:05.686710
#
from strategies.strategy_ichimokucloud import StrategyIchimokuCloud
from backtester.strategy import OptParam
from backtester.swarms.rebalancing import SwarmRebalance
from backtester.costs import CostsManagerEXOFixed
from backtester.s... | [
"i@alexveden.com"
] | i@alexveden.com |
e244467c43c15f133fb60bcf85e4eb8bde84cf17 | ec450b48ea1f074dc61fd6d9fdd8dd91cb40fb56 | /backend/wallet/wallet.py | 4d84aa3a18ba3302a85c02288cb28f8b3d2ea73b | [] | no_license | TwylaWeiyuTang/Blockchain | 4dc4a72ca5538e58aad545f6c7c5c4b72f956610 | f174abd57504c719cff7926f4049a51c4bbefd61 | refs/heads/main | 2023-05-20T16:44:06.053833 | 2021-06-10T04:36:28 | 2021-06-10T04:36:28 | 375,567,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,615 | py | import uuid
import json
from backend.config import STARTING_BALANCE
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.asymmetric.utils import (
encode_dss_signature,
decode_dss_signature
)
from cryptography.hazma... | [
"noreply@github.com"
] | TwylaWeiyuTang.noreply@github.com |
5a68c04f899f47c89d7192b8ebdfe56a6a2f17e4 | 057d662a83ed85897e9906d72ea90fe5903dccc5 | /.PyCharmCE2019.2/system/python_stubs/cache/2b64a136264952b5fc77d4c27a781542cf8f659109a9e46ce1b22875cea43541/_cython_0_29_2.py | f3272e9cfb67ae70598f0930f6534bae4d67a51e | [] | no_license | Karishma00/AnsiblePractice | 19a4980b1f6cca7b251f2cbea3acf9803db6e016 | 932558d48869560a42ba5ba3fb72688696e1868a | refs/heads/master | 2020-08-05T00:05:31.679220 | 2019-10-04T13:07:29 | 2019-10-04T13:07:29 | 212,324,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,255 | py | # encoding: utf-8
# module _cython_0_29_2
# from /usr/lib/python3/dist-packages/brlapi.cpython-37m-x86_64-linux-gnu.so
# by generator 1.147
# no doc
# no imports
# Variables with simple values
__loader__ = None
__spec__ = None
# no functions
# classes
class cython_function_or_method(object):
def __call__(self,... | [
"karishma11198@gmail.com"
] | karishma11198@gmail.com |
997e8209c2b3d2a126f06dcf2817e43779ec535d | 9e9faf222fe6969b5b0c1652768c1b1db88e8b5d | /old_stuff/tf_old_stuff/train_adaptive_lr.py | a2481a5ee8ec6bc61fe6b9911175864f5dcde110 | [] | no_license | Ravoxsg/UofT_Adaptive_LR_optimizer | b800a068f222bd361e1ac6567c7cdbc74bd24d3c | 18c3f719c89e42e4e84af5840e64b4c89ab7e153 | refs/heads/master | 2021-08-31T00:52:31.674332 | 2017-12-20T02:23:18 | 2017-12-20T02:23:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,574 | py | #Same as train.py, but with an adaptive learning rate schedule.
import numpy as np
import tensorflow as tf
from data import cifar10, utilities
import vgg
# Config:
BATCH_SIZE = 64
NUM_EPOCHS = 0.2
STEP = 20
DATASET_SIZE = 50000
INITIAL_LR = 0.0001
EPSILON = 0.0000001
network = 'vgg'
mode = 'adaptive_2nd_order'
... | [
"mathieu.ravaut@student.ecp.fr"
] | mathieu.ravaut@student.ecp.fr |
98f608ebac936a9529c1d937758f6d9638c51234 | 5651c5421273957cfdc35902e07531c098efb33e | /consult.py | 4f32faa74add8c43e863a2b99b4203e29f0045c6 | [] | no_license | dianakooo/python | 37ede05ca3163c86aed5b5dcb777c405e4e99402 | ace41acded063caa65ad289a8627222b9b33aba7 | refs/heads/master | 2021-09-16T10:01:31.561531 | 2018-06-19T09:42:34 | 2018-06-19T09:42:34 | 105,384,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | lines2016 = []
a = 0
with open("happiness-cantril-ladder.csv", encoding='utf-8') as f:
#for line in f:
lines = f.readlines()
for line in lines:
#print(line)
cells = line.split(',')
#print(cells)
if cells[2] == '2016':
lines2016.append(cells)
user_countr... | [
"noreply@github.com"
] | dianakooo.noreply@github.com |
c268e42e33cab54993c7be1e85eaccdb2e98aec1 | 5655a243a3d631c70826910b9bd257bf21f52bcd | /LAB SW 3/MyMQTT2.py | e3854b6fed7183b0be3bb1cbe0fb9cd3890a7f21 | [] | no_license | sebalaterra/Relazioni-IoT | dff379cdba559d324d944ee28aeeb60cf3cccdf7 | 40e4402b4583307f8594ff60d95a413647121c87 | refs/heads/master | 2022-11-08T00:08:57.375245 | 2020-06-25T13:05:54 | 2020-06-25T13:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py | import paho.mqtt.client as PahoMQTT
import requests
import json
class MyMQTT:
def __init__(self, clientID, broker, topic, port):
self.broker = broker
self.port = port
#self.notifier = self
self.clientID = clientID
self._topic = topic
self._isSubscriber = False
... | [
"noreply@github.com"
] | sebalaterra.noreply@github.com |
febfee8b916c13278ae85b84a29cbfe7b0fa8325 | 44e60feaefb8afed8b17216c379e43a4e4a4c47b | /venv/lib/python3.6/functools.py | 552df8cf27882cc693945575cca18e19aa27269a | [] | no_license | 19059019/DGHMMR | f7dc0d875019348bfbf727853520bc226ce75df2 | 6487f3a609bcb82102ee0558f2f60da2ceea182b | refs/heads/master | 2022-11-06T06:02:09.853490 | 2018-05-09T12:39:07 | 2018-05-09T12:39:07 | 129,313,764 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /home/ryan/anaconda3/lib/python3.6/functools.py | [
"myrw344email@gmail.com"
] | myrw344email@gmail.com |
ff42edd1001eb920f52266537eb69f4818f84ba8 | 50ed49edf390ddb3b4439caf20a475d887c23e30 | /Code/Process_dataset.py | d08f89618b4f4e304f0bb8bfe20f06ca4f2b1611 | [
"Apache-2.0"
] | permissive | Parth27/ActionRecognitionVideos | 2bfd728773a0e9eff211c3a70b6bd10dd69c706b | 8410843a0f78d5e0ea5aaf2f319fcffb157dcad3 | refs/heads/master | 2022-12-06T16:22:38.194304 | 2020-08-31T16:06:58 | 2020-08-31T16:06:58 | 291,759,332 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import os
import glob
src_dir = "./Dataset/UCF-101/" # Dir containing the videos
des_dir = './Dataset/UCF-101/' # Output dir to save the videos
for file in os.listdir(src_dir):
vid_files = glob.glob1(src_dir+file, '*.avi')
des_dir = "./Dataset/UCF-101/frames/"
for vid in vid_files:
des_dir_path = ... | [
"diwanji.parth@gmail.com"
] | diwanji.parth@gmail.com |
a77b2ff17ace222a1bea8e8a72ff18df355a31a5 | 364e81cb0c01136ac179ff42e33b2449c491b7e5 | /spell/branches/2.0/src/spell/spell/lib/adapter/verifier.py | 0ffd4e9ec0d45331f71f5a42f892936cb51928a1 | [] | no_license | unnch/spell-sat | 2b06d9ed62b002e02d219bd0784f0a6477e365b4 | fb11a6800316b93e22ee8c777fe4733032004a4a | refs/heads/master | 2021-01-23T11:49:25.452995 | 2014-10-14T13:04:18 | 2014-10-14T13:04:18 | 42,499,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,938 | py | ###################################################################################
## MODULE : spell.lib.adapter.verifier
## DATE : Mar 18, 2011
## PROJECT : SPELL
## DESCRIPTION: Telemetry verifier thread
## --------------------------------------------------------------------------------
##
## Copyrigh... | [
"rafael.chinchilla@b4576358-0e6a-c6b8-6e87-62523fae65e4"
] | rafael.chinchilla@b4576358-0e6a-c6b8-6e87-62523fae65e4 |
a46f2d6cf64fc5e807fb2b7418fddb89d2b4ca53 | 469e7ea421d40b16ea46aebdd82842eab91eb3fd | /galleryTddProject/gallery/admin.py | fcab762967a1e21c9a17e0aea1a6f1f2ffca1614 | [] | no_license | nathalia1096/KataRest | 5bec2dba7bac439a3c477de75bcb3a4b60029d3e | e34cd42d9bff3ef1de1e0dd543fcf5dbf916a74c | refs/heads/master | 2020-05-01T07:47:07.443928 | 2019-03-26T04:57:33 | 2019-03-26T04:57:33 | 177,359,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.contrib import admin
from .models import Image, Portfolio, UserProfile
# Register your models here.
admin.site.register(Image)
admin.site.register(Portfolio)
admin.site.register(UserProfile) | [
"nathalia.alvarez@globant.com"
] | nathalia.alvarez@globant.com |
0a5527590c9d0a2c5741e99bc9a397e7d56bc8d6 | 276c86a451c4110ba0885dbe8509d46f23c21715 | /esp32-micropython/_projects/robot_random_roam/robot.py | 0d6ef0ac34c14ae716840ea486d2f36ac8c0081e | [] | no_license | vtt-info/octopuslab | 055c9bfdc1466a6e5acf90a3cd0db2826e72dee7 | 3d20933c05bae3eec4d0c033f228bde369e46e07 | refs/heads/master | 2022-07-27T14:19:16.386241 | 2020-05-16T13:50:21 | 2020-05-16T13:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | from machine import Pin, Timer, PWM, SPI
from util.pinout import set_pinout
from time import sleep_ms
from random import randrange
from hcsr04 import HCSR04
pinout = set_pinout()
MAX_SPEED = 800
CRUISING_SPEED = 450
APPROACH_SPEED = 350
TURN_SPEED = 450
RANDOM_TURN_MIN = 600 # ms
RANDOM_TURN_MAX = 1000 # ms
COLLISI... | [
"vasek.chalupnicek@gmail.com"
] | vasek.chalupnicek@gmail.com |
dab7e968ff950d4145b0f4b0021112f80ccf01df | a1966ec4fd6e45d5e2ebd04cbac8803ed7df83e3 | /account/views.py | e39f2b49eddfab0f6b4ee7c81e440ca005d036f8 | [] | no_license | panman11111/Django_bootstrap_login | 2b7acdbfabed80d44dfa2bd17422e57b11470795 | e80c80deef8656fb4da1eb86d99d5fd7f01e1f6b | refs/heads/main | 2023-06-21T15:18:23.178322 | 2021-07-23T08:01:16 | 2021-07-23T08:01:16 | 388,710,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.shortcuts import redirect, render
from django.contrib.auth.forms import UserCreationForm
def signup(request):
if request.method == "POST":
form = UserCreationForm(request.POST)
if form.is_valid():
form.save()
return redirect('login')
else:
form = User... | [
"sakuma.takuto@shanon.co.jp"
] | sakuma.takuto@shanon.co.jp |
18d32d3d4aeafb8a8b5dd7f7e1ae9d34159a2175 | 819776af8bc3160727b7ac8f228fb985fe7594fe | /selfcheck/migrations/0002_auto_20200810_1413.py | c7c6bb32d5865800640bdba707991f51b11a7993 | [] | no_license | davkim1030/mirae_qr_server | ea5850ea222551cae940d918cc9e67e06f81154f | 3ccf1bceb9163a6a51eb29f8d205887ca7e9bce8 | refs/heads/master | 2022-11-30T04:41:21.286352 | 2020-08-18T12:57:08 | 2020-08-18T12:57:08 | 283,763,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.0.3 on 2020-08-10 14:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('selfcheck', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='url_str',
... | [
"davkim1030@gmail.com"
] | davkim1030@gmail.com |
74b45ad1bf32de78395b3bc6704098a560d4dad1 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/pytest-labs/mock_lab_1.py | 205cbdd5b5cb3ab89040e1c723b30e8800b68fc2 | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 413 | py | #!/usr/bin/env python2
#encoding: UTF-8
import mock
class Target(object):
def apply(value, are_you_sure):
if are_you_sure:
return value
else:
return None
def method(target, value):
return target.apply(value)
#pytest using mock.Mock() instance
def test_method():
tar... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
fe3182900da8d8bb4dbc2094bba70c61c293ed2a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /fyyJRDHcTe9REs4Ni_2.py | fa8d5a9f92273ccb98b5f5ce47ca0d2a51943ab1 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | """
Create a function that takes three arguments (first dictionary, second
dictionary, key) in order to:
1. Return the boolean `True` if both dictionaries have the same values for the same keys.
2. If the dictionaries don't match, return the string `"Not the same"`, or the string `"One's empty"` if only one of ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
76a74e65ebc0beed5be5ef08265dae29b1d940ae | 320e99e96bbb4c34983a327ae433a36b138c14b6 | /khufu_siteview/templatedir.py | e6186adb3344d5d1260bbb828a271de7a7797db5 | [] | no_license | khufuproject/khufu_siteview | 958d737a32ce60cdd9d638509c5ed5e18c1745a8 | c990b637f25318291a10a1f626f3829025078f26 | refs/heads/master | 2021-01-19T14:33:40.168793 | 2011-04-26T11:33:09 | 2011-04-26T11:33:09 | 1,630,968 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,457 | py | import os
import sys
from paste.fileapp import FileApp
from pyramid.asset import abspath_from_asset_spec
from pyramid.renderers import render_to_response, RendererHelper
from pyramid import path
from pyramid.httpexceptions import HTTPNotFound
import re
import logging
logger = logging.getLogger('khufu_siteview')
clas... | [
"rocky@serverzen.com"
] | rocky@serverzen.com |
c6179f3cfacaf581c9ab187719af097876c7fa09 | b235e9b9b43c37aff321aee2319742d3ddeb9f15 | /trees/trees.py | a12ef82ae95ad67ae9568ac9a7c0464175c672fe | [] | no_license | hch001/ml | 9cb714a391834dab0f7e5ed54d79e41c1a6e65e5 | 5cced8ed9f3b01f0f2144a533b60e5c46a40ba9e | refs/heads/master | 2022-04-05T10:48:34.698215 | 2020-02-18T18:31:20 | 2020-02-18T18:31:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | # 决策树
import numpy as np
import matplotlib.pyplot as plt
import random
from math import log
def createDataSet():
dataSet = [['yes', 'yes', 'yes'],
['yes', 'yes', 'yes'],
['yes', 'no', 'no'],
['no', 'yes', 'no'],
['no', 'yes', 'no']]
labels = ['No sur... | [
"13959582448@163.com"
] | 13959582448@163.com |
20da8201bce240d8f32dd27916f1c50b8834eb34 | d3f8dddd55c921f17e68d21db97045d030fdcab8 | /duloi/django_app/duriann/apps.py | e6a476cb1bd9e64b8dad7f9f8f7b79d909e77e36 | [] | no_license | SoyarBeanery/Django-WebApp--Durian | 268bd6eb70ac047451b4ea62bfa3a800d8ac41f6 | 71dda4d991b737aa9029c6bdb2221684e47c1a22 | refs/heads/master | 2022-12-14T12:09:53.273520 | 2020-08-13T16:39:22 | 2020-08-13T16:39:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class DuriannConfig(AppConfig):
name = 'duriann'
| [
"yeoyeewen@gmail.com"
] | yeoyeewen@gmail.com |
818f57f3b284ac9d0364a114f16772bdae2fa0e8 | 83e21dcd88961e01d7b6d76c1e7d3e0c405bb7a2 | /homeassistant/components/climate/velbus.py | ab8542541c8f7c14a6b70d86effd047f61f898f3 | [
"Apache-2.0"
] | permissive | skalavala/home-assistant | 0a61886a8e399d6c46bf791927a69557edfdebb3 | 66d6db7934db1af0c560ccffd92cf4a114ef5841 | refs/heads/dev | 2020-04-04T11:35:24.377362 | 2018-11-02T17:40:05 | 2018-11-02T17:40:05 | 155,896,654 | 3 | 1 | Apache-2.0 | 2018-11-02T17:00:10 | 2018-11-02T17:00:09 | null | UTF-8 | Python | false | false | 2,463 | py | """
Support for Velbus thermostat.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/climate.velbus/
"""
import logging
from homeassistant.components.climate import (
SUPPORT_OPERATION_MODE, SUPPORT_TARGET_TEMPERATURE, ClimateDevice)
from homeassistant.co... | [
"mail@fabian-affolter.ch"
] | mail@fabian-affolter.ch |
df84280a1f89716d7f5c89b3b84b9f4e5b006cfe | b9d2e6fe3f694b3a7ffc226e308066bcbf781f07 | /supporting_components/graph_io.py | f802256842d8720e449e94fc403103dfb9f16acc | [] | no_license | VeraPrinsen/isomorphisms | 82ccbc6038f48bb8d43aeb2314c14c973331d0df | e131fe6d7f982545255a7405dde44ae49ea027cd | refs/heads/master | 2020-04-25T16:06:49.500823 | 2019-04-08T13:45:48 | 2019-04-08T13:45:48 | 172,899,245 | 0 | 1 | null | 2019-04-08T13:45:49 | 2019-02-27T11:02:24 | Python | UTF-8 | Python | false | false | 8,089 | py | """
Includes functions for reading and writing graphs, in a very simple readable format.
"""
# Version: 30-01-2015, Paul Bonsma
# Version: 29-01-2017, Pieter Bos
# updated 30-01-2015: writeDOT also writes color information for edges.
# updated 2-2-2015: writeDOT can also write directed graphs.
# updated 5-2-2015: no b... | [
"vera.prinsen@nedap.com"
] | vera.prinsen@nedap.com |
80b408044a18397d5a1c2dca8ad7f9c7b4411008 | 0fb391112de0ceb363e9b15a5cf16848235fce2f | /semantic_adversarial_examples/main.py | 40d737a68f1cf20695d2385f4399cacc007292c4 | [] | no_license | sarathknv/adversarial-examples-pytorch | d0178b31902627b17c6bdbf537f62e435ac965c9 | 2979544963689d93c9af960e92975e93593c6ddd | refs/heads/master | 2023-05-10T04:38:50.857141 | 2023-04-24T20:15:46 | 2023-04-24T20:15:46 | 119,166,118 | 332 | 67 | null | null | null | null | UTF-8 | Python | false | false | 4,411 | py | import torch
import torch.backends
import torch.nn as nn
from torch.utils.data import DataLoader
from torchvision import datasets, transforms
from tqdm import tqdm
import attacks
from models import ResNet50, VGG16
def validate(model, val_loader, device):
model.eval()
total_samples = 0
correct_pred = 0
... | [
"sarathknv@gmail.com"
] | sarathknv@gmail.com |
58e41bee66689beee1a09e78b3d3e34bc752c268 | 5b6661638cfb31e40c1175e994dd1405701b2154 | /train/dataset.py | 3176f0a2477eae4674cbb2c9fd314d191a99e12a | [] | no_license | xiscosc/MasterThesis-anp-2016-dist | 5cc580e15358ac725450fe061c4d481fff4c1c27 | 8cb5e45773cf3e45154620747dab139bfd8a0229 | refs/heads/master | 2021-03-24T09:31:43.311499 | 2017-03-02T15:25:19 | 2017-03-02T15:25:19 | 78,958,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | # Copyright 2016 Google Inc. 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 applicable law or a... | [
"xiscosastre@gmail.com"
] | xiscosastre@gmail.com |
7e5524657678ec0f5d9f1d4e42a104c60bda7e18 | 0d3b16041f49156b45a820c111af33f6b7f5ae90 | /StrangeMarket/settings.py | 4559e334ff04a6bf58779f8a8f3895afe5ec2da8 | [] | no_license | chuanzhangcyh/StrangeMarket | 0b504c032023a15955d8e383f136b1daa0d64bb6 | bd8e0bc9199b3420d6fa8973e28e6401bf1a38f8 | refs/heads/master | 2023-02-24T21:28:59.205924 | 2021-02-02T13:39:01 | 2021-02-02T13:39:01 | 335,293,333 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | """
Django settings for StrangeMarket project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"1015223012@qq.com"
] | 1015223012@qq.com |
c5b50c84a27561cd42e497c41900c80a6f77b56c | 30de452d89eacf48f61ceddfaff86aa62d505507 | /traits/observation/_i_notifier.py | 2b28ed8a676667350285c54a1f6916280271f97f | [
"BSD-3-Clause",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | odidev/traits | 92224376b5444a7a5f805b474f0aa53ac1ca7cd2 | 52f4d00248cec5dbf0826de4e846b4ad83cf072e | refs/heads/master | 2023-06-18T16:53:43.850534 | 2021-07-14T05:48:46 | 2021-07-14T05:48:46 | 388,075,888 | 0 | 0 | NOASSERTION | 2021-07-21T10:31:06 | 2021-07-21T10:11:23 | null | UTF-8 | Python | false | false | 1,620 | py | # (C) Copyright 2005-2021 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only under
# the conditions described in the aforementioned license. The license
# is also available online at... | [
"noreply@github.com"
] | odidev.noreply@github.com |
51feeb2b10797b3f8b8c6b3924db8cf6fb64b368 | 1ab2c6ddf07180297a233cc695a139b6219c1fa9 | /src/smartsave.py | 4cd20d82fcadcadd922bb083e328855ac29f9a54 | [] | no_license | Braden-H12345/sfa_scripts | 0510236c45f37958c8748e21178faebfbd26bfd1 | 7a1447c5034c64ea9424424388c08ea99f68ecd2 | refs/heads/main | 2023-04-10T05:33:54.954702 | 2021-05-03T05:19:54 | 2021-05-03T05:19:54 | 345,435,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,753 | py | import logging
from PySide2 import QtWidgets, QtCore
from shiboken2 import wrapInstance
import maya.OpenMayaUI as omui
import maya.cmds as cmds
import pymel.core as pmc
from pymel.core.system import Path
log = logging.getLogger(__name__)
def maya_main_window():
"""Return the maya main window widg... | [
"noreply@github.com"
] | Braden-H12345.noreply@github.com |
ac5ab9f56988ecb664f89a097f82c4affa58d76b | 7b40412c35f5c68ea0f6b4c3b90a454d36e7e328 | /2/2.10.py | f6d7c71ae622346d24fe2924307187a51acdd56d | [] | no_license | VladKitTort/Michael_Dawson | f5085369b99c8da9cf6dbe1b652a4112a55ea9c8 | b8116ccd917379ac343ddd9e7a181cca0d6e52db | refs/heads/master | 2022-04-21T02:44:27.934620 | 2020-04-23T16:40:53 | 2020-04-23T16:40:53 | 257,879,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | # Бесполезные факты
#
# Узнает у пользователя его/ ее ичные данные и выдает несколько фактов
# о нем/ ней. Эти факты истинны, но совершенно бесполезны.
name = input("Привет. Как тебя зовут? ")
age = input("Сколько тебе лет? ")
age = int(age)
weight = int(input("Хорошо. И последний вопрос. Сколько в тебе килограммов? ... | [
"vovatortik@mail.ru"
] | vovatortik@mail.ru |
bfe5cbc0d0982f816c0f439ccfe312343bd3a6b6 | 5178f5aa20a857f8744fb959e8b246079c800c65 | /02_oop/tr/src/21_str/str_tr1.py | 28f1d95b840592e11cb603addacf54d232aacff2 | [] | no_license | murayama333/python2020 | 4c3f35a0d78426c96f0fbaed335f9a63227205da | 8afe367b8b42fcf9489fff1da1866e88f3af3b33 | refs/heads/master | 2021-05-19T04:03:46.295906 | 2021-03-09T22:23:58 | 2021-03-09T22:23:58 | 251,520,131 | 0 | 3 | null | 2020-10-26T01:20:09 | 2020-03-31T06:35:18 | Python | UTF-8 | Python | false | false | 113 | py | language = "python"
print(language.upper())
print(language.capitalize())
print(language.capitalize().swapcase())
| [
"murayama333@gmail.com"
] | murayama333@gmail.com |
b50b800f11fcc41d535b71aa89115d03db004d5b | a2398c7582b0688f3598f25b0d2dae41dd3e8ee5 | /application.py | 40b82fcf11d946ea02e7ff4f8fa536b9c46ef1ca | [] | no_license | AhmedSYD/Geoweb-app | 4ebf6c92f831537dae01db35ddd2f493c076f80f | 3b215c6c57704550d1eebd37beb54e4c02a1b73f | refs/heads/main | 2023-03-11T12:59:58.281927 | 2021-02-27T19:29:03 | 2021-02-27T19:29:03 | 341,691,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | from flask import Flask, render_template, request
import requests
import datetime
app=Flask(__name__)
@app.route("/")
def search():
return render_template("building_permit_search.html", geocode="", date_value="01/01/2020 - 01/15/2020", initial_page=True)
@app.route("/search", methods=["POST","GET"])
def after_... | [
"ahmed@domain.com"
] | ahmed@domain.com |
47d8e02e074f1b33228838b15e10ea23d3c6ee86 | 4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422 | /_0681_Next_Closest_Time.py | 6c11bbad0971087cef6f5ea28aee8b0e18f175eb | [] | no_license | mingweihe/leetcode | a2cfee0e004627b817a3c0321bb9c74128f8c1a7 | edff905f63ab95cdd40447b27a9c449c9cefec37 | refs/heads/master | 2021-06-19T07:46:46.897952 | 2021-05-02T05:13:17 | 2021-05-02T05:13:17 | 205,740,338 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | class Solution(object):
def nextClosestTime(self, time):
"""
:type time: str
:rtype: str
"""
def helper(start, cur, pool):
if start == 4:
left, right = cur[:2], cur[2:]
hour, minute = int(left), int(right)
if hour > ... | [
"hemingwei2017@gmail.com"
] | hemingwei2017@gmail.com |
5984781a7bf3e925d29c995794955234adfb0a95 | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/simrouter.py | 02b3d8c591855440623aaa468cf1e02a2f4d36be | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,972 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
be7503afcbfae63f32619f134faf846ec33a132d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/meetup/17857a6adde04647acc54269ab6ef4be.py | 84c22eae0a99b1a54a20f6aa508a6a593c16744c | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 750 | py | from collections import defaultdict
from datetime import date, timedelta
def meetup_day(year, month, day_name, date_type):
weekdays = ['Monday', 'Tuesday', 'Wednesday', 'Thursday',
'Friday', 'Saturday', 'Sunday']
operators = {
'1st': lambda x: x[0],
'2nd': lambda x: x[1],
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
f7a3e04c75162a4f4da5a2f86f1e75c3d3bd0723 | 217c2e091dfbd35226507722b0c250188aa060f9 | /core/.ipynb_checkpoints/config-checkpoint.py | 27721f9c6e86eb8e8f08fd93c409f6524a8e882d | [] | no_license | raceychan/mydp | 65ef991073fec152bdc6c508dfe88540b247611e | 85db2741e3e4f2707a6c22f63e4b931e11af95b3 | refs/heads/master | 2023-06-26T05:03:36.500742 | 2021-07-30T09:55:47 | 2021-07-30T09:55:47 | 373,941,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | import pika
import ssl
from pika.connection import ConnectionParameters
from typing import Any, Dict, List, Optional, Union, Set
from pydantic import BaseSettings, AnyHttpUrl, EmailStr, HttpUrl, AnyUrl, PostgresDsn, validator
from pandas.core.frame import DataFrame
from pandas.core.series import Series
from core.util... | [
"raceychan@gmail.com"
] | raceychan@gmail.com |
5759a3994045c73ec308fd6d0a0209db7f485d10 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/328/74024/submittedfiles/testes.py | d9f0fad052a8e893b10ab6e61accf13576dfb507 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
a=5
print('%.2f'%a)
a=30
b=5
c=10
if a<b<c:
print('comando 1')
else:
if a<c<b:
print('comando 2')
else:
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6800ca74ab37fb17c3024e97b08a6a603cd06505 | 339b90853d4e9f349d53caf21b7029dbbf686bf2 | /env/bin/googlesamples-assistant-devicetool | c7dc98c0cba530cb5e39ccb4d17c3319a16a6e97 | [] | no_license | hogwart120/lbminh-bot-test | 60965ee34a48e084ab227c0c99ced93c7d34fbeb | 2611c8b8d7a8082809939e92f11b4042416993b9 | refs/heads/master | 2020-07-16T20:10:56.335412 | 2019-07-11T08:10:01 | 2019-07-11T08:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/pi/lbminh-bot/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from googlesamples.assistant.grpc.devicetool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"thangnd85@gmail.com"
] | thangnd85@gmail.com | |
67c2f2197e27024fb004512324c888cf06f072a6 | 25a24ff7302040254a0baec244968591488567af | /archive-bioinformatics-2/bio2-wk2/bio2-wk2-3_read-pairs.py | 345f0ab456b7c59610011857fbb47c56addea6ff | [] | no_license | loibucket/biopy | 719dfb3c4623d17b2b07473bb7d0b517013c3d74 | f2490e0f90fcea44ce7daa3acbbc5b46215a7be2 | refs/heads/main | 2023-07-16T05:29:02.264495 | 2021-09-03T03:44:17 | 2021-09-03T03:44:17 | 370,835,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py |
def read_pairs(seq, k, d):
lst = []
for i in range(len(seq)-k-d-2):
b = i + k + d
lst.append("("+seq[i:(i+k)]+"|"+seq[b:(b+k)]+")")
lst.sort()
return("".join(lst))
if __name__ == "__main__":
seq = "TAATGCCATGGGATGTT"
k = 3
d = 2
print(read_pairs(seq, k, d))
| [
"loi@loico.us"
] | loi@loico.us |
9a2f58091a7f166b6979a7a70d9974314571ef65 | 2fbe7e67b0c58a4b15ca41fb077b96279da8575a | /djreact/backend/src/articles/models.py | e8979b89f93053df5d5404e7a8c0367ba2c3da96 | [] | no_license | Rahul255/Django | dd0fd663ddd424c68fe88f193219653010d4721b | 8d4e15a7ede6499ebbcb98dc4cf5f45c5e89748f | refs/heads/master | 2020-07-03T23:07:46.958097 | 2019-10-17T05:26:47 | 2019-10-17T05:26:47 | 202,081,444 | 0 | 0 | null | 2020-06-06T01:14:07 | 2019-08-13T06:42:36 | Python | UTF-8 | Python | false | false | 280 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length=120)
content = models.TextField()
def __str__(self):
return self.title | [
"rahulmohan255@gmail.com"
] | rahulmohan255@gmail.com |
a6d0e40b80ef3766737c53fd361866048da25977 | 2e006071dbf60d6340fa26875a60629fa955b993 | /Ryo_Hosokawa/Ryo_Hosokawa/settings.py | b24442d83e31bc12d3640697fecbf87e7fa27aa4 | [] | no_license | 2018-miraikeitai-org/Return_JSON | 79757ac035905803a7bd12b5c91ca11d851334ca | a117b64f369c2ad98a389bcdc09d94753946f0ee | refs/heads/master | 2020-03-19T13:09:38.152887 | 2018-07-10T05:50:21 | 2018-07-10T05:50:21 | 136,564,415 | 0 | 1 | null | 2018-07-10T05:50:22 | 2018-06-08T04:01:02 | Python | UTF-8 | Python | false | false | 3,150 | py | """
Django settings for Ryo_Hosokawa project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import ... | [
"hosokawaryou@enPiT2016MBP-03noMacBook-Pro.local"
] | hosokawaryou@enPiT2016MBP-03noMacBook-Pro.local |
aac3f6ca9c6c86ef2c98b8a092056fb26f469bbb | a1c0685a80e9a581fec9a88ff7655c639af6ffd6 | /15.py | d6787b62d04a64b22b65d3440e44b55d7e9add59 | [] | no_license | fguan/proj-euler | 734c8278b37949f979cdb197b80f95adc529a754 | 2486d6e5611326aa3f5385989a6e29bc05d71265 | refs/heads/master | 2020-06-06T10:16:31.361733 | 2014-09-03T05:11:55 | 2014-09-03T05:11:55 | 1,130,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | #!/usr/bin/python
"""
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner. How many such routes are there through a 20×20 grid?
https://projecteuler.net/problem=15
"""
gridSize = 20
a = [[0 for i in range(0,gridSize+1... | [
"frankgimpy@maozer.com"
] | frankgimpy@maozer.com |
10e9fdf6a6b34922bef66358b5ff457a52a28977 | 1d0e36f710ed936d9bec3d88b69edd8a26b62823 | /examples/ble_uart_echo_client.py | ce36ac80691af1a7338da4730e0fbc2c9a45008c | [
"MIT"
] | permissive | dglaude/Adafruit_CircuitPython_BLE | c0336787bbf739ddad9d078eab4edc2a80530bd4 | e8f72b053af8cfcde0c07040a5f2feecd4ca585b | refs/heads/master | 2020-12-12T17:54:52.632742 | 2020-01-09T03:09:22 | 2020-01-14T23:18:46 | 234,190,805 | 0 | 0 | MIT | 2020-01-15T23:05:42 | 2020-01-15T23:05:41 | null | UTF-8 | Python | false | false | 1,086 | py | """
Used with ble_uart_echo_test.py. Transmits "echo" to the UARTService and receives it back.
"""
import time
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.nordic import UARTService
ble = BLERadio()
while True:
while ble.c... | [
"scott@tannewt.org"
] | scott@tannewt.org |
f75d2596d24b3082ecc461a046ffea67c562c4b9 | 23f3ec824e4d429041f9362084f4f3be0e667732 | /src/org/bccvl/site/content/remotedataset.py | 4562b7f4883d96dac19500676febc96c7ebcb3b9 | [] | no_license | BCCVL/org.bccvl.site | 0c9aff6ccb53a42373ea5e1f3c713eae120a0db1 | d4b3a97571f5b03391ae4e33507cf84c7cef1864 | refs/heads/develop | 2021-01-24T08:21:18.402966 | 2019-11-10T23:25:53 | 2019-11-10T23:25:53 | 10,327,299 | 1 | 1 | null | 2019-01-14T22:52:31 | 2013-05-28T03:38:20 | Python | UTF-8 | Python | false | false | 268 | py | from plone.dexterity.content import Item
from zope.interface import implementer
from plone.app.contenttypes.interfaces import ILink
from org.bccvl.site.content.interfaces import IRemoteDataset
@implementer(IRemoteDataset, ILink)
class RemoteDataset(Item):
pass
| [
"g.weis@griffith.edu.au"
] | g.weis@griffith.edu.au |
9bf5f51bb15906ebe54e8158ffa8d0e1abcdfd05 | 2f6817fc8f6ddb48f5f88c913d8e40b672fc3dbf | /MLP/quiz11-3.py | 331fe654ca3d83ef9ffd1dcf2ebdbcc9879d2b59 | [] | no_license | cutz-j/TodayILearned | 320b5774de68a0f4f68fda28a6a8b980097d6ada | 429b24e063283a0d752ccdfbff455abd30ba3859 | refs/heads/master | 2020-03-23T17:34:51.389065 | 2018-11-24T08:49:41 | 2018-11-24T08:49:41 | 141,865,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | ## Q13: K-means ##
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.metrics import silhouette_score
from scipy.spatial.distance import cdist, pdist
## 파일 전처리 ##
def file_open(file_name):
## file_open --> np.array ##
file_open = open(file_nam... | [
"cutz309@gmail.com"
] | cutz309@gmail.com |
431d18182a5c2d9b0783fd03d183f557c1ba1743 | df20244e5822a428ce0fbb3eaf3cd32651f1c560 | /kgdb/jemalloc/jemalloc_utils.py | 9fa247d355f34c603ccfc643aa5181bb68279715 | [] | no_license | kongjiadongyuan/kgdb | f5e2541934a0dfcab610c85cf8971886cb9f6b14 | ff9bb5c9cf808346a792e8153dcbfe4cecadbf82 | refs/heads/master | 2020-05-22T16:06:13.067575 | 2019-09-12T06:32:32 | 2019-09-12T06:32:32 | 186,422,640 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | import struct
sztable = [0x8,
0x10,
0x20,
0x30,
0x40,
0x50,
0x60,
0x70,
0x80,
0xa0,
0xc0,
0xe0,
0x100,
0x140,
0x180,
0x1c0,
0x200,
... | [
"zhaggbl@foxmail.com"
] | zhaggbl@foxmail.com |
509baa5595f18af9b6609d75c3eb70cd7f7b8834 | 1593d6393efb987b24e9e008c275725ff489bc95 | /dxm/lib/DxRuleset/DxRulesetList.py | 7281428ff08bc501d5ed1a98cab152eccb258957 | [
"Apache-2.0"
] | permissive | SLEEP1NG/dxm-toolkit | fedab63ac21305652f047ab51af7de090fdd8035 | 1c2aae49701da47c5932e3b7e67844bf8c3d0ccf | refs/heads/master | 2020-12-07T14:41:59.080025 | 2019-11-04T12:10:36 | 2019-11-04T12:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,579 | py | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | [
"marcin@delphix.com"
] | marcin@delphix.com |
90e081344e37878f7f20b3dfb85f48791ce8604c | 1fe4f9eb9b1d756ad17e1ff6585e8ee7af23903c | /saleor/store/migrations/0003_specialpage.py | 5f0354beda8b80442f5c4eb27b7a679dbb897729 | [
"BSD-3-Clause"
] | permissive | Chaoslecion123/Diver | ab762e7e6c8d235fdb89f6c958488cd9b7667fdf | 8c5c493701422eada49cbf95b0b0add08f1ea561 | refs/heads/master | 2022-02-23T10:43:03.946299 | 2019-10-19T23:39:47 | 2019-10-19T23:39:47 | 216,283,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Generated by Django 2.2 on 2019-04-17 02:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('site', '0022_auto_20190413_2016'),
('page', '0007_auto_20190225_0252'),
('store', '0002_socialnetwork'),
]... | [
"chaoslecion71@gmail.com"
] | chaoslecion71@gmail.com |
dee8a6fa242eaa17b94d0e6b419c56fdcdd8f742 | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/powercalc/power_profile/power_profile.py | 666c4af626a6097f47d1c1015b83eeac17df2eda | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 13,870 | py | from __future__ import annotations
import json
import logging
import os
import re
from typing import NamedTuple, Protocol
from awesomeversion.awesomeversion import AwesomeVersion
from homeassistant.const import __version__ as HA_VERSION # noqa
if AwesomeVersion(HA_VERSION) >= AwesomeVersion("2023.8.0"):
from en... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
b634bfab4fdddbb7c17c5b058c3f608ba3c9fdd9 | 6489f80c1bc2c51f41c186c260a3370f899acd20 | /multi-objective/single_optimize.py | db38c7b383e1fdf0d775a84475fc0963ed41ddf8 | [] | no_license | Este1le/Auto-tuning | 16bc316359d97c3dfff0e41c5aad9a18122b7b25 | 856b6176af770b200897f56b7a46f6699402ef28 | refs/heads/master | 2020-04-13T21:27:57.516254 | 2019-09-16T17:19:07 | 2019-09-16T17:19:07 | 163,456,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | import argparse
import pickle
import numpy as np
from multiprocessing import Pool
import os.path
import sys
sys.path.insert(1, '/export/a08/xzhan138/Auto-tuning/multi-objective/regressor')
from gp import GP
from krr import KRR
from gbssl import GBSSL
from preprocess import extract_data
def get_args():
parser = arg... | [
"xuanzhang@jhu.edu"
] | xuanzhang@jhu.edu |
1e1eaa7a694586422bdc9da3b230971d98ace025 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/host_wwn_conflict_event.py | faa99ccf0a169abcf46f9c22e5db93ed38d7722e | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def HostWwnConflictEvent(vim, *args, **kwargs):
'''This event records a conflict of host ... | [
"jmb@pexip.com"
] | jmb@pexip.com |
56e5ae923d642aadde49b7cf52f67bdf6d7e7f96 | 0572c88bc1e93a0b9bc8c7aa1f78888304f6b838 | /model_VC2.py | 238f739a076f522557031a31ce7125da43379da2 | [] | no_license | Chow549/Pytorch-CycleGAN-VC2 | c8044e7cb4b23493bd700a9969bddfb7b10db4c2 | 54320f322b122415d7792ca90d5aaf36e8070114 | refs/heads/master | 2020-07-04T17:01:35.290966 | 2019-08-14T03:49:33 | 2019-08-14T03:49:33 | 202,348,491 | 1 | 0 | null | 2019-08-14T12:42:19 | 2019-08-14T12:42:18 | null | UTF-8 | Python | false | false | 19,672 | py | import torch.nn as nn
import torch.nn.functional as F
import torch
import numpy as np
import pdb
class GLU(nn.Module):
def __init__(self):
super(GLU, self).__init__()
# Custom Implementation because the Voice Conversion Cycle GAN
# paper assumes GLU won't reduce the dimension of tensor by ... | [
"kevintai0304@gmail.com"
] | kevintai0304@gmail.com |
896b091738f2acb4cb61516a1011ed82b9907efb | a9b1debfd6de31175b84f6047ad7a294b888f843 | /accounts/DB_Transactions.py | 15451f2f401aec4529f1d37ed20375a2eb2b47c2 | [] | no_license | kajalsaphui/lenseploter | 79cf252498cdaf4d28c5b7f10493a5d5aa2eb823 | b172a5cfb98a0560b88a0bfc836f44da1948c50b | refs/heads/main | 2023-09-05T10:15:49.513539 | 2021-11-18T09:07:44 | 2021-11-18T09:07:44 | 429,358,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,089 | py | from . import DBUtils
from . import Defaults
def get_all_nodes():
Defaults.logger("Entering -> | get_all_nodes() |", level = "info")
try:
sql_query = "SELECT * FROM vrx_SFTS_node WHERE status = 1"
DBcontent = DBUtils.DB_Execute_MS(sql_query, "fetch")
print(DBcontent)
Defa... | [
"kajalsaphui@gkbrxlens.com"
] | kajalsaphui@gkbrxlens.com |
b9e9272f46c85f1ee025f3b870ae8ea0907eaeb0 | 70b9761fdcda427ea7a31c5ab60be202037936b7 | /correction/correction_model.py | ba695183cc0cbdbc318e4740f8cf4d08ac72b73f | [
"MIT"
] | permissive | CharlesRenyh/Erroneous-Old-German-Text-Correction | 9e4a82ed3daf3414b3a50ea8061ed8d3fa139ef5 | a9064a9ffe10a1a932369196df5bf60da3d9eeeb | refs/heads/master | 2020-08-27T12:28:40.310469 | 2020-05-10T15:56:56 | 2020-05-10T15:56:56 | 217,368,215 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,424 | py | import torch.nn as nn
from torch import Tensor
import torch
import torch.nn.functional as F
import torch.optim as optim
import random
class Encoder(nn.Module):
def __init__(self,
input_dim: int,
emb_dim: int,
enc_hid_dim: int,
dec_hid_dim: int,
... | [
"charlesren1996@gmail.com"
] | charlesren1996@gmail.com |
99f018bf90917d21408c07b6e353157c8c6f52a9 | 94aee27fff524c450148dafa2972a727df232498 | /CurrencyAr.py | 08222bc4c977874ed6fd715e92dc932dd3453137 | [] | no_license | aisonet/Solution | 016c69ad130cf1250c788dce6afcd47e4ffd2ae9 | c21bcc9e000ea5520b11494ec50c9b7951737ef6 | refs/heads/master | 2021-01-22T09:48:24.837704 | 2018-02-22T17:15:32 | 2018-02-22T17:15:32 | 81,965,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py |
def arbitrage(quotes):
finaList=[]
for items in quotes:
#print items
primary=100000
for num in items.split(' '):
#print num
primary=primary/float(num)
# finalResult=primary/float(num)
# finalResult/float(num)
#print primary
... | [
"aisonet@yahoo.com"
] | aisonet@yahoo.com |
71270ecbc961e81071f0dae593762e82a27d8428 | 3d77b5892c11c89031d8ef01fb36b0f0a00dfa69 | /src/OpticalElements.py | 1fdb76ece045ecb665dd1ce010f09045ef00b846 | [
"MIT"
] | permissive | sbanik1/sheetTrap | 710748e56b25ef801a70b134012184c777fe760e | 287746bf33b41e7f1066e80ee12bd08f75b155bc | refs/heads/main | 2023-04-25T19:35:40.713942 | 2021-06-09T23:11:18 | 2021-06-09T23:11:18 | 323,198,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,408 | py | # -*- coding: utf-8 -*-
"""
This module contains all functions for response of optical elements.
Created on Wed May 22 12:15:23 2019
@author: Swarnav Banik
sbanik1@umd.edu
"""
import numpy as np
import numpy.fft as fourier
import scipy as scp
from PIL import Image
# %% Common Functions ####################... | [
"sbanik1@umd.edu"
] | sbanik1@umd.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.