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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
455d5907785f054b86fc0aaa143a61924d84a6dc | 353ad1b12fead8988e8160deb4e3e6e5e13b25a1 | /malware_classification.py | 376047eacffb36ac2c3afaa442e6d16705a88c24 | [] | no_license | jeremyhandong/malware_classification_system | 2d4522e68a923a7c066915d3906829c0e92a12c0 | d23e801ea4a0aa1bf430bc75635830519f03dced | refs/heads/master | 2022-01-16T17:46:27.789804 | 2019-08-12T03:57:29 | 2019-08-12T03:57:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,877 | py | import hashlib
import os
import re
import time
import pickle
from keras.preprocessing.sequence import pad_sequences
import malware_classification_by_static_feature.get_ngram as ngram
import numpy as np
from sklearn.externals import joblib
from tensorflow.contrib import learn
from keras.models import load_model
from ma... | [
"478922579@qq.com"
] | 478922579@qq.com |
34ea94313a57e664742570da3deff1daa9a356d8 | 652591a1974fb862a71fb43938857d981f4cd9a1 | /Camp1_Day2_assign1.py | 86c7b6b85d6d03fd7b51a63a159ee1acbe94fc50 | [] | no_license | Surote/answer_cisco_black_belt_LV1 | 0911a53ec824ff26365c63c31fec9cd86f4c037e | 30ec5a7f135502992934d97ead7aa9c31cb94680 | refs/heads/master | 2020-03-19T03:12:11.634464 | 2018-06-01T10:43:30 | 2018-06-01T10:43:30 | 135,704,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # Created: Surote Wongpaiboon
# Email : surote.wongpaiboon@dimensiondata.com
# Tel : +66-2625-0999
Sessions_Attended = {'sessions' : '1011,2344,3222,44322,555,6332,721,8789,99,1011,1124,1245,137,1499'}
print('I have attended '+str(len(Sessions_Attended['sessions'].split(',')))+' sessions!!') | [
"surote.z9@gmail.com"
] | surote.z9@gmail.com |
8eb20a63cf9ae7debe25c9b008d788862e5ee7da | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/78/usersdata/171/41777/submittedfiles/divisores.py | 701949f8b9cb8bf36079078eda939d27b7fe7166 | [] | 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 | 191 | py | # -*- coding: utf-8 -*-
import math
n=int(input('digite n:'))
a=int(input('digite a:'))
b=int(input('digite b:'))
d=a
e=b
f=a*b
for i in range(1,n+1,1):
d=a
e=b
f=a*b
print(f) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
81959905ddb52d2dffeabfdfb8721b9077f22d67 | de57f4fdeaaf59b361e19fcd42f068d848a759f0 | /DRL/utils.py | 97ba972c20e01d6ef107bb08d7180f6c27cb7905 | [] | no_license | Yijun-Mao/GraphAM | c9c40e4fe7f18d76474619794132ed56bd52c1db | c61354f24313088eab84fe902db08b45873ed8ba | refs/heads/master | 2022-10-31T02:57:23.421384 | 2020-06-10T07:41:48 | 2020-06-10T07:41:48 | 253,416,405 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | import torch
import torch.nn as nn
import os
from DRL.envs_manager import VecNormalize
# Get a render function
def get_render_func(venv):
if hasattr(venv, 'envs'):
return venv.envs[0].render
elif hasattr(venv, 'venv'):
return get_render_func(venv.venv)
elif hasattr(venv, 'env... | [
"yijunmao1997@gmail.com"
] | yijunmao1997@gmail.com |
361d8fb2dc27b5906759c3545bfa06d130ffc322 | ea477b2a8b9ac0cc456dc128728c2cf4d9742f39 | /sudoku_solver.py | d38136db4418d356630731ca98228346521c609e | [] | no_license | aymanriz/Sudoku-App | 0e93d92e311125f6b8ea49f5519f11662f9af85b | da4cba105aec6f6fd5dc6acb75bc3a044a050057 | refs/heads/master | 2022-12-22T02:54:12.717149 | 2020-09-28T12:32:29 | 2020-09-28T12:32:29 | 299,298,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,879 | py | import random
import pygame
import time
from Sudoku_app.Button import Button
from Sudoku_app.CheckBox import CheckBox
from Sudoku_app.InputBox import InputBox
pygame.init()
WIDTH = 450
HEIGHT=550
WIN = pygame.display.set_mode((WIDTH+100, HEIGHT))
pygame.display.set_caption("Sudoku App")
RED = (255, 0, 0)... | [
"noreply@github.com"
] | noreply@github.com |
fd9166714314627d931b92e8df033ea9d4f2ffd2 | 54a5f5ec2c5edf924b7dc7730ee7cb2a38ac4a39 | /DataFrame_manipulation_pandas/E01_Positional_and_labeled_indexing.py | aa09f4a045dbe19bc6a45b84a5dfebd5c0c513b2 | [] | no_license | dajofischer/Datacamp | fac413ec178375cedceababaf84f6b47a61fc821 | a03d16b8f342412f1ee077f2f196ee8404e2e21c | refs/heads/master | 2020-04-05T08:38:25.361746 | 2019-03-27T20:55:57 | 2019-03-27T20:55:57 | 156,722,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | # Assign the row position of election.loc['Bedford']: x
x = 4
# Assign the column position of election['winner']: y
y = 4
# Print the boolean equivalence
print(election.iloc[x, y] == election.loc['Bedford', 'winner'])
#nonsense text
#nonsenes2
| [
"dajofischer@gmail.com"
] | dajofischer@gmail.com |
17576e9cb6b7f73dd062b3ad563bfcb3ede7dd61 | 5de83af3e6740f959b2aa68ce8c1db228cf88c82 | /main.py | e7640f91aa587719888b6856d69b7a2ebda0393b | [] | no_license | Santoshge-Reddy/scraping-echoideas | d061dc5edd3420b7cdd4b38c71ead164e6b06bf5 | f7c5f24d66ab4e52aeb41daeadcd36b4a0eaba57 | refs/heads/master | 2022-12-18T19:48:23.003316 | 2020-09-26T17:22:19 | 2020-09-26T17:22:19 | 298,862,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,754 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.select import Select
from logging.han... | [
"g.santosh.sunny@gmail.com"
] | g.santosh.sunny@gmail.com |
9954328c0d050bb4d64a911f7461a367bf36a59f | 8c50265b43add0e91e30245cc7af3c2558c248f5 | /tests/python/gpu/test_tvm_bridge.py | 5c87536bdbaea32571012424a4db77dab00c19ed | [
"BSD-3-Clause",
"BSD-2-Clause-Views",
"Zlib",
"Apache-2.0",
"BSD-2-Clause",
"Intel"
] | permissive | awslabs/dynamic-training-with-apache-mxnet-on-aws | 6a67f35d7e4b12fa8bba628bd03b2b031924e211 | 1063a979417fee8c820af73860eebd2a4f670380 | refs/heads/master | 2023-08-15T11:22:36.922245 | 2022-07-06T22:44:39 | 2022-07-06T22:44:39 | 157,440,687 | 60 | 19 | Apache-2.0 | 2022-11-25T22:23:19 | 2018-11-13T20:17:09 | Python | UTF-8 | Python | false | false | 2,440 | 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... | [
"vikumar@88e9fe53272d.ant.amazon.com"
] | vikumar@88e9fe53272d.ant.amazon.com |
bf67baf77b4244a60357537840bd859b20e6bc0d | 44214313c398eb7a4e4f34562b3dc3aa1338c823 | /linked_list/impl_hashmap.py | d779bd9cee9073f1444de2b64e5418487f49a2f8 | [] | no_license | arnabs542/python_leetcode | fa76ade7c8e9368714f297c18e1afae257fbd166 | 5f8a28f7b9ec7f339e881b9b3c5977fcba02d63e | refs/heads/master | 2023-02-12T19:15:31.585165 | 2021-01-06T03:40:26 | 2021-01-06T03:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,573 | py | import unittest
from typing import Optional, List
class ListNode:
def __init__(self, key: int, value: int):
self.key = key
self.value = value
self.next: Optional[ListNode] = None
# 看过Rust源码就知道,HashSet其实就是value=()的HashMap
class MyHashMap:
def __init__(self):
"""
Initia... | [
"pylint@yandex.com"
] | pylint@yandex.com |
46a5fedeb3b54d0277f030f2c981213929b66a7d | 0f05d92b4beae4876e1444aea2ae161df2a38698 | /transformer-function.py | 1924ed29a6668c567b20fbbf0e187f9815a86fc8 | [] | no_license | toty1992/test-remote-python | b51ac9d083bcd091014e72bb1ca27d41c33c5533 | 79d3fbe5bf0fccef07d605a53cf7e6bd1318ef9e | refs/heads/master | 2023-02-11T02:24:07.782717 | 2020-12-23T12:29:46 | 2020-12-23T12:29:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import json
payload='{"assetId":10}'
body='{"name":"Prueba"}'
def json_load_byteified(file_handle):
return _byteify(
json.load(file_handle, object_hook=_byteify),
ignore_dicts=True
)
def json_loads_byteified(json_text):
return _byteify(
json.loads(json_text, object_hook=_byteify),
ignore_dicts=True
)
def... | [
"gustavo@nalabs.io"
] | gustavo@nalabs.io |
348e8867c5eac121bb77e878052e88b79e701348 | 4edba43e7b6bd979e5389b9b7f01abc6f3fba247 | /survival analysis.py | e09b422cee84e96dcab3231198eb52ca55fe3f48 | [] | no_license | inbaa/Big_data | 4eca7d221b8c8f4f2b37aba331134fc6d8c724fe | fdbbf910c77d86b7b08b2be7a913295b749af87f | refs/heads/main | 2023-02-02T00:18:25.652228 | 2020-12-16T14:09:52 | 2020-12-16T14:09:52 | 310,806,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from lifelines import KaplanMeierFitter
# load dataset
data = pd.read_csv("lung.csv")
# print(data.head())
# print(data.columns)
# data.info()
# print(data.describe())
# sex distribution histogram
# print(data["sex"].hist())
# plt.sh... | [
"noreply@github.com"
] | noreply@github.com |
0147b6a179ae2b8656bba2b0077a7f694d3554a3 | dbe293cc0c4f593d54f4943e6136f8222fdf787f | /util/jsonfunction.py | 7056f9f3a2ceb2d19e5ce81be21ed6c021d753a2 | [
"Apache-2.0"
] | permissive | gquesnot/BotAi | eb181170782abdb862c17af172fe31a5dabc8671 | 5ebdca312d57a484da99e970b73bcba5a700c5e2 | refs/heads/master | 2023-06-26T23:09:23.494093 | 2021-08-03T12:30:18 | 2021-08-03T12:30:18 | 392,306,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | import os
import json
def getJson(name, directory=""):
directory = "json/" + directory
files = os.listdir(directory)
for file in files:
if name + ".json" in file:
with open(os.path.join(directory, file)) as jsonFile:
data = json.load(jsonFile)
return data
... | [
"gaqu1994@gmail.com"
] | gaqu1994@gmail.com |
c02543ad31376c3ca8be4f60fb119a5173e5513e | 5b4eb35a89a68e19eb2b94817e49de59669be375 | /basic/socket/tcp_client.py | ac300f6c12ad274f89ecacfdcefbe0a54eb7a2f2 | [] | no_license | AdidasOriginals/python-practice | 384fae418e53df375e0bd807324b5909b20d1740 | eb2d5d7dee9c471c2c5d66839e7471eaff593ea0 | refs/heads/main | 2023-03-04T18:09:10.516990 | 2021-02-26T07:27:32 | 2021-02-26T07:27:32 | 335,481,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | #!/usr/bin/env python
# _*_ coding: utf-8 _*_
# @Time : 2021/2/1 17:20
# @Author : Edison
# @Version:V 0.1
# @File : tcp_client.py
# @desc :TCP客户端
# 服务器并没有使用多线程或者异步I/O的处理方式,这也就意味着当服务器与一个客户端处于通信状态时,其他的客户端只能排队等待
from socket import socket
def main():
# 1.创建套接字对象默认使用IPv4和TCP协议
client = socket()
# 2.连接到服务器(需要... | [
"liutao@lrhealth.com"
] | liutao@lrhealth.com |
cc0651944f155718b8bf666b33af4dc9e98e5e3a | 5f0627c06abe22ae25c50b4ec66fb5510e6a4ef4 | /mysite/polls/views.py | 85c850d66cdd97d2f20d4a856a675ab0d18fd009 | [] | no_license | asmao7/cmput404-lab4 | e883760b35b173e5dbde5172d203b70b0af0324b | 33bbd68e8e6524bfcb96ac119e6df3f5d072af0e | refs/heads/main | 2023-03-01T20:37:29.637115 | 2021-02-04T01:57:04 | 2021-02-04T01:57:04 | 335,809,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from .models import Choice, Question
def index(request):
latest_question_list = Question.objects.order_by('-pub_date')[:5]
context = {'latest_question_list': latest... | [
"aaali@ualberta.ca"
] | aaali@ualberta.ca |
9e8684300a753747f2ea81503addd0bd9141eee2 | 7ef5898dc861f7a5512953269db7b52d44f44bc5 | /linkml/utils/validation.py | 02ee97f62911680b3e797aa9db26dcd3bd75f727 | [
"CC0-1.0"
] | permissive | balhoff/linkml | eb5c26e9d8ace3c2a7a6f2f36872b9c2af7b97df | b27c36b24437f68878806518264f55f0f418cb0b | refs/heads/main | 2023-07-28T16:47:04.974232 | 2021-09-09T01:39:21 | 2021-09-09T01:39:21 | 404,550,589 | 0 | 0 | CC0-1.0 | 2021-09-09T01:45:37 | 2021-09-09T01:45:37 | null | UTF-8 | Python | false | false | 1,483 | py | import json
import sys
from typing import Type, Union, TextIO
import logging
import click
import jsonschema
from linkml_runtime.linkml_model import SchemaDefinition
from linkml_runtime.utils.yamlutils import as_dict, YAMLRoot
from linkml_runtime.dumpers import json_dumper
from linkml.generators.jsonschemagen import... | [
"cjm@berkeleybop.org"
] | cjm@berkeleybop.org |
273f4888a203ea14ddd21d9761a93c7258b60b68 | 5f0809a437fe6d12f2b46d08dfe2a4d55a89bbcc | /app/core/management/commands/wait_for_db.py | 42f1fba6d1509ca4f17241b70fc1787b26a9ffa4 | [] | no_license | Ian021/recipe-api | a86bbadfe1d366c233ba57e94688dc20eba95b8c | c439bfb71bbfb2b556f7133752f219ba8d8b3530 | refs/heads/master | 2022-12-14T20:59:24.995146 | 2020-09-10T23:41:45 | 2020-09-10T23:41:45 | 278,719,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | import time
from django.db import connections
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand
class Command(BaseCommand):
"""Django command to pause execution until database is available"""
def handle(self, *args, **options):
self.stdout.write('Waitin... | [
"ianx021@gmail.com"
] | ianx021@gmail.com |
587af0a9afab30d6dbe975f04b48b2543833db22 | 51507929d5bf732e6e5b7085015b86d097fc404d | /python/core/keyset_writer.py | 4e417f4417071723ba236115a738874609d779e8 | [
"Apache-2.0"
] | permissive | jojodeco2/tink | a77be3fd6958070c131f4d556b349b69b65e11cb | 46d4d5d6ff09f594c5460216c5b2cb11486076db | refs/heads/master | 2020-08-04T04:46:05.526255 | 2019-10-01T10:21:02 | 2019-10-01T10:21:02 | 212,011,212 | 0 | 0 | Apache-2.0 | 2019-10-01T04:18:08 | 2019-10-01T04:18:08 | null | UTF-8 | Python | false | false | 3,498 | py | # Copyright 2019 Google LLC.
#
# 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,... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5651d66b1dd3f7adb98ce5c7bc17e2acfe92784a | 174620e5937ac217cfdc46fa1f58493e9d59dfdd | /lib/default/lib/python2.7/site-packages/celery/concurrency/base.py | e0f2eb514c23941ee91fd0003917de8230cc1dac | [] | no_license | Saifinbox/CKANPROJECT | 6552912317019ce7dca87a1367344dbf5d978062 | 89e1cac49b282106ff4595f54a4eb84bcc8d2ee9 | refs/heads/master | 2021-01-01T06:34:37.568829 | 2017-07-17T08:48:46 | 2017-07-17T08:48:46 | 97,453,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | # -*- coding: utf-8 -*-
"""
celery.concurrency.base
~~~~~~~~~~~~~~~~~~~~~~~
TaskPool interface.
"""
from __future__ import absolute_import
import logging
import os
import time
from kombu.utils.encoding import safe_repr
from celery.utils import timer2
from celery.utils.log import get_logger
logger = ge... | [
"muhammad.saif@inboxbiz.com"
] | muhammad.saif@inboxbiz.com |
da3518d81bee465bee82e1d01f3ec1177d8e7199 | d1295ec43356350d903108d56f5064aaafafb753 | /Read_OUT.py | 0027f41bd6d6b446161445292ec27fb173329298 | [] | no_license | Danil-phy-cmp-120/Elast | f1b9445af247377b76479d209eae1b27452163d8 | 83d0a673e75f8ec691c6627489704d4571c93df5 | refs/heads/main | 2023-02-02T06:05:23.582251 | 2020-12-22T13:11:29 | 2020-12-22T13:11:29 | 311,010,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,066 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import os
import sys
from scipy import constants
def get_weight():
MASS = {'H':1.0079, 'He':4.0026, 'Li':6.941, 'Be':9.0122, 'B':10.811, 'C':12.011, 'N':14.007, 'O':15.999, 'F':18.998, 'Ne':20.18, 'Na':22.99, 'Mg':24.305, 'Al':26.982, 'Si':28.086, 'P':... | [
"noreply@github.com"
] | noreply@github.com |
fbe32ea133ee95666e0864e78e25cb6ab7054a43 | aa2dda99a76732f67d1f0e403bbd67980f7e6214 | /Indoor_Deterministic_OfflineTest29Mei.py | 2e6f3d1a8e5c565e3bc846e6350512b098774525 | [] | no_license | OttoCh/WPF | a3b4a76a123987b7c65bb1b1ade5846f0291160a | 8408be18086b5639ca4512f522bed4a7a52cfc23 | refs/heads/master | 2021-01-20T12:21:02.386255 | 2017-08-29T03:16:22 | 2017-08-29T03:16:22 | 101,713,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | #offline Indoor deterministic system (fingerprinting)
#29 mei 2017
#Program ini dibuat untuk mengolah data offline hasil dari percobaan di selasar fisika
#Program ini akan menerima input dari file .txt dan juga referensi data RSSI posisi dari file .txt
#output yang dihasilkan berupa prediksi probabilitas posisi
#Penul... | [
"otto.christianto.oc@gmail.com"
] | otto.christianto.oc@gmail.com |
42170e9a6ac498033863cd27ca0a6556bf1aa6c3 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/apriori_20190422135150.py | 36ae75953708f032ec4b5b046220fb616cdb0b75 | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,768 | py | # Apriori算法
"""
由于Apriori算法假定项集中的项是按字典序排序的,而集合本身是无序的,所以我们在必要时需要进行set和list的转换;
由于要使用字典(support_data)记录项集的支持度,需要用项集作为key,而可变集合无法作为字典的key,因此在合适时机应将项集转为固定集合frozenset。
支持度
置信度
"""
class apriori_algorithm:
# 算法初始化
def __init__(self, minSupport, dataSet):
self.minSupport = minSupport # 最小支持度
sel... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
9411ef0236ec0ef9baedddd1d0aee768b83a3a44 | a15d0ff1c2d5eae9f223d70fa74391ed9233a338 | /utils/pagers.py | 5d6686cc7b23a3e40e5a02068010920e7432c61b | [] | no_license | HuaDD/crm | d21ee68b14ecda85b389248aa162979789fc1e4f | 1b1b8a40e0952df3a61823ee2f12bf0a4f7817e5 | refs/heads/master | 2020-04-07T22:40:36.860146 | 2018-11-27T07:29:49 | 2018-11-27T07:29:49 | 158,780,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
class Page_Info:
def __init__(self, current_page, all_count, per_page, base_url, show_page=11):
try:
self.current_page = int(current_page)
except Exception:
self.current_page = 1
self.per_page = per_page
page_num, s... | [
"158@163.com"
] | 158@163.com |
e7beea6a20b1160d41261c042760fcdd416a4503 | d861a2c638c0cb5c20ef9d3be5955b1c02b042e0 | /Training models/coordinates_extraction.py | 52c1aba6805b3da3c110c55d5a816658e5ee1b08 | [] | no_license | ElvinJun/DeepPBS | 826d3d55493a0c7a204004167201fa649e076e8d | 4a8a1361a4672159689f629dedc467d72b4897eb | refs/heads/master | 2021-07-12T17:50:46.808983 | 2021-04-20T07:48:18 | 2021-04-20T07:48:18 | 243,705,058 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | import os
import pathlib
import numpy as np
def extract_cif(path, filename):
with open(os.path.join(path, filename), 'r') as file:
message = file.readlines()
coos = []
for line in message:
line = line.split()
if line[3] != 'CB':
x = line[10]
y =... | [
"noreply@github.com"
] | noreply@github.com |
9d8c1186c7ca74249dc1d1313b45dab9687f4746 | 227582d196ce6708da9af5825212ff373a147274 | /Element_Formulations.py | ff12eff9ee4889d4ffb9eb2cdb9c27703faa241e | [] | no_license | eivindhugaas/FEA_program | 2fa1fa27776a4401c13fb7fb735d9774deeba3f8 | 24eedb5e1d925a8a51f5dbef261f1019177cbcd2 | refs/heads/master | 2021-10-02T07:14:09.604618 | 2018-10-09T07:34:37 | 2018-10-09T07:34:37 | 125,865,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,725 | py | import numpy as np
from FEAFunctions.FEAFunctions import FEA as fea
fea=fea()
'''
This script gives reaction force in one single hexahedral 3D 8 node element using three different element formulations:
- 8 integration points (full integration) using the principle of stationary potential energy.
- 1 integration point... | [
"36841103+eivindhugaas@users.noreply.github.com"
] | 36841103+eivindhugaas@users.noreply.github.com |
a07f2a35a5b3efeb0be08d7869337ac2d6e3a50f | 2830ae93146495f5591b80b77130da4b80da7f6f | /Cat_OR_Dog.py | ed741fbbfe3e4f779c818691d8c067846d68004d | [] | no_license | Imran-nazeer/Cat-or-Dog | 1a97dd2619380f76feeb1ff4de6f8c3b94776f56 | 76493c928e93e7a316f01f266e0c924c673386f6 | refs/heads/master | 2020-12-02T10:31:34.065741 | 2019-12-30T21:19:09 | 2019-12-30T21:19:09 | 230,980,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py |
# Part 1 - Building the CNN
# Importing the Keras libraries and packages
from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from keras.layers import Dense
# Initialising the CNN
classifier = Sequential()
# Step 1 - Convolution
... | [
"noreply@github.com"
] | noreply@github.com |
aa13bd841c98bf69edc143608a0dcaf19c026204 | 4cfbc12903651dedbc799f53a8078433196e7919 | /Pre Processing/Topic 7 - Kernal PCA/KERNEL_PCA_WITHOUT_SPLIT.py | 6974fa581f4052b61770920b3c784ba26c4341c3 | [] | no_license | gautam4941/Machine_Learning_Codes | 78bf86ab3caf6ee329c88ff18d25927125627a2c | 0009d12ca207a9b0431ea56decc293588eb447b1 | refs/heads/main | 2023-02-06T18:05:44.154641 | 2023-01-30T17:04:25 | 2023-01-30T17:04:25 | 353,594,523 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | import pandas as pd
data = pd.read_csv('Social_Network_Ads.csv')
print( f"data :- \n{ data }\n" )
print( f"data.columns :- \n{ data.columns }\n" )
x = data.loc[ :, 'Gender' : 'EstimatedSalary' ]
y = data.loc[ :, 'Purchased' ]
print( f"x.isnull().sum() :- \n{ x.isnull().sum() }\n" )
print( f"y.isnull().su... | [
"noreply@github.com"
] | noreply@github.com |
e33e3af781a4af593bf78acc8dc4120f93f12313 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/wellf.py | 01d938845a41da448d3678520087a53125ba2d11 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 141 | py | ii = [('RoscTTI3.py', 1), ('MedwTAI.py', 1), ('WadeJEB.py', 2), ('DibdTRL.py', 1), ('FitzRNS2.py', 1), ('HogaGMM2.py', 1), ('BeckWRE.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
1d698ea6a946f54475b90a8b3394eff5b5460161 | 4f740158b55850e7029e4a4e19780a81549f5ad4 | /original/wp-includes/feed-atom.py | b0b3cebbf3c36c5c7b8187165b82b270dd6567fb | [] | no_license | dellelce/woppy | 540b52a7783a701e675df566e78ab7e07334f614 | 341bef57b43b46a3506a8fe5046aa71624f5eb02 | refs/heads/master | 2021-01-22T12:02:23.522892 | 2019-03-12T15:11:42 | 2019-03-12T15:11:42 | 11,080,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
header("Content-Type: "+feed_content_type("atom")+"; charset="+get_option("blog_charset"), True)
more = 1
print("<?xml version="1.0" encoding=""+get_option("blog_charset")+""?"+">")
print("<feed\n xmlns="http://www.w3.org/2005/Atom"\n xmlns:thr="http://purl.org/syndication/thr... | [
"adellelce@hotmail.com"
] | adellelce@hotmail.com |
14eab72baf2e987e62f17a2259e17e1057343f12 | 293247b29c1cb4823cb9694860e44adb4ac5846d | /lib.py | eb25e21cea071a6aeaf6ddfdb922f0ba04f86a11 | [] | no_license | cwyl02/word-count | bfb40da5725974247f83078b0f31fe769450c24c | 3c2c6ff89327f9d51de627360be72f6eb3945610 | refs/heads/master | 2023-03-01T04:25:47.990306 | 2021-02-10T05:10:08 | 2021-02-10T05:10:36 | 336,875,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from collections.abc import Iterable
def calculate(input_iter: Iterable) -> int:
word_count = 0
for line in input_iter:
word_count += count_word(line)
return word_count
def count_word(line: str) -> int:
words = line.split()
return len(words)
| [
"york.chen.hz@hotmail.com"
] | york.chen.hz@hotmail.com |
6aa9d0fb579430211f8e0b9a378ec0e2f1779e8b | ab494b52b1ed141b3f06af254c2271f7eab43af8 | /Django/Django_Intro/Time_Display/timedisplay/timedisplay/urls.py | 60ee53d5d8433d9c296bd5846ed35bd8187b5af4 | [] | no_license | richminlee/Python_Stack | 4c22891e63ead8c502d4cc3e551d34d0da00324b | 8fcaf28eb95b1ea6d8a4b397ddba8a6798a844e0 | refs/heads/master | 2022-06-02T15:16:55.911338 | 2020-05-05T01:16:38 | 2020-05-05T01:16:38 | 261,333,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from django.urls import path, include
urlpatterns = [
path('', include('time_display.urls')),] | [
"lee.richardm@gmail.com"
] | lee.richardm@gmail.com |
f0301bbd559405a5974a42522f7786833d95dfb0 | 5dc3639ebd7381a0ef17711598a3d9777fba9102 | /Aula 07/Ex009.py | 93434d9ce69f77222ec6f1a8357fb1c8170bf24d | [] | no_license | diegopnh/AulaPy2 | 53e389536c0c9bc793b298277f8433d6ef92ee27 | d40911b325ea707899fe82c7e91a68e52d145c2c | refs/heads/master | 2022-11-17T15:45:32.048258 | 2020-07-11T04:45:19 | 2020-07-11T04:45:19 | 269,830,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | a = int(input('Digite o número que você quer a tabuada: '))
print('{} x {} = {}'.format(a,1,a*1))
print('{} x {} = {}'.format(a,2,a*2))
print('{} x {} = {}'.format(a,3,a*3))
print('{} x {} = {}'.format(a,4,a*4))
print('{} x {} = {}'.format(a,5,a*5))
print('{} x {} = {}'.format(a,6,a*6))
print('{} x {} = {}'.format(a,7... | [
"diegopnh@github.com"
] | diegopnh@github.com |
9414d045e5d47c04d4503169647515fc1145c0f2 | 37a7f5db37d3acf10bf01613b50240c2cae9aff6 | /robot.py | 304bbcbecb98f7a810b82ead80a901728d0ea968 | [] | no_license | SnovvyOwl/KHU_KongBot1 | 9377d3046c60f5818e51f946e1f149819838a41b | 5c3365a9e6785514d87151e5e1e9cd9d1e92264f | refs/heads/main | 2023-06-15T23:39:42.258850 | 2021-07-12T07:17:11 | 2021-07-12T07:17:11 | 385,155,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | import motor
import sensor
class Master:
def __init__(self):
self.gyro=sensor.Gyro()
self.PLServo=motor.Servo(14,6.77)
self.PRServo=motor.Servo(12,6.77)
self.CamServo=motor.Servo(19,6.77) #NO PWM CHANNEL
self.from_client=[0,0,0,0,0,0,0,0,0]
self.CprevEr=0
sel... | [
"owl0614@naver.com"
] | owl0614@naver.com |
dbb1dad324fd58d7f4de5dff10e05897c96f914d | 73a5b04df64fd247facc8db96bf8691a5b8a4118 | /.vscode/ProgrammingConcept/checkEvenOdd.py | eba89746114a7a843b5c81835ef0bac192856156 | [] | no_license | skamjadali7/Python-Programming | 2803314288c4eb28bd008f940dbcebfe43c5b2b5 | cce7078cfe7256527749af734c98ab5bc8cfa51f | refs/heads/master | 2022-12-05T18:21:51.313830 | 2020-08-27T18:36:11 | 2020-08-27T18:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | def EvenOdd(n):
#Declaring EvenOdd Function with parament as n in it
if n%2==0:
print("Number {} is even".format(n))
else:
print("Number {} is odd".format(n))
#Calling above EvenOdd Function with argument
EvenOdd(5)
EvenOdd(4) | [
"amjad.shaikh@indusface.com"
] | amjad.shaikh@indusface.com |
e38fb54c09c546aaa256ab269a24c5dd75f7081e | 6196bd9ebb26af3ef559a73e73a5af9c918bc6b6 | /backup_lstm.py | 71d90ff86e89cd366e22ba799dfa165462a63ee2 | [] | no_license | leanpha/P_LSTM | 2080e3b4a9c578caeb4096a84609d83049e82131 | 7e71774a6851283ea9dabb8516332e55c8ffa48c | refs/heads/master | 2021-09-24T07:25:48.919478 | 2018-10-05T09:14:56 | 2018-10-05T09:14:56 | 116,152,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,192 | py | # Credit: Perform sentiment analysis with LSTMs, using TensorFlow - Adit Deshpande @ O*Reilly
# customized by HoangNguyen
#
# IMPORT LIB
# =========================================
import numpy as np
import tensorflow as tf
import collections
# import matplotlib.pyplot as plt
import re
# enable logging
tf.logging.se... | [
"leanpha@phuyen.edu.vn"
] | leanpha@phuyen.edu.vn |
f908787619c08ee875c9a17ad5e73728c6ae5708 | 42de90de47edff1b3d89d85d65e05b1adfe15689 | /SanityTests/ARCHIVE/Harvester/tests/steps/sanity_check.py | c634e8088588565601c016f4a1cb535441d8c725 | [] | no_license | ahalester/IRM_CI_F2F_2018 | f9549b519a75d589a352a87c4c509c2eb03d5a12 | 61921c2ce9f8e08abf1477eaa87c259c2255d1a2 | refs/heads/master | 2021-07-21T09:50:31.159107 | 2019-11-21T18:22:25 | 2019-11-21T18:22:25 | 223,235,940 | 0 | 0 | null | 2020-10-13T17:39:11 | 2019-11-21T18:14:49 | Java | UTF-8 | Python | false | false | 5,861 | py | from behave import *
from hamcrest import *
from ConfigParser import *
from utils import fs, console
import os
import re
import psutil
import requests
import xml.dom.minidom
import cx_Oracle
# --------------------------------
# Given's
# --------------------------------
@given('I have in... | [
"ahale@anhydrite.cv.nrao.edu"
] | ahale@anhydrite.cv.nrao.edu |
cfb83bb056e3c43239de5025f6fb5ae8dba0edec | 2bedb17a7eb18c47d61128464ca9d3b0eece1455 | /usuarios/models.py | b7ddc8d8844119edab19c217eac175e9d7bca445 | [] | no_license | ISPM-Benguela/escolari | a520b8425c46ef79f4b96e6b4e4f0dc0ef5bc80d | c1d59df088f3e67e1f63ab1c30127b54aeb042c8 | refs/heads/master | 2020-04-08T20:28:41.918361 | 2019-02-10T09:02:26 | 2019-02-10T09:02:26 | 159,700,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from departamentos.models import Departamentos
from disciplinas.models import Disciplina
from salas.models... | [
"jose.tandavala@gmail.com"
] | jose.tandavala@gmail.com |
856d1182ec17e0160261439495d9ac3909a68d26 | 0f9d90476e950cb6c383c94f1e151b0314523f3e | /bifrost.py | f2432d0d78bbd0d08c239458c0dece3123b95796 | [
"MIT"
] | permissive | pedrofausto/bifrost | e5a55cca99701dc989cd9384abe5ee64a2e102d7 | 6bc4ae9cb97b9f30ae6f6ac5ef16db3657cfaeb4 | refs/heads/master | 2020-12-25T17:17:20.530645 | 2014-05-20T00:12:33 | 2014-05-20T00:12:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,449 | py | #!/usr/bin/env python
#
# 88 88 ad88 88 88
# 88 "" d8" "" "" ,d
# 88 88 88
# 88,dPPYba, 88 MM88MMM 8b,dPPYba, ,adPPYba, ,adPPYba, MM88MMM
# 88P' "8a 88 ... | [
"jseidl@wroot.org"
] | jseidl@wroot.org |
febef6fc2172681866a7e8db9712cb4f44ba813f | cfd7c85c7512e4ffa27e921fad7b12313f6aa92a | /whatsappbot/manage.py | 9a2964f87023101e58e172ec30373a41029163d4 | [] | no_license | KIngSimeone/whatsapp-bot | d76df21da4cde1b4362c3132fe2a7bbc59eec1aa | db9f3b714009af3a3b75fd09cd4807a2ed1c05de | refs/heads/main | 2023-07-05T19:23:14.262880 | 2021-08-29T16:28:53 | 2021-08-29T16:28:53 | 400,136,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'whatsappbot.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"simeoneumoh@outlook.com"
] | simeoneumoh@outlook.com |
52e9d35294294a85212a99f7b76edae30d26f647 | 684277301b83dd8a73a8c9e73fc80dabd117782c | /read_HIK_Cam/read_save_cam.py | 60cb75d1293aac4381f6f6e038ba1890a6773908 | [] | no_license | Tr33-He11/HIK_FaceDetec_DL_System | c8b4f9ffaf3003d65ba7248a8f22a96c9ef6edac | 8c0417e93f896526cd35714f3e439b0ee3c42017 | refs/heads/master | 2020-08-20T08:25:47.263797 | 2018-01-09T09:07:19 | 2018-01-09T09:07:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # coding=utf-8
import os
import shlex
import subprocess
source = "rtsp://admin:520douxiao@192.168.199.64/Streaming/Channels/1"
cam_save_dir = "/data/视频/HIK_cam"
if not os.path.exists(cam_save_dir): # 如果保存文件路径不存在就创建一个
os.makedirs(cam_save_dir)
cmd = "ping -c 1 192.168.199.64"
args = shlex.split(cmd)
try:
subp... | [
"sunshine.dxiao@gmail.com"
] | sunshine.dxiao@gmail.com |
390521d51946954e2ee7afde08afbdd8c090143e | 2c6e7f3ebb57322f2b7e4389fecc6b0943253092 | /tests/test_cli.py | b62e6690e4d708a9a206cd1cd0a74fd682f2939e | [
"MIT"
] | permissive | Adaephon-GH/i3configger | d70d66a87071eec721444d787f9ae087f46f658f | 2411b579557a4404afa26efa4afe0a37d16f1f0d | refs/heads/master | 2021-01-24T07:20:11.015812 | 2017-06-04T12:39:10 | 2017-06-04T12:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import pytest
from i3configger import cli, exc
@pytest.mark.parametrize(
"args,exp",
(
([], True),
([''], False),
(['dunno'], False),
(['select-next'], False),
(['select-previous'], False),
(['set'], False),
(['select'], False),
# TODO do I want... | [
"oliver.bestwalter@avira.com"
] | oliver.bestwalter@avira.com |
75683d574fd6fafc97d6262c264e53f43ff0a56b | 19ee7dd974ba8b1731e9450c174df7630f63eaad | /Api/recognition/serializers.py | bc1cd767bbebc3dcfc9d20d425f5e7079f0f1748 | [] | no_license | minjjjae/No-Mask-Trace-System | 12d3a5a146f5526b9dbba5a8b75d6adc6c8a2e2b | 61c76197d7ae921823b795effd9f267c92016a97 | refs/heads/main | 2023-01-19T08:35:19.643717 | 2020-11-28T05:27:52 | 2020-11-28T05:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from recognition.models import Recognition
from rest_framework import serializers
class RecognitionSerializer(serializers.HyperlinkedModelSerializer):
image = serializers.ImageField(max_length=None, use_url=True)
class Meta:
model = Recognition
fields = ("pk", "encodeLst", "description", "cre... | [
"bhj1684@naver.com"
] | bhj1684@naver.com |
19b16e038e42e69f3f52b17764d02d98614b0c87 | 364b36d699d0a6b5ddeb43ecc6f1123fde4eb051 | /_downloads_1ed/fig_XD_example.py | 6e7d5247c12d7f1e576f8087307c0067916096aa | [] | no_license | astroML/astroml.github.com | eae3bfd93ee2f8bc8b5129e98dadf815310ee0ca | 70f96d04dfabcd5528978b69c217d3a9a8bc370b | refs/heads/master | 2022-02-27T15:31:29.560052 | 2022-02-08T21:00:35 | 2022-02-08T21:00:35 | 5,871,703 | 2 | 5 | null | 2022-02-08T21:00:36 | 2012-09-19T12:55:23 | HTML | UTF-8 | Python | false | false | 3,918 | py | """
Extreme Deconvolution example
-----------------------------
Figure 6.11
An example of extreme deconvolution showing a simulated two-dimensional
distribution of points, where the positions are subject to errors. The top two
panels show the distributions with small (left) and large (right) errors. The
bottom panels ... | [
"vanderplas@astro.washington.edu"
] | vanderplas@astro.washington.edu |
125bfeb5798b8a0418f73d6cee3d6dd29ea1cdc5 | fc9e52fef1b2aae99228057f17bf3c9905339349 | /Ch15/mrMean.py | 5e207e06ad7de0bc1df35cab75864e3ec8404d1c | [] | no_license | apollos/ML_practice | 0e5f349c31c0653049836eab4186e4a03d109c11 | 411e7acdfc619e3081c5319d1e851bedd771934d | refs/heads/master | 2021-01-10T13:52:44.390855 | 2017-05-04T14:59:32 | 2017-05-04T14:59:32 | 52,074,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | '''
Created on Feb 28, 2011
@author: Song Yu
'''
from mrjob.job import MRJob
class MRmean(MRJob):
def __init__(self, *args, **kwargs):
super(MRmean, self).__init__(*args, **kwargs)
self.inCount = 0
self.inSum = 0
self.inSqSum = 0
def map(self, key, val): #nee... | [
"apollos521@gmail.com"
] | apollos521@gmail.com |
734d0e6668678bfef1bf6ac219ac31757539a094 | fc315f721cff8c2f75374d5ce1788a5b8a7e3c05 | /match_yao/build_people_db.py | ff3afb103e24ca3a28bfb50ab40d20c9d5c1be91 | [] | no_license | yymao/kipac-tea-maker | a16053dda6b5c42d2945a12e7c95ae65ac991e4c | ea0c5237d597d9865ab0c2d934c3db0efce58a72 | refs/heads/master | 2020-04-15T18:19:49.303992 | 2015-10-03T16:35:56 | 2015-10-03T16:35:56 | 19,957,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | from match_lib import *
import cPickle as pickle
url_base = 'http://export.arxiv.org/api/query?search_query=cat:astro-ph*+AND+au:%s&max_results=50&sortBy=submittedDate&sortOrder=descending'
with open('../kipac-people/people.pkl', 'r') as f:
people = pickle.load(f)
new_people = []
for person in people:
root =... | [
"maomao.321@gmail.com"
] | maomao.321@gmail.com |
efd3596b14e13f91b5ed38a9a173426b62d558e2 | a78ed689af684134c604d72441c36e1203398bed | /Data/InterestRate.py | 2274ea38ff4d6ef97810daa6847367b887f28c5b | [
"Apache-2.0"
] | permissive | kancheng/FinMind | 60ce727d45716cd657ce6f188e2415801c7f41b1 | 751e9add737d1cabaebe4445e7e0096b22b3f5bf | refs/heads/master | 2020-06-18T20:52:20.336358 | 2019-07-09T12:31:31 | 2019-07-09T12:31:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py |
TABLE = 'InterestRate'
import os, sys
import platform
if 'Windows' in platform.platform():
PATH = "\\".join( os.path.abspath(__file__).split('\\')[:-1])
else:
PATH = "/".join( os.path.abspath(__file__).split('/')[:-1])
sys.path.append(PATH)
from BasedClass import Load
class ClassInterestRate(Load):
def _... | [
"sam.lin@tripsaas.com"
] | sam.lin@tripsaas.com |
6508b6eae18f254c28dd6343bef32cd4b4afd295 | 61fa932822d22ba480f7aa075573e688897ad844 | /simulation/decai/simulation/data/imdb_data_loader.py | fbc6d62dc1165cc5a608c3003156977db751c917 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/0xDeCA10B | a8f118fa1f89f387a0b83f297250fc1846521f41 | 4066eeb2b5298c259a7c19c4d42ca35ef22e0569 | refs/heads/main | 2023-07-26T08:09:34.718104 | 2023-01-25T12:47:17 | 2023-01-25T12:47:17 | 181,561,897 | 538 | 133 | MIT | 2023-07-19T03:10:38 | 2019-04-15T20:37:11 | Python | UTF-8 | Python | false | false | 1,778 | py | from dataclasses import dataclass, field
from logging import Logger
from typing import List
import numpy as np
from injector import ClassAssistedBuilder, Module, inject, provider, singleton
from keras.datasets import imdb
from .data_loader import DataLoader
@inject
@dataclass
class ImdbDataLoader(DataLoader):
"... | [
"noreply@github.com"
] | noreply@github.com |
e55d846ca1118bb4b0ffbdfce069db84d56d53ed | 775c898e4a61c6429f75efa36565452dadc6b824 | /questions.py | 550e5cbc710c89579f43660d8cdc5250e117e6c3 | [] | no_license | Lambtsa/math-game-python | e2013dbbf429f469cb1e17f4de43c3ddc330e6c3 | 66974f156042374cce993919b5f8c322998fb723 | refs/heads/master | 2023-05-30T14:37:19.087297 | 2021-06-23T16:37:35 | 2021-06-23T16:37:35 | 379,655,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | class Question:
answer = None
text = None
def __str__(self) -> str:
return f'{self.text}'
class Add(Question):
def __init__(self, num1, num2):
super().__init__()
self.text = '{} + {}'.format(num1, num2)
self.answer = num1 + num2
class Multiply(Question):
... | [
"42414095+Lambtsa@users.noreply.github.com"
] | 42414095+Lambtsa@users.noreply.github.com |
d566d16b56c6a5020fd6c5e9ae501627d36b5c6d | 90bcb21ff3dc56e1ce742f8e3a679d7db7ad5e9a | /models/models.py | 5b856c461c5bcbe27d7a41d1f1e5f0a8428940c5 | [
"MIT"
] | permissive | raghavchalapathy/oc-nn_old | 0ee465e03a2510e72b222e6f05d06d5774629490 | e2c6c49b414e2d67a04a6f3e57e1802ea4d82996 | refs/heads/master | 2021-10-10T15:19:00.696183 | 2019-01-12T20:07:27 | 2019-01-12T20:07:27 | 108,765,892 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | import numpy as np
import pandas as pd
from sklearn import utils
import matplotlib
dataPath = './data/'
def func_getDecision_Scores_USPS():
print "func_getDecision_Scores_USPS file ....."
return
def func_getDecision_Scores_FAKE_NEWS():
print "func_getDecision_Scores_FAKE_NEWS file ...... | [
"raghav.chalapathy@gmail.com"
] | raghav.chalapathy@gmail.com |
b94c7794752b19ca740b398a5537aadc53b05234 | ce05a73f7162eb98007f6187618c88fdc8f661ff | /subtitles/migrations/0001_initial.py | 0ddd2fbfff8e04f8f3435e3ee02617626b2d884c | [] | no_license | jadolg/SubsCafe | 41511b821bbc6f957e744b21436b8fc1789bee4d | 41ddd394f656acca288b116f9823208965453d4e | refs/heads/master | 2020-06-14T22:31:14.017448 | 2017-02-12T02:45:43 | 2017-02-12T02:45:43 | 75,403,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-11 15:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Subtit... | [
"diazorozcoj@gmail.com"
] | diazorozcoj@gmail.com |
b5f2692aeda1272798fbe9e2b8bec018f8a62020 | 778ac16b20768ff801cb1fc94b352914e0ff0544 | /setup.py | 78f93fbedc25397d1a66afd229b90fde2923b8f1 | [
"MIT"
] | permissive | fifteenhex/PyLX-16A | 5ab74e35c1a9d4e23cf9752934cfdeae7652d19d | ab1c61270185d57618aa4a3b2006b8135830fd5c | refs/heads/master | 2020-04-23T16:36:20.236632 | 2020-03-02T11:02:55 | 2020-03-02T11:02:55 | 171,303,821 | 0 | 0 | null | 2019-02-18T14:59:06 | 2019-02-18T14:59:05 | null | UTF-8 | Python | false | false | 216 | py | from setuptools import setup
setup(name='lx16a',
version='0.1',
author='Ethan Lipson',
author_email='ethan.lipson@gmail.com',
license='dunno',
packages=['lx16a'],
zip_safe=False)
| [
"daniel@0x0f.com"
] | daniel@0x0f.com |
daf6299762e39365d4e0099a36ae78a1a59bcd0a | 6ec91b363b077bffd33f15300a0935124e9fb915 | /Cracking_the_Code_Interview/Leetcode/3.String/290.Word_Pattern.py | 766301dce21b1c686fdd7e0e347044af480ca094 | [] | no_license | lzxyzq/Cracking_the_Coding_Interview | 03232515ae8eb50394d46322d36b230d1a626fcf | 79dee7dab41830c4ff9e38858dad229815c719a0 | refs/heads/master | 2023-06-05T19:52:15.595289 | 2021-06-23T22:46:02 | 2021-06-23T22:46:02 | 238,068,000 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | '''
@Author: your name
@Date: 2020-06-09 17:21:16
@LastEditTime: 2020-06-10 12:19:27
@LastEditors: Please set LastEditors
@Description: In User Settings Edit
@FilePath: /Cracking_the_Code_Interview/Leetcode/String/290.Word_Pattern.py
'''
# Given a pattern and a string str, find if str follows the same pattern.
# Here f... | [
"lzxyzq@gmail.com"
] | lzxyzq@gmail.com |
4f2bfcabffed6ee871b076422fe3880a1532abdd | afdf221c5b4534a2263efea0a2ada279e6bb10f3 | /tests/test_models.py | e1c2aa30ec91eea529508cb6fe6d8cb34f1c2186 | [] | no_license | timbueno/fiddlersgreen | 84185a8635acf574e7dc6af832767691c686ac1a | 56615d46c1e03c79e0ee11243edbc6e04e928375 | HEAD | 2016-09-09T23:25:38.409625 | 2015-04-03T01:53:09 | 2015-04-03T01:53:09 | 32,966,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | # -*- coding: utf-8 -*-
"""
fiddlersgreen.tests.test_models
~~~~~~~~~~~~~~~~~
model tests
"""
import time
import pytest
from fiddlersgreen.models import User, AnonymousUser, Role
@pytest.mark.usefixtures('db')
class TestUser:
def test_get_by_id(self, user):
retrieved = User.query.get(user... | [
"timbueno@gmail.com"
] | timbueno@gmail.com |
90d4521c05fa8694e637108f719918c603ba6b67 | 0c73d5bfb9aeece34d097e5d0e991dff1408860a | /releasible/github.py | 3c4528e7a84b449a33a1015a945d2e2f5b1414d9 | [
"MIT"
] | permissive | relrod/releasible | ce495cdf0a3a4d577caaf52fa97794c9627f8bf9 | 4fd16bc5786c4557dc7b17ba44710fddb5d515f5 | refs/heads/master | 2023-07-29T10:11:29.351428 | 2021-04-06T18:40:14 | 2021-04-06T18:41:39 | 340,859,856 | 0 | 1 | MIT | 2021-09-10T16:52:24 | 2021-02-21T09:10:12 | Python | UTF-8 | Python | false | false | 1,887 | py | import re
class GitHubAPICall:
def __init__(self, token, aio_session):
self.token = token
self.aio_session = aio_session
self.link = None
self.calls = 0
async def get(self, endpoint, json=True):
print(endpoint)
async with self.aio_session.get(
endpoi... | [
"rick@elrod.me"
] | rick@elrod.me |
de9f85a6afffab438d84d1d83c1d3faaad9acee0 | 1b0e5d24269e6ce019b9cd5f0f25fdfc90294e87 | /mysite/polls/tests.py | 484fc1ec18468ad2871dc08edeae078c46e44e1d | [] | no_license | amanishimwe/mysite | a9e3539c1c19c48caf8e4931fd35962eb78cd57c | 3e5fae8034965021a03958c950f194ef14851305 | refs/heads/master | 2023-02-08T06:33:18.847614 | 2020-12-28T19:20:05 | 2020-12-28T19:20:05 | 325,092,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,563 | py | from django.test import TestCase
import datetime
from django.utils import timezone
from .models import Question
from django.urls import reverse
# Create your tests here.
def create_question(question_text, days):
""" Create a question with the given 'question_text' and published the
given number of 'days' offs... | [
"alban.manishimwe@gmail.com"
] | alban.manishimwe@gmail.com |
6f8c4f4ccb1e05de4880c876fe4835b489fa5a94 | 00d8e3f95516dba6bf4a688f889ebf251f10ea6d | /face_recognition/prepare_data/gen_PNet_tfrecords.py | 8ae1788b5cf9eeaa59c687a5753038398117868b | [
"Apache-2.0"
] | permissive | 1160300614/faceRecognition | 7015efdd4a4d31e8f15759e8171b2dd721ff87c0 | c1470c13c82db071b04c62244e5b7d28e026c030 | refs/heads/master | 2022-10-09T12:11:50.328357 | 2020-06-12T01:34:55 | 2020-06-12T01:34:55 | 271,447,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8a4275bea79f8915dc85d0535a3a7f13ef389384b3fb4fed867e0d36f406dd7f
size 4564
| [
"guanqiao000@163.com"
] | guanqiao000@163.com |
cbb9422f0b2cd4ef151418716fb78d78a14bcad9 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/3d_detection/BEVFormer/pytorch/mmdetection3d/mmdet3d/datasets/nuscenes_dataset.py | 47d6e15ed9aec63b17e5b80955dd4cb32ba04939 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 26,116 | py | # Copyright (c) OpenMMLab. All rights reserved.
import tempfile
from os import path as osp
import mmcv
import numpy as np
import pyquaternion
from nuscenes.utils.data_classes import Box as NuScenesBox
from ..core import show_result
from ..core.bbox import Box3DMode, Coord3DMode, LiDARInstance3DBoxes
from .builder imp... | [
"mingjiang.li@iluvatar.ai"
] | mingjiang.li@iluvatar.ai |
890029df9d4976d1bfd3c218d797be6666e56f9a | 74e503994ccd867d5acf1c76e5637f1f0c5117ef | /html2obj/lib/hobj.py | c8f2cd2f7ed6d9e8765eedf282da8b34bf329566 | [
"MIT"
] | permissive | genwch/html2obj | 8bfe644a910ed9ea254612fbdf3626cb5a1ba7c1 | d445c097efe9c78f48fdf0df77f5c6a2785504fd | refs/heads/master | 2023-05-02T03:02:30.191597 | 2021-05-09T16:43:01 | 2021-05-09T16:43:01 | 360,457,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | from abc import ABC
class hobj(ABC):
cols: tuple = ("_attr", "_text", "_i")
def __init__(self, rec: dict):
for k, v in rec.items():
if k == "_tag":
self.__setattr__("_name", v)
elif k in self.cols:
self.__setattr__(k, v)
else:
... | [
"genwch@hotmail.com"
] | genwch@hotmail.com |
908076fe749518b81a5d792a64a0ac250dc8aa67 | 083ca3df7dba08779976d02d848315f85c45bf75 | /LongestSubstringwithAtLeastKRepeatingCharacters5.py | 424c18652d21975839cddc18e43a9e0b3e29a8f8 | [] | no_license | jiangshen95/UbuntuLeetCode | 6427ce4dc8d9f0f6e74475faced1bcaaa9fc9f94 | fa02b469344cf7c82510249fba9aa59ae0cb4cc0 | refs/heads/master | 2021-05-07T02:04:47.215580 | 2020-06-11T02:33:35 | 2020-06-11T02:33:35 | 110,397,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | class Solution:
def longestSubstring(self, s, k):
"""
:type s: str
:type k: int
:rtype: int
"""
i = 0
res = 0
while i + k <= len(s):
if i > 0 and s[i] == s[i - 1]:
i += 1
continue
m = {}
... | [
"jiangshen95@163.com"
] | jiangshen95@163.com |
519c2bc1718d2cd11a51ca45082f36a6e6625f4c | 0c633381e123d26a3b3fc86003a24970b21a5709 | /main/views.py | a13833c9e44ba82b3747b14c836c8fe50f3cbc99 | [] | no_license | brebiv/HeyTam | 466703f56f9078075237173e573e0c3762f7d88a | db9e6c1ef91182dfcbd40b966bc1c07d88103f4a | refs/heads/master | 2022-07-31T19:53:34.329887 | 2020-05-16T15:33:41 | 2020-05-16T15:33:41 | 261,739,465 | 1 | 0 | null | 2020-05-16T15:33:42 | 2020-05-06T11:34:23 | Python | UTF-8 | Python | false | false | 1,331 | py | from django.http import HttpResponse, Http404
from django.shortcuts import render
from .models import Product, Quote, Article
import random
import json
# Views built to work as single page aplication
# index() returns header of the page, FYI it's in main/base.html
# All other functions built to receive AJAX request fr... | [
"brebiv@gmail.com"
] | brebiv@gmail.com |
4a170f8da10696ccdc8a9c787cbca1805d51c1cb | 08bb09d990f4bc90a82594a2161eed025d709f7b | /manage.py | afbb0cdd5fea4ba817815b3c48f73b85005b9630 | [
"X11"
] | permissive | galacticpuzzlehunt/puzzlord | 6e4413cec53bde3f016520a7848df9b482cc9141 | aec59c1e4d671e7f4a06b728409e4e08923a0386 | refs/heads/master | 2023-05-28T13:46:20.013261 | 2023-03-24T15:13:01 | 2023-03-24T15:13:01 | 237,137,193 | 29 | 26 | null | 2023-05-09T22:21:33 | 2020-01-30T04:15:46 | Python | UTF-8 | Python | false | false | 623 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.dev")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErro... | [
"brian.chxn@gmail.com"
] | brian.chxn@gmail.com |
a36fdb13104066756747a6b7823da3c3c4d1b9c0 | 2e35ec2a38e8cbcf8c12e32abf66037ddc7a2eaf | /signalprocessing/settings.py | b79abea0c4056b9117581f9b3913f135503a95fb | [] | no_license | sreejasn7/signalprocessing | fe93416c330758a86561bae1aa4063de8505806a | 2c69dde9934a6d313495a4e2e3d4050ae3ad2c41 | refs/heads/master | 2020-05-02T11:25:15.589526 | 2019-03-27T06:24:27 | 2019-03-27T06:24:27 | 177,928,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | """
Django settings for signalprocessing project.
Generated by 'django-admin startproject' using Django 2.0.3.
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/
"""
imp... | [
"sreeja_n@redbytes.in"
] | sreeja_n@redbytes.in |
2514e06398d1649d7e768e2219aa835bfc94e0c7 | dffd7156da8b71f4a743ec77d05c8ba031988508 | /joi/prelim/2019/yo1c/c.py | 8fa22ad3e7acb87ef87d1e4727e8bf36c56ef603 | [] | no_license | e1810/kyopro | a3a9a2ee63bc178dfa110788745a208dead37da6 | 15cf27d9ecc70cf6d82212ca0c788e327371b2dd | refs/heads/master | 2021-11-10T16:53:23.246374 | 2021-02-06T16:29:09 | 2021-10-31T06:20:50 | 252,388,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | n, *a = map(int, open(0).read().split())
cnt = ans = 0
prev = 0
for i in a:
if prev>i:
ans = max(ans, cnt)
cnt = 0
cnt += 1
prev = i
print(max(ans, cnt))
| [
"v.iceele1810@gmail.com"
] | v.iceele1810@gmail.com |
0f65a9276df606adea2939ddfc94c49913cc6ae4 | 77da2843ef8658fba8ec1459cec3f7c5224db28e | /tinyBlog/__init__.py | c8645196f23d9e0b4233d5ff3c0f35a4647279d8 | [] | no_license | shlliu/tinyBlog | 10180df30c6fa6c0e5a779c9d7b48aca1f919a34 | fa2aa9f9243252395ad6d8204ab6a5817199932f | refs/heads/master | 2021-04-03T04:57:27.956483 | 2018-03-17T14:18:42 | 2018-03-17T14:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from flask import Flask
from flask_mongoengine import MongoEngine
app = Flask(__name__)
app.config["MONGODB_SETTINGS"] = {'DB' : 'my-tiny-blog'}
app.config["SECRET_KEY"] = "ThisIsS3cr3t"
db = MongoEngine(app)
def register_blueprints(app):
from tinyBlog.views import posts
from tinyBlog.admin import admin
a... | [
"johnny.liu@veritas.com"
] | johnny.liu@veritas.com |
2dad3b930588113d2d3c9ee1c85c48d0ef6b339c | c727c07e8560ca938ac0708c8aed755f47e86a1d | /pictureit/search.py | 88296fa606ab3b6bee33161eef587103c147d67d | [] | no_license | starlock/PictureIt | 0272957f8c11e545b439b447700987c9b3bb5423 | a41d93a34d7892386ea409eb816f3a861ce5d5c0 | refs/heads/master | 2021-01-21T06:59:29.606231 | 2013-03-22T14:42:40 | 2013-03-22T14:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import json
from math import floor
from flask import Blueprint, render_template, Response, request
from .image_index import ImageColorIndex
mod = Blueprint("Search", __name__)
image_index = ImageColorIndex()
@mod.route("/")
def index():
return render_template("index.html")
@mod.route("/search", methods=["post"... | [
"william@defunct.cc"
] | william@defunct.cc |
6f7b09b3bc0afa1b87897d8811dee37992af9e92 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil1566.py | adf7d2e0df4b68ca67d20975984b7e68e9320ea4 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | # qubit number=5
# total number=52
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=3
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
9c8c827b0f3203093a67a11c9a59a65143bbb9c5 | 4d7c8a2da7a6d5157d0009859f93b9b63b570a4f | /iomp/hostmanage/migrations/0003_auto_20180412_1419.py | 7f1676e7f9874fbaa22090d822c29799d10ac08e | [] | no_license | dang-1/ioms | e2e11deea527d2878488f7fa9239ff7b9becef43 | c7281efdc4d5ca9026c58519b9b364b1af430835 | refs/heads/master | 2021-04-26T22:55:37.396722 | 2018-08-29T08:46:51 | 2018-08-29T08:46:51 | 123,896,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-04-12 06:19
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hostmanage', '0002_auto_20180412_1415'),
]
operations = [
migrations.RenameField(
... | [
"93651849@qq.com"
] | 93651849@qq.com |
f44472ad1ded764018d0b7bd4319ee41fb0ec7a1 | 476905986cb6609759322ea54e18ede2d9c33237 | /src/gamemap/map_io.py | 4c2152eeb0d6db1159612d99872d1a931090140d | [
"MIT"
] | permissive | davout1806/Hexcrawler | 2fa66edfe60faca12a8156afe7ec9f2ce145939b | 79ca4ab9327abf08de1743612c23eb89aa53a2b9 | refs/heads/master | 2022-11-28T03:56:54.106087 | 2020-08-05T04:40:45 | 2020-08-05T04:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | '''
Created on Jun 6, 2012
@author: Chris
'''
#class MapReader(object):
#'''
#classdocs
# '''
# def __init__(self, filename):
# '''
# Constructor
# '''
# def generate(self):
# return None
#class MapWriter(object):
# '''
# classdocs
# '''
#de... | [
"cfmcdonald78@gmail.com"
] | cfmcdonald78@gmail.com |
118e45dcf19e9f6acc3caea89a3d1c4339815d84 | 764a2ef0a179ab002dad7135f64dbca2eb98a1f8 | /Approach1/simulation.py | c33fe15e2676159e83f6f9e022dcc440e1f8bd66 | [] | no_license | PRONGS-CHIRAG/BIgData-IPL-Match-Simulation | 7c5cef6b8cf8c8f4ffb3b98d7ade1431d7f9a00c | 7f21503774ae99c4bc4a28f7efd58721a7725387 | refs/heads/master | 2020-05-17T17:49:39.937481 | 2019-01-03T07:24:01 | 2019-01-03T07:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,192 | py | import csv
import string
import random
import pandas as pd
import numpy as np
pp_prob=pd.read_csv('/home/anup/bdProject/bd/pp_prob.csv')
batsman_cluster=pd.read_csv('/home/anup/bdProject/bd/batting_cluster.csv')
bowler_cluster=pd.read_csv('/home/anup/bdProject/bd/bowling_cluster.csv')
cluster_prob=pd.read_csv('/home/a... | [
"noreply@github.com"
] | noreply@github.com |
04bcc8816e64b1bbd93b217225ea2e7991c53c7f | c4378845cb7c6d66050975e8375f13c25a117b68 | /ATR/MultiTest.py | f83c528427122f0518ca8bf0c459c5db53d3ceab | [] | no_license | ManuelHuang/allstragety | 0640bbbfd7a044a54a0617b923799d1111f7876e | 5a49e6ae405bb096a4d66650e637d43031bb5b82 | refs/heads/master | 2020-06-11T05:49:21.902324 | 2019-06-27T01:08:13 | 2019-06-27T01:08:13 | 193,866,978 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,314 | py | from ATR import TestStrategy
from ATR_sell import TestStrategy_sell
# from run_sell import TestStrategy_sell
import time
import backtrader as bt
import backtrader.analyzers as btanalyzers
import pandas as pd
import numpy as np
import multiprocessing
from concurrent.futures import ProcessPoolExecutor
import logging
def... | [
"417100727@qq.com"
] | 417100727@qq.com |
2549eab19004369a15d27519ad67845d7a8c6f38 | 39d4cec575eef9bef96bc910b450f6c7a7655b54 | /Python/DetecterMiseEnVeilleParAbsenceActiviteProgramme/DetecterMiseEnVeilleParAbsenceActiviteProgramme.py | 98e0c1ed18c3509ac99f0559675b01aa22eddb50 | [] | no_license | yanndanielou/yanndanielou-programmation | a3cc1f27fc1db55f6223c9f6eedff43a91bfebd0 | f7655f631605d2b9da6cd4fa8aadcf3c9a3518b4 | refs/heads/master | 2023-09-04T10:44:33.405902 | 2023-08-31T12:51:05 | 2023-08-31T12:51:05 | 38,930,671 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | #from pywinauto.application import Application
import pyautogui
#For logs
import LoggerConfig
import logging
import sys
import random
import time
from datetime import timedelta
def infinite_loop_detect_mise_en_veille_par_absence_activite():
duree_attente_theorique_en_secondes = 1
time_before_wait = time.ti... | [
"yanndanielou@users.noreply.github.com"
] | yanndanielou@users.noreply.github.com |
1bca12cfd8bbd19fd19799c976e21e78624bce1d | f7035ec8f66a6a8c02550737775666bb26d2bd1a | /swipeanddine/admin.py | 81f984f48b0f902fea59576013d1d2bc99f4437a | [] | no_license | emukupa/swipe | 8a5757d3163eda0ba727e72e0c34f5112d0be800 | 7759ef88a6f6feab1fdda664129f27d450294734 | refs/heads/master | 2020-03-22T18:53:24.333863 | 2018-07-13T08:01:47 | 2018-07-13T08:01:47 | 140,489,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.contrib import admin
from .models import Category, Food
# Register your models here.
admin.site.register((Category, Food,))
| [
"lilkups@yahoo.com"
] | lilkups@yahoo.com |
c3016792ba2b0329ef1c3a26763b126d4c7298ca | c680279492d759e35c8ff329e16794d9a90c142c | /age.py | d56da1b5107122c7b7d27801fefd26a2773bce84 | [] | no_license | bishnuprasad-sahoo/python | 93613a122d4a1d8d9f63fa430f3ce24d957c6698 | 88ea54083b667378184843cc24bf6a09f1b3258d | refs/heads/master | 2020-07-16T00:49:11.008637 | 2019-09-01T15:39:28 | 2019-09-01T15:39:28 | 205,685,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | #------------------Calculate_your_age-------------------#
current_year = input("Enter Current Year : ")
birth_year = input("Enter your Birth Year : ")
age = int(current_year) - int(birth_year)
print("Your age is : ", age)
| [
"noreply@github.com"
] | noreply@github.com |
4497e161d8e06316103a36d717fe15e66be3c951 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/input/InputSubsystem/JoyInput.py | 03a21fda604012c74ea881e2b4fdb3fcfdc8f167 | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,816 | py | # Embedded file name: scripts/client/input/InputSubsystem/JoyInput.py
import Keys
import BWPersonality
import InputMapping
import math
from MathExt import *
from consts import ROLL_AXIS, VERTICAL_AXIS, HORIZONTAL_AXIS, FORCE_AXIS, FLAPS_AXIS, INPUT_SYSTEM_STATE
from input.InputSubsystem.InputSubsystemBase import InputS... | [
"55k@outlook.com"
] | 55k@outlook.com |
fffebb703d18db82f8c3d83c57c74c26cbb2a5d4 | 1d5c6b57d034f30ce24ba500a4d20b191f16ac43 | /21.py | 4cb91ddc8577e3f7f346641f4aa03994a117a42f | [] | no_license | Meghashrestha/assignment-python | 8d30ebcafc2e11040020ee1150c7f86afdd1504a | 150240ddaa0e166544e1b1539a652a5a1c0f229d | refs/heads/master | 2022-11-09T06:40:30.169973 | 2020-06-28T11:39:19 | 2020-06-28T11:39:19 | 275,571,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | #Write a Python program to get a list, sorted in increasing order by the last
#element in each tuple from a given list of non-empty tuples.
#Sample List : [(2, 5), (1, 2), (4, 4), (2, 3), (2, 1)]
#Expected Result : [(2, 1), (1, 2), (2, 3), (4, 4), (2, 5)]
#tuple inside list
def last(n): return n[-1]
def sort_list_las... | [
"meghashrestha30@gmail.com"
] | meghashrestha30@gmail.com |
9581354839b7fe4db8be1358a1636dfd77cd29b7 | ec8ee805a1cc8fefebdcc7d73d7a6e69c9c6a883 | /issue_tracker/urls.py | 845fd0d12da08ece0fc22273d66eaf40d93928b2 | [] | no_license | Code-Institute-Submissions/p5-issue-tracker | 5b3f8c177fe3ffb833fd754b84a4a63b9764b553 | 4b3a993ae45fbd2e716d727cd11f28169b4246b1 | refs/heads/master | 2020-04-01T05:36:17.361668 | 2018-10-13T20:21:31 | 2018-10-13T20:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | """issue_tracker URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"sarah.loh0708@gmail.com"
] | sarah.loh0708@gmail.com |
7a7b0cb2ba35a1718311a5ace7ffe70e9f8f71bf | 7b221a4981edad73991cf1e357274b46c4054eff | /stacks/XIAOMATECH/1.0/services/NIFI/package/scripts/nifi_cli.py | e82f05e871857ac17cf7d7bf280d1558ca7ca3dc | [
"Apache-2.0"
] | permissive | aries-demos/dataops | a4e1516ef6205ad1ac5f692822e577e22ee85c70 | 436c6e89a1fdd0593a17815d3ec79c89a26d48f1 | refs/heads/master | 2020-05-29T17:20:12.854005 | 2019-05-22T06:06:00 | 2019-05-22T06:06:00 | 189,270,801 | 2 | 3 | Apache-2.0 | 2019-05-29T17:35:25 | 2019-05-29T17:35:24 | null | UTF-8 | Python | false | false | 6,474 | py | import json
import time
from resource_management.core import shell
from resource_management.core.exceptions import Fail
from resource_management.core.logger import Logger
from resource_management.libraries.functions import format
import nifi_toolkit_util_common
def nifi_cli(command=None,
subcommand=Non... | [
"xianhuawei@MacBook-Air.local"
] | xianhuawei@MacBook-Air.local |
786de26045fa9b5a4a8b336c7e583e43c3a72cbf | 8a7b80b41f03096e41601f5628277798b0de1f83 | /Vertice.py | 4eb0158275727d84a040d6505f7fce311e6618a8 | [] | no_license | MathausC/Garfos | 14180f73367e48915fa5bdfdb1732b2a9ca28392 | 8bb86d42c3b5a651ccb2bdc7003a47569005eed9 | refs/heads/master | 2023-08-10T19:19:30.465243 | 2021-09-23T14:19:03 | 2021-09-23T14:19:03 | 409,621,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | class Vertice:
def __init__(self, id="", nome=""):
self.id = id
self.nome = nome
def __str__(self):
return f'{self.nome}' | [
"mathaus.guimaraes@liferay.com"
] | mathaus.guimaraes@liferay.com |
7576a12e0655d60d48e077629a181a2b755c16c6 | 697ac85074fc7ab70bb114cbe8eba2617054654f | /test.py | 034e2a56f47f2c03bb2154c23f9f261f92063bc6 | [] | no_license | cpu-3/asm | 6bf3b8f8b570ff6750e1d7ce95de3e20697d8ce7 | fa0ea62e124c7a267d31e435524a3de58aa3f11d | refs/heads/master | 2021-07-11T00:20:04.967644 | 2019-03-10T17:27:18 | 2019-03-10T17:27:18 | 150,544,549 | 1 | 0 | null | 2018-10-22T09:49:29 | 2018-09-27T07:10:06 | Python | UTF-8 | Python | false | false | 58 | py | from main import *
if __name__ == '__main__':
test()
| [
"moratorium08@gmail.com"
] | moratorium08@gmail.com |
848ad7910f44dcfab14619df8c7cf7ea1cd9e27c | 6f5879d381765e8642aa8f28003bdcc343da3853 | /src/models/usages.py | 182687aa53f87f61822db3b15fab2b201496b411 | [] | no_license | meandevstar/flask-celery | d6bc17024ce635cfd56af6071aec48e580ec2f67 | cfe581c954896e29dbccab98c06c962fb3ed34f7 | refs/heads/master | 2022-01-24T05:00:13.892271 | 2020-02-03T22:16:47 | 2020-02-03T22:16:47 | 238,063,967 | 0 | 0 | null | 2022-01-06T22:42:47 | 2020-02-03T21:17:31 | Python | UTF-8 | Python | false | false | 2,736 | py | """Usage related models and database functionality"""
from decimal import Decimal
from sqlalchemy.sql import func
from src.models.base import db
from src.models.cycles import BillingCycle
from src.constants import SubscriptionStatus
class DataUsage(db.Model):
"""Model class to represent data usage record
No... | [
"aimoko1067@yahoo.com"
] | aimoko1067@yahoo.com |
ef18e320c181d7603f6cc50f8b4c007b64c977e5 | b8d2f095a4b7ea567ccc61ee318ba879318eec3d | /二分查找/287. 寻找重复数.py | 69bdb06bf5dbca40a1db1643ecf3e21552f93868 | [] | no_license | f1amingo/leetcode-python | a3ef78727ae696fe2e94896258cfba1b7d58b1e3 | b365ba85036e51f7a9e018767914ef22314a6780 | refs/heads/master | 2021-11-10T16:19:27.603342 | 2021-09-17T03:12:59 | 2021-09-17T03:12:59 | 205,813,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from typing import List
class Solution:
# 从[1, n]中猜一个数,再遍历一遍原数组
def findDuplicate(self, nums: List[int]) -> int:
n = len(nums) - 1
lt, rt = 1, n
while lt < rt:
mid = (lt + rt) // 2
count = 0
for num in nums:
if num <= mid:... | [
"zsjperiod@foxmail.com"
] | zsjperiod@foxmail.com |
2387db5938512526541f01cbe5de56f2281d0bf3 | b80e407835b55a3a552e9a44a6cb5dd160dca33a | /getTemp.py | 5c6c8f270f60c9519b23b41d6f5efec845331e89 | [] | no_license | Norberg/tempLog | 948c84c58bd8616ee4f5ae49e68afd2ca0b5914b | 27d26504db1d9f325abb603089a2a02faed6a499 | refs/heads/master | 2020-12-30T09:57:39.416642 | 2009-07-14T20:15:05 | 2009-07-14T20:15:05 | 265,543 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import serial, re
def getTemp():
ser = serial.Serial(port="/dev/ttyUSB0", baudrate=9600, timeout=10)
ser.open()
value = ser.readline()
ser.close()
#conversation done acording to maxim-ic documentation for DS18S20
try:
rom = re.split(" P=|R=|CRC=", value)[1]
prog = re.split(" P=|R=|CRC=", value)[2]
TEMP_LSB... | [
"simon@dackbrann.net"
] | simon@dackbrann.net |
9fb262d762a00d209c51b7e69df9ee412cbd5e5b | bb8decee32f0f003c786da760b7e7dc6c7330cb2 | /Page.py | 1357e95a98f31f0e1240e747296891f67afe6bf2 | [] | no_license | IPTNT123/pythonshiyan | 2b5c8b2edaed1f8747a94cd77af605e72e942a4b | 6eed463ee1614753d6b73b65ed4e84be4611346b | refs/heads/master | 2022-11-12T21:42:02.787054 | 2020-07-04T08:41:04 | 2020-07-04T08:41:04 | 275,771,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py | import tkinter as tk
from PIL import Image, ImageTk
import function
global cut
global imgs
global txt
global image_file
global canvas
global c_canvas
global position
window = tk.Tk()
position = 110
txt = '0'
#给窗口的可视化起名字
window.title('车牌检测')
#设定窗口的大小(长 * 宽)
window.geometry('600x800')
#放置各种元素
... | [
"noreply@github.com"
] | noreply@github.com |
240e049b2a84a79545736f10cacf378c8c895e5c | a4ae64a449a7df7e817b4e47c67bbb4e14ded5d6 | /TicTacToe/game.py | 628030aaa39ffa8c0a12ef86d426fc50d6b1d0df | [] | no_license | smsr7/Machine_Learning | 2d6679bc68ea89cbfb249039df96b13311d578a5 | c8e8f35b14a3d4b966b1fc296e21ececd340a56c | refs/heads/master | 2020-04-18T04:45:00.585008 | 2019-02-25T21:33:57 | 2019-02-25T21:33:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | import tic
import network
import numpy as np
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
env = tic.board()
observ = 9
action = 9
win = 0
draw = 0
repeats = 0.0000000
re = 0
def run(state):
done = False
while not done:
repeatO = 0
action = int(raw_input())
next_state, reward, done... | [
"noreply@github.com"
] | noreply@github.com |
acbf114c8c93ad8b5076dd4ea504d0e393f8cb43 | 1851d92ec009599f979ff68440cea9a220d263d4 | /contrib/spendfrom/spendfrom.py | a7f3cf028970b60cf38dfe70439591dc85ea845c | [
"MIT"
] | permissive | stintcoin/StintCoin | f7e8d3411f2de38bda93f1bbfdb551616fb3ca78 | 75b9fc740ed1929bde1f142502f9adbbb630d812 | refs/heads/master | 2020-04-09T01:21:18.148125 | 2018-12-13T22:08:30 | 2018-12-13T22:08:30 | 159,900,937 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,122 | py | #!/usr/bin/env python
#
# Use the raw transactions API to spend StintCoins received on particular addresses,
# and send any change back to that same address.
#
# Example usage:
# spendfrom.py # Lists available funds
# spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00
#
# Assumes it will talk to a stintcoind or... | [
"codalata@gmail.com"
] | codalata@gmail.com |
bbd8a47cd083cdc32a34c9e24596c538d66b787f | 5d5ccb7ea3809d3ae2e5c10cd96e1375d0371247 | /astardownload/dbHelper.py | 77fed10fb276cefb94adb24558a28255039fe2dc | [] | no_license | ASTARCHEN/astardownload | 86335a9f6fec495a540d9d20986baec4076c7d35 | 90860f479a26ad44e5000e6a64be9e99b5643be0 | refs/heads/master | 2021-07-15T23:05:36.446253 | 2021-02-09T13:21:10 | 2021-02-09T13:21:10 | 96,193,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import configparser
cp = configparser.ConfigParser()
cp.read('myconfig.conf')
# cp.read('../../myconfig.conf')
db_name = cp.get('db', 'name')
db_user = cp.get('db', 'user')
db_password = cp.get('db', 'password')
db_host = cp.get('db', 'host')
db_port = cp.get('db', 'port')
| [
"chenxiaolong12315@163.com"
] | chenxiaolong12315@163.com |
b64bf32072556e2d851717eb52362ca58448eff2 | 7214a9b535de26256b56a358eb857cfb62283bbe | /rotors_simulator/rotors_gazebo/scripts/buchi_parse.py | 2bb97ea365f7b99676d8293a69f5a374f1edf302 | [
"Apache-2.0"
] | permissive | samarth-kalluraya/SafePlan_simulation | 83bb74eb0028ae4291cce7f3aa04e43ddff0d3bb | 4f9c7a2f0bac44233b81cd999b6c7c1843fe346e | refs/heads/main | 2023-03-15T00:49:22.387781 | 2021-03-08T19:12:13 | 2021-03-08T19:12:13 | 318,288,678 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,425 | py | # -*- coding: utf-8 -*-
import subprocess
import os.path
import re
import networkx as nx
import numpy as np
from networkx.classes.digraph import DiGraph
from sympy import satisfiable
from sympy.parsing.sympy_parser import parse_expr #samarth change
from itertools import combinations
class Buchi(object):
... | [
"samarthkalluraya@gmail.com"
] | samarthkalluraya@gmail.com |
650f604a174cb38ea73b2bbe860ec2213e010a28 | ab5b96008e067865db222aee4504db8cad639365 | /td.py | 0280080339f853e9442b9fbd3b12671037d6a624 | [] | no_license | timbmg/easy21-rl | 9b3c14b904f21823fdef9eb47a8cd0ee49042b0e | dba283486cfddcc5e5999ae5b8941353c63ab1ea | refs/heads/master | 2020-03-14T06:28:52.220845 | 2018-04-29T10:38:35 | 2018-04-29T10:38:35 | 131,485,096 | 11 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | from environment import Easy21
import utils
import numpy as np
import dill as pickle
env = Easy21()
N0 = 100
actions = [0, 1]
def reset():
Q = np.zeros((22, 11, len(actions))) # state-action value
NSA = np.zeros((22, 11, len(actions))) # state-action counter
wins = 0
return Q, NSA, wins
Q, NSA, wins... | [
"baumgaertner.t@gmail.com"
] | baumgaertner.t@gmail.com |
c4aeb89ef81169edcf4eb120ff153bd90e08081d | 307e6e92417b676f863007d8feee0e83abcc2db3 | /export_stockinfo_ept/__init__.py | 2309b02e25622929c3fb937d58a1b1078ec2a19d | [] | no_license | mr-prw/prowine-archive | ba6ca3b2f422e163ab299a8f36cc1497e6948f9b | 1845ea0b594d8fd712ff19aa61341f82e185202b | refs/heads/master | 2020-06-28T00:59:21.686634 | 2019-08-02T13:55:55 | 2019-08-02T13:55:55 | 200,099,714 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | from . import wizard
from . import report | [
"noreply@github.com"
] | noreply@github.com |
ce4f4de3c6cd53f78a77f8f7d171a222a593ea7e | 4a28e3e3afb28c0455ea21cfb983c3a8284dc5dd | /Reverse.py | bc387ecd0eea4a1c2e6fe9318772782e900f4b58 | [] | no_license | omdeshmukh20/Python-3-Programming | 60f6bc4e627de9d643a429e64878a636f3875cae | 9fb4c7fa54bc26d18b69141493c7a72e0f68f7d0 | refs/heads/main | 2023-08-28T04:37:27.001888 | 2021-10-29T17:03:34 | 2021-10-29T17:03:34 | 370,008,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #Discription: Accept Number From User And Return Reverse Of That Number Using For-Loop
#Date: 14/08/21
#Author : Om Deshmukh
# Reverse Operation
def Reverse(iValue1):
iDigit = 0
iRev = 0
if iValue1 < 0:
exit("Invalid Input! | Note : Give Input Greater Than 0")
for _ in range(iValue1):
... | [
"noreply@github.com"
] | noreply@github.com |
0684d234e85f6b170a94bbdd8fe260adcc0f1b90 | 0296bc69a0d9608ed826ad7a719395f019df098f | /old_modules/render_model_1.py | 9fc3f68c9e69607c41d3e1a6f72240c17d64ea5e | [] | no_license | jcn16/Blender_HDRmap_render | c0486a77e04c5b41a6f75f123dbdb3d10c682367 | 50e6cdb79fef83081de9830e7105dd425a235a9e | refs/heads/main | 2023-07-19T22:22:53.622052 | 2021-08-20T06:29:10 | 2021-08-20T06:29:10 | 377,757,283 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,746 | py | from math import radians, sin, cos, pi
import mathutils, bpy, argparse, random, time, os,logging
def generate_rand(a=0, b=1, only_positive=False):
x = (random.random()-0.5) * 2*b
if abs(x) < a or (only_positive and x<0):
return generate_rand(a, b, only_positive)
else:
return x
def point_at(obj, target, roll=... | [
"591599635@qq.com"
] | 591599635@qq.com |
eb893d285ceee9ef39eb80f1f31bd2245758fab6 | f72cbc110971114def6e090a6cb6e3171839ab80 | /blog_api/migrations/0003_auto_20200906_2326.py | 6cd0e213281ba8bc001ed6aaa41ebfbdb087f875 | [] | no_license | fountaein/blog_api_with_DRF | 4116ac0b34109fc0a04935bdf8df63b116d36c45 | 9eb75b949a22501f92a79b5c975b7f04a23bd268 | refs/heads/master | 2022-12-14T18:40:34.858342 | 2020-09-16T16:35:05 | 2020-09-16T16:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 3.1.1 on 2020-09-06 23:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog_api', '0002_auto_20200906_2317'),
]
operations = [
migrations.AlterField(
model_name='post',
name='slug',
... | [
"oluchi-orji"
] | oluchi-orji |
9bbee4cd840022f209e33c5f6dc59cb8818a2fef | 5d4eb8d1ea124f918ca69edb9034dbadfb600df6 | /transfer.py | 0324a714261762831a34c2f5c81b8bb5764066fa | [
"MIT"
] | permissive | woomurf/color_transfer | 4cd320ad8f4e14a3aaebd39a43dab3b790e9ba49 | 7628797b98d3491c51ac77affdbd4d7a1332d9c2 | refs/heads/master | 2022-11-07T23:58:19.132534 | 2020-07-01T08:00:53 | 2020-07-01T08:00:53 | 275,990,205 | 0 | 0 | MIT | 2020-06-30T03:44:28 | 2020-06-30T03:44:28 | null | UTF-8 | Python | false | false | 708 | py | # USAGE
# python example.py --source images/ocean_sunset.jpg --target images/ocean_day.jpg
# import the necessary packages
from color_transfer import color_transfer
import numpy as np
import cv2
def runTransfer(source, target, output=None):
# load the images
source = cv2.imread(source)
target = cv2.imread(target)... | [
"comcom@ComComui-iMac.local"
] | comcom@ComComui-iMac.local |
cbbc3b61f70dd176ea0fa764e83afc1175e49f9e | bf07c77c6618a146631b95064b1aa0862df9e8dc | /tests/biomodel_linearise_test.py | 1aba69d4e6b0abac25f3dd8d3da704976e213584 | [] | no_license | AlgorithmicAmoeba/gpu_se | 934bd9e36fd4831cd9b5edb160d6a3287ab4883c | 18ff5dd1a245388eb0b3ee28f0b562259aed22ba | refs/heads/master | 2022-12-31T16:36:54.076664 | 2020-10-27T11:46:03 | 2020-10-27T11:46:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import numpy
import model
import pytest
def test_linearise():
bioreactor = model.Bioreactor(
X0=model.Bioreactor.find_SS(
numpy.array([0.06, 0.2]),
# Ng, Nx, Nfa, Ne, Nh
numpy.array([260/180, 640/24.6, 1000/116, 0, 0])
... | [
"29543948+darren-roos@users.noreply.github.com"
] | 29543948+darren-roos@users.noreply.github.com |
3f90b47ab70aaa8d7c37f4f705693a1c72b6b260 | 5650fa4c2fc3d1758f942695e2fb16d41fb29729 | /build/env/lib/python2.7/site-packages/coverage-3.2-py2.7-linux-x86_64.egg/coverage/html.py | 4d51eb3439b2555945ea132005929ca614e29cbe | [] | no_license | 2CloudMan/cloudbim | 9c0453bf06488c19d76559d0c49e7379cca41408 | 9cb19ace35fa4eefd0be022aa81d2f9d8741b801 | refs/heads/master | 2021-01-18T20:21:45.964969 | 2015-06-05T10:42:55 | 2015-06-05T10:42:55 | 32,972,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,162 | py | """HTML reporting for Coverage."""
import os, re, shutil
from coverage import __url__, __version__ # pylint: disable-msg=W0611
from coverage.phystokens import source_token_lines
from coverage.report import Reporter
from coverage.templite import Templite
# Disable pylint msg W0612, because a bunch of variab... | [
"linmiancheng@gmail.com"
] | linmiancheng@gmail.com |
6259b00f99bd0193a97019a733fdc7d17fd4e74b | 916773e4af7367022067abf2e92bc8ab7302b1e5 | /trunk/prodRoot/desktopApp/test/imap/imapServer.py | 270d663e89626782dde57cc0a1ac2653dc86f92d | [] | no_license | weijia/ufs | 814ac76a9a44a931803971cb4edcefd79c87d807 | c43cdae2dfe89b747b6970138ccdf9ddf7f766b3 | refs/heads/master | 2016-09-01T18:35:33.754862 | 2012-08-14T09:02:40 | 2012-08-14T09:02:40 | 3,439,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,361 | py | from twisted.mail import imap4, maildir
from twisted.internet import reactor, defer, protocol
from twisted.cred import portal, checkers, credentials
from twisted.cred import error as credError
from twisted.python import filepath
from zope.interface import implements
import time, os, random, pickle
MAILBOXDELIMITER = "... | [
"richardwangwang@gmail.com"
] | richardwangwang@gmail.com |
efad5ca4427330cf20a8820095d194e301d77f8e | e85ecab9e39316ba116e83d660feca54b4543d95 | /chapter03/disk_cache.py | 019a0c2db08118c30fb3763d37f26ab5b3ad0d9b | [] | no_license | xyq946692052/crawler | 08c7218ea25115099f83650db74a23238b9d3bbc | b1130e52c3eae48c03282cf1fd0f51424f5d48ae | refs/heads/master | 2020-07-04T06:49:22.711514 | 2016-10-11T17:14:09 | 2016-10-11T17:14:09 | 67,964,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | import os
import re
import urlparse
import shutil
import zlib
from datetime import datetime,timedelta
try:
import cPickle as pickle
except ImportError:
import pickle
from link_crawler import link_crawler
class DiskCache:
def __init__(self,cache_dir='cache',expires=timedelta(days=30),compress=True):
... | [
"xyq2312@sina.com"
] | xyq2312@sina.com |
b409ec0ab13a58cedef6f2615324562be22891c5 | 4b1be24295e1fd62538b45f37af3938b5a9efe51 | /cart/views.py | 8abd76a338cfc5fb3cd1daaf418679153ccd791f | [] | no_license | chemt/vsad | a734f212aaed198f4cdd843206f0df170808877c | dcf6ef4b765f7166c625f928b7bc1f9627b45b38 | refs/heads/master | 2021-01-23T03:12:42.960496 | 2010-06-03T11:28:36 | 2010-06-03T11:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | # -*- coding: utf-8 -*-
from cart import Cart
from django.shortcuts import render_to_response
from django.template.loader import render_to_string
from django.template import RequestContext
from django.http import HttpResponseRedirect
from django.core.mail import send_mail
from settings import REPORT_EMAILS
from django... | [
"chemt@ukr.net"
] | chemt@ukr.net |
23d34a67d9d72b6a2de9a28ef6564a9cf28f4f21 | 37ccc5a15485ad9f08f77455987c34d2807063b7 | /modules/types.py | 4a2baacfd4f1954b31d2ac2fc933f35b5bbe2522 | [] | no_license | elshadaghazade/mysql_native_client_in_python | d1268dff198c8ada8c90b3d14fa0ad2cb3f1a217 | a837d64983be300b74933da8df20bdc18c0324d1 | refs/heads/master | 2022-05-06T12:29:16.412978 | 2022-04-27T07:35:10 | 2022-04-27T07:35:10 | 135,502,611 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | class Int:
"""see documentation: https://dev.mysql.com/doc/internals/en/integer.html"""
def __init__(self, package, length=-1, type='fix'):
self.package = package
self.length = length
self.type = type
def next(self):
# int<n>
if self.type == 'fix' and s... | [
"elshadaghazade@gmail.com"
] | elshadaghazade@gmail.com |
f817dc9cd7b0ee5cb3fb0d8da067107e84fabd08 | c380976b7c59dadaccabacf6b541124c967d2b5a | /.history/src/data/data_20191021130626.py | 54a8374208393201a7d3ecf5fa63dc428630f047 | [
"MIT"
] | permissive | bkraft4257/kaggle_titanic | b83603563b4a3c995b631e8142fe72e1730a0e2e | f29ea1773773109a867278c001dbd21a9f7b21dd | refs/heads/master | 2020-08-17T12:45:28.653402 | 2019-11-15T16:20:04 | 2019-11-15T16:20:04 | 215,667,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,770 | py | import pandas as pd
import numpy as np
from typing import Union
from pathlib import Path
from nameparser import HumanName
class ExtractData:
def __init__(self, filename: Union[str, Path], age_bins = None, drop_columns=None):
# """Extract Training Data from file or Path
# Arguments:
# ... | [
"bob.kraft@infiniteleap.net"
] | bob.kraft@infiniteleap.net |
163e2d3714cc1735092d2594a4fc4132063c42fc | 98ef763bf95851d5fe0fe20c2cf0edc4576a40b2 | /article/urls.py | 23b89fbeab33b5319f40bd5b6456c623b537f883 | [] | no_license | Mohammad-Kh80/class | b02c373e2f0c9bae3f2bd0756a59d8a3ef393169 | 2a65ae5ff5df86594fe9ea5f5ed81eb579f89d1b | refs/heads/main | 2023-07-31T02:42:10.768751 | 2021-09-24T18:48:26 | 2021-09-24T18:48:26 | 408,208,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py |
from django.urls import path
from .views import home
urlpatterns = [
path('home/',home),
]
| [
"Mohammad_Khaefi@yahoo.com"
] | Mohammad_Khaefi@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.