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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f00ed6f7a1ecd6d17e60785586ac4cf6bcef125 | d4a86626745280e00985db69c11a5d07f5d648b1 | /amazon2/collect_testing_metadata.py | b9fb7474fbe027a40231e81e3804d76d3eeef8b2 | [] | no_license | galabing/stocks | 48df7692ab3779d558498c9d4d03c301c6759fc9 | 66088e481239c92104221e2c816b5b559d58ebf3 | refs/heads/master | 2021-01-21T02:46:14.109502 | 2013-11-11T22:26:51 | 2013-11-11T22:26:51 | 13,610,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,050 | py | #!/usr/bin/python
""" Collects testing metadata:
Given a cutoff date D, lookahead period L, sampling step S, sampling period
number P, collects the following metadata for training:
- for every S days after cutoff date D, up to period P, calculate
and sort gains for all stocks on that date
- clas... | [
"linyang@linyang-macbookpro.roam.corp.google.com"
] | linyang@linyang-macbookpro.roam.corp.google.com |
6604c81541758aaf235d202548008c6429c2a0ba | f6fd4ca884d9e33aa5afdf17b595a251299c8a6f | /06.03.2019/bagdas.py | d2046e20bac2b6f71cc24c85fd07fdc880abd082 | [] | no_license | unsalfurkanali/pythonCourse | 61c1f85e4bbf1f6543c9c30048287609cb4c8237 | 7e14b8b51e2056c9ce58bfe117b25317066ca3ff | refs/heads/master | 2020-04-25T23:57:34.182331 | 2019-03-07T10:50:31 | 2019-03-07T10:50:31 | 173,162,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | def d(n):
tbt = 0
for i in range(1, n, 1):
if n % i == 0:
tbt = tbt + i
return tbt
sayac = 0
for a in range(1, 1000, 1):
for b in range(1, 1000, 1):
if a != b:
if d(a) == b and d(b) == a:
sayac = sayac + 1
print("{} ve {} bağdaş sa... | [
"unsalfurkanali@users.noreply.github.com"
] | unsalfurkanali@users.noreply.github.com |
42de88eb553c0e4e996822b8763fa6c13507faa7 | e5eeb6d9e7c2d7a53f864f8b9df7ca0cb79932ef | /sa/profiles/Alstec/MSPU/__init__.py | b7d0c1ced7d78897c77243798ea9274c7900e37e | [
"BSD-3-Clause"
] | permissive | 0pt1on/noc | aa583a6684f8299467c665e303f7ffa47ad6b88a | 4eb26dd44002a0a4a562973815567237d979cab5 | refs/heads/master | 2020-06-20T08:51:11.653330 | 2019-07-12T07:13:45 | 2019-07-12T07:13:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Vendor: Alstec
# OS: MSPU
# ---------------------------------------------------------------------
# Copyright (C) 2007-2017 The NOC Project
# See LICENSE for details
# --------------------------------------------------... | [
"dmitryluhtionov@gmail.com"
] | dmitryluhtionov@gmail.com |
7a8b4e9165e31e186c5a6a10fd51e8e11d3c00d2 | bf13619dc6bdb211f224ae8e00b8005244bfe553 | /number8.py | 4cabcce24a4af79301e6c1c6823b94213c5384c6 | [] | no_license | dhSbid/apcsLabs | 749b72680d7013dfcbdf1525e2fc9c20d27b1680 | 46d1f11c33e46226f54fb5b94a35c143a8f13fc4 | refs/heads/main | 2023-02-11T09:35:08.332667 | 2021-01-10T04:42:59 | 2021-01-10T04:42:59 | 321,218,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | def capFirstWord(sentence):
sList = sentence.split(". ")
for i in sList:
sList[i][0] = sList[i][0].toUpper()
newString = sList.join();
return newString
capFirstWord("hello. i am. bye. now for real.")
| [
"dh.sbid@students.srvusd.net"
] | dh.sbid@students.srvusd.net |
51068db68050eb59fde0721edcb025d1ceab1e15 | 66e298540c4c254912b5543baaa5a20830177f06 | /models.py | 0f6ea486d9d8832396df65a3b920808a457acc5c | [] | no_license | emm190/Monthly-Budgeter | a33acfd19b07d24295ea6abdd0ab05861ead4381 | b3db686437bf505e728fe4e139cf3d3dc0e2fd9d | refs/heads/main | 2023-02-03T07:49:12.338849 | 2020-12-20T06:12:16 | 2020-12-20T06:12:16 | 323,005,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | #models
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
db = SQLAlchemy()
from sqlalchemy_serializer import SerializerMixin
#users, categories, purchases
#one user can make many purchases
#one purchase can only be purchased by one user
#let's just focus on user and purchase which is a one ... | [
"noreply@github.com"
] | noreply@github.com |
7d4ad877ef0674f0248f5b402f5ca2ec0fbca0b5 | 83932f1d956a6b7818c6e58a31205e6e26f2fb5c | /0x11-python-network_1/2-post_email.py | ae506265afc23c32cdffd2a0428200f828ddb688 | [] | no_license | Nzparra/holbertonschool-higher_level_programming | a17834b8239e477a7284119acac69da0e7d7261e | 6cf7a44a10db7a10be3c3c02cbacfea9a7b897f2 | refs/heads/master | 2020-09-29T02:45:04.458850 | 2020-05-14T21:12:45 | 2020-05-14T21:12:45 | 226,930,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!/usr/bin/python3
""" sends a POST request to the passed URL with the email as a parameter """
from urllib import request, parse
import sys
if __name__ == "__main__":
req = parse.urlencode({'email': sys.argv[2]})
req = req.encode('ascii')
reqst = request.Request(sys.argv[1], req)
with request.urlopen... | [
"nzparra@gmail.com"
] | nzparra@gmail.com |
99b9f127259fa1b88da83c73c1b13ae51336a33c | 20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7 | /old/s3c/explosion.py | d214948ae8a509ca9fcf7d2f5cbf3d133373c71a | [] | no_license | sarahboufelja54/galatea | f5664f0b3117629b2c5bbe078a1bd52bb5e359e6 | 002a9f2905868be25b71770190fb2d5eda11c861 | refs/heads/master | 2020-12-04T13:45:07.697189 | 2018-12-12T16:27:09 | 2018-12-12T16:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | #attempting to create an excitation-based explosion (I don't think it's possible)
hat_h = [1., 1.]
alpha = [.01 , .01]
W = [ -1., 1. ]
beta = 1
w = [ beta * (weight ** 2) for weight in W ]
init_hat_s = [ 1., 1.5 ]
hat_s = [ val for val in init_hat_s ]
#like mu in our current model, except that it isn't gated by... | [
"goodfellow.ian@gmail.com"
] | goodfellow.ian@gmail.com |
cb7ad2618252a0667c0504b76cec1808499cb7db | f4ad60639b949cfb82d283b5e8900db38ab94dff | /oop/modules/parent.py | 83ab1f67fd032eb4c4ddd21b0cc8dd8988660c68 | [] | no_license | HavrylenkoM/homework | 16818e8e4f96c569976050cc3d507788db6a4855 | a703705634957fc3fa3fb76b5b8380600207e5ec | refs/heads/master | 2020-12-01T08:54:45.631490 | 2020-01-04T00:02:50 | 2020-01-04T00:02:50 | 230,596,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | class Employee:
def __init__(self, name, mail, phone, zp, time):
self.name = name
self.mail = mail
self.phone = phone
self.salary = zp
self.time = time
#def checksalary(self, days):
# if days == None:
# return self.salary * day_count
# return self... | [
"mikegavrylenko@gmail.com"
] | mikegavrylenko@gmail.com |
e92404791804816246e695a517050fec3eab7da0 | 2c4cb21f9e9c7d885ed6e90c66b58e94420fc909 | /Programas em Phyton/Conversor de Temperatura.py | 6dc9d22e3e4f9b31614efd01d2bc4dd52a51d57c | [] | no_license | Thiago2123/Facul | 8cba318a3256f159c3d29ae7f8005431d481444b | 0987cd9d8f7d3dbe27da89c61a603d4a8310f97b | refs/heads/master | 2020-05-26T13:43:19.729026 | 2019-06-01T15:35:26 | 2019-06-01T15:35:26 | 188,251,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py |
temperaturaF = input("Digite uma temp em Fahrennheit ")
temperaturaC = ( float (temperaturaF)-32) * 5/9
print ("A temperatura em Celcius é", temperaturaC)
| [
"noreply@github.com"
] | noreply@github.com |
84ca08030eb010731c4720ff1fa52102c910d07d | 81b50896e6b47a508f070f57c535eb3c9deb2259 | /main.py | 36897e1d350f872c3696df55e39f3f1e7e509983 | [] | no_license | BrandtDavis/alberta_covid_data_pipeline | c1aff90b478906794eaf84b3a213d08a0b002550 | c7c1909a52b8aeba96de107fb440d1add7951d58 | refs/heads/main | 2023-08-25T10:53:57.177290 | 2021-10-10T18:49:09 | 2021-10-10T18:49:09 | 408,219,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | # Author: Brandt Davis
# This file controls the program flow and functionality
from log_writer import Log_writer
import extract_data
import transform_data
import load_data
import log_writer
import visualize_data
def main():
# INITIALIZE OBJECTS
extract = extract_data.Extract_data()
transform = transfor... | [
"brandtd77@gmail.com"
] | brandtd77@gmail.com |
0bc0c6205078a53032cd587a1593d86b5eefc5bb | 570337818eaafd71370368dc28b5244784e9879d | /Assignment 3/ass3-8.py | 3b2d69ebd547cf36ae0f92a4df69968e9084fa88 | [] | no_license | rajatgarg2/rajatcode | be89f3ae4d74adebb45caf538594539b97553249 | e3c8077fc9e7da18f4fb9d7428a7c9ca72aca6ee | refs/heads/master | 2023-01-03T14:17:50.627678 | 2020-10-25T13:48:14 | 2020-10-25T13:48:14 | 284,300,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | def spy_gamer(l):
c=0
len=l.__len__()
for i in range(len):
if l[i]==0:
c=1
break
if c==1:
for j in range(i+1,len):
if l[j]==0:
c=2
break
if c==2:
for k in range(j+1,len):
... | [
"noreply@github.com"
] | noreply@github.com |
93b54ee7f652750ce07be3a5f26230012a9084b7 | 9f8c7677200974dd1456e62e855c438d2004f68d | /server/utils/exceptions.py | a44df0f5ae59c79af52ef1f8a8969e683bdb9c8e | [] | no_license | silentinfotech/LittleSense | 5f126ba92d6812b0ddce56073322b6dc8ea19b13 | 0f85bb629272cea09c04a3faef532ecb7f87a96e | refs/heads/master | 2020-07-22T18:50:59.662832 | 2019-05-03T10:44:19 | 2019-05-03T10:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py |
class UnknownDevice(KeyError):
"""Raised when an unknown device id is used"""
class IllformedField(SyntaxError):
"""Thrown when a field is not correctly formed"""
class UnknownFieldName(LookupError):
"""Thrown when a field name is not know to be assosiated with a device"""
class InvalidFieldDataType... | [
"jacob@kittley.com"
] | jacob@kittley.com |
328266f06449ae540af5cc69bd820c5638df5007 | ab5b7c9b223860a5de21be7f50b38e328b8a4d1a | /Bookstore/migrations/0008_comment_date.py | 9b896966308f15124113cd8d028f85b734e1d964 | [
"Apache-2.0"
] | permissive | nuaaflash/NuaaOldBookStore | 9ebd9bc61324aa9fb82485671640a72603c1158c | 259f551a5fa97f2862745cb239c50d8ef87efe49 | refs/heads/master | 2020-04-07T10:55:46.334464 | 2018-11-21T00:23:07 | 2018-11-21T00:23:07 | 158,305,801 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('Bookstore', '0007_auto_20150108_1426'),
]
operations = [
migrations.Ad... | [
"xh.yes@qq.com"
] | xh.yes@qq.com |
11e83bb3e66cac2f49bcbdc9f7ea9d2f86ba5af2 | def0712cb377ceee6f5fecf872846745130f3b61 | /main/migrations/0002_storagelogtype_name.py | 956fed1331f100166f7908a1e09aecf8f5115805 | [] | no_license | thewebcat/crm | 04fbd18083f41782552dea7836b8af395f8a4750 | f7424a266eabaa29a2c1ea25a5d24f13e4dfd44c | refs/heads/master | 2020-06-25T19:22:05.910165 | 2017-07-18T06:45:39 | 2017-07-18T06:45:39 | 96,983,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-12-26 15:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
mode... | [
"admin@web-server.fxbox.org"
] | admin@web-server.fxbox.org |
a8fa9c19001403543360c111212013e80ce6d390 | 45799ccc3a16c785ab3c65f3296d66f8463590dc | /docs/_downloads/7dfb273e58ce9eea02e428696e9a9672/q108.py | de3417bd434085db9999cb7596c5a4dfcfe82b2f | [
"MIT"
] | permissive | odys-z/hello | 9d29b7af68ea8c490b43994cf16d75c0e8ace08e | fedd0aec7273f3170aa77316d0d5f317cc18a979 | refs/heads/master | 2023-08-19T03:25:58.684050 | 2023-08-18T08:07:27 | 2023-08-18T08:07:27 | 154,006,292 | 0 | 0 | MIT | 2023-04-18T22:50:56 | 2018-10-21T12:34:12 | C++ | UTF-8 | Python | false | false | 1,496 | py | '''
108. Convert Sorted Array to Binary Search Tree
https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/
Given an integer array nums where the elements are sorted in ascending
order, convert it to a height-balanced binary search tree.
A height-balanced binary tree is a binary tree in which the de... | [
"odysseusj@163.com"
] | odysseusj@163.com |
72228121b096510616532a4edb9408df229e04ab | 5b9485c4ad9db15ff3e535085092fb45057f7364 | /src/nuxeo/javascript/cpsskins/tests/functional/treeview/browser.py | 6162bef9cd7e0d77dbb40da6b1080e30ac097356 | [
"ZPL-2.1"
] | permissive | nuxeo-cps/zope3--nuxeo.javascript | 06109541949c1e612b232efeddec3aa04ecb7d84 | 3ac03c8c46daf75ae7b3ff2fba308cba8caff245 | refs/heads/main | 2023-01-24T06:54:13.659442 | 2009-12-22T09:24:26 | 2009-12-22T09:24:26 | 317,995,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py |
from urllib import unquote
from zope.app.publisher.browser import BrowserView
from cpsskins import minjson as json
tree_data = {
'items': [
{'id': '1', 'title': 'item 1', 'depth': 1, 'type': 'inner'},
{'id': '2', 'title': 'item 2', 'depth': 2, 'type': 'inner',
'empty': True},
{'... | [
"devnull@localhost"
] | devnull@localhost |
82e13c05761482ab49cd9c49c629ff150fe4a498 | b5025befdf74fff3071252abaa4db09479f2d763 | /Shanu_Abraham/10_aug_assignment_12/greater_no.py | 63f96575f11fe41f86239e36c7219bdfebe035b2 | [] | no_license | sidv/Assignments | d2fcc643a2963627afd748ff4d690907f01f71d8 | d50d668264e2a31581ce3c0544f9b13de18da2b3 | refs/heads/main | 2023-07-30T02:17:19.392164 | 2021-09-23T04:47:56 | 2021-09-23T04:47:56 | 392,696,356 | 1 | 20 | null | 2021-09-23T08:14:11 | 2021-08-04T13:20:43 | Python | UTF-8 | Python | false | false | 489 | py | # Program to find greatest no out of four nos
num1 = int(input("enter the 1st no"))
num2 = int(input("enter the 2nd no"))
num3 = int(input("enter the 3rd no"))
num4 = int(input("enter the 4th no"))
if ((num1>num2) and (num1>num3) and (num1>num4)):
print("The greater no is",num1)
elif((num2>num1) and (num2>num3) and (... | [
"shanususan@gmail.com"
] | shanususan@gmail.com |
5360f0f0d9b911bb3033292064920cc4edcb718e | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Flask/Book_evaluator/venv/Lib/site-packages/urllib3/util/__init__.py | 130a48f4f4e13e706d68fa3f49aa7081eb6997c7 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e916a7e28015232e340aefe810f5a7355f5bc05e6b5f1e86d43519ee87a18cf6
size 1044
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
bc9f78070db898ead3722ca20a6f26dedfe71f55 | 2c12dbd152d3483f54bf8cb619d9dfc070c90612 | /nets/ssd_training.py | 380e5b09989b43ecc318fa58cf1757cbbad02624 | [] | no_license | simon108018/MobileNetV2-SSD | 3647ad0dba236e8f08aac3adbdc974959647f240 | 5d1ceec17db92647de771439c0deed3d88f36aef | refs/heads/main | 2023-02-01T03:24:25.897596 | 2020-12-18T07:44:55 | 2020-12-18T07:44:55 | 322,504,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,311 | py | import tensorflow as tf
from random import shuffle
import numpy as np
import cv2
from PIL import Image
from tensorflow.keras.applications.imagenet_utils import preprocess_input
from tensorflow.keras import backend as K
from matplotlib.colors import rgb_to_hsv, hsv_to_rgb
class MultiboxLoss(object):
def __init__(s... | [
"noreply@github.com"
] | noreply@github.com |
13a4e0a500494230f0b097836ef8e1748b2c0f01 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /tools/grit/grit/format/resource_map_unittest.py | ecc997a180675ab38dc887c768b9bb3b395cddb7 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"MIT"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 12,456 | py | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Unit tests for grit.format.resource_map'''
import os
import sys
if __name__ == '__main__':
sys.path.append(os.path.join(os.pa... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
a3a1325e2e8ccff98c1e3529142fb6286b980da2 | 575d590bf6a401f36f4bf7c48fa3710486082794 | /options/base_options.py | f5b36f86a575a71b5fc8a679c5f2c959126e999d | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | hanyeliu/DeepSegmentor | cb16ed50d8a6161ec2eefde3cf243dabf86349c4 | 422141001d554029853d3d5ca3a772eb459bf0ca | refs/heads/master | 2022-01-22T16:55:10.595828 | 2019-07-21T02:05:05 | 2019-07-21T02:05:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,752 | py | import argparse
import os
from util import util
import torch
import models
import data
class BaseOptions():
"""This class defines options used during both training and test time.
It also implements several helper functions such as parsing, printing, and saving the options.
It also gathers additional opti... | [
"yahui.cvrs@gmail.com"
] | yahui.cvrs@gmail.com |
8e3a3245eb53935b2ac1edf402a6fd0c933c6cf8 | 34489df05574af972e7e385ecb5b7b39f071f8dd | /main.py | 149c0605279f681074992309dae11cf90ad86be2 | [] | no_license | makc2099/Comp.methods4 | f4f39d1bc4571ebb5e0c14c3bd6fb04598fd2a67 | 9ffcfc34564b627168915d710958f823ab82c2aa | refs/heads/master | 2023-08-16T13:41:31.059500 | 2021-10-18T15:38:58 | 2021-10-18T15:38:58 | 417,944,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,092 | py | import numpy as np
from tabulate import tabulate
def iteration(alpha, beta, x, eps):
k=1
err = eps + 1
while err > eps and k < 500:
err = np.linalg.norm(np.dot(alpha, x) + beta - x)
x = np.dot(alpha, x) + beta
k += 1
x = np.dot(alpha, x) + beta
return x, k
def zeidel(A,... | [
"makc2099@yandex.ru"
] | makc2099@yandex.ru |
9b80d82c0f685c41a834444780cd8207ebb71348 | 9f9b19a26ed931207878364d395e47a3d986751b | /dmam/migrations/0006_auto_20181022_2230.py | 6b6b882350caefc90a3b9690311255482d54076e | [] | no_license | lishulincug/waterwork | 6697f5264dc880a92d9b91e91b703eda3818d7a3 | 690fb344e7f271a3ded66f0cdf4c9161811ed1f4 | refs/heads/master | 2020-09-09T13:19:21.301200 | 2019-07-25T09:37:04 | 2019-07-25T09:37:04 | 221,456,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.0 on 2018-10-22 22:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dmam', '0005_auto_20181022_1555'),
]
operations = [
migrations.AlterField(
model_name='station',
name='dmaid',
... | [
"apengok@163.com"
] | apengok@163.com |
a2186908aa7b8027e46fe08ced94527e26625466 | 2a66595b5067619cf79e4e70bd47662ad01346ea | /bin/duo_client/rest.py | 6dfb577034220f5fc6f46d67fbd849ddbced6240 | [
"Apache-2.0"
] | permissive | f8al/TA_DuoSecurity | 42205ed10eecaa2b20db85d6febc508e9b21b3ba | 80de59a0f72876a06d41499a9235c6caf4cd9ea0 | refs/heads/master | 2021-01-02T09:44:01.903364 | 2015-04-28T19:53:07 | 2015-04-28T19:53:07 | 34,752,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | """
Duo Security REST API reference client implementation.
<http://www.duosecurity.com/docs/duorest>
"""
import client
SIG_VERSION = 1
FACTOR_AUTO = "auto"
FACTOR_PASSCODE = "passcode"
FACTOR_PHONE = "phone"
FACTOR_SMS = "sms"
FACTOR_PUSH = "push"
PHONE1 = "phone1"
PHONE2 = "phone2"
PHONE3 = "phone3"
PHONE4 = "ph... | [
"f8al.err0r@gmail.com"
] | f8al.err0r@gmail.com |
5c5465c253daa04586e6d3556f0b179cf0fb2129 | afb227fea096c4a904b0da4d013c66245cf78030 | /brutessh.py | 4616cd6054609b851b1cf389c95cbadcacdfd8c6 | [] | no_license | mmssr/brutessh_py | 691ce658ca79b6c22b0c69af8b62311fc9c5e5ad | d513a4b34fa4056bae586ddaffb23fdbf94d8a3b | refs/heads/master | 2020-06-21T14:42:47.922657 | 2019-09-12T14:34:54 | 2019-09-12T14:34:54 | 197,483,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,956 | py | #!/usr/bin/python
import pxssh
import optparse
import time
from threading import *
maxConnections = 5
connection_lock = BoundedSemaphore(value=maxConnections)
Found = False
Fails = 0
def connect(host, user, password, release):
global Found
global Fails
try:
s = pxssh.pxssh()... | [
"noreply@github.com"
] | noreply@github.com |
dac766b0f1ec3ef07bb46db14747a4554d28c271 | 1410b5c2a1d549115b16af0e8ef1efac557eaa3f | /实验二/实验代码与数据/exp2.py | 61ca5fc7c6f6c140d6866185a14666d3c30b073e | [] | no_license | NGUYEN-EDawn/Machine_Learning--experiment | cf8402014119267c9fe96164df0eb996a1092763 | 3d0e0e0f437e1f99d0b77195e9303e91d78f27cb | refs/heads/main | 2023-02-14T02:21:20.885630 | 2021-01-06T12:38:21 | 2021-01-06T12:38:21 | 327,285,634 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,087 | py | import pandas
import numpy
import matplotlib.pyplot
import seaborn
import copy
import exp1 #导入实验一的模块,方便后续读取
'''设置value的现实长度,并显示所有行和列'''
def show_value():
pandas.set_option('display.max_columns', None)
pandas.set_option('display.max_rows', None)
pandas.set_option('display.max_columns', 1... | [
"noreply@github.com"
] | noreply@github.com |
07669c7e29c84fc8f5e8d47d25b8e77dceeea761 | 0a17d91a08eeb32be713271a6d954bd24dc3d70d | /local_monitor/check_pgsql.py | f9589ffac1591e6cb4517ffac7eb68b3b8aa608c | [] | no_license | Som-Energia/somenergia-systemmonitor | 2edcea3524c5379c5cc5a9fcf2ac2e804f01f94c | 51ab7c54a8a7906d42b6a343754fadf43ecda579 | refs/heads/master | 2021-01-22T03:04:59.600542 | 2015-09-18T14:03:00 | 2015-09-18T14:03:00 | 39,762,000 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | from pgactivity.Data import Data
import sys, re
import getopt
config = {
'host': '',
'database': '',
'logdb': '',
'logfile': '',
'mem_percent_max': 5,
'cpu_percent_max': 1
}
def dump(proc_id, cpu_percent, mem_percent, query_start, query, prev_queries):
print '################## PostgreS... | [
"aleix.badia@somenergia.coop"
] | aleix.badia@somenergia.coop |
5ad8dd35cbbf54dd08cb65dc8a9795f629ba0491 | 077bc78b9daa8451537eb4af7288ec3536cf36d3 | /api/api/settings.py | 8bd9f8f730b7f41a3b3d1441afa57c62d5d71b6b | [] | no_license | prnvshrn/PythonPractice | fb0e8ec8034d4809682516a54ddc275b91f10b4f | 5ad7d4d97d0bb9ae559d3d86ae3271bf87b9314b | refs/heads/master | 2020-04-17T05:47:15.701006 | 2019-02-24T08:03:09 | 2019-02-24T08:03:09 | 166,296,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | """
Django settings for api project.
Generated by 'django-admin startproject' using Django 2.0.
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 os
# Build... | [
"prnvshrn@gmail.com"
] | prnvshrn@gmail.com |
4b0005ae4464e908e24fe17be4603c3c86f323c1 | 8624423690e559285714fb3de0ca0c7a3dc61644 | /wis_aggregate.py | 5e5729796e44cce97e7619266deac4261122db0e | [] | no_license | randobucci/wis-cdip-compare | d460e3e1d94bba5b39136a0ed92f55c96a73ba00 | 734e82ec5b468e5f09ea9b3df4045bfa5d5d8bd5 | refs/heads/master | 2020-05-30T05:14:22.418181 | 2019-05-31T08:25:36 | 2019-05-31T08:28:29 | 189,555,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,011 | py | '''
* wis_aggregate.py
* WIS data are organized by month, this code will aggregate
* Aggregate individual WIS netcdf files for entire year and plot
* https://chlthredds.erdc.dren.mil/thredds/catalog/wis/Atlantic/ST44098/2008/catalog.html
exec(open("wis_aggregate.py").read())
'''
#- Import libraries
import netCDF4
imp... | [
"randy@cdip.ucsd.edu"
] | randy@cdip.ucsd.edu |
ccf80a462e22e35169a4f53dd0765364f0bf06a1 | 2313b8b300e9b4d93c389b99a88ddde62777cbec | /manage.py | 075a44e92a62accef1629bc40ba5b8236461719e | [] | no_license | sandeep9889/Ecom-website-my-dark_cart- | dabe0fa755987325ab022e8260ed9466486715cb | 77ac1f9c0df2df3a8176d28aaeb7e7cc865166ef | refs/heads/main | 2023-08-15T00:14:54.365697 | 2021-09-26T06:58:32 | 2021-09-26T06:58:32 | 407,761,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mdc.settings')
try:
from django.core.management import execute_from_command_line
except ImportEr... | [
"sandeepchauhan9630228313@gmail.com"
] | sandeepchauhan9630228313@gmail.com |
44c0c2a25289a830352fffb362482c33d19f8786 | 9eb2f8869841ac3cead8a2d078251acaf60e63f5 | /gym-sampler/gym_sampler/__init__.py | d824f26e2d0a4221989134dfe5234164bd727f0c | [] | no_license | sugadev/CS744-Approximate-Graph-Analytics | 70ef928f7d46f1c60dfb5119d0e4582b0eeec7b8 | 5546459b2025e78981352c065955efc73e2fa5fd | refs/heads/master | 2020-05-05T09:43:32.619115 | 2019-05-11T06:34:16 | 2019-05-11T06:34:16 | 179,914,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from gym.envs.registration import register
register(
id='sampler-v0',
entry_point='gym_sampler.envs:SamplerEnv',
)
| [
"daravinds@gmail.com"
] | daravinds@gmail.com |
48340745ab9a0236bbd3bac3aaebc3bdea5cf6b8 | 7dad7678182d8d7c6ae154b5a1fb9acf9591569f | /params.py | bc52be08af46fbcecbde5422a078f15eed545394 | [] | no_license | aalbahem/CQA_Diversification | e9496885438aac489feb39d49a1f82a43358dbad | 979837799850c53e392e3f2a08df7f06d9174009 | refs/heads/master | 2021-10-11T07:43:46.849876 | 2019-01-23T10:38:27 | 2019-01-23T10:38:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | num_iters = 1501
batch_size = 5 #10000
corrupt_size = 3
slice_size = 5
wv_size = 100
regularization = 0.0001
save_per_iter = 50
learning_rate = 0.001
max_sentence_length = 100
lstm_size = 50
output_path = 'output/'
| [
"shahar76@gmail.com"
] | shahar76@gmail.com |
0949b4ee43b9c08b0b51e8c536a1100b9876b8d6 | 3b21c2a5422dc2b900f65894849e7e2e765fc7cc | /Kernel.py | 826a4f1526122ef14a5e4576a9be89b475d4390a | [] | no_license | mrbhjv/dft_python | 2c519dcdb5100511376c35db63c0248628fb9b3e | 480fffd81374f37f6a62c362fb551b2021772429 | refs/heads/master | 2020-04-24T09:04:28.412581 | 2011-07-21T12:23:47 | 2011-07-21T12:23:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,527 | py | import math
import random
from scipy import ndimage
import numpy
import copy
def convolve(input, kernel):
convolution_result = copy.copy(input)
for dimension_index in range(kernel.get_dimensionality()):
ndimage.convolve1d(convolution_result, \
kernel.get_separated_kernel_part... | [
"mathis.richter@ini.rub.de"
] | mathis.richter@ini.rub.de |
4b8c608768319214ed0575a4a3b2502fe5abc8f8 | b5b7607ed739d76064409363a6e7a7fcec7243d6 | /vms/migrations/0002_remove_customer_last_error_time.py | db2a4217b161094915f90d3a42fbefd54cc6329b | [] | no_license | mrleerkotte/vm2ssp-django | d7d07a05ab322b55129803174815bb1522261412 | 0534cc56a76da41ef40d8efc25ffcde83354c3d0 | refs/heads/master | 2020-03-18T23:52:04.333841 | 2018-05-30T11:47:02 | 2018-05-30T11:47:02 | 135,434,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # Generated by Django 2.0.2 on 2018-05-10 14:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vms', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='customer',
name='last_error_time',
),
... | [
"marlon@leerkotte.net"
] | marlon@leerkotte.net |
69c2a77c69b7711113375217f5e65e281a3b23d8 | baae26fa241488e1461083edb4f1576ad4a58dfc | /attention_module.py | 36e9022a542f68158cd2bc71980147e3b46f5cf2 | [] | no_license | 2020-WORKSPACE/DataScience | 4a8d8674d9749522c973c2316020aecc558d200b | 93c73fed1eaed581fd9fed43de8650bc77971983 | refs/heads/master | 2022-11-15T15:51:54.777649 | 2020-06-28T11:24:26 | 2020-06-28T11:24:26 | 271,176,780 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,956 | py | #####################################################
# Bong Won Jang's Code
# - 2020 06 15 22:28 ☑️
#####################################################
import torch
import torch.nn as nn
import torch.nn.functional as F
############################################
# Encoder
#
# Encoder for seq2seq m... | [
"noreply@github.com"
] | noreply@github.com |
e8d813ee2bbd08042d7a9a7b775b27efe30c22f9 | 45dec2872306279bda5c060181952657e87c941a | /src/testing/scripts/host_info.py | 37fa54b4ebdd5f9beb1689a2a9356742c328d3a4 | [
"BSD-3-Clause"
] | permissive | mbbill/Chromium_Base | 717266ab816f65125ddffd2f22ea3b562c9bf0c9 | 12d8ff888632345762e13c997fa78a7992881cc8 | refs/heads/master | 2020-04-16T01:53:00.094385 | 2017-02-14T02:44:23 | 2017-02-14T02:44:23 | 62,381,185 | 17 | 14 | null | null | null | null | UTF-8 | Python | false | false | 3,754 | py | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import multiprocessing
import os
import platform
import subprocess
import sys
import common
def is_linux():
return sys... | [
"mbbill@gmail.com"
] | mbbill@gmail.com |
63d35cddd89c965242e94321cf091a8e71be87ec | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_swivels.py | ee26ae2f31371bd1bbcf01ad3ec765b20b2961cb | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from xai.brain.wordbase.verbs._swivel import _SWIVEL
#calss header
class _SWIVELS(_SWIVEL, ):
def __init__(self,):
_SWIVEL.__init__(self)
self.name = "SWIVELS"
self.specie = 'verbs'
self.basic = "swivel"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d5fc867cf915437ad5f65f07e94dd1e3c0cf089d | 101ffbee515a5b8f23d77361558dea1e42794dbd | /pip_save/toml/tests/test_writer/test_statement_nodes.py | 87c6eb7bd5d88df7645289d2751f38fa6795af0e | [] | no_license | mkurnikov/pip-save | 0a841710c28983c1c769d87e18f2e584a554e1a1 | e1e2fb9b0404a25790edcb5fd134267b92675470 | refs/heads/master | 2021-01-12T16:49:50.163661 | 2016-10-21T11:13:37 | 2016-10-21T11:13:37 | 71,442,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | from collections import OrderedDict
from unittest import TestCase
from pip_save.toml.model import TomlStatementNodes, Table
class TestStatementNodes(TestCase):
def test_append(self):
toml_nodes = TomlStatementNodes()
toml_nodes[('keyword',)] = '1'
self.assertEqual(len(toml_nodes), 1)
... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
a9dbd0cdcd940053789e278ea1754c00d7bcc81d | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/plugin/core/diff/DiffProgramManager.pyi | a0a10fe1025a5187fd858ff298fe56649ee228e8 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | pyi | from typing import List
import ghidra.app.services
import ghidra.framework.model
import ghidra.program.model.address
import ghidra.program.model.listing
import java.awt
import java.lang
import java.net
class DiffProgramManager(object, ghidra.app.services.ProgramManager):
OPEN_CURRENT: int = 1
OPEN_HIDDEN: int... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
f2f3266efd903079ca767cb4f1fa1d9cf64c745e | b370b955afa231e7f6c79fe4c95af687661ebc24 | /.venv/lib/python3.9/site-packages/scrapli_netconf/driver/base_driver.py | a94d437f3d15e2fa0b9379a21f15a2dad07f05e5 | [] | no_license | HWNET12/Nornir | e9e152cc2d477feb38a99afce08b8c36b3f4b1b6 | 26ca756664c209b9205816c35bddf2216a0182e0 | refs/heads/main | 2023-08-13T15:10:28.496854 | 2021-10-06T16:26:43 | 2021-10-06T16:26:43 | 414,286,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,432 | py | # pylint: disable=C0302
"""scrapli_netconf.driver.base_driver"""
import importlib
from dataclasses import fields
from enum import Enum
from typing import Any, Callable, List, Optional, Tuple, Union
from lxml import etree
from lxml.etree import _Element
from scrapli.driver.base.base_driver import BaseDriver
from scrap... | [
"hwane123@gmail.com"
] | hwane123@gmail.com |
c789bf1ce56799741bfb4bc22258282120e24113 | 0b5fa83ec76ec18ac72bcb38b2e62750db694a8c | /setup.py | 6606088b1e9ec27615b186152a47f116b5535497 | [
"MIT"
] | permissive | j1o1h1n/materialize-tornado-quickstart | e19834178e60bce07c6eca1467ceb4c347eacb55 | 43a62b86562094f8a8e0ce2e728f4fde1ac3ce69 | refs/heads/master | 2021-06-16T06:36:28.538772 | 2019-06-30T06:19:23 | 2019-06-30T06:19:23 | 193,901,472 | 0 | 0 | MIT | 2021-04-20T18:13:08 | 2019-06-26T12:37:24 | HTML | UTF-8 | Python | false | false | 1,780 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
PYPI_RST_FILTERS = (
# Replace code-blocks
(r'\.\.\s? code-block::\s*(\... | [
"j1o1h1n@gmail.com"
] | j1o1h1n@gmail.com |
b65e4101ce92995b1f2f4408b8c0ceed88f6c64e | 8675263285c0d246169aebe831ce461e6d94dec3 | /Qgen/timeShiftModel.py | 97c5531f624401de96074f9a39b0781ab2427ed2 | [] | no_license | ananya-g9/UCRB_analysis | 61ad7d8e7a34a7605a5c31088a09c02344a0e5d3 | fa6d74df139df419b57e8f6d288bbdcd4c5bbee4 | refs/heads/master | 2022-09-11T07:24:41.882730 | 2020-06-04T13:46:26 | 2020-06-04T13:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,910 | py | import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
import matplotlib
def readFiles(filename, firstLine, numSites):
# read in all monthly flows and re-organize into nyears x 12 x nsites matrix
with open(filename,'r') as f:
all_split_data = [x.split('.') for x in f.readlines()]
... | [
"jquinn@DESKTOP-Q2B5352.localdomain"
] | jquinn@DESKTOP-Q2B5352.localdomain |
81c5cd967cb9946b4d31ca4175e77772cb7a9538 | 7b62bc3cdb002d193c70b48dfe3decfe347aa551 | /04_example/01_face_detection/src/rcnn/cython/setup.py | 455368769bf9563c9ce72dd4e0d3be90e62c3606 | [] | no_license | gaohank/python-coding-proj | 09961f334340c82c953b0d04a124e7d6c45a9086 | 0cf0aaae24c80326c0c09a3aa9dd2251f9928b61 | refs/heads/master | 2021-01-14T06:08:23.686766 | 2020-06-29T00:41:53 | 2020-06-29T00:41:53 | 242,491,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,056 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
import os
from os.path import join as pjoin
from setuptools import setu... | [
"songling.gao@ikang.com"
] | songling.gao@ikang.com |
5abea72a01aa40f4004899a546be474be23f30d4 | 8f263874dc2d5c15c79417301f8dd21176129f86 | /python_tips/Perceptron.py | 5a7da05f0ed44c12e52a3529be2322135c722146 | [
"BSD-3-Clause"
] | permissive | LucasDatilioCarderelli/examples | 8768bbd303f6216ce08e0c95f6efbeabf4a003e7 | d1847272384723d7f4bb233e5947ff1f1ddfe781 | refs/heads/master | 2022-11-11T16:55:41.293787 | 2020-06-22T03:12:35 | 2020-06-22T03:12:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,566 | py | '''
Este projeto esta disponivel no GiHub de Marcos castro de Sousa
Implementação da rede neural Perceptron
w = w + N * (d(k) - y) * x(k)
'''
import random, copy
class Perceptron:
def __init__(self, amostras, saidas, taxa_aprendizado=0.1, epocas=1000, limiar=-1):
self.amostras = amostras # todas as amostras
... | [
"prof.israel@gmail.com"
] | prof.israel@gmail.com |
d2ae07fd11fe4e1e7d1743d988d4927f80c9e409 | d4b49195beba64afee0b6bbffdca304a9bd7e25e | /3_Deep_Learning_Registration/requirements.py | aa64d23d01901c1a8786ce443cfafbf5b821653f | [] | no_license | xiaolifeimianbao/Tutorial-Medical-Image-Registration | 6921256a25f3a8f9595acc03a06237d80efce2cc | 7ea9803e0a2457416f613d94640155dfc88e410a | refs/heads/master | 2022-04-05T07:41:00.966706 | 2019-12-28T23:39:02 | 2019-12-28T23:39:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # VERSION 0.0.0
# ------ AUTHOR: NaTaN ANDRADE ------
# Universidade Federal de São Paulo (UNIFESP)
# Instituto de Ciência e Tecnologia (ICT)
# São José dos Campos (SJC)
# Estado de São Paulo (SP)
# BRASIL
#For install virtualenv: pip install -r requirements.txt
pip install tensorflow
pip install tensorflow-gpu
pip... | [
"noreply@github.com"
] | noreply@github.com |
52875bb3e78a1bda06ee3642b5d4c9156ba64ac9 | 55b57d64ec547869835334318f3059fbb507558c | /Fred2/Data/pssms/tepitopepan/mat/DRB1_0480_9.py | f6f1ff603742b33032918eb4444a0a117596dd3a | [
"BSD-3-Clause"
] | permissive | FRED-2/Fred2 | 9845f6678d4011cb746c7a5a6f283eea68077a02 | b3e54c8c4ed12b780b61f74672e9667245a7bb78 | refs/heads/master | 2021-07-12T05:05:54.515427 | 2020-05-25T06:56:25 | 2020-05-25T06:56:25 | 16,275,425 | 42 | 35 | null | 2021-07-07T12:05:11 | 2014-01-27T10:08:11 | Python | UTF-8 | Python | false | false | 2,169 | py | DRB1_0480_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.004754, 'I': -0.99525, 'H': -999.0, 'K': -999.0, 'M': -0.99525, 'L': -0.99525, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.004754, 'V': -0.99525, 'Y': -0.004754}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, '... | [
"schubert@informatik.uni-tuebingen.de"
] | schubert@informatik.uni-tuebingen.de |
c3a8be6b31ad7be0593c0e31bb22f7c2ab3432ad | a9f3b1cbf04b78a79d66a7ab713e497262d4ca11 | /ex1.py | ed18fb454da2b1adf56958f417b944e700a7eb4a | [] | no_license | nehptune/LPTHW | 18aea7c24ee95758286d5eec6c612c194bd00e35 | 0c21992e783b920539f68277da3392de61d949bd | refs/heads/master | 2021-01-22T23:53:47.324593 | 2013-07-04T21:42:57 | 2013-07-04T21:42:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | print "Hello World!"
#print "Hello Again"
#print "I like typing this."
#print "This is fun."
#print "Yay! Printing."
#print "I'd much rather you 'not'."
#print 'I "said" do not touch this.'
#print "here goes another line..."
| [
"sophie.clayton@gmail.com"
] | sophie.clayton@gmail.com |
03141166a5bda5723952bf49f8c51c0d52f15fc7 | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /test/tests/assign_empty_list.py | a0b6e7f7ede213462c6b0daa209159a69c6f24cb | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 8 | py | [] = []
| [
"daekharel@gmail.com"
] | daekharel@gmail.com |
0be6318f0912ecd7eb2f410d4e3b25c8748e7aee | 702feb18a94847b2bcb2ee0e145735ac997bcb96 | /scripts/RQ1.4/script_eval_nb_valid_attack_nonacc.py | e8765a061cd9c3b9ea495f3c35dd3a55a95bd763 | [] | no_license | templep/SPLC_2019 | daa7f8c4b1f4bb0a2bb00ee2cfd329cbdbdc45d0 | a74029072f213853f8c866613208e3de8fd94e91 | refs/heads/master | 2020-05-04T07:01:00.040275 | 2019-06-25T08:11:22 | 2019-06-25T08:11:22 | 179,019,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | import numpy as np
from os import path
import glob
import sys
##adv attack
#filenames=glob.glob("../../results/config_pt/adv_attack_norm/non_acc/*_20_label_nonacc.csv")
#filenames=glob.glob("../../results/config_pt/adv_attack_norm/non_acc/*50_label_nonacc.csv")
#filenames=glob.glob("../../results/config_pt/adv_attac... | [
"ptemple@pctemple.irisa.fr"
] | ptemple@pctemple.irisa.fr |
3d57065134a29be5a98705c8f7af7bd511c0c906 | 2d2b86d57ed11c375a98754556968571f37342cc | /src/tf_idf/get_tf_idf_doc.py | 9e5799f0f2bd990d4d7227cc17e131d3ad4f08d3 | [] | no_license | FeixLiu/506_2020_midterm | 7341134db3fc563306ce207512623518a7b978ff | d88e98635197ae8f16c6869b80b39c85e546a48b | refs/heads/master | 2022-04-19T07:40:43.086193 | 2020-03-21T17:59:43 | 2020-03-21T19:17:23 | 249,031,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | import csv
import re
import math
from sklearn.feature_extraction.text import CountVectorizer
path = '../data/train.csv'
stop_words = set({}.fromkeys([line.strip() for line in open('../data/stopword.txt')]))
data = {}
all_file = []
with open(path) as file:
all_data = csv.reader(file)
count = 0
for i in all... | [
"yuangliu@YuangLiudeMacBook-Pro.local"
] | yuangliu@YuangLiudeMacBook-Pro.local |
b1b5d4c9662f948f6cb0351194e8af4c4eab7524 | acc9d729e0182b17023e9660457eed0e19f4f828 | /test/test_exception_scope.py | 22945ab9e2fae2a05406475b22a8ad88e8dbef90 | [] | no_license | secuwave/nexpose_client | 2f00907ef3ffea33c8e9f5cc2543e708f349de6c | 5ceff219ae03cadb5407dc48d8858ffa56bb3463 | refs/heads/master | 2020-05-22T13:54:22.675479 | 2019-05-13T09:12:09 | 2019-05-13T09:12:09 | 186,369,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,879 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"root@data-proc.openbase.co.kr"
] | root@data-proc.openbase.co.kr |
86a722adbfb0fe3c0a8f2b9fadf6b3ec83314056 | 52051c450645b30a677a2e5fbff98fcfb64ec517 | /CHTHCrawler/items.py | 005463f8b28ce958f4718a6e88364570d7410942 | [] | no_license | vinhtran1/CHTHCrawler | f5e1a633923f43fde0696a66e7fff884596036e8 | fddbb13a2c93a345e412baaec44dbbac03e46723 | refs/heads/main | 2023-05-10T21:04:58.701847 | 2021-03-04T06:55:36 | 2021-03-04T06:55:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class ChthcrawlerItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"15521020@gm.uit.edu.vn"
] | 15521020@gm.uit.edu.vn |
e4e6f6234474e6bc047f725e4bbf27761e2dbcc5 | 46d2f9652215e97ce2bf92d97b1dffaa7e44ba18 | /error.py | 483f1559f4eabda6b4e9117d3553fab7ab0220bc | [] | no_license | Breathleas/ToyPL | ed45ea4045fdb69e23938d8e4b572cf4ba57efb8 | f96ae7f6555ec9a55a9726944198c3a896bfac80 | refs/heads/master | 2023-03-30T08:29:37.488471 | 2021-04-07T06:54:14 | 2021-04-07T06:54:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | from string_with_arrows import *
class Error(object):
def __init__(self, pos_start, pos_end, error_name, details):
"""
:param pos_start: 错误其实位置
:param pos_end: 错误终止位置
:param error_name: 错误类型名称
:param details: 错误细节
"""
self.pos_start = pos_start
self.p... | [
"liaomw@huitouche.com"
] | liaomw@huitouche.com |
695b0730a411e071970885a7c9a14c7fb5b55754 | 444ef2c07e05cf6b2c85ee33535f228d7c5b384e | /allenact/embodiedai/mapping/mapping_utils/map_builders.py | 1d31f53f59e84ca4263e6e57f69e0ff2ca84cf30 | [
"MIT"
] | permissive | zcczhang/allenact | 4d92d771e31868c3e6909c358787b46d2ff995fa | 4657479e8127393f5996e70649da2e2a7eae7332 | refs/heads/main | 2023-08-21T19:30:19.397165 | 2021-10-06T17:33:58 | 2021-10-06T17:33:58 | 396,886,059 | 2 | 0 | NOASSERTION | 2021-08-16T16:52:59 | 2021-08-16T16:52:58 | null | UTF-8 | Python | false | false | 23,116 | py | # MIT License
#
# Original Copyright (c) 2020 Devendra Chaplot
#
# Modified work Copyright (c) 2021 Allen Institute for Artificial Intelligence
#
# 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 Softwa... | [
"lucaw@allenai.org"
] | lucaw@allenai.org |
da3e29610a1aa1a80ddc22bf6047915f966e07d3 | 3e60df8580f3dd1f11a00856fbb1ccc974f3e2d9 | /HW2/test_stackoverflow_analytics.py | 8cbc7d1708e375e8b173d6720091d025bb07f7b5 | [] | no_license | StepDan23/MADE_python_for_prodaction | 96148db4a3784655bfcb76aa1eb1151b5598538a | a7166e504c9aceef3253aeb49317d257b4aae953 | refs/heads/master | 2023-02-27T08:37:57.893047 | 2021-02-01T15:24:49 | 2021-02-01T15:24:49 | 333,349,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,592 | py | from argparse import ArgumentParser
import pytest
from unittest.mock import patch
from stackoverflow_analytics import WordStatistic, setup_parser
NOT_EXIST_FILEPATH = 'not_exist_filepath'
def total_size_of_dict_of_dict(dictionary):
all_keys = set()
for inner_dict in dictionary.values():
all_keys.up... | [
"mix2ra93@mail.ru"
] | mix2ra93@mail.ru |
9853adc4987d40133d9350088b70b19b22b4c19d | 24d4afbf1f6316b3a607308349fd887c13ffe9ee | /Scripts/HT_scripts/ht/setup.py | a8e5ed3d27e2c0e037ea37f695abbc5c93997797 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mylenre/Data_phD | 65d97adaf39fcd79d8228679ada6602e86af6995 | ee5122fe405fd00b99b53e248299a18199bfa35a | refs/heads/master | 2023-05-07T20:04:56.183354 | 2021-05-28T15:42:55 | 2021-05-28T15:42:55 | 210,873,457 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,489 | py | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal... | [
"55740158+mylenre@users.noreply.github.com"
] | 55740158+mylenre@users.noreply.github.com |
67d85dfc6f8f78470a4739d54c6e04b4e9b08ee9 | ab8e63babb6b412222aa5a7806728a171a5535d9 | /prat4/ex1_a.py | a8a337bebdc33f72c634137b6ddaa3f31db82065 | [] | no_license | tomasfj/programacao-distribuida | 90237839593982860ed6faaed816a423dfa52172 | b0c717cb0be7c13d8ef9e34c9cf963e1d46e1237 | refs/heads/master | 2021-05-17T05:27:21.175762 | 2020-04-26T15:34:20 | 2020-04-26T15:34:20 | 250,649,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,162 | py | '''
Estudar os tempos de execução:
. sequencial
. multithread
. multiprocessos
para cada uma das funções:
. fibonacci
. url
. readFile
Analisar resultados.
'''
from threading import Thread
import urllib.request
import time
from multiprocessing import Process
# Execução Sequencial
class nothreads_object(object):
... | [
"noreply@github.com"
] | noreply@github.com |
29084ab0b03701b8d5c0589acbfcf5b0b0c42b01 | 3a009df40f634d41f4de9ece3c58703cebdc321f | /atm_analytics/analytics/migrations/0018_remove_atmcase_xfs_format.py | 7a0bce8f08a07148b9f16816b8115f51317d65b5 | [
"MIT"
] | permissive | ifreddyrondon/atm-analytics | 3dcdb7fc184fced13f8118fd1486a64b69c1ce3c | 654ba8993b05848cfb4a18ff2f6e4ee44ba7c246 | refs/heads/master | 2022-11-28T16:44:59.388168 | 2020-02-01T21:29:20 | 2020-02-01T21:29:20 | 63,739,156 | 0 | 1 | MIT | 2022-11-22T01:01:27 | 2016-07-20T01:15:12 | HTML | UTF-8 | Python | false | false | 359 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('analytics', '0017_atmcase_xfs_format'),
]
operations = [
migrations.RemoveField(
model_name='atmcase',
... | [
"spantons@gmail.com"
] | spantons@gmail.com |
8ce29595818ea2d4b7f8186cbb954cbdb7739d39 | a3ff13ecac60f891a3ebdcb4c72bf6a4b581a2d8 | /YCD/10.16公开课红心代码heart_3d.py | 307b46ff179ed773578ac66438fc7032e575e55a | [] | no_license | kekirk/pycode | 75533afc3018cba30d0abd3c29ab1c945b85504b | 06dab1a61d7b445cc19b41e4d281f62251e2583b | refs/heads/master | 2020-04-01T17:13:53.828118 | 2019-01-04T09:02:00 | 2019-01-04T09:02:00 | 153,419,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | #!/usr/bin/env python
# coding: utf-8
# In[3]:
from pyecharts import Scatter3D
import numpy as np
# # 心形解析式
# # (x^2+9/4*y^2+z^2-1)^3-x^2*z^3-9/80*y^2*z^3=0
# In[5]:
scatter3D = Scatter3D("I Love You", width=1700, height=1000)
data = list()
x = list(np.linspace(-1.5, 1.5,150))
y = list(np.linspace(-1,1,100))
z... | [
"kekirk@163.com"
] | kekirk@163.com |
020f91f4d1a8a9caa5c59fe28145b52c554f09ff | bf4178e73f0f83781be6784d7587cb34a38d6edd | /platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/common/calculators/calc_modulator.py | d1572f6a1abc18443087ee2ab822b05f0a10716a | [] | no_license | kolbertv/ZigbeeSiliconV3 | 80d70515e93be1413c24cdcb3485f50c65a1564b | ab0bd8d4bb6c1048adef81d0e66d96006c2fabd9 | refs/heads/master | 2023-01-02T07:18:01.393003 | 2020-10-25T15:33:08 | 2020-10-25T15:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,642 | py | """Core CALC_Modulator Calculator Package
Calculator functions are pulled by using their names.
Calculator functions must start with "calc_", if they are to be consumed by the framework.
Or they should be returned by overriding the function:
def getCalculationList(self):
"""
#import math
from pyradioconfi... | [
"1048267279@qq.com"
] | 1048267279@qq.com |
eabcf21c690f19f586bbd3c12d8f48ca73b8efff | 1ba18a08d38c693cc20d0f773a6f3a9e23c9560a | /knitspeak_compiler/knitspeak_interpreter/knitspeak_actions.py | fbfe0822362a700cdecd4c3174bb70a1ff2ae88e | [] | no_license | mhofmann-uw/599-Knitting-Assignments | 9d77b8911b187e1e51c80a217fb85c18a17ce5f1 | 136cde8d63152155c634f3b0680b53c1fd56775a | refs/heads/main | 2023-08-24T18:07:38.909553 | 2021-11-09T19:56:29 | 2021-11-09T19:56:29 | 409,295,658 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 12,241 | py | """actions are called by parglare while parsing a file to reduce the abstract syntax tree as it is processed"""
from typing import Dict, List, Tuple, Union
from knitspeak_compiler.knitspeak_interpreter.closures import Operation_Closure, Num_Closure, Num_Variable_Closure, Num_Assignment_Closure, Iterator_Closure, Curre... | [
"hofmann.megan@gmail.com"
] | hofmann.megan@gmail.com |
24948c5e9cc6f4ade5f814b095ccb9c0319bae21 | 688788c577776b945f1965187d404757b687c8e1 | /appmine/appmine/urls.py | 6c2b929fe2c6afbf205967368e44be58babfa85a | [] | no_license | 3Labs/AppMine | 8d01b1a39c319201de6ba323cb0fcf3d2d95dd62 | fa68aac46ecad1667610f8cbbd89e2b8eb682004 | refs/heads/master | 2020-07-23T16:36:35.584685 | 2019-09-10T20:33:19 | 2019-09-10T20:33:19 | 207,631,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | """financialchat URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cl... | [
"tri3labs@gmail.com"
] | tri3labs@gmail.com |
917caa8803de6237510c15044bfbe71ebee37d83 | 4564fd0cfb9009f0b85d15c3b9164b865c4c86e7 | /tests/test_model.py | 6640508bf3a1581cded6a9fe52d2d2d572937326 | [
"Apache-2.0"
] | permissive | rajaramcomputers/client | 0188a1cf8e989dcd180c280a4db4d00c44bac390 | 65badf61fb9a5430596d6d2c0b9b7833cf30ec06 | refs/heads/master | 2021-01-16T21:59:35.657394 | 2016-02-01T22:08:18 | 2016-02-01T22:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | """ run with
nosetests -v --nocapture tests/test_model.py
or
nosetests -v tests/test_model.py
"""
from __future__ import print_function
from pprint import pprint
from cloudmesh_base.util import HEADING
import cloudmesh_client.db
import cloudmesh_client.db.model
class Test_model:
def setup(self):
pa... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
ba1f5e9dd3eb7cd681014c2d6378586c4ecae990 | 6ce1b574542eacf8c416d0e3d8499e649f76181b | /CursoIntensPython/exerc_4.11.5.py | 280f966d22fcbb683b0eca60fc43952453bea556 | [] | no_license | AlvanDeMelo/CODIGOS-PESSOAIS | ea9f7733c94d3f8162ecc0d3147f04e6f6db9110 | d905277285806c3ad363e2def6ab17bf1b1264b6 | refs/heads/master | 2023-04-22T23:45:32.157509 | 2021-04-22T20:46:21 | 2021-04-22T20:46:21 | 293,786,965 | 1 | 0 | null | 2021-04-17T19:46:39 | 2020-09-08T11:15:54 | Python | UTF-8 | Python | false | false | 252 | py | #Exercicio 4.11.5 Os 3 itens do meio com método for
#Lista
comidas = ['arroz','feijão','batata','hamburguer','milkshake']
#Exibe o 3 ultimos sabores
print('Os 3 intens do meio da lista são: ')
for comida in comidas[1:4]:
print(comida.title())
| [
"noreply@github.com"
] | noreply@github.com |
99d69fd47889f9ce0d7b1d153f7192df5ac02b56 | ea1b340ccc3c151f508df6a7e7ab8701cd5c5cb5 | /Experiment Processing/recommender/voting_rules/average.py | 2a5cf2635c002c3d69a5d93f1137feacb84964f3 | [
"MIT"
] | permissive | abansagi/GroupRecommendationThesis | a0ed6effe93c5acd65d1e6c462ba3443869b7645 | 4a4b8c2f230d7db3b6b36342ab06b02f146462ae | refs/heads/main | 2023-04-18T16:19:58.468381 | 2021-11-17T14:16:05 | 2021-11-17T14:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from recommender.voting_rules.abstract_voting_rule import AbstractVotingRule
class Average(AbstractVotingRule):
"""
"Average" aggregation strategy, works by calculating the average rating for each song.
"""
def get_name(self):
return "Average"
def voting_rule(self, song, song_ratings):
... | [
"aurelbansagi@gmail.com"
] | aurelbansagi@gmail.com |
7debab71f5c3def961101e6b1dc4e0993a4717e7 | cd835e889bce6f1a9cff91b764ab19ad70ff4134 | /repository/migrations/0004_auto_20180327_0327.py | 1ca152e43e6eae7c5e222760282eecde464e1312 | [] | no_license | dabingya/cmdb | 781ff842714ceda0904796858a938e8aece594dd | 731a1a036aca7002398b8c8a72a9d167b1236b64 | refs/heads/master | 2020-03-19T07:23:02.206823 | 2018-07-09T01:11:56 | 2018-07-09T01:11:56 | 136,109,091 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-27 03:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('repository', '0003_connect_domain_userprofile'),
]
operations = [
migrations.... | [
"547684265@qq.com"
] | 547684265@qq.com |
441d4b4c3c29fbcd3fd0ed67763e1ad1e0832f34 | 7804c198ae1e6a56c20ebc87071b16bb24d190be | /Proj1.py | a2258dc408d5496aca532572327f431de268f621 | [] | no_license | nilesh12121996/Breast-Cancer-Classification | c989bfdf35cea292efd20e6622c581f7b60cc4f9 | a41d103bb893a1de579fca7353277657e6a5cf4e | refs/heads/main | 2023-07-03T17:26:23.798299 | 2021-08-06T20:35:57 | 2021-08-06T20:35:57 | 393,495,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,435 | py | import sys
import numpy as np
import pandas as pd
from scipy import signal
###################
## Solver for single layer network of three hidden nodes.
## Output node has no bias but hidden nodes have bias.
## We automatically accounted for this by adding an extra
## column of 1's to the input data.
## return [W, w] ... | [
"noreply@github.com"
] | noreply@github.com |
16c2df00ba5b93c7a908956911ca1c69f0531f1d | 318f9349aa8148e432ec70c9c10cddd1390a4071 | /predict.py | dac862c2c3bf6d7f6f949a74a5ca9be684412c78 | [] | no_license | wangjianqun1/Insect_Recognition | cc24d022f16ea424d323df578560301f47dcceca | 2765f6c3e8c38272ba27fb0d7b4858bb122620b8 | refs/heads/main | 2023-06-17T17:41:56.245821 | 2021-07-14T16:47:20 | 2021-07-14T16:47:20 | 386,003,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from skimage import io, transform
import tensorflow as tf
import numpy as np
tf = tf.compat.v1
path1 = ".\insecttest/草履蚧/709.jpg"
path2 = ".\insecttest/褐边绿刺蛾/成虫.jpg"
path3 = ".\insecttest/黄刺蛾/成虫.jpg"
path4 = ".\insecttest/柳蓝叶甲/666 (10).jpg"
path5 = ".\insecttest... | [
"noreply@github.com"
] | noreply@github.com |
a9e2cbb4176684f4ffa52c1888fae3102c5fa7b6 | 9b59f76f3b312951519a15651290476c34a54174 | /QUANTAXIS_Test/QABacktest_Test/QABacktestSimple_Test.py | 37e9feda4909d833898186c4d41be55ad36d35fd | [
"MIT"
] | permissive | sjtututu/QUANTAXIS | b8d9ba35d20159680f25cd3e583ebcfc7ff34c75 | e9e20cdeda8b8d132433037b639a7e60f286a190 | refs/heads/master | 2020-08-16T11:19:19.689925 | 2020-02-22T01:21:57 | 2020-02-22T01:21:57 | 215,495,655 | 1 | 0 | MIT | 2019-12-28T08:13:57 | 2019-10-16T08:22:54 | Python | UTF-8 | Python | false | false | 4,471 | py | import unittest
import numpy as np
import pandas as pd
import QUANTAXIS as QA
class QABacktestSimple_Test(unittest.TestCase):
# define the MACD strategy
def MACD_JCSC(self, dataframe, SHORT=12, LONG=26, M=9):
"""
1.DIF向上突破DEA,买入信号参考。
2.DIF向下跌破DEA,卖出信号参考。
"""
... | [
"415496929@qq.com"
] | 415496929@qq.com |
3f31872d57224f64ff578a03c5a4ab5fa57cc9d0 | 9ddf19081a975a073dfbe478d448bcd2c948de51 | /Day 24 - Automatic Invitations/main.py | fa0b2706c0cfb7b1e622aa6d5f206b13dfe00d0f | [] | no_license | Drust2/100Days | 219f35d94f98abda3008350fbc2b458e953c94b6 | b456c5b0fde054105a9ce3904c1bb16699cd9c59 | refs/heads/main | 2023-05-10T23:15:04.116802 | 2021-06-03T18:58:16 | 2021-06-03T18:58:16 | 322,945,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | #TODO: Create a letter using starting_letter.docx
#for each name in invited_names.txt
#Replace the [name] placeholder with the actual name.
#Save the letters in the folder "ReadyToSend".
#Hint1: This method will help you: https://www.w3schools.com/python/ref_file_readlines.asp
#Hint2: This method will also he... | [
"noreply@github.com"
] | noreply@github.com |
b113b1db3bfe5f8e92de554cc4f803a2b126bac7 | 902e8b6f2c39c0a7baa8abd9637aa43f4be27e27 | /Code/Chapter 1/src/blueblog/urls.py | 9e80e946967b3d343885c7d48be82d6ec68c8c7b | [] | no_license | PacktPublishing/Django-Projects-Blueprints | 8151e611ae5cf95dc985ac7d08ce503bd41e0c4a | 7d2409ea1b43b057d1e4c337e348cb6e102f75d6 | refs/heads/master | 2023-02-08T13:34:22.658965 | 2023-01-30T10:17:40 | 2023-01-30T10:17:40 | 59,006,898 | 32 | 30 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.views import login
from django.contrib.auth.views import logout
from accounts.views import UserRegistrationView
from blog.views import NewBlogView
from blog.views import HomeView
from blog.vie... | [
"packt.danishs@gmail.com"
] | packt.danishs@gmail.com |
34b237ae8be56b9d1a13f968ccdbf955e4b68ab9 | 27d90c168a4cc7bc65d3f3658d1483aa9b852f5c | /HostingEcom/urls.py | 5609c9ae2a2832610fa567f219cf29d8408d606c | [] | no_license | ICTServ/HostingEcom | df46acb861e784054f3d2114ee169b16eb91e52d | 59cc5ce4cee51f532b8071b87663b9f31349b0eb | refs/heads/master | 2023-03-26T19:19:35.705713 | 2021-03-25T18:53:53 | 2021-03-25T18:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | """HostingEcom URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"sbsarnava@gmail.com"
] | sbsarnava@gmail.com |
919f24c4fea2046bddb1761436745440bb6a53b0 | ad921025e128bb55fa84d84f79af2a8ff93adfa7 | /encryptor.py | 39996603084e477d1b96256c17e9b40aa144460d | [] | no_license | AlexeySafin924/Encryption-machine | 3f6c22594d746e02815221c84d0bd855d2f16a4b | fba2569bf541692fa78bf0b6b7440da08a9e378a | refs/heads/main | 2023-07-26T08:38:13.641317 | 2021-09-06T13:33:01 | 2021-09-06T13:33:01 | 403,263,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,117 | py | import argparse
import sys
import string
from collections import defaultdict
low_from = dict()
low_to = dict()
big_from = dict()
big_to = dict()
for i in range(0, len(string.ascii_lowercase)):
low_from[i] = string.ascii_lowercase[i]
low_to[string.ascii_lowercase[i]] = i
big_from[i] = string.ascii_uppercas... | [
"safin.am@phystech.edu"
] | safin.am@phystech.edu |
e306046dfee373ba4e6be57818d704c98ff202fd | b716cf76b0e398f3666d8544ccfab47282520e08 | /main.py | a8d06c9a8d9e65b23207bccf5ba49c2bd46c64dc | [] | no_license | edgarlunaa/formato_txt_pandas | dc19e4ee8c69af2632709242e037553b3d7b9481 | cdcd5c1ea42049db812166faf54141110a003277 | refs/heads/main | 2023-03-22T17:51:43.548181 | 2021-03-18T16:21:30 | 2021-03-18T16:21:30 | 333,510,843 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | from openpyxl import load_workbook
import pandas as pd
codigo_empresa = '5533'
def dar_formato(txt, total, tipo):
if len(txt) + 1 <= total:
resto = total - len(txt)
if tipo == 'A':
txt = txt + ' ' * resto
elif tipo == 'N':
txt = '0' * resto + txt
if len(txt) > ... | [
"edgaribarluna@gmail.com"
] | edgaribarluna@gmail.com |
bf2bd04d55b63d25a15b6344be797b303d828510 | 30e38ab7901cb20f7d80c961bbb0728fde4b02ae | /untitled0.py | 7ccff0567ed091c4150aebf6f470c6e11ef7cb49 | [] | no_license | Jmro2120/ClaseFundamentosDePogama | 1100ba1784883ef22c91ecbc39f737c46b39a799 | c03478ef5d60c0d86ad37e20d8df535311076ccb | refs/heads/main | 2023-03-06T20:26:19.548511 | 2021-02-19T02:01:01 | 2021-02-19T02:01:01 | 340,231,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 11 19:04:20 2021
@author: Liliana
"""
var_edad=int(input("ingrese su edad:"));
print("su edad es :",var_edad) | [
"78770549+Jmro2120@users.noreply.github.com"
] | 78770549+Jmro2120@users.noreply.github.com |
4b6c86cc1fcd9c0e3583792882c23f4208225094 | 48c6a6adc85b002e85771bdf1fc82a5159a1124d | /ctypeslib/codegen/handler.py | 57bb9f28449f73f74e7d479538f7ddee25f04c78 | [
"MIT"
] | permissive | pombreda/ctypeslib | 8afa8d8a3a01c48949f96173ce41b4a6aa94bad1 | c8f645991ba694c1fc43c1ba09643f201b01d3e4 | refs/heads/master | 2021-01-17T05:38:59.423578 | 2015-02-02T05:49:25 | 2015-02-02T05:49:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,461 | py | """Abstract Handler with helper methods."""
from clang.cindex import CursorKind, TypeKind
from ctypeslib.codegen import typedesc
from ctypeslib.codegen.util import log_entity
import logging
log = logging.getLogger('handler')
## DEBUG
import code
class CursorKindException(TypeError):
"""When a child node of a ... | [
"loic.jaquemet+github@gmail.com"
] | loic.jaquemet+github@gmail.com |
f02dd9c32a0ef2a43dbd358dd6e79f6319d7e58a | d6a1269f0d1cc264b974cd462b1ff985eff9b303 | /apiV2/tests/test_registration.py | f33db91ee9f76aa001f874db51be8d8a3b79c824 | [
"MIT"
] | permissive | DerKip/Ride-My-Way | 284b62485ca51b88b5e7b6e99e4b759f8f476823 | 30600349b4225272c4b6e78851c1dce96e586d31 | refs/heads/develop | 2022-12-08T21:42:49.298123 | 2018-08-01T07:57:49 | 2018-08-01T07:57:49 | 136,759,664 | 4 | 1 | MIT | 2022-12-08T00:58:59 | 2018-06-09T21:32:37 | Python | UTF-8 | Python | false | false | 5,654 | py | from ..tests.base_test import BaseTestCase
from ..models.models import db, initialize, drop
import json
class RegistrationTestCase(BaseTestCase):
""" This class represents resgistration test case """
def setUp(self):
super().setUp()
db.__init__()
drop()
initialize()
self... | [
"dkip64@gmail.com"
] | dkip64@gmail.com |
d80dd720858dc042a2f195293139c38d8a080e38 | 50de54517ef5e157b43598e412c477fd66890a3e | /Assignment 05/Problem 04.py | b0883029d93e9bfb1ca023132749cea0e5ea3943 | [] | no_license | Shihabsarker93/BRACU-CSE111 | f530be247bebaaee9cc5e85948dc070adae0c6ae | 17c95c76f84abffe9d9bdcb5861fbacbc510b5a6 | refs/heads/main | 2023-08-13T15:33:57.331850 | 2021-10-07T10:56:09 | 2021-10-07T10:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | class Color:
def __init__(self, color):
self.clr = color
def __add__(self, other):
self.clr = self.clr + other.clr
if self.clr == "redyellow" or self.clr == "yellowred":
self.clr = "Orange"
elif self.clr == "redblue" or self.clr == "bluered":
self.clr = ... | [
"mirzamahrabhossain@gmail.com"
] | mirzamahrabhossain@gmail.com |
922632bd7fd107d2f4b5713afca0a914316f2f55 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/195/48791/submittedfiles/testes.py | 697187f7d52f0e988ed1e5a2cdacc5e64b225503 | [] | 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 | 423 | py | # -*- coding: utf-8 -*-
a=int(input('digite a:'))
b=int(input('digite b:'))
c=int(input('digite c:'))
d=int(input('digite d:'))
if a>b and a>c and a>d:
print(a)
if b>a and b>c and b>d:
print(b)
if c>a and c>b and c>d:
print(c)
if d>a and d>b and d>c:
print(d)
if a<b and a<c and a<d:
print(a)
if b<a ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
fa883276bba7a3b272be39a5bccc3a913013632e | 41a4a42fa875939d1d80195bb3fcdb167520a2ae | /company/test_forms.py | f665134d9ceed1c260a0e405543c75134e032644 | [] | no_license | hfolcot/issue-tracker | f05de6919835cb38abe83095933652bcce6cfac1 | 14f25b5346f0a9d28010d6f23b44f0e26666ed58 | refs/heads/master | 2022-12-26T03:16:21.607129 | 2021-05-27T13:38:48 | 2021-05-27T13:38:48 | 167,358,769 | 0 | 1 | null | 2022-12-08T03:12:32 | 2019-01-24T11:46:00 | Python | UTF-8 | Python | false | false | 895 | py | from django.test import TestCase
from . import forms
class TestContactForm(TestCase):
def test_form_is_not_valid_without_all_fields_entered(self):
form = forms.ContactForm({'your_name':'','email':'',
'message' : ''})
self.assertTrue(form.errors['your_name'], [u'This field is required.'])
self.assertTrue(fo... | [
"hfolcot@gmail.com"
] | hfolcot@gmail.com |
1dce939f95f133209f32569b9e8b6b0702554575 | f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb | /weapp/termite2/activate_wepage_mechanism.py | 241e34812fed2fa1777746f08e55f3f0616b0d9e | [] | no_license | chengdg/weizoom | 97740c121724fae582b10cdbe0ce227a1f065ece | 8b2f7befe92841bcc35e0e60cac5958ef3f3af54 | refs/heads/master | 2021-01-22T20:29:30.297059 | 2017-03-30T08:39:25 | 2017-03-30T08:39:25 | 85,268,003 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # -*- coding: utf-8 -*-
import json
from django.http import HttpResponseRedirect, HttpResponse
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.db.models import F
from django.contrib.auth.decorators import login_required
from account import models as account_mode... | [
"gaoliqi@weizoom.com"
] | gaoliqi@weizoom.com |
6366520696258a461f3115d86f78471be03fe8ae | 7c3a2a44536779d711349f38a18c0edd95ff5b1f | /algolia_places/__init__.py | 7b9dcb29453e2ba317b160934479cabb2fbb81ee | [
"MIT"
] | permissive | m-vdb/algolia-places-python | f0c566d5801a9397406cce32bbc8593da85cf769 | 84fcbf93abf35ad4c42ade0415fdafa2674639f7 | refs/heads/master | 2021-07-11T13:38:00.898814 | 2018-08-20T12:54:11 | 2018-08-20T12:54:11 | 145,402,115 | 2 | 1 | MIT | 2020-06-16T07:53:03 | 2018-08-20T10:20:15 | Python | UTF-8 | Python | false | false | 69 | py | """Algolia places module."""
from .client import AlgoliaPlacesClient
| [
"mvergerdelbove@work4labs.com"
] | mvergerdelbove@work4labs.com |
d12c93622232f347d20dbadc382905388fd5a03c | e9354fa4fda49b91509695f9237a873885199691 | /Main/migrations/0006_mask_likes.py | 398006c63d9cc301c31c8befe836d38a0e149eef | [] | no_license | DreamTeamInc/Core-backend | ccb89a66a0abe4ede1a6623441a26865e9a1f539 | 63801d1de0b39f678b7cb37514730c8203b227c2 | refs/heads/master | 2023-01-13T23:51:25.302887 | 2020-11-26T18:05:33 | 2020-11-26T18:05:33 | 299,843,151 | 0 | 0 | null | 2020-11-21T06:49:48 | 2020-09-30T07:34:03 | Python | UTF-8 | Python | false | false | 426 | py | # Generated by Django 3.1.2 on 2020-10-22 12:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Main', '0005_auto_20201019_1918'),
]
operations = [
migrations.AddField(
model_name='mask',
name='likes',
... | [
"4eckah78"
] | 4eckah78 |
0f80f690d3b8d2483d815eb3d69a1cac19cee35e | e7a6d5073b6ab13c33148033053e8a6e8a67d36d | /linux/kernel/interogate_smaps.py | f422248fcdeea601b6144f448a913f2628635083 | [
"Apache-2.0"
] | permissive | Oneiroi/sysadmin | 39de72a5d788070219e8dc171e0cba27334c2fa1 | 23429993c61be124ce445f219f835ce3659d99ee | refs/heads/master | 2023-03-21T18:34:50.716777 | 2023-03-07T16:56:39 | 2023-03-07T16:56:39 | 1,074,593 | 31 | 18 | null | 2018-04-16T09:49:50 | 2010-11-12T13:13:25 | Python | UTF-8 | Python | false | false | 500 | py | #!/usr/bin/env python
import glob
def main():
template = '{0:10}'
for i in xrange(1,14):
template += '{%d:15}' %i
print template.format(
'Process',
'Size',
'Rss',
'Pss',
'Shared_Clean',
'Shared_Dirty',
'Private_Clean',
'Private_Dirty',
'Referenced',
... | [
"oneiroi@fedoraproject.org"
] | oneiroi@fedoraproject.org |
ecfd2884da65ec11224cd11006ffbfd7b1f9157c | b375432011b9abe6bd60a6dd7bd538f7044d9f59 | /LoRa Python Files/Node 1/RX_Logging_Code (00224D6A3DEB's conflicted copy 2019-03-28).py | ecf247064170c364f72683a32647a7770217ccba | [] | no_license | opus-meum/MSc-Project | bffc964aa1258fbac486283f3579f18b0fb2dad7 | dd9fadfd5e1980a56a3370e13b3d4da26feb6108 | refs/heads/master | 2022-01-10T03:33:48.746858 | 2019-06-27T14:20:43 | 2019-06-27T14:20:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | """"
Experiment Test: RX Logger Code
Node 1
By Kossivi Fangbemi
"""
import time
import serial
serial_com4 = serial.Serial("COM11", 9600, timeout= 0.30)
try:
Text_File = open('RX_Logger_File', 'a')
"""Text_File.write('Nth Data sent \t || \t TX Power dBm \t || \t Acknowledgment \t || \t RSSI dBm \t\t... | [
"kossiviagbe@gmail.com"
] | kossiviagbe@gmail.com |
5304fa765d4927fd4cefa8bd7af24bd149b98a00 | e9c882a52ba0e5ee250a1e42cbc79d68b919213a | /comparingExcel.py | 02ab5dfc9381455fb1a8de328b4a0214d2a3465d | [] | no_license | malikatahseen/swmsed | 438015c61bff16e73b06fec0c6a837b9bf52848b | 8a2aaee46594b632242c269fffd2f6095d8c2a78 | refs/heads/main | 2023-08-24T20:13:10.267463 | 2021-09-16T08:51:24 | 2021-09-16T08:51:24 | 407,089,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import pandas as pd
from pandas import ExcelWriter
df = pd.read_excel(r'C:\Users\MALIKA\Desktop\mapping file.xlsx')
result = df[df['Prod.ERP.Name'].isin(list(df['STATUS'])) & df['Prod.GOV.Name'].isin(list(df['STATUS']))]
print(result)
writer = ExcelWriter('result.xlsx')
result.to_excel(writer,'Sheet1',index=False... | [
"noreply@github.com"
] | noreply@github.com |
c5b7c0831380a9b4fd9effc5cea7908430770144 | 92f6ffb240a1fbaa52ae23f614663b2b915e4187 | /backend/home/migrations/0002_load_initial_data.py | 79e2423fce37abb55ff579976a85fe906d1c2f41 | [] | no_license | crowdbotics-apps/msgs-sghsg56-dev-12782 | 3b196351f5ff932916802912c7740c7455a78459 | 10f95c9e897dcad50e21950879adc97b9fe689f4 | refs/heads/master | 2022-12-24T00:35:35.056481 | 2020-10-06T09:11:48 | 2020-10-06T09:11:48 | 301,672,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "MSGS-sghsg56"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
41d57f34fb18db0a6f660a6cf4b40fb9024e33f3 | f78572ce42d800147396308943e346d32c011601 | /sss_object_detection/src/sss_object_detection/cpd_detector.py | efef436d1f39f36e35a4edb04395e075f6082aac | [
"BSD-3-Clause"
] | permissive | ShounakCy/smarc_perception | 83f579bb4fe1aa4b6b19f261f8f547ec81d4c2dd | 37de967be6246dbfd588608d7cbf77112c785ed3 | refs/heads/noetic-devel | 2023-08-18T19:41:46.019355 | 2021-10-14T12:15:21 | 2021-10-14T12:15:21 | 408,851,791 | 0 | 0 | BSD-3-Clause | 2021-09-21T14:25:51 | 2021-09-21T14:25:48 | null | UTF-8 | Python | false | false | 4,321 | py | import numpy as np
import ruptures as rpt
from sss_object_detection.consts import ObjectID
class CPDetector:
"""Change point detector using window sliding for segmentation"""
def __init__(self):
self.buoy_width = 15
self.min_mean_diff_ratio = 1.5
def detect(self, ping):
"""Detecti... | [
"liling@kth.se"
] | liling@kth.se |
ee455120d07d20db9d326555a538e8ddbf8ba9e1 | 9cd882ab23d9332fc8eef3ae0ce54d786bf73546 | /Anonymous(Alpha).py | cb8f8a756316fcc41d2c32b29d1704b11fefd8a8 | [] | no_license | KennethL27/Anonymous_Bots | 67e6ddd81bfb6df0461a21011b76062f9e02db63 | 4566e55222df0f09ed2497bb5faf0a3939351494 | refs/heads/master | 2023-03-05T15:43:07.068561 | 2021-02-23T19:46:41 | 2021-02-23T19:46:41 | 341,039,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | import discord, time
from discord.ext import commands
intents = discord.Intents.default()
intents.guilds = True
intents.members = True
intents.messages = True
client = commands.Bot(command_prefix = '-', intents = intents)
rant_channel_id = 718972914434572402
guild_id = 613512375798333450
gaucho_id = 7613557461631631... | [
"kenneth.lara01@gmail.com"
] | kenneth.lara01@gmail.com |
22682de8e09ae6b405ad831230b9747b3f8f61ff | a2a99d7b7f82cf1d8ea521682e1b784e94229dca | /mysite/urls.py | e2ed5368aa208170ffb09985edea26d4bd3df57c | [] | no_license | marianjoroge/polls | f96324b17e6e57ac54c9cb21203741b8ef4eb838 | c86194d1e2cac209e554fde4300a1919ab8efa5e | refs/heads/master | 2020-05-26T00:21:06.143018 | 2019-05-22T14:15:17 | 2019-05-22T14:15:17 | 188,050,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"njorogemaria8@gmail.com"
] | njorogemaria8@gmail.com |
62b59c59255156c3b496e9918e56c9b184e0694c | 60abe94f54c64235bed696143fa77acc65c57e51 | /home/urls.py | 7ce0818898e61395aaf5a6b60c7e17c5a8ba1691 | [] | no_license | ncepu-liudong/AXF | 782a752c34d57949c930a5da55c8cd7f5d9a7c6c | 6f3c9cc02928a1d597bf3dcc3b6686815b7dcadf | refs/heads/master | 2022-12-08T13:27:05.796584 | 2020-09-01T12:49:09 | 2020-09-01T12:49:09 | 284,428,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.contrib import admin
from django.urls import path, include
from rest_framework.documentation import include_docs_urls
from home import views
app_name = 'home'
urlpatterns = [
path('home/', views.HomeListView.as_view(), name='home'),
] | [
"46965739+ncepu-liudong@users.noreply.github.com"
] | 46965739+ncepu-liudong@users.noreply.github.com |
e9e6013d45c4fcc42b1c9ff3d15d058a13493e6b | 5d8b4f98459c0083b407ab7947e99effe8c2e8d6 | /WorldLeaderClassifier/server/util.py | 7e7a2cd39daa570db4de263c6f113d5c841eb138 | [] | no_license | udayashangar/DataScienceProjects | cdb9959be059653c09e4f8b7be7af93b0fc89f71 | bae18d9edf9d7717fa6397971bc129759f29c7fa | refs/heads/master | 2022-12-04T03:04:22.956357 | 2020-08-21T05:41:04 | 2020-08-21T05:41:04 | 286,650,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,957 | py | import joblib
import json
import numpy as np
import base64
import cv2
import pywt
__class_name_to_number = {}
__class_number_to_name = {}
__model = None
def w2d(img, mode='haar', level=1):
imArray = img
#Datatype conversions
#convert to grayscale
imArray = cv2.cvtColor( imArray,cv2.COLOR_RGB2GRAY )
... | [
"udayashangar@gmail.com"
] | udayashangar@gmail.com |
bf1f4be617b6f1f98baea223f73aa9d4cf33687a | 7f324af4359ae41a00391b726d169682ef91f2e7 | /Simulations/EnsemblePursuitSimulations.py | 5dd81bfd8eaeb9a19377113a17514a610b71720b | [] | no_license | MouseLand/kesa-et-al-2019 | e5b7acf7301036a7e2e7c332223cea6ceb50d7db | 6c9752cfd5679451fae10199a451b1939f6681e3 | refs/heads/master | 2020-08-05T03:27:25.091375 | 2019-11-06T00:24:26 | 2019-11-06T00:24:26 | 212,375,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | import torch
import numpy as np
class EnsemblePursuitPyTorch():
def __init__(self, n_ensembles, lambd, options_dict):
self.n_ensembles=n_ensembles
self.lambd=lambd
self.options_dict=options_dict
def zscore(self,X):
#Have to transpose X to make torch.sub and div work. Transpose ... | [
"maria.kesa@gmail.com"
] | maria.kesa@gmail.com |
51856a03ef40020ac8c9e0586c08bcf06f66111d | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003471.py | 2cabb575ba5e4c06ee0f115ab7c8fc7bab070e46 | [] | 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 | 2,927 | 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 |
c3e9e1cc8cff9dfb3fae569dd6c04fa4f03eb0c9 | b1fbe7460427dbb891d4b1951e43e551e86b1e3b | /arcnlp/torch/nn/encoders/rnn_encoder.py | 650f222a3a14fcc7307c3081e46773c751216295 | [] | no_license | linhx13/arc-nlp | 88a45601e09deb7883ddf4583f6f2f4607fb85d0 | 760cca0d44958fb4011eaa039263575388a858ae | refs/heads/master | 2023-05-04T12:59:21.232168 | 2021-05-18T17:38:28 | 2021-05-18T17:38:28 | 230,442,944 | 1 | 0 | null | 2021-04-17T03:41:42 | 2019-12-27T12:48:02 | Python | UTF-8 | Python | false | false | 3,606 | py | import torch
import torch.nn as nn
from ...nn.utils import get_sequence_lengths
__all__ = ["RNNEncoder", "LSTMEncoder", "GRUEncoder"]
class _RNNBaseEncoder(nn.Module):
def __init__(self, module, return_sequences):
super(_RNNBaseEncoder, self).__init__()
self.module = module
self.return_... | [
"mylhx288@gmail.com"
] | mylhx288@gmail.com |
d8bed30c8a0cf3430c84317e9f16661d9d0d56a9 | 9bace62d46d2b5e143e4bcea76886e0299505b03 | /scripts/pipeline.py | 981949bf17ce07517c5821be16929b930f6aa557 | [] | no_license | rssebudandi/pharmaceutical_sales | 502a33469fdef952beab4ee36bd524d6ca7e441c | 39af6d01ff27889d163d78348c78ac226b1ad639 | refs/heads/main | 2023-06-26T17:00:35.502554 | 2021-07-31T18:26:09 | 2021-07-31T18:26:09 | 390,386,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | #Import neccessary libraries
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from matplotlib import pyplot
from sklearn import preprocessing
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler, StandardScaler
from sklearn.ensemble import Ra... | [
"sebudandi@gmail.com"
] | sebudandi@gmail.com |
0447f7db083947c6b41a4322462d09ba10952137 | c5b1d71856de92083e5a0dd4ea7a414f97e982fe | /experiment_mpc/Projected_Newton_Quadratic_Programming.py | 2c720ca408c904c641bf1d826e69da0f59322467 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | pfnet-research/chainer-differentiable-mpc | ff2c53f78993b9bbc6fb345c98ad757dc9c3ad72 | 05be1c1e06a3ced56e20fa0732c8247a9dc61ea7 | refs/heads/master | 2022-08-31T22:56:23.984781 | 2020-03-04T01:41:31 | 2020-03-04T01:41:31 | 213,283,149 | 12 | 7 | MIT | 2022-08-23T18:05:03 | 2019-10-07T02:55:48 | Python | UTF-8 | Python | false | false | 2,073 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.2.1
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
import sys
print(sys.path)
sys.path.append("../mpc")
fr... | [
"yoiida333@gmail.com"
] | yoiida333@gmail.com |
3be9815f9c24a461e3836032f901e86a6b7e0623 | c827cac4c99ccfb7299d90325aa0625831d7f4ea | /rl-race-learning/main.py | 1adf04fd28ac35e00a73cc8c97962e90468cb31d | [] | no_license | Alarnti/CarDriving | e67f2b702e4408be9c17d870c36ab1d130e015c8 | 9affe35ea1c6f51f340a1e0ecf13b17d717209b3 | refs/heads/master | 2020-04-02T19:47:21.623621 | 2018-10-25T23:16:19 | 2018-10-25T23:16:19 | 154,746,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,697 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import roslib
# roslib.load_manifest('my_package')
import sys
import rospy
import cv2
import math
from std_msgs.msg import String
from geometry_msgs.msg import Pose
from geometry_msgs.msg import Point
from geometry_msgs.msg import Quaternion
from sensor_msgs.msg import Ima... | [
"alb.atlasov@gmail.com"
] | alb.atlasov@gmail.com |
749d2c1a1aec1821efb6595ac36154a2c3c7d7d3 | 1ee36eb16394cd5a96173597e6f76adb1e2c1e11 | /batchgen/util.py | 74a3fb9636d37456ffe39f86e7b322d0f1c990f0 | [
"MIT"
] | permissive | UtrechtUniversity/hpc-batch-gen | 94a93903f9b3e2b4e8f6c4feefdb6aca2baf1384 | 414383de8d95e140c513de48abfe4a47f4bcbe9b | refs/heads/master | 2020-04-25T15:22:18.402545 | 2019-04-26T10:57:31 | 2019-04-26T10:57:31 | 172,876,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,669 | py | '''
Some helpful functions.
@author: Raoul Schram
'''
import os
import re
def _read_file(script):
""" Function to load either a script file or list.
Arguments
---------
script: str/str
Either a file to read, or a list of strings to use.
Returns
-------
List of strings where... | [
"r.d.schram@uu.nl"
] | r.d.schram@uu.nl |
31f3935d3cda0bac22f397e9b82b4a7d882bc3ca | 80f6c09fc186102766929c5f3c4e35190b2825f0 | /app/admin.py | d00f7f16790dad1ce789ef29494c0b0934054f96 | [] | no_license | BibekDas619/E_commerce-website | fa07ff073d7a9be190ef9c7b97e02cfdf52a6dcd | b5a44611863cbbea482e48eb9794e93b3d628ccd | refs/heads/master | 2023-03-14T23:25:37.828550 | 2021-03-11T04:28:42 | 2021-03-11T04:28:42 | 346,576,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from django.contrib import admin
# Register your models here.
from django.contrib import admin
from app.models import Product,Contact,Order,CustomUser
# Register your models here.
admin.site.register(Contact)
admin.site.register(Product)
admin.site.register(Order)
admin.site.register(CustomUser) | [
"bibekdas993@gmail.com"
] | bibekdas993@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.