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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d194acc581ca1a2dabbfb09e565826189cda4fbc | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow 2/python/ops/array_ops.py | 752790e486e2c8177d53c2e0e801774b2ff01fb4 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c3fab6161a6ca581784be67954e7b9c2792e559bfc3a79286f79410909df8ec9
size 225087
| [
"business030301@gmail.com"
] | business030301@gmail.com |
dc7a570c8eeee47b7491f94a352dc5e68bd9a2da | f7f0c0988e400258778c2534d0eb2ed74de7dbee | /website/__init__.py | 2e8c0fffe7b3e952d535fffcb7377d560f03ac1f | [] | no_license | ashishkdsia/Flask-Webapp | a13d9d7ecf6b1e3c8288cf385e3924186aff4e0e | e710178e52782341a4dbb9a7c204d2abfad955fd | refs/heads/main | 2023-03-13T16:25:21.283567 | 2021-02-26T08:50:49 | 2021-02-26T08:50:49 | 339,341,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from os import path
db = SQLAlchemy()
DB_NAME = 'database.db'
def create_app():
app = Flask(__name__)
app.config['SECRET_KEY'] = 'segfsrgsrgrs aefaefsafd'
app.config['SQLALCHEMY_DATABASE_URI'] = f'sqlite:///{DB_NAME}'
db.init_app(app)
... | [
"ashishkdsia@gmail.com"
] | ashishkdsia@gmail.com |
73ce59746d664608c40727e105fbbdf91457cc79 | bd9cc0c85715bb15d71a89cae9e1404d6b597fb3 | /LearningApp/urls.py | 6c5809b2d46c554ab295caeee523b01699acb78f | [] | no_license | RTDeveloperman/Django_Learning | 6aca712b29073a0f0d8e479a5efe00f7d2054f19 | 86f76d472ec022f6a04328e3bdcf312a3a8c80b4 | refs/heads/master | 2023-03-02T13:30:13.648339 | 2021-02-02T05:29:58 | 2021-02-02T05:29:58 | 328,114,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | """LearningApp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"developerman.it@gmail.com"
] | developerman.it@gmail.com |
2db97a28852186e87dec880bb875aaf5529e8812 | 500bca3e22bd0c30c79b74918e9847742b3c428e | /sdk/python/jobs/pipelines/1j_pipeline_with_pipeline_component/nyc_taxi_data_regression_with_pipeline_component/train_pipeline/predict_src/predict.py | fde23606901aec040fa25345734e835f96c02c9f | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 2,022 | py | import argparse
import pandas as pd
import os
from pathlib import Path
from sklearn.linear_model import LinearRegression
import mlflow
mlflow.sklearn.autolog()
parser = argparse.ArgumentParser("predict")
parser.add_argument("--model_input", type=str, help="Path of input model")
parser.add_argument("--test_data", typ... | [
"noreply@github.com"
] | noreply@github.com |
aa358d4290d3d085e65216cf41db3ad6bfd413da | 3888104cebd79de74f33dda628505b491e32be09 | /lcs4.py | f5845eba44ced2722b53996fef018e3d81623f78 | [] | no_license | babiswas/Dynamic-Programming | 788f7c35aa927228a728da6025657554487285f5 | 957e150577fd5bbccde33cb393c78dcad07860c1 | refs/heads/master | 2022-12-24T05:24:03.282098 | 2020-09-27T14:55:05 | 2020-09-27T14:55:05 | 299,054,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | def lcs(str1,str2,m,n,T):
for i in range(m+1):
for j in range(n+1):
if i==0 or j==0:
T[i][j]=0
for i in range(1,m+1):
for j in range(1,n+1):
if str1[i-1]==str2[j-1]:
T[i][j]=1+T[i-1][j-1]
elif str1[i-1]!=str2[j-1]:
T[i][j]=max... | [
"noreply@github.com"
] | noreply@github.com |
dbe9d80c135c2db49b17e4debc25ed5ed258bbe9 | d90e3d219ba9ce846cf5f0f8cd81c3e2c9b466eb | /核心/week3/1/__init__.py | c9d6d1ebc89b350609e313ba5c5634d8e2ad1304 | [] | no_license | XiaomuWang/excellent_code_homework | 670df81e8be398a134978ded959654bdfec608f2 | 9426de759c984594fd8892d24e9d98b01492dca9 | refs/heads/master | 2023-01-02T00:27:44.424792 | 2020-10-27T14:02:04 | 2020-10-27T14:02:04 | 294,043,280 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# @Time : 2020/9/1 21:07
# @Author : ZFJ
# @File : __init__.py.py
# @Software: PyCharm
"""
| [
"15537110473@163.com"
] | 15537110473@163.com |
dc71f88aeb1eb309446a2635988e994c02c68a2f | 5c86f747b0def359ddf7db225fb2fce712d777b7 | /Reptilia/scrapyuniversal/scrapyuniversal/utils.py | c3fa41e24755df825aac2d3927bf53f5f7c80ff3 | [] | no_license | rhkzleek/Study_Code | fe3b4b75400e353a8ae715e07638f7e5eaf7c617 | f1108816a51c5a6f91d9788db21fba7665336dd1 | refs/heads/master | 2021-07-19T01:39:50.006759 | 2018-12-02T15:57:38 | 2018-12-02T15:57:38 | 115,405,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from os.path import realpath,dirname
import json
def get_config(name):
path = dirname(realpath(__file__)) + '/configs/' + name + '.json'
with open(path,'r',encoding='utf-8') as f:
return json.loads(f.read())
| [
"978415719@qq.com"
] | 978415719@qq.com |
0eec7a8cf3a3e4a155feae3b08a5c930173d74bf | 9452f681ea486fc53ad88d05392aed5fc450805c | /data_language_all/python/python_420.txt | f69fb14b5ec0f087ef9410f16cbb9d2d0193f595 | [] | no_license | CoryCollins/src-class | 11a6df24f4bd150f6db96ad848d7bfcac152a695 | f08a2dd917f740e05864f51ff4b994c368377f97 | refs/heads/master | 2023-08-17T11:53:28.754781 | 2021-09-27T21:13:23 | 2021-09-27T21:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | txt | #!/usr/bin/env python
__all__ = ['baomihua_download', 'baomihua_download_by_id']
from ..common import *
import urllib
def baomihua_download_by_id(id, title=None, output_dir='.', merge=True, info_only=False, **kwargs):
html = get_html('http://play.baomihua.com/getvideourl.aspx?flvid=%s&devicetype=phone_... | [
"znsoft@163.com"
] | znsoft@163.com |
719d67bcdfec4c306e671bd1cb7c1360ddc00568 | 617b8019a707088ee67c8f6ef38a7e8605398285 | /products/tests.py | cec314e229203bf02c94ad741d08978086c727a0 | [] | no_license | CaseyScott/Gaming-hardware-Django-milestone | 4e6da5973b5e533df142efa4abfbcb1078b49bae | 46e881ff3df737b59271cb185b0290e2e9ef1f76 | refs/heads/master | 2022-12-14T07:58:13.787852 | 2020-02-10T01:29:14 | 2020-02-10T01:29:14 | 215,688,687 | 0 | 1 | null | 2022-12-08T06:43:59 | 2019-10-17T02:44:19 | Python | UTF-8 | Python | false | false | 658 | py | from django.test import TestCase
from django.urls import reverse
from .models import Product
class ProductTests(TestCase):
"""Define the tests that run against Product models"""
def test_str(self):
test_name = Product(name='A product')
self.assertEqual(str(test_name), 'A product')
class Pro... | [
"34281480+CSsnakeeater@users.noreply.github.com"
] | 34281480+CSsnakeeater@users.noreply.github.com |
5a86990f1a946afe5291a71cf77ff00322d98715 | 0f4d7e835bfc8c786fabc8de2e2487116e78118c | /TexTracker/PendingWork/forms.py | f9d1783e5613d6495778abfca86f589ff22ffacc | [] | no_license | SoulTackers/TexTrackers | 978e940685611bc81aa9a78b3804ea5d545020c4 | 3ca5ecaf155109e6e9409c3cf6e815f07dc21ef9 | refs/heads/master | 2020-07-22T17:57:14.574526 | 2019-09-22T17:13:08 | 2019-09-22T17:13:08 | 207,281,285 | 0 | 0 | null | 2019-09-19T10:03:06 | 2019-09-09T10:12:36 | Python | UTF-8 | Python | false | false | 325 | py | from django import forms
from .models import PendingWork
class PendingWorkForm(forms.ModelForm):
class Meta:
model=PendingWork
fields = [
'PendingWork_employeeid',
'PendingWork_inwardid' ,
'PendingWork_name',
'PendingWork_postid'
... | [
"meetsuthar64@gmail.com"
] | meetsuthar64@gmail.com |
e1ccfc27b2cbcc25617916383a483709b5fed3c9 | 90b95c6ca2a54fd81dddd816d343bc9fe0a0137d | /node_modules/time/build/config.gypi | 39d1ff44165a0b708bbefac17aa626b1240215f7 | [
"MIT"
] | permissive | CaliseVillani/programmazione_web | e48fcf39aed0fed6ab40eeabfffc6d41ef4392d7 | 52d9b18451466f7d25511e0b209bdad2016156c8 | refs/heads/master | 2021-01-23T12:27:19.868471 | 2017-06-27T09:11:33 | 2017-06-27T09:11:33 | 93,163,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,514 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"antonio.villani@null.net"
] | antonio.villani@null.net |
02d1bcf15ae7ebbed8bbbdb8e3525273dfec8001 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/mediamarkt_be.py | 237c2ef3f09038fd1a8b6bec4254303932a2be83 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 1,477 | py | import re
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from locations.hours import DAYS_FR, OpeningHours
from locations.structured_data_spider import StructuredDataSpider
class MediaMarktBESpider(CrawlSpider, StructuredDataSpider):
name = "media_markt_be"
item... | [
"noreply@github.com"
] | noreply@github.com |
a6b07925ad745b8be7937bfeb0c1c2786ded3dab | e87d793b3a5facc6e54e0263fbd67703e1fbb382 | /duckietown-world-venv/lib/python3.6/site-packages/compmake/utils/system_stats.py | b91659969d09931f398a5f0c7b510618abb69b60 | [] | no_license | llingg/behaviour-benchmarking | a860bbe709309e13f3e1133d916944882199a40f | 85bbf1a9c2c628ba74480fe7abac3804d6afdac4 | refs/heads/v1 | 2022-10-06T08:21:29.068329 | 2020-06-11T07:02:46 | 2020-06-11T07:02:46 | 259,622,704 | 0 | 0 | null | 2020-06-02T17:52:46 | 2020-04-28T11:52:08 | C++ | UTF-8 | Python | false | false | 3,677 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
__all__ = [
'AvgSystemStats',
]
try:
import psutil # @UnusedImport
except ImportError:
from compmake import logger
logger.warning('Package "psutil" not found; load balancing '
'and system stats (CPU, MEM) ... | [
"linggl@student.ethz.ch"
] | linggl@student.ethz.ch |
e8ea76ebfa62388dee8ba601c1e764823ce21eed | cb03663719a88a45f4654058151713b5cfdaa2a1 | /src/ngc1647/starcal.py | 7c58c6bcbc99c2c76a0bf072eb6c182d4b2d03bd | [] | no_license | weingrill/SOCS | d942ba76ba95ade3165b4b045402c13fcfeae995 | c2df6b5de8e94c3935768a8fb40b4f046c21afb4 | refs/heads/master | 2022-05-27T22:41:48.554475 | 2019-04-12T16:27:27 | 2019-04-12T16:27:27 | 261,854,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,502 | py | '''
Created on Dec 5, 2013
@author: jwe
'''
def fileexists(filename):
try:
f = open(filename, 'rt')
except IOError:
return False
f.close()
return True
def loadfromfile(filename):
f = open(filename, 'rt')
lines = f.readlines()
f.close()
result = [l.rstrip('\n') for l i... | [
"jweingrill@gmail.com"
] | jweingrill@gmail.com |
ded0e42c90ad84d35c6406ce0cece7286e56129b | 5df9fc02d25e92b49dcacf438609b0fc1091f73c | /(4)learningrate/net.py | 2a9236bfec5c3871c14a87e16bfce2ffe2281496 | [] | no_license | BeachWang/A-simple-fully-connected-neural-network | 62f28e2d816a7e8b5d47dcb4c442cd2ed5395c80 | dddab214f09530f078ee9688bf4c863153b97f5a | refs/heads/master | 2020-09-02T01:55:27.932358 | 2019-11-02T06:11:32 | 2019-11-02T06:11:32 | 219,108,116 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 11 20:50:21 2019
@author: beach
"""
import torch.nn as nn
class SimpleNet(nn.Module):
def __init__(self, in_dim, n_hidden_1, n_hidden_2, out_dim):
super(SimpleNet, self).__init__()
self.layer1 = nn.Sequential(
nn.Linear(in_dim, n_hidden_1... | [
"noreply@github.com"
] | noreply@github.com |
65a736c8d97113740093498d903e290fd30eaae4 | 4dcc66372345c808ac257128b782c3e919ae2f0d | /excercise 11.py | 3a0bc2ce21bed09c21560df7bfc2fb6eac3ad1c2 | [] | no_license | Nadyaindaharifin/Nadya-Indah-Arifin_I0320072_Muhammad-Wildan-Rusydani_Tugas-7 | 2628d9bcc6810d95c0f4a31bf5005d5b07cb94fb | 5f7f3fcb16302016ce1f3e2f18de91a6e25e9569 | refs/heads/main | 2023-04-17T20:04:21.538270 | 2021-04-16T09:57:40 | 2021-04-16T09:57:40 | 358,465,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | str = "hello world"
print("str: "+ str)
print("str find o= ", str.find('o'))
print("str find l= ", str.find('l')) | [
"nandyaindah8@gmail.com"
] | nandyaindah8@gmail.com |
1409c6c38e22dfc16dbc05c35130559019e24f38 | cd8ae2648efe80cf014293ce896c4da6def16400 | /trigo_algo.py | 0a703f93cd29d39202de1ab12203165548a8e652 | [] | no_license | snehil1998/BladeBug_Triangulation | 7490ae049666057dc90d6536ea4275bf77cfbeb4 | fefddb13dacd1c35c0df951c5d59faca28d199d6 | refs/heads/master | 2022-11-13T03:09:28.653053 | 2020-07-05T23:09:56 | 2020-07-05T23:09:56 | 277,395,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | import math
rad = input("Enter the radius at the root of the wind turbine blade (in metres): ")
d_1 = input("Enter distance between transceiver 1 and robot transceiver (in metres): ")
d_2 = input("Enter distance between transceiver 2 and robot transceiver (in metres): ")
d_3 = input("Enter distance between transceiver ... | [
"noreply@github.com"
] | noreply@github.com |
9b84f7406c0543c5cb367e9c7756c1db6dabc0d0 | 0c44f2b1edcb50715eda693980a013970d777182 | /coursera_algo_hse/c3/w5/connecting_points.py | 6c83923b7455581355d3f558fe34319fdc92cbf2 | [] | no_license | re9ulus/moocs_std | c1e67b99da3eb894a9ef6ee4f16ae4e39735b6e5 | 29b14164fec969c3801c72b96357ee109246d642 | refs/heads/master | 2021-06-14T08:36:42.658838 | 2020-12-05T17:08:19 | 2020-12-05T17:08:19 | 68,093,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | #Uses python3
import sys
import math
from queue import PriorityQueue
def build_graph(x_coord, y_coord):
G = {}
counter = 0
for i in range(len(x_coord)):
for j in range(i+1, len(x_coord)):
if i == j:
continue
node = ((x_coord[i], y_coord[i]), (x_coord[j], y_c... | [
"angeldaren@gmail.com"
] | angeldaren@gmail.com |
c664baf15a655289fbeb300d7ed022dad892725c | e4e6c61ab9c24d847f119e574e757a9d5f3127ed | /WebScraping/data_access.py | d73ab04bb17e29cbb718bd2a160607a6a0bd0040 | [] | no_license | ManaswiniKundeti/Python_Assignments | 4361137e5453c95568d5eb7be8fe5545de292d9a | 5c88926d3c850f1cc9b7b4afd7ae25435036dcb9 | refs/heads/master | 2020-03-17T15:55:49.554908 | 2019-04-15T22:07:49 | 2019-04-15T22:07:49 | 133,729,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | from bs4 import BeautifulSoup
html = """
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>First HTML Page</title>
</head>
<body>
<div id="first">
<h3 data-example="yes">hi</h3>
<p>more text.</p>
</div>
<ol>
<li class="special">This list item is special.</li>
<li class="spe... | [
"manaswini.kundeti@gmail.com"
] | manaswini.kundeti@gmail.com |
dc618ba8d5b41fb7920b0bf5c3fa6254037ec8c7 | 812e7f4a5267936ddb9814d5790234ea3c33a717 | /venv/bin/pip3.7 | 76f8b74485fec5d5c97da3401af51ea814f12563 | [] | no_license | itsmelaksh/Project_Any_Kid_Can_Code | 45db7b662486392209048cea6416551d30873964 | 9064dbd2494ae3e019cd866e3709643ca6d2e632 | refs/heads/master | 2023-01-23T21:39:23.641320 | 2020-12-01T07:25:31 | 2020-12-01T07:25:31 | 317,461,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | 7 | #!/Users/nityamadhwal/Laxman/Project/Python/kids_code/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"itsmelaksh@gmail.com"
] | itsmelaksh@gmail.com |
5b1d19795f86dc670a2e543bbbd7594052c28b6f | 9a16958358c0703277d5f9956bb824289e89fb74 | /logger_writer.py | a4a064cd3414b24192aff51be0901e61b15fbd4e | [] | no_license | ParkerKemp/executioner | 56a0487ef1ed878a6b05fd51375273b5d5836ec8 | c650c26f14d736fad53a68a7c7daac0bcb0e5149 | refs/heads/master | 2021-06-23T16:35:42.066925 | 2017-08-28T20:53:01 | 2017-08-28T20:53:01 | 60,439,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | class LoggerWriter:
def __init__(self, level):
# self.level is really like using log.debug(message)
# at least in my case
self.level = level
def write(self, message):
# if statement reduces the amount of newlines that are
# printed to the logger
if message != '\n':
self.level(message)... | [
"parker@spinalcraft.com"
] | parker@spinalcraft.com |
49189009787f01ea2dfb5a608f6fa5ca60bbdfb2 | 68cb634c30f5619211b41d5ad059113b3609695a | /voxels_to_img.py | 693e96d2cd78f338167dcac4fedd6bab4072688b | [
"MIT"
] | permissive | jdelanoy/pix2pix-tensorflow | 775d35b0845357cb4853da110476bc7de9588243 | 369cf31cbdaaeed4c50e41e6e96ba1f3cea152c0 | refs/heads/master | 2021-01-22T21:12:29.357987 | 2017-04-06T14:21:55 | 2017-04-06T14:21:55 | 85,403,823 | 0 | 0 | null | 2017-03-18T13:38:36 | 2017-03-18T13:38:36 | null | UTF-8 | Python | false | false | 4,008 | py | import tensorflow as tf
import numpy as np
import os
def interpolate(val, y0, x0, y1, x1 ):
return (val-x0)*(y1-y0)/(x1-x0) + y0;
# def jet_value(gray):
# with tf.name_scope("gray_to_jet"):
# res = tf.identity(gray)
# for i in range(res.get_shape()[0]):
# for j in range(res.get_sh... | [
"kythnos@inria.fr"
] | kythnos@inria.fr |
0b89176b86a5af3ed6302636c235fc70d855c594 | 678dd45f76e47bd2c6fecc95d5c2037bda1ce2d3 | /FullNode/BlockViewer.py | c1d348fa17cac25517800f75af6197afd9692253 | [] | no_license | OrenSitton/cryptocurrency | 44bed03d65a3cf8dcb7f892f325ec90d9342d35c | ab2b9792d06fd30d9b89a2ba98e407b896f1f29b | refs/heads/master | 2023-05-04T07:24:27.090601 | 2021-05-26T13:15:42 | 2021-05-26T13:15:42 | 352,670,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | """
Author: Oren Sitton
File: BlockViewer.py
Python Version: 3
Description:
"""
from tkinter.scrolledtext import *
from tkinter import *
from Dependencies import Block
from Dependencies import Blockchain
class WalletWindow(Tk):
def __init__(self):
super().__init__()
super().title("SittCoin Wallet... | [
"64351837+OrenSitton@users.noreply.github.com"
] | 64351837+OrenSitton@users.noreply.github.com |
cdada4715b71f8cd4ed2304f4da283e7b310e3b2 | 182475b38efaaf6a90210146e2765f1b4af8271a | /reverse_words.py | 7a73e68c991aa2169079b4dae2d10639d4e053b7 | [] | no_license | arunapiravi/problemsets | 4b83814b506f60bf84580c0b4b04265e1406a624 | ee19352951feab157150732071f64ec0304b70c5 | refs/heads/master | 2020-03-24T05:41:04.190403 | 2018-09-19T02:58:10 | 2018-09-19T02:58:10 | 142,497,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | 557. Reverse Words in a String III
DescriptionHintsSubmissionsDiscussSolution
Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.
Example 1:
Input: "Let's take LeetCode contest"
Output: "s'teL ekat edoCteeL tsetnoc"
Note: ... | [
"aruna@couchbase.com"
] | aruna@couchbase.com |
d3e6fa333188f9f7b3d5774a86882ced37a3572b | 4f50dc03180ba095712b45c5c2bf151cb53b352b | /imdbscrape/imdbscrape/items.py | 1726e3767d9e4df65adc7ded3d6ddd570c48293d | [
"MIT"
] | permissive | kvmsc/Scrapy---Yet-Another-Imdb-Scraper | cfb131fc0bba03b5b3196b4e0043f9a45dfe4822 | 0de7893d773e8fa0f11a8cd3c0c4e8b801752234 | refs/heads/master | 2020-03-27T08:03:55.625692 | 2018-10-15T07:56:40 | 2018-10-15T07:56:40 | 146,216,981 | 0 | 0 | MIT | 2018-10-15T07:56:41 | 2018-08-26T21:14:32 | Python | UTF-8 | Python | false | false | 372 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class MovieItem(scrapy.Item):
year = scrapy.Field()
title = scrapy.Field()
rating = scrapy.Field()
genre = scrapy.Field()
director = scrapy.Field(... | [
"kukunoori.mohit@gmail.com"
] | kukunoori.mohit@gmail.com |
e3554e38fb6ff22a2f5045724ea53f7595a4c7e5 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/number-of-unequal-triplets-in-array.py | b5c5df654ed10cc8343e709f7badcabd6c662a00 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 551 | py | # Time: O(n * k) = O(3 * n)
# Space: O(n + k) = O(n)
import collections
# freq table, dp
class Solution(object):
def unequalTriplets(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
K = 3
cnt = collections.Counter()
dp = [0]*K # dp[i]: number of une... | [
"noreply@github.com"
] | noreply@github.com |
c642ac45d2586f41a8ae1cd5e11e8c7ed2d82fd8 | 3ec6261d0bd63d7a29b74ae3e9a384bddc119abb | /TSSearch.py | e54a6f5a42505e88f5cf74469a1c861e4a6943af | [] | no_license | Nakwon-Lee/TSSearch | a4815ee2a784c2ab2f0a344d8c5f4c2a24dd8a65 | c3bb3cc8022215aebe6c9e2971d8bc0c7b0790ef | refs/heads/master | 2022-01-07T06:11:14.734867 | 2019-07-04T04:30:27 | 2019-07-04T04:30:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,912 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import glob
import os
import sys
import shutil
import xml.etree.ElementTree as ET
import TtOdrXMLToJAVA as XtJ
import copy
import GeneticAlgo as GA
import Comparator as Comp
sys.dont_write_bytecode = True # prevent creation of .pyc fil... | [
"skrdnjs0904@naver.com"
] | skrdnjs0904@naver.com |
d2a116fd1e388ccc8ebd0e3a4c78b63d1b0b2041 | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/Cmmercial/products/migrations/0001_initial.py | 3f1b13821e51314afd7b2052f0cec407866a824f | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 1,216 | py | # Generated by Django 2.1.3 on 2018-11-21 08:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... | [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
62b0a916284f53de662fdc601f3f67d1b1c0848e | 6e60f54a0c0497b931a17275cc1615f62a8dbb26 | /data/models/jobs.py | 5561b71ea27e2d888e571649c3ccb239f119055e | [] | no_license | KEZKA/YL-heroku | acf207a709ee6b2fc9d4a1e3eef294323e0ec039 | 3b6509356a773e76956eb35573831409b143cdad | refs/heads/master | 2021-04-11T03:06:23.680688 | 2020-03-21T14:48:23 | 2020-03-21T14:48:23 | 248,987,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | import datetime
from sqlalchemy import orm, Column, Integer, String, DateTime, Boolean, ForeignKey
from sqlalchemy_serializer import SerializerMixin
from ..db_session import SqlAlchemyBase
class Jobs(SqlAlchemyBase, SerializerMixin):
__tablename__ = 'jobs'
id = Column(Integer, primary_key=True, autoincrement... | [
"world.is.unpredictable@gmail.com"
] | world.is.unpredictable@gmail.com |
011b0355ae667fd46fc11d7bd72d7fdf2035e8ba | e72cd284af97d2bc93b028c421661f323927daca | /setup.py | 778f961490118f91d8c87fb53074f6e46338d9e6 | [
"MIT"
] | permissive | spg1502/bug-free-game | 0c3d86342f3b73d1f2803001d8874c39fad292d7 | 6dec7e2d083df0d6d786b66b45eee97d0b93030e | refs/heads/main | 2023-06-20T10:25:27.591820 | 2021-06-21T23:22:30 | 2021-06-21T23:22:30 | 364,602,334 | 1 | 0 | MIT | 2021-07-21T16:51:58 | 2021-05-05T14:22:11 | Python | UTF-8 | Python | false | false | 313 | py | from distutils.core import setup
with open("README.md") as f:
long_description = f.read()
setup(
name="bug_free_game",
version="0.0.0",
description="A game which is totally free of bugs",
long_description=long_description,
packages=["pyglet_utils"],
install_requires=["pyglet"],
)
| [
"noreply@github.com"
] | noreply@github.com |
a20f653dc735e73361fff650a03ba2b1c0a7d46e | 512e92f74fc545e12fd44e7d4137a3fd6083af46 | /old/test.py | c4d6ba236eee10da6811dfcc23461109099e40f6 | [] | no_license | zane-shen/Summer | 24c56d703b8586f163e4687181089b9f4d81562c | 52b729ae850aeb4091e16868876c083d995488e4 | refs/heads/master | 2021-01-19T12:21:50.048724 | 2018-10-29T09:08:16 | 2018-10-29T09:08:16 | 100,779,133 | 0 | 0 | null | 2017-12-07T05:43:24 | 2017-08-19T07:50:21 | JavaScript | UTF-8 | Python | false | false | 3,935 | py | #!/usr/bin/python
#coding:utf-8
import sys
import pandas as pd
# from pandas_datareader import data as web
import numpy as np
import matplotlib.pyplot as plt
import datetime
from dateutil.relativedelta import relativedelta
from numpy import cumsum, log, polyfit, sqrt, std, subtract
from numpy.random import randn
import... | [
"zane.shen@outlook.com"
] | zane.shen@outlook.com |
333b9acb1c421772b36728887c628c06910f5ea9 | 47deebe6fefedb01fdce5d4e82f58bb08f8e1e92 | /python core/Lesson_9/list_15.py | 3c9f1848f5a41869c089d25a9f31a5453ed7030e | [] | no_license | developeryuldashev/python-core | 5bb162603bdb5782acf05e3fb25ca5dd6347067a | 08fca77c9cfde69d93a7875b3fb65b98f3dabd78 | refs/heads/main | 2023-08-21T03:33:12.160133 | 2021-10-19T04:56:53 | 2021-10-19T04:56:53 | 393,383,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | a=[1,2,3,4,5,6,3,4,5,8,9]
b=[]
c=[]
n=len(a)
i=n
while i>0:
b.append(a[i-1])
c.append(a[i-2])
i-=2
print(b)
print(c) | [
"81365808+developeryuldashev@users.noreply.github.com"
] | 81365808+developeryuldashev@users.noreply.github.com |
300add98b274304dbcde91ccbb0f8fb7c2bda876 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/pandas/tests/series/test_internals.py | 0febda9b710f4d9388ea3bf53da20bcf4f5af3c0 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:cef8d1aa7b5483d0f8576d8863c0fa66a3fd81948992238d8d5f1a5531cee05a
size 8984
| [
"github@cuba12345"
] | github@cuba12345 |
7af3564ec490ee7c916717f5e43254d06bac12c9 | 3c73609eea12d6784ffc0be5acc6994cda19dc57 | /Codeforces Difficulty 500-700/595AVitalyAndNight.py | c02b2a9caee1ba24e4511fe2d5b3542c6977975d | [] | no_license | TanveshT/Competitive-Programming | 0cf7a8ebc20a74cb6fd8505e67fbfec5bac6b8c2 | 47acc0a2af2711c86bb0da06e961677a8ec1e7d3 | refs/heads/master | 2022-12-19T01:44:46.033633 | 2020-09-25T06:57:23 | 2020-09-25T06:57:23 | 258,095,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | n, m = map(int, input().split())
m2 = 2*m
count = 0
for i in range(n):
floor = list(map(int, input().split()))
for j in range(0,m2,2):
if floor[j] == 1 or floor[j+1] == 1:
count += 1
print(count) | [
"tanveshtakawale26@gmail.com"
] | tanveshtakawale26@gmail.com |
8e9ff978131d45b9eb2e2d03aefe5612755c1573 | 534f077bc18b5ea91814e5dd3640341707a6fb53 | /views/uploadDownload.py | 6550e1ba0350e114cd6a0d12669a10e1e9b5da68 | [] | no_license | renqing122/96test | 279e1ccbc8ed81e26f6010a6e4281be1d417c1d4 | 06c33436da0fdd2531fad8bc3e01255082010257 | refs/heads/master | 2023-01-31T06:47:33.478581 | 2020-09-06T10:43:58 | 2020-09-06T10:43:58 | 293,255,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,898 | py | import json
import os
import time
from datetime import datetime
import zipfile
import xlrd
from flask import Blueprint
from xlrd import xldate_as_tuple
from Dao import mongodbTest
from support import basedir
from flask import jsonify, request, send_file
from werkzeug.utils import secure_filename
uploadDownload = Blu... | [
"1226884767@qq.com"
] | 1226884767@qq.com |
2b0a6f5644b193e27d912b6c148c75a7a9a1142f | b51091d309f0577c733462c5e5a8293380440991 | /Part 3 - Classification/Section 20 - Random Forest Classification/random_forest_classification.py | e6c5df3c37ba85d762cc1f714759847645f372b2 | [] | no_license | Morawka/ML-tutorial | a8d673e688250a5365624d4afb1e170fd86dfb34 | a0e0f94da843c313acd4acad7c25efea7980dd0a | refs/heads/master | 2020-03-11T10:07:54.217799 | 2018-11-10T23:08:22 | 2018-11-10T23:08:22 | 129,933,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | # random forest classification
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Te... | [
"dawidmorawka@gmail.com"
] | dawidmorawka@gmail.com |
14dc45b7b1ffbddfdfb9e556d2237d15b7495403 | 14d940630ab365be939fc08d3d95b0a98789bae7 | /lab32_list_comprehension_parte1.py | ab0e3c4e44cd1d99e38f7d80a38a5e3f85b41e0a | [] | no_license | accolombini/python_completo | 1da6f58f0c57b978d70582d96dc12b80c2d5b8a8 | 935102173a1112273b09734392dca08d76e9c749 | refs/heads/master | 2023-01-09T07:51:15.494101 | 2020-10-11T23:39:08 | 2020-10-11T23:39:08 | 283,790,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | """
List Comprehension ->> utilizando List Comprehension nós podemos gerar novas listas com dados processados
a partir de outro iterável (uma coleção de dados)
- Sintaxe da List Comprehension
- [dado clausula for dado in itervael]
<$> Para melhor entender o que está acontecendo devemos dividir a expressão... | [
"accolombini@gmail.com"
] | accolombini@gmail.com |
ef5e00a831af3d4422c709aba8b506db194c2ccc | cabd32b2736392a11006583037dfa9ab46b4c3c1 | /processHandler.py | ddd61c204f11d93655eb40b5119825f48b3a2dd2 | [] | no_license | jerryhan88/scd_py | 80018d4d83a388771fd49a5d9479da7339ffa4fe | 0b29cb2dca62ce1b9c40d2b0c2e6e054d569ed3f | refs/heads/master | 2021-08-08T06:40:56.948670 | 2020-04-09T01:50:20 | 2020-04-09T01:50:20 | 147,298,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | import os
import getpass
import time
import csv
from math import ceil
from psutil import virtual_memory
JAVA_PROCESS = 'java'
TEMP_LOG = 'temp.log'
USER = getpass.getuser()
MEM_SIZE = virtual_memory().total
KB1 = 1024
MB1 = 1024 * KB1
GB1 = 1024 * MB1
MEM_SIZE = MEM_SIZE / float(GB1)
PER2REAL = 0.01
MIN2SEC = 60
de... | [
"chungkyun.han@gmail.com"
] | chungkyun.han@gmail.com |
7ad94df69249948deaede7344800dc261eeaeeed | a78f6af33aeeeedccfa641c5f251aedddd410f02 | /Walk.py | 78d5e3ecfdb53a2ecb3601b17630ccb6ccddb8e2 | [] | no_license | johnvergara01/MasterLockCECS378 | 617dc91b8d000bf76334d4f3e16a56b8e57cdfb9 | a90a4671a9f6ecfd70ececb2445d5a82dd0b781b | refs/heads/master | 2020-03-28T05:04:49.805755 | 2018-12-06T00:49:24 | 2018-12-06T00:49:24 | 147,754,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import os
import MyRSAEncrypt
import json
import GetRSAKeys
import base64
def Walk(dir):
GetRSAKeys.getRSAKeys(dir + "/PublicKey.pem", dir + "/PrivateKey.pem")
for dirName, subdirList, fileList in os.walk(dir):
for i in fileList:
if ".pem" not in i:
(RSACipher, C, IV, tag, e... | [
"john.vergara01@gmail.com"
] | john.vergara01@gmail.com |
2e72b9101c5aa4aa6042b2aa62b0bd694a6b3cd0 | d4619dc96c564f6ff016fc4906258534bb649fa6 | /2020/03/python/02.py | 214b17361a8d937fdd246fc0f1acaa22f1badb88 | [] | no_license | rgrunbla/AOC | 91075d9dad0183302b5afac135d151cb6d9dc7f0 | 390ed43f6bbeeddfd91e346aa17ff886f5fb311c | refs/heads/main | 2023-02-07T03:50:12.744227 | 2020-12-25T16:26:26 | 2020-12-25T16:26:26 | 317,801,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | #!/usr/bin/env python3
trees = []
for slope in [(1, 1), (3, 1), (5, 1), (7, 1), (1, 2)]:
tree = 0
free = 0
right, down = slope
with open("../input", "r") as f:
x = 0
length = 0
for i, line in enumerate(f.read().splitlines()):
length = len(line)
if (i % do... | [
"remy@grunblatt.org"
] | remy@grunblatt.org |
76a5745b66247708c5c3fdccc4e2d109babe0d3c | 5dcff5ca457e18b7d3dba1ed1bfe2d4544c39b35 | /AF/data_process/data_filter.py | 2aa07216172b58d304809b71207f82141f0d37ef | [] | no_license | CaoQiNeng/CinC2020_official | 5be0ea7953f4d7b500d057f319ed91d6b4cd15fa | 0430c3757e5070555012af9298350d8ac48f066e | refs/heads/master | 2023-02-26T01:22:20.029194 | 2021-01-25T01:40:27 | 2021-01-25T01:40:27 | 269,513,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | from scipy.signal import butter, lfilter
import scipy.io as sio
from include import *
def bandpass_filter(data, lowcut, highcut, signal_freq, filter_order):
"""
Method responsible for creating and applying Butterworth filter.
:param deque data: raw data
:param float lowcut: filter lowcut freque... | [
"397637675@qq.com"
] | 397637675@qq.com |
c0160465d8dd2409635313787557e2746cf9a768 | 58abc41b896764843ac383b33a991c84780e00ac | /confounded_glm/model/model.py | 842e948d90b345571681e41a198df6f16c8083eb | [] | no_license | alwaysgt/confounded_glm | 1ccb5c74759bda17c6852e1a2a75dc13aa78ceae | c98fa529fe3f7b12ea96470602bc68855920d597 | refs/heads/master | 2020-04-27T03:12:27.081542 | 2019-03-21T16:23:54 | 2019-03-21T16:23:54 | 174,018,377 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,436 | py | import numpy as np
from scipy.linalg import toeplitz
import matplotlib.pyplot as plt
class random_design:
def __init__(self,n,p,Sigma,beta):
self.Sigma = Sigma
self.beta = beta
self.beta_true = beta
self.n = n
self.p = p
self.is_latent = False
self.is_per... | [
"root@programming.c.mlproject-183020.internal"
] | root@programming.c.mlproject-183020.internal |
23b6f52dcb226342224b9996517ff2618001ae31 | 194e16bd3752e32815c22acdce5a910ee49fc1cf | /courses/forms.py | bbd7d902ad541a29e14ee1881e2559ad90de7386 | [] | no_license | luiseufrasio/simplemooc | 1793b9cf0c3f1bdceb3e2aaccb8024b80c4f6b03 | 532fe9fb4849030abbd7aeb3f2bd396a9ca911f5 | refs/heads/master | 2018-09-06T01:56:11.807501 | 2018-07-21T18:23:08 | 2018-07-21T18:23:08 | 119,911,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from django import forms
# from django.core.mail import send_mail
from django.conf import settings
from core.mail import send_mail_template
from .models import Comment
class ContactCourse(forms.Form):
name = forms.CharField(label='Nome', max_length=100)
email = forms.EmailField(label='E-mail')
messa... | [
"luis.eufrasio@gmail.com"
] | luis.eufrasio@gmail.com |
1281c18aa4850a57c5d794674bb24090eee435d1 | be36550ed6c8ab32351b4512af095c1ab907dd22 | /u19_pipeline/alert_system/custom_alerts/subject_bias.py | 97ae8503b7a4f1eeadbabe36283848abe3ad7b69 | [] | no_license | BrainCOGS/U19-pipeline_python | 633d47250641f3eb2f60708a8ca7a8e8f19bacd4 | 7bc81be171fe4b68bc3e59e1f57f2148651d9772 | refs/heads/master | 2023-08-17T04:48:30.044265 | 2023-08-16T13:33:19 | 2023-08-16T13:33:19 | 216,374,484 | 2 | 9 | null | 2023-07-20T04:23:35 | 2019-10-20T14:26:17 | Jupyter Notebook | UTF-8 | Python | false | false | 1,853 | py |
import pandas as pd
import datajoint as dj
import datetime
import numpy as np
import u19_pipeline.alert_system.behavior_metrics as bm
import u19_pipeline.alert_system.alert_system_utility as asu
# Slack Configuration dictionary
slack_configuration_dictionary = {
'slack_notification_channel': ['custom_alerts'],
... | [
"alvalunasan@gmail.com"
] | alvalunasan@gmail.com |
8e5499a04a78171cbec24493abb5f6f962bf085f | 7565c01a64feb59454392d9883e54e73df86940f | /code/han_cv_padding_attention.py | 3367730e1bf7ed2f1641ee639fe1638f6f4edc83 | [] | no_license | yuconan/DaGuan2018-Top-2nd | 206c40da4b5c51a4b72e72a16bde5a4134e43e3e | db0ad336c60c69b7a1aff03441b0f122fd15681a | refs/heads/master | 2020-06-04T06:30:29.916614 | 2018-09-28T07:28:24 | 2018-09-28T07:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,719 | py | # -*- coding:utf-8 -*-
"""
https://github.com/synthesio/hierarchical-attention-networks/blob/master/model.py
"""
import numpy as np
import pandas as pd
import time
import gc
from collections import defaultdict
from sklearn.metrics import mean_squared_error, f1_score
from gensim.models import word2vec
from keras.models ... | [
"noreply@github.com"
] | noreply@github.com |
3a21dce09c823719136ad0dd9ca79f4b2053f9b9 | 7ef59206fc20803d6ae4b91508aca564fb46f81a | /music/admin.py | 8410184025fd93ef2b6817670f6d9cf70884e13b | [
"BSD-2-Clause"
] | permissive | rishidutta92/django | 4491df6eb2d9d37d3fb31da7ea450154730fdc0a | 5d2fdb94b1c273577512cbd8a0dbb3a7b310f371 | refs/heads/master | 2021-05-11T06:33:07.212520 | 2018-01-29T05:20:15 | 2018-01-29T05:20:15 | 117,991,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django.contrib import admin
from . models import Album,song
admin.site.register(Album)
# Register your models here.
admin.site.register(song)
| [
"rda@kanakinfosystems.com"
] | rda@kanakinfosystems.com |
9969606a2dac6ff81118988c97c9fc5a469e593a | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/aio/operations/_p2_svpn_server_configurations_operations.py | f65a8a822f3417fc8e16dbaf0b1f3ae67ffef1ac | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 23,195 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
b71ec186232bbd126d1c4776918a913f395eb90d | 386e41666df36288d55770f6f0633cc85d0d8ef1 | /djangoProject/djangoProject/listings/apps.py | a9c333e34770ce6e57956d3e599d07421fe8a890 | [] | no_license | jvsoftuni/django | aeaf4de541c71be4f4ded3349e4c1aafd7ee85e8 | 11e914afbd76011cf9a4a4c6d97c222caafa3050 | refs/heads/main | 2023-02-06T03:47:51.178864 | 2020-12-19T21:52:29 | 2020-12-19T21:52:29 | 315,368,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.apps import AppConfig
class ListingsConfig(AppConfig):
name = 'listings'
| [
"villy_yordanov@yahoo.com"
] | villy_yordanov@yahoo.com |
ff609ed3a618cb494f97e4d6c494e79f1a1e9650 | 16da0d345e3d448e39ab9e6fceec1404e9b6c0d5 | /myweb/useroperations/migrations/0001_initial.py | 1186e94dfa38cd839d7d1e090581f611c17f13eb | [] | no_license | goodjobig/mywebstudy | c101f48543271751d24264347b044cf227a1c531 | 5d7d0f786d4123a1c2cd9be78d348126a4d3f989 | refs/heads/master | 2020-04-09T16:08:41.812343 | 2018-12-17T15:49:56 | 2018-12-17T15:49:56 | 160,444,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # Generated by Django 2.1.3 on 2018-11-11 03:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('blog', '0007_auto_20181111_1122'),
migrations.swap... | [
"283541784@qq.com"
] | 283541784@qq.com |
e2e16ca2ecb2d26aa5dadf83d66d3cd5d35ef285 | 2fd258c298e247e41567704425d3e7cf13432b2f | /app/__init__.py | 2242ff76ce9ca6c6e18862197f30bab67ce954f2 | [
"MIT"
] | permissive | CapsuleKR/flask-server | 58284d0f77bc0ad7595bdb1f487acef81708517e | 025c134a95de1de1964303c6eb8ddce2a501a8e9 | refs/heads/master | 2021-06-10T16:40:51.513484 | 2017-02-15T08:48:03 | 2017-02-15T08:48:03 | 81,176,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # -*- coding: utf-8 -*-
from flask import Flask
from flask_restful import Api
from flask_httpauth import HTTPBasicAuth, HTTPTokenAuth
from flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS
from app.config import DATABASE, TOKEN_SCHEME
# API SERVER APPLICATION
app = Flask(__name__)
CORS(app)
api = Api(ap... | [
"ysw0094@gmail.com"
] | ysw0094@gmail.com |
781fed99b49ba8f6c143ba1f942e9603e3a68d20 | e32a75c44ef9c964bc5f97712c8e0e845ee3f6ca | /lemmatise_question_vocab.py | 74408714d90e2917500ed5edbe53dc9a64b74ca6 | [] | no_license | ankita-kalra/ivqa_belief_set | 29c40ec4076433ac412728aea603e4e69ce530eb | 6ebba50ff001e1af6695bb3f4d2643e7072ee153 | refs/heads/master | 2020-04-05T17:17:00.834303 | 2018-08-27T09:59:16 | 2018-08-27T09:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | with open('data/vqa_trainval_question_word_counts.txt', 'r') as fs:
lines = fs.readlines()
words = [line.split()[0].strip() for line in lines]
with open('tmp_dump.txt', 'w') as fs:
for word in words:
fs.write('%s\n' % word)
from nltk.corpus import wordnet as wn
import nltk
import numpy as np
def... | [
"liufeng@seu.edu.cn"
] | liufeng@seu.edu.cn |
1168782e01fe2b55bbb6ef17e7110a7fff56c2f2 | 4ec54af95406966e93deabdd4f2581791349fb83 | /main3.py | 1e752bf4e4cbbf7996a1fb23355c8de931f6ede0 | [] | no_license | meetbashs/on2giit | 048f6da283de590a263c7349ac376962a005b4d4 | 6f8877620bfd26971207f85b46fec88833f1bef9 | refs/heads/main | 2023-07-03T09:07:07.620120 | 2021-08-17T19:05:05 | 2021-08-17T19:05:05 | 397,318,280 | 0 | 0 | null | 2021-08-17T19:05:06 | 2021-08-17T16:11:29 | Python | UTF-8 | Python | false | false | 52 | py | print('this is from branch3 duplicate of main one ') | [
"sudheerbashakarla@Sudheers-MBP.verizon.net"
] | sudheerbashakarla@Sudheers-MBP.verizon.net |
837eac050da799693997498b8b771a282bd1f985 | 6b102d3c0888498154c561e7b9fd3d540934ce19 | /utils/__init__.py | 5a6f6c0cdc164f8df5b1c6262b41ffa94720f322 | [] | no_license | boostcampaitech2/image-classification-level1-18 | 331950589977d9c94bae63a5772377001e82678a | bacb39887eac78749166f79f16453b0df0a81a98 | refs/heads/main | 2023-07-16T08:18:52.326648 | 2021-09-03T14:18:15 | 2021-09-03T14:18:15 | 397,468,656 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from .label import *
from .DataFrameModule import *
from .transform import *
from .time import *
| [
"relilau00@gmail.com"
] | relilau00@gmail.com |
3145872cd74b04645c951fe2bc5090be8109c55b | 748688fe19ec4eb99d3e975c2ecddc03c5769e6a | /users/urls.py | 2b016345362bd9e6655d3cb563afae460e49bd30 | [] | no_license | gabrfernandez/blog_django | 87ed2bca052eacad5a0d4cd1075ae014ca99fed0 | 3bb62e96b8dd6535f2860cef264f7d4d0145b519 | refs/heads/main | 2023-01-12T20:00:20.600679 | 2020-11-13T03:16:11 | 2020-11-13T03:16:11 | 312,460,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from django.urls import path
from users import views
urlpatterns=[
path('login/', views.login_view, name="login"),
path('register/', views.register_view, name="register"),
path('logout/', views.logout_view, name="logout"),
] | [
"61893056+gabrfernandez@users.noreply.github.com"
] | 61893056+gabrfernandez@users.noreply.github.com |
00783cba9c2dafad2cadac2275d5c5aef1a242f0 | 6642ba118a7279cc0ddd7ae02a6f91aa2f9b346c | /sqlalchemydemo.py | aff315c2100e2ab8b3839f5c69aff41eae99214b | [] | no_license | ssxday/Python35 | 95299fefca9587f724d21a0b357c064c341cf869 | f18b47a7d8d2e79dc896430484059f8878a2e7b8 | refs/heads/master | 2021-01-12T03:59:13.579909 | 2017-04-10T05:37:09 | 2017-04-10T05:37:09 | 77,452,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,729 | py | # -*- coding:utf-8 -*-
"""
Licensed Materials - Property of SSX
Copyright statement and purpose...
-----------------------------------------------------
File Name:
Author:
Version:
Description:
"""
from common_use import Constant
# 先得创建一个引擎
from sqlalchemy import create_engine
# 查询也需要用到模型
from sqlalchemy.ext.declarati... | [
"admin@mypycharm.com"
] | admin@mypycharm.com |
50d52ee48c67426db276446ad0379118ac996184 | b4c2bbf32748f381f8918c2c20d2a86b5453dc87 | /plugins/extract/detect/_base.py | b737b6386a1f08673c4091bad17a567f57a21522 | [
"MIT"
] | permissive | oveis/DeepVideoFaceSwap | d45c7a18204f851a5c8b9cb6c9618284d4314b59 | e507f94d4f5d74c36e41c386c6fb14bb745a4885 | refs/heads/dev-gan-model | 2022-07-14T10:06:08.131201 | 2019-07-09T00:48:16 | 2019-07-09T00:48:16 | 184,978,011 | 6 | 5 | MIT | 2022-06-21T22:00:38 | 2019-05-05T04:09:53 | Python | UTF-8 | Python | false | false | 13,579 | py | #!/usr/bin/env python3
""" Base class for Face Detector plugins
Plugins should inherit from this class
See the override methods for which methods are
required.
For each source frame, the plugin must pass a dict to finalize containing:
{"filename": <filename of source frame>,
"image": <source ... | [
"jinil@nyu.edu"
] | jinil@nyu.edu |
e3a979129f8e489822a61a1c0972a4cfd9305ecc | cad9d8b930fdd0998899c2ead23f7688769e0348 | /src/transformers/models/speech_encoder_decoder/modeling_speech_encoder_decoder.py | 45262ad940fe336ba84de724b25ee7e84f255647 | [
"Apache-2.0"
] | permissive | bage79/transformers | 2687ad7556e6dc10a7dc65d64c2696a837fce9ce | 867f3950fa908632ddb3564873293b620d73c2dc | refs/heads/main | 2022-06-13T08:20:33.887880 | 2022-03-25T13:12:23 | 2022-03-25T13:12:23 | 213,647,037 | 1 | 0 | Apache-2.0 | 2019-10-08T13:18:55 | 2019-10-08T13:18:54 | null | UTF-8 | Python | false | false | 32,331 | py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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... | [
"noreply@github.com"
] | noreply@github.com |
bf3c009b27d12288c0e08c0d46d7a09577432e81 | eecb2346201a8a8c7b75e54dfdcc088c002b9015 | /djcarros/settings.py | f2dc25533f97bf552df722aa16761f6c9ab9d961 | [] | no_license | cesarsaf/djcarros | ed86953f47fd9d853a931922876fd5b3b582e100 | bdaf2c6659b3079d573d3d07bda498b62c05f8e3 | refs/heads/master | 2023-01-23T00:08:29.317384 | 2020-11-19T22:29:57 | 2020-11-19T22:29:57 | 314,384,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,114 | py | """
Django settings for djcarros project.
Generated by 'django-admin startproject' using Django 2.2.12.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"cesarsaf@live.comm"
] | cesarsaf@live.comm |
f498ded8912f477a97e8aebabc83dbe473ae3f92 | b00d4415bd5cee514bce275bae395dad54fa4ada | /PossivelPlaca.py | b29a0bf80e2bcf37d4b7130613235451db933315 | [] | no_license | tarikwataya/ReChar | 976f1f7ff06142f58e55122c167a64289fd92eff | b9e5abeaddb3153bad48420316814af665e074d2 | refs/heads/master | 2023-01-24T09:13:04.563405 | 2020-12-01T01:52:47 | 2020-12-01T01:52:47 | 294,888,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import cv2
import numpy as np
class PossivelPlaca:
def __init__(self):
self.imgPlaca = None
self.imgEscalaDeCinza = None
self.imgThreshold = None
self.rrLocationOfPlacaInScene = None
self.strCaracteres = "" | [
"tarikwataya@gmail.com"
] | tarikwataya@gmail.com |
b1d4005c395e7f3f56d26b069ee10cc27b12edd3 | 1bab8e2fdcad40950bb9b838544e71e1d74a9941 | /Manual_old/hacker_diary_Exp/setflag.py | 2bcd370e26a8388e6f062fc81cc19a3e4ffaa21d | [] | no_license | pietrobiondi/ExploitCTF2017 | 08bd7e5b564e35c0b1c8ae8d55fa0fd6983b5ad6 | 7adcc56bda7d1bb5c12a8d87265bd6378f53a650 | refs/heads/master | 2021-03-27T16:15:54.485054 | 2017-09-07T10:54:06 | 2017-09-07T10:54:06 | 93,258,068 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | from Crypto import Random
import binascii
from util import *
def set_flag(ip, port, flag):
base_url = 'http://' + ip + ':' + str(port) + '/'
username = (binascii.hexlify(Random.get_random_bytes(10))).decode()
password = (binascii.hexlify(Random.get_random_bytes(10))).decode()
account = create_account... | [
"pietro.biondi94@gmail.com"
] | pietro.biondi94@gmail.com |
fad4277ce6037da4dbeb48ec277ee28b3e0372c9 | 9e1df555176bae216828c404ad7290c2eb030cbf | /tests/metrics/test_metric.py | d97cd1a176cf294208e20b3b3e4a764318141b3c | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | shijianjian/pytorch-lightning | e11be4d4926a1a0c8f605e596bec19926d476876 | b6f3cf5e52dddedec6f7b3e85c0702b75907452c | refs/heads/master | 2023-03-02T14:58:54.139540 | 2021-02-10T05:38:23 | 2021-02-10T05:38:23 | 318,134,795 | 1 | 0 | Apache-2.0 | 2020-12-03T09:05:46 | 2020-12-03T09:05:45 | null | UTF-8 | Python | false | false | 3,841 | py | import pickle
from collections import OrderedDict
from distutils.version import LooseVersion
import cloudpickle
import numpy as np
import pytest
import torch
from pytorch_lightning.metrics.metric import Metric
torch.manual_seed(42)
class Dummy(Metric):
name = "Dummy"
def __init__(self):
super().__... | [
"noreply@github.com"
] | noreply@github.com |
b828ae8461c763c121b73d607c8db716157cf849 | 181eea60f6c6e33806e9deac13aa5c59afc40f6f | /spam_classifier.py | 27bc6707d5ece6c88f543ebcb63964537cbced7d | [] | no_license | Alice-Scholze/spam_classifier- | eead05b46199fc40bfdb880e1b3ac6d8b236dec8 | b93373ed45f057b2ddf65168777e15d99d14121c | refs/heads/master | 2022-11-08T14:34:48.457200 | 2020-06-21T04:09:41 | 2020-06-21T04:09:41 | 273,830,661 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,397 | py | from collections import Counter, defaultdict
from machine_learning import split_data
import math, random, re, glob
import numpy as np
import pandas as pd
MIN_TIMES = 50
def tokenize(message):
message = message.lower()
all_words = re.findall("[a-z0-9']+", message) # extract the words
return set(all_words... | [
"alicescholze@outlook.com"
] | alicescholze@outlook.com |
cc68c87c6b7da2123a305216a0d06fb8d063ee21 | 5e1dfd0541ddbd1bac4b8ea03788cdb885dac668 | /example_gan.py | 78698c5196ea20ddfdd0daef072f03f8c84ffdf1 | [] | no_license | VincentMcLoughlin/Paint_GAN | d6eda8d01944149db468cce20ad927f837ea7556 | c262b6713d6a2d0e2527c297ed59b2168d576492 | refs/heads/main | 2023-04-19T01:16:32.049140 | 2021-05-04T04:56:37 | 2021-05-04T04:56:37 | 339,584,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,020 | py | # example of progressive growing gan on celebrity faces dataset
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
from math import sqrt
from numpy import load
from numpy import asarray
from numpy import zeros
from numpy import ones
from numpy.random import randn
from numpy.random import randint
from skimage.transfor... | [
"vincemcloughlin@hotmail.com"
] | vincemcloughlin@hotmail.com |
116db2638349b3d5498717199395f421061ca64d | 02d898a3f4789061799f5cb18afd66a83937735e | /guestbook/migrations/0001_initial.py | f5ab7cdaff9f3004dac08353dcdd4cfa5c2872b4 | [] | no_license | cstps/myweb | 74bf3f31c268e946f347d54628fe01d3c173a3dd | 3b6675ba34755d3c3c1bc52ac110bbb0292871e2 | refs/heads/master | 2023-05-24T13:25:28.469181 | 2021-06-23T06:43:50 | 2021-06-23T06:43:50 | 374,545,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # Generated by Django 3.2 on 2021-06-16 00:39
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Guestbook',
fields=[
('idx', ... | [
"seotos@g.gne.go.kr"
] | seotos@g.gne.go.kr |
00d00af464a4e27dcd770c7a764809f8e0a11f16 | 512213a8ef930199ae664d485b3e78b9377c0296 | /pyolps/strategy/eg.py | 19d8f31c549a3e7b5f0d20de39f7d7dc72f11ded | [] | no_license | kenuku/online_portfolio_selection | 8a305fa9ad9133501519841559a0f3b21b93dd73 | 016d58a4f889772edce3a1721b48c2cdb105dc25 | refs/heads/master | 2021-09-18T06:41:00.316519 | 2018-07-11T00:51:19 | 2018-07-11T00:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | import numpy as np
import tqdm
def eg_next_weight(last_x, last_weight, eta):
"""
Generates portfolio for a specified parameter setting.
:param last_x: last market price ratios vector
:param last_weight: last portfolio, also can be last price relative adjusted
:param eta: learning rate.
"""... | [
"noreply@github.com"
] | noreply@github.com |
111eac42925cb7d77322dc981b136cb78d67d985 | f2ececbe6ff3deaba7616b6b3e5a23758f1400b6 | /manage.py | 2626199240e7760f69e52baa78e863d4ea189d91 | [] | no_license | achou022/V-Time-Project | d9b3ece06dd06a0bf7610512f43cb11423649555 | 91ff9de0285395b3bd4851f6afec092b570fa122 | refs/heads/master | 2021-05-21T22:13:31.594476 | 2020-05-18T01:41:02 | 2020-05-18T01:41:02 | 252,824,471 | 1 | 0 | null | 2020-06-06T01:46:38 | 2020-04-03T19:44:39 | HTML | UTF-8 | Python | false | false | 637 | 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', 'volunteer_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
ra... | [
"andrewchou@Andrews-MacBook-Pro.local"
] | andrewchou@Andrews-MacBook-Pro.local |
71972ce5a6b69a52caba57864e3cdfbc15b1af1c | f26f008c180889072e6163b3b906892a058ff1ab | /2_page_parse/main.py | fd4ef233ba339bba8b973d5ae3f2d04189f7ab1e | [] | no_license | softAdd/python-programs | cea04ede0c91194e4ee3e1c577f58e9524ecb77e | 4078de99b12ed2314e0e1585e1fd863fc847af6b | refs/heads/master | 2022-06-24T03:46:41.596817 | 2020-05-08T19:39:35 | 2020-05-08T19:39:35 | 240,576,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | import requests
import re
import pymongo
def get_data_lines(siteContent):
siteData = re.split(r'\n\n', siteContent)[2]
dataLines = re.split(r'\n', siteData)
return dataLines
def parse_data(dataLines):
parsedData = []
linesCount = len(dataLines) - 1
for lineNumber in range(0... | [
"soft.snake867@gmail.com"
] | soft.snake867@gmail.com |
cf11d468c235daf41b6fa67bdd4fd202349ff255 | 579ddcffa5519d0cfde6209d3c030e12b487b05f | /LeetCode_June2020/is_subsequence.py | 28c96b53d3390b07c328f9bf06bdb376456dfb6f | [] | no_license | mrshaikh4u/Problem-solving | 001e00292e531c4205b80785f617c6189ec9f2a8 | 96b257e2053eaaa75a152e92657cbf39f9169b8a | refs/heads/master | 2022-11-13T19:48:43.565431 | 2022-11-03T18:42:49 | 2022-11-03T18:42:49 | 252,262,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py |
class Solution:
def isSubsequence(self, s: str, t: str) -> bool:
if t is None or len(t)==0:
return s is None or len(s)==0
if s is None or len(s)==0:
return True
# s = "abc", t = "ahbgdc"
ptr = 0
for c in s:
found = False
while ... | [
"mohamedrshaikh@gmail.com"
] | mohamedrshaikh@gmail.com |
322677e5946534b56bda9dbd27e372e274c67ba8 | 3c12fc402e83e0ea580a67beb45c1c934046299b | /eth_usd_price_prediction.py | 82726372bbc9735bc680c93dd5b05b7289b05acf | [] | no_license | romaniev/ETH-USD-Price-prediction-for-14-days | abe9e565c8acd0d8bdc9d8a431f1d42dde1a46e5 | 8f0db368b800ab4f37c1ff3725f2fdbd65216073 | refs/heads/main | 2023-05-01T15:56:17.536539 | 2021-05-15T21:43:07 | 2021-05-15T21:43:07 | 367,734,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | # -*- coding: utf-8 -*-
"""ETH-USD Price prediction.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1bc--3ZmZRJgDf_hdl3BzWrTz-UQzAeQF
"""
#Predict ETH price
#Import libraries
import numpy as np
import pandas as pd
from sklearn.linear_model impor... | [
"noreply@github.com"
] | noreply@github.com |
034601fc46654d4911b7be5f9d0542b6f5e96343 | 9bd7cc816d707588240a198cce13f7cb2c6990b3 | /Test2_worker.py | 940fde545943791f0afe3b5f89fee89e4d2fb0ed | [] | no_license | Fonglulu/Multigrid | f3da4197f1a8bf1a82ca149a1fddc046a1f5ee6e | 7250982f9e2d2afa29838d8235d29804a974bcd8 | refs/heads/master | 2020-06-30T22:54:43.491150 | 2020-03-29T00:15:22 | 2020-03-29T00:15:22 | 200,973,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu May 17 19:54:57 2018
@author: shilu
"""
from PCG import conjugate_gradient
from Preconditioner import identity_preconditioner
from DiagonalPrecond import DD_preconditioner
def worker(commun):
grid = commun.get_grid(commun.get_host_no())
... | [
"u5792991@anu.edu.au"
] | u5792991@anu.edu.au |
86a472b2a362918d0621bf1b85f0c779f2398387 | a8b0682370764a48464caac7bdea0acc96586284 | /abc-158-c.py | 18f3979e595d0c287d022b317379cceb365fdf94 | [] | no_license | KurukuruCaptain/AtCoder | d7fa14743618b8fa0c6c98aaeaeaceddb6eb9d97 | 64de5ca1211608cfa538252660a249a13460af3e | refs/heads/master | 2022-09-25T14:40:57.197840 | 2020-05-21T21:37:55 | 2020-05-21T21:37:55 | 257,460,822 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | a, b = map(int, input().split())
for i in range(1, 100000):
if (i*0.08)//1 == a and (i*0.1)//1 == b:
print(i)
exit()
print(-1)
"""
while True:
if (c*0.080)//1 == a:
print(int(c))
exit()
elif (c*0.080)//1 >= a or (c*0.1)//1 != b:
print(-1)
exit()
else:... | [
"adidome@gmail.com"
] | adidome@gmail.com |
d8aff98d5f91cab30ab04ab74c5a6c70469e1a18 | 85f14b16182e49027bc0b1214efd49bcfd1163a1 | /setup.py | 3473b0120ed29fee79d2acd5e5907ea6fa682e2e | [] | no_license | jizongFox/DGA1033 | 83d1b4f5a68e3483864bdbddebd3da5f176e061b | 3b1849d986df06b68d4b55adbb49aeecccf2e002 | refs/heads/master | 2022-02-27T18:55:18.129274 | 2019-01-17T20:12:13 | 2019-01-17T20:43:41 | 153,524,259 | 2 | 1 | null | 2019-01-02T13:12:52 | 2018-10-17T21:11:00 | Python | UTF-8 | Python | false | false | 356 | py | import setuptools
with open('README.md', 'r') as fh:
long_description = fh.read()
setuptools.setup(
name="admm_research",
version='0.0.1',
author="Jizong Peng",
author_email="jizong.peng.1@etsmtl.net",
long_description=long_description,
long_description_content_type='text/markdown',
pa... | [
"pengjizong@sjtu.edu.cn"
] | pengjizong@sjtu.edu.cn |
f9f6a81201522e554c246052e1c65443ff77f61f | c0590be76b1a383f9e066f4561ff0c8901a9d479 | /comtrade/print_query.py | 2a2a7373a754a6c989a0506e823c892c642afb22 | [] | no_license | econcartography/data_aggregator | 8860e88985a0c1170574403c3063b92157948086 | 2c36a1cbca48d8c3f0337aef1fa9d21160c4ab12 | refs/heads/master | 2020-06-03T00:41:39.502096 | 2019-06-25T16:34:11 | 2019-06-25T16:34:11 | 191,364,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,809 | py | import pandas as pd
import json
import os
import time
import argparse
def get_query(args):
with open('countries.json','r') as f:
countries = [c['id'] for c in json.load(f)['results']]
yy = args.years.split('-')
years = range(int(yy[0]),int(yy[-1])+1)
if args.reporter:
reporters = [args... | [
"federico.musciotto@unipa.it"
] | federico.musciotto@unipa.it |
5f7192bce0bcca3f152ff4d22b13629c493b287a | 9e21ba7a7a28fc8018f2ec126c04c7e5983fca49 | /Hangman.py | 50f575a44820c8f1041606747425e71afc4684c2 | [] | no_license | clongos/Hangman | da510cfac8d62ef51bb6b5f651a9f405480064c8 | afeb13d5190e20365f29026614b0d9c05d70536c | refs/heads/master | 2021-01-01T03:37:33.464222 | 2016-04-21T10:24:14 | 2016-04-21T10:24:14 | 56,764,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | from math import pi
def square():
print "SQUARE"
side = raw_input("Enter length of each side: ")
if side.isdigit():
return multiplier(int(side),int(side),int(side))
else:
print "Invalid Input!"
square()
def rectangle():
print "RECTANGLE"
length = raw_input("Enter length: ... | [
"christian.longos@achievewithoutborders.org"
] | christian.longos@achievewithoutborders.org |
4a594c7de5e0266715c2b52f3c074e72c400e108 | 6c53230c6d63c055ecfc738ba4d68ec74775f39d | /conf.py | 61a288b1cdbe0c03f319a7efa65f52b9060ee0fc | [] | no_license | Daltz333/linpeiman | 016e385f29aa3ed45d8e878a6f870cd103a54cc9 | 30229e0a76bf96a6f53d3463ab8a452646cedbd6 | refs/heads/master | 2020-05-02T22:59:03.836334 | 2018-08-09T22:42:53 | 2018-08-09T22:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,490 | py | # -*- coding: utf-8 -*-
#
# dockpanelsuite documentation build configuration file, created by
# sphinx-quickstart on Sat Nov 21 17:51:25 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file... | [
"support@lextm.com"
] | support@lextm.com |
3fb258b5aae38a0b3d3d7ca6b043c2d0a0a16506 | 8db3d625c1ac22f6578c57c3a50c448b6fcbec37 | /demo/smile.py | 622636a50bd80ac24669ff99553ad951e7293a58 | [] | no_license | bikramkawan/lineupjs | 420d28eb3a954cbbd2c0a1f21ae370e1061868fb | dd3e5ab790a9b055bee0a6ddc10532d2e64ce3a3 | refs/heads/master | 2021-01-12T03:19:38.961165 | 2017-01-13T15:07:24 | 2017-01-13T15:07:24 | 78,194,576 | 0 | 0 | null | 2017-01-06T09:45:57 | 2017-01-06T09:45:57 | null | UTF-8 | Python | false | false | 1,107 | py | import csv
import itertools
import os
import subprocess
# Change these as per your needs
file_path = "smiles.txt"
row_start =0
row_end = 7257
column_index = 16
with open(file_path, encoding='mac_roman',) as f:
reader = csv.reader(f,delimiter='\t')
column_head = itertools.islice(reader,0,1)
directory = Non... | [
"bikramkawan@gmail.com"
] | bikramkawan@gmail.com |
e517556915fa64df97ed9666ed393af778df68dc | 588138193451633138889f79c2a7f9947f157fcb | /eval_with_slot.py | f453872b21be3ec9f280938b44962bf722846716 | [] | no_license | hydercps/text-classifier | c496795803de81a5cf2e0b660189d7dca145e686 | 54d57787b3f4482a0636ab838a013b6a5e5c80e4 | refs/heads/master | 2020-04-05T17:51:29.764543 | 2018-07-26T10:03:00 | 2018-07-26T10:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,545 | py | #! /usr/bin/env python
import tensorflow as tf
import numpy as np
from collections import Counter
import os
import data_helpers
from tensorflow.contrib import learn
import csv
# Parameters
# ==================================================
# Data Parameters
#tf.flags.DEFINE_string("positive_data_file", "./data/rt-... | [
"zhangyaoqin@zyq-MacBook-Pro.local"
] | zhangyaoqin@zyq-MacBook-Pro.local |
ddcce75871527ea4b492b0a30657cf145bf4dc36 | 13b5ec8895858adfca55b9c670b72c307c0a6385 | /app.py | eb7633113747fe27c71bd203e9163f5ee7b34643 | [
"MIT"
] | permissive | jliu2589/seecovid | e295e6ecfab37da5a89833ebe4cfa95b9907c94e | 9905cb61cb9d96d68336a94c179d1de87b298d0c | refs/heads/master | 2023-07-24T04:35:49.371954 | 2020-08-11T02:37:46 | 2020-08-11T02:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123,517 | py | #############################################################
# Begin defining Dash app layout
# code sections
# 1 Environment setup
# 2 Setup Dataframes
# 3 Define Useful Functions
# 4 Heatmap UI controls
# 5 Curves plot UI controls
# 6 Navbar definition
# 7 Blank figure to display during initial app loading
# 8 Overa... | [
"raper.chris@gmail.com"
] | raper.chris@gmail.com |
4e8c3e29671d3b8ee93186ca9cb39e1dc9041ad6 | 0fbc2dff6c74d79fcdc3170c8bfb2fe8fa955175 | /notebooks/widget_org.py | 624b1b94ee375d5ac5c91a1f23818bb2cee26729 | [
"BSD-3-Clause"
] | permissive | mwcraig/tutorial | abedcaa251d63d7de4a0c17f99a7f7dd7639d086 | e1dfa624b0d043f33b768edeb35629741f4d890f | refs/heads/master | 2022-11-08T15:09:04.056005 | 2019-07-07T22:06:12 | 2019-07-07T23:04:16 | 134,425,268 | 0 | 0 | BSD-3-Clause | 2018-05-22T14:11:30 | 2018-05-22T14:11:30 | null | UTF-8 | Python | false | false | 7,088 | py | import string
import inspect
from collections import defaultdict
import ipywidgets as widgets
def extract_module_name(obj, full=False):
"""
Get the name of a module for an object.
"""
properties = inspect.getmembers(obj)
for name, value in properties:
if name == '__module__':
... | [
"mattwcraig@gmail.com"
] | mattwcraig@gmail.com |
09b21866847a8f0be8d4c73e482c5018378fec12 | 2f8f8d8a57057dff31f032efb3a906b6e6cb49cf | /cogs/autoroles.py | 2fcf3a6bc4ec95efc3b5e4a5a02326e51ae04ebf | [] | no_license | Stanislav-g/Topian-bot | 3b6dd7282c98d9a33699570b02abe5c6f88786ad | 5d3c09f8165c88d4b1b1dc08ed1740668caed762 | refs/heads/master | 2023-02-10T05:12:03.024597 | 2021-01-06T10:25:52 | 2021-01-06T10:25:52 | 286,687,960 | 0 | 0 | null | 2020-11-26T19:46:01 | 2020-08-11T08:24:40 | Python | UTF-8 | Python | false | false | 14,799 | py | import discord
from discord.ext import commands
from pymongo import MongoClient
import random
from random import randint, choice, choices
import os
import random
import asyncio
from discord.utils import get
import datetime
import smtplib
import socket
from discord.utils import find
class user(commands.Cog):
def _... | [
"noreply@github.com"
] | noreply@github.com |
63c4b4017e46f3d104949022d10230b4313c14d9 | cfef65bd450edd14a867c70b32d95115f43db362 | /flights/tests.py | 59c004e54f0b1a5db63675c649411685aca7866a | [] | no_license | Mufaddal1125/CS50-Django-flights | c20c72d939648c7eff3d1fa275fe0860b19cca9c | c10fe3621401b2cc1500b0b2ca7f4a3875ebf81a | refs/heads/master | 2022-08-18T06:20:34.936256 | 2020-05-16T14:38:32 | 2020-05-16T14:38:32 | 264,375,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | from django.test import TestCase
from .models import Airport, Flight
# Create your tests here.
class ModelsTestCase(TestCase):
def setUp(self):
a1 = Airport.objects.create(code='AAA', city='City A')
a2 = Airport.objects.create(code='BBB', city="City B")
Flight.objects.create(origin=a1, de... | [
"mufaddal5211@gmail.com"
] | mufaddal5211@gmail.com |
210609fb82f3bd44f14c0dc789314dd099ea2a0f | 08c132bc63ebba2edebde139f7907953ae2fa04d | /Archived_Files/FTDI_Python_Libraries - SPI_MDIO_I2C/etc_i2c_flash.py | 5dc8f62ab699ff7816ef920fa89870c54f41af85 | [] | no_license | hudkmr/Code_Database | 12b60d1b331b91e9dc990d63bd4603bb92d0bfe7 | d80751c13bd30114af70d690ef8fc1a0d6368490 | refs/heads/master | 2021-01-21T12:49:47.564408 | 2015-07-30T02:28:07 | 2015-07-30T02:28:07 | 39,899,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | #This Script Reads the Data from I2C Slave device(Flash memory) using FTDI MPSSE Engine
from etc_abb_i2c_lib import BB_I2C
from etc_abb_i2c_lib.etc_header import *
import sys
import time
d=BB_I2C(0)
d.DevConf(BAUD,DO_MASK_VAL,SYNC_MODE)
TXACKBuf=[]
RXACKBuf=[]
d.I2CStart_CMD()
TXACKBuf+=d.SendAddr(0x80,0)
TXACKBuf+=... | [
"hudkmr@gmail.com"
] | hudkmr@gmail.com |
117aa18bc9ed57ce6572e9120224d114fc632a6e | 32e2e9ecd12d4eeaacc64d1a699672633501ea08 | /find_a_midwife/views.py | 142206c710eac207c0818e7371cb179f8e186912 | [] | no_license | BrianC68/wr_maternity | 365098abb13d255348d2d57bf1c543cd698e6ae8 | 5392fdead32c5f79c7be9a4cb0397df26a5de915 | refs/heads/master | 2023-01-24T08:42:06.965179 | 2023-01-20T17:42:44 | 2023-01-20T17:42:44 | 233,097,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic import ListView, DetailView
from .models import Midwife
class MidwifeListView(ListView):
'''Page that displays all midwives.'''
template_name = 'midwife_list_view.html'
model = Midwife
context_object_na... | [
"brianc@wi.rr.com"
] | brianc@wi.rr.com |
31188ac59bd94b32ab051700b5b38c4112f9ecf4 | 14f1343f69f7f8b72d184517ad8a1b2b2eca79dc | /RPi-APIs/helloworld.py | c8cae58530dc16eb20e22a1c14dba07766b7680e | [] | no_license | samuelxu999/test | b3838e18d497e8fc7d704eea87a4e684351ebce2 | 59de4fe4e683a912c9e6862d6b3331e6bfe0c5ce | refs/heads/master | 2022-07-27T19:35:34.244221 | 2022-07-11T18:34:25 | 2022-07-11T18:34:25 | 84,833,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from flask import Flask, render_template
import datetime
app = Flask(__name__)
@app.route("/")
def hello():
now = datetime.datetime.now()
timeString = now.strftime("%Y-%m-%d %H:%M:%S")
templateData = {
'title' : 'IoT research-Raspberry Pi gateway',
'time': timeString
}
return render_temp... | [
"samuelxu999@gmail.com"
] | samuelxu999@gmail.com |
6d2fec6e096e873e8840b8cb3e6cb94c9aa98fe6 | cd9050820eda4414aaab68206f3187db237b504a | /manuscript/code-snippets/ShiftLocus3_b.py | c29b1010361eda62e279e90017815f0f9b6181c8 | [] | no_license | marlinfiggins/complex-dynamics-and-computation | 4b6a3bbd36e6caf1d26f8951a514014e3961991f | d180d1709738b5f99bf6abed59541582bce3f38c | refs/heads/master | 2021-02-04T05:02:36.400050 | 2020-08-30T22:40:03 | 2020-08-30T22:40:03 | 243,621,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | def Shift_Locus_3_b_Set(a=0, xmin=-2, xmax=2, ymin=-2, ymax=2, width=10, height=10, maxiter=50):
# Compute $b$-space given a specific $a\in\bbC$.
x = np.linspace(xmin, xmax, width)
y = np.linspace(ymin, ymax, height)
escape = np.empty((width, height))
for i in range(width):
for j in ra... | [
"figgins.marlin02@gmail.com"
] | figgins.marlin02@gmail.com |
82dab9feb01f4f523aef2409292c3f1f78f9b1ba | f19cb3d03bc522d7e9236ecf1e15ab6079279b3b | /GrangerCausalityTest.py | 7ad95b569ff853ec5fc8b943924829424a0aa01f | [] | no_license | smitj92/SP500 | 8fc9f75a710b84b7e28df947ea71ab2695f57191 | ac8e5dc75d291188f9face0903de3390dd4dfe02 | refs/heads/master | 2020-12-14T11:30:34.726680 | 2020-01-18T11:57:28 | 2020-01-18T11:57:28 | 234,727,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | import pandas as pd
from statsmodels.tsa.stattools import grangercausalitytests
#stock market dataset
df = pd.read_csv("C:/Users/Smit/Dataset/yahoo/stockMarket.csv", index_col = 0)
#twitter dataset
twitter_data = pd.read_csv('C:/Users/Smit/combined_csv1.csv')
dfVolume = twitter_data.groupby(['Date'])['Date'].... | [
"noreply@github.com"
] | noreply@github.com |
1024c40901e5a8a5a330ed617907c7deade39037 | f4b2911f91d1bac9fe6c0260d4a7f957b391bd4d | /pysrc/parse.py | 851c57adbcc619f2c8b2fc2596e2de05ef4f12b9 | [
"MIT"
] | permissive | mstern98/topylogic-git | 424ddaef6ff635800f397855fa0a41690234d596 | 85f43cfa38a002083fa942bb90fa3702a27a2743 | refs/heads/master | 2023-03-28T14:14:58.817335 | 2021-03-29T02:51:18 | 2021-03-29T02:51:18 | 348,145,984 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | import topylogic
import json
def parse_json(file):
with open(file) as f:
data = json.loads(f.read())
context = topylogic.SINGLE
mem_option = topylogic.CONTINUE
request_flag = topylogic.IGNORE_FAIL_REQUEST
verbosity = topylogic.VERTICES + topylogic.EDGES + topylogic.FUNCTIONS + topylogic.GL... | [
"matthew.stern.1@stonybrook.edu"
] | matthew.stern.1@stonybrook.edu |
857c82f6db4e4a0b1718d93e0a3bb95f11f336e2 | 78e4ab08f98e2deceaf32c96467a7197a5b96091 | /listings/views.py | 3f1c0a873936fd3d253e1e7288127832a7024709 | [] | no_license | Tooluloope/Django-Real-Estate | 439b397e1eb66d51fb0f290be0a21cd12eab4114 | 7c227ae9b0212fba50a6ed314be5102aca73b803 | refs/heads/master | 2023-05-04T02:38:24.257180 | 2019-09-26T08:00:07 | 2019-09-26T08:00:07 | 183,512,774 | 2 | 0 | null | 2023-04-21T20:32:24 | 2019-04-25T21:31:59 | CSS | UTF-8 | Python | false | false | 1,965 | py | from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.shortcuts import get_object_or_404, render
from .models import Listing
from .choices import *
# Create your views here.
def index(request):
listings = Listing.objects.order_by('-list_date').filter(is_published = True)
pagina... | [
"adetulatolu@gmail.com"
] | adetulatolu@gmail.com |
69debec428098617652296bd578146c4657179a1 | caf6ae544fce3b332b40a03462c0646a32c913e1 | /master/python/swagger_client/models/deposit_id.py | 9d6a813e681197d9448474fe5c7f2b9e39942158 | [
"Apache-2.0"
] | permissive | coinsecure/plugins | 827eb0ce03a6a23b4819a618ee47600161bec1c7 | ad6f08881020c268b530d5242d9deed8d2ec84de | refs/heads/master | 2020-05-30T07:17:56.255709 | 2016-11-27T22:22:23 | 2016-11-27T22:22:23 | 63,496,663 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | # coding: utf-8
"""
Coinsecure Api Documentation
To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guideli... | [
"vivek0@users.noreply.github.com"
] | vivek0@users.noreply.github.com |
d843b8f6fb145e7056ec2127d347258331718536 | bbb40f1626d0f21d0501b936234712a4d0093301 | /CcsTest.py | a9de62e2ac28e9feeff5a6f8af038de358bc0fda | [] | no_license | zziamalei/python-http | 276832933d7af6a5ecf3c4b744a20d44a493e6e2 | 6d0e75d217c5f37311d644ac29d68490e1f31606 | refs/heads/master | 2023-01-10T11:04:14.882088 | 2020-11-16T04:07:29 | 2020-11-16T04:07:29 | 313,185,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | import RequestUtil
import hashlib,base64
import json
import SystemLog
import time
import _thread
def getDoor():
data ={
"clientId": "89788097",
"data": "{\"sys_id\":\"002dddf8-3da4-4bcb-abb9-47bb1e704fc4\",\"commandCode\":101011,\"door_no\":\"\",\"page_now\":0,\"page_size\":10}",
... | [
"ray.mae@peake.com.cn"
] | ray.mae@peake.com.cn |
110e68626a3a41241542e46200b9b2518c135ea3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/149/40381/submittedfiles/testes.py | ea7b0089a5a041e237f02731936156abd74a1461 | [] | 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 | 93 | py | # -*- coding: utf-8 -*-
import math
i=int(input('digite i:'))
while i<10:
print(i)
i=i+1
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7ec44bff23bf5f39d62f220fc921a402d8c4267c | b6ea6c6a7e4331075cf78fa98fdfc4dd0a05b4a2 | /Tensorflow/4-图片剪切/ImageCut.py | 50424ca909b8bb9db73dad007909f0f9f52cacbc | [] | no_license | mingzichangnb/11 | 28fca303cd2b0fc1cf9014a06fb1edfb2844d3a7 | 4d40b64cefb2b35c13e48702ff1a891d5ac6d118 | refs/heads/master | 2020-06-15T15:59:40.083686 | 2019-07-05T07:09:15 | 2019-07-05T07:09:15 | 195,334,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py |
# x 100-200 y 100 -300
import cv2
img = cv2.imread('image0.jpg',1)
imgInfo = img.shape
print(imgInfo)
height = imgInfo[0]
width = imgInfo[1]
mode = imgInfo[2]
# 放大 缩小 任意比例 非等比例
datHeight = int(height*0.5)
datWidth = int(width*0.5)
dst =img[100:200,100:300]
#cv2.imwrite('image1.jpg',dst,[cv2.IMWRITE_JPEG_QUALI... | [
"1223041328@qq.com"
] | 1223041328@qq.com |
a8be8bddddc67ab30f266259012c32c14fe1bede | ce18cf6bdb1a85a65a509597b4c0ec046b855186 | /2021年4月/接雨水.py | e3b2d4f6b80d4cf594dc6bc3a4110f902cfdb9c8 | [] | no_license | elssm/leetcode | e12e39faff1da5afb234be08e7d9db85fbee58f8 | a38103d2d93b34bc8bcf09f87c7ea698f99c4e36 | refs/heads/master | 2021-06-11T06:44:44.993905 | 2021-04-28T06:14:23 | 2021-04-28T06:14:23 | 171,072,054 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | class Solution(object):
def trap(self, height):
"""
:type height: List[int]
:rtype: int
"""
if len(height) <= 1:
return 0
#两层循环时间复杂度太大了。不过思路没问题
# ans=0
# start=0
# end=0
# max_h = max(height)
# for i in rang... | [
"noreply@github.com"
] | noreply@github.com |
3daeb98cf549c02dfd2bbba036a474e93b402841 | 5a281cb78335e06c631181720546f6876005d4e5 | /sahara-10.0.0/api-ref/source/conf.py | d7580249d82601bc268b6c35106c8df3c1ec2580 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 7,091 | py | # -*- coding: utf-8 -*-
#
# 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, softwa... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
90689c1dbc9d5cf511b7795263c1141908aa6543 | 768c943ad00e907777d5e489dac6ede1fa369923 | /evaluation.py | 3a21bc506cb00aa2941b4eb5ec23c2a403d7003c | [
"MIT"
] | permissive | effa/iv109 | 01006d8a9e66a8c2e0616b3205dd8b161d8b89be | 7c726449050cbb68df729236012c4d4d4abb08e3 | refs/heads/master | 2020-03-16T14:07:56.188235 | 2018-05-31T05:50:35 | 2018-05-31T05:50:35 | 132,708,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | from random import randint
import numpy as np
import pandas as pd
from models import get_nstudents, proxy_objective_solved_tasks
from simulation import simulate_system
def evaluate_system(
proxy_objective=proxy_objective_solved_tasks,
noise=0,
n_iters_system=50,
n_systems=10,
n... | [
"Tomas.Effenberger@gmail.com"
] | Tomas.Effenberger@gmail.com |
9bdfbf61dce36e4cf4db5e261bcab6169238f587 | 1289d4eb7e3b313ee21fa48cdd49d5af1772db0a | /main.py | d0e770d8fa33950549fa4ee9c2c436f232614fb0 | [] | no_license | ansko/Lato | a2ea6105d596ccd8874b7822b325b5921d18a70f | f5e3f8eca7af7e8f5eec649aaf8f848a6c367ef2 | refs/heads/master | 2021-01-11T02:12:45.651699 | 2016-10-15T20:07:07 | 2016-10-15T20:07:07 | 70,993,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | #!/usr/bin/env python3
# coding: utf-8
from atoms_class import Atoms
atoms = Atoms('co.50000.data')
print (atoms.atoms)
| [
"skomorokhov@phystech.edu"
] | skomorokhov@phystech.edu |
2eb2c39e2dbec343fb779a8a9bfcf56a99c68405 | 34093ac911678ee36df21d20d47b6fa66adf6e4b | /Generator.py | 785443bb5d057c55a4966b4542de8562490eb89d | [] | no_license | shorstman/GMTKGameJam | 029a8b4dd9fe9f6b3a0a22b63b4d2d9bf7016221 | f6fdc169796a914d464371a80fa23ae59f047b3b | refs/heads/master | 2021-01-01T04:54:50.095841 | 2017-07-16T20:16:07 | 2017-07-16T20:16:07 | 97,063,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | import random
import copy
from PIL import Image
aliveStart = 46
height = 128
width = 64
deathLimit = 3
birthLimit = 4
steps = 2
def initializeMap(cellMap):
for x in range(0, width):
cellMap.append([])
for y in range(0, height):
if(random.randint(1,100) < aliveStart):
ce... | [
"horstman.s@husky.neu.edu"
] | horstman.s@husky.neu.edu |
a44071f32887e40ce0d4932d4b101acb4e435fde | 01d7210680d21b04e63bbe8bd46417c266ac2a74 | /runway/cfngin/hooks/ssm/parameter.py | f51e50feac4dbb141b7a4a8291d6dd164e241ae5 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | ITProKyle/runway | 6468371431c0115cd95840a3893a1798021cd5f6 | 5ffd348bb8fc2169645c48a5db6027b5dcb8b254 | refs/heads/master | 2022-06-13T10:48:33.405999 | 2022-03-04T13:44:13 | 2022-03-04T13:44:13 | 195,862,699 | 1 | 0 | Apache-2.0 | 2020-08-18T21:11:56 | 2019-07-08T18:06:11 | Python | UTF-8 | Python | false | false | 11,073 | py | """AWS SSM Parameter Store hooks."""
# pylint: disable=no-self-argument,no-self-use
from __future__ import annotations
import json
import logging
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union, cast
from pydantic import Extra, validator
from typing_extensions import Literal, TypedDict
from ....co... | [
"noreply@github.com"
] | noreply@github.com |
73cd6a1c012e42cf063004483792727385abd3e4 | d31e74ad730b1fa3bd45d2c94c3dfa707ca38b50 | /sasta_google/api/sentimentAnalysis.py | 9c455031ad1d004364ae8cdde8aaa38015826f89 | [] | no_license | I-am-Harsh/iwp_project | bb8ea94fc4efcb70d4675e4e5bce227a5272ebb1 | ae56cc6405afecfeea066a76ea68879eadb05e86 | refs/heads/master | 2021-06-10T21:54:07.955721 | 2020-06-20T16:46:17 | 2020-06-20T16:46:17 | 155,913,082 | 0 | 0 | null | 2021-06-01T22:55:21 | 2018-11-02T19:34:20 | CSS | UTF-8 | Python | false | false | 18,266 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#----- Use python 2.7-------
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
#time for execution
import timeit
start_time = timeit.default_timer()
from nltk.corpus import sentiwordnet as swn
import random
from sklearn import svm
import nltk
import re
from emoji impor... | [
"noreply@github.com"
] | noreply@github.com |
e7d06b69098c61957d1e0675ce4ca33a5024f203 | 4b583107d626cec0f926d96cb3b3653137a88923 | /apps/polls/forms.py | d1fc77cc261891e1c9e1d08a55ac8fd1d8496493 | [
"Apache-2.0"
] | permissive | Devin6Tam/site_demo | ec75f79c47d9848f2fede420b3b6460102860ace | c8766b574da0f0c8259995f56cc1a201fc2281be | refs/heads/master | 2022-12-11T05:43:24.379606 | 2020-03-31T07:03:43 | 2020-03-31T07:03:43 | 251,525,487 | 0 | 0 | NOASSERTION | 2022-12-08T03:56:25 | 2020-03-31T07:02:38 | Python | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/3/11 9:53
# @Author : tanxw
# @Desc : 表单
from django import forms
class NameForm(forms.Form):
your_name = forms.CharField(label='Your name', max_length=100)
class ContactForm(forms.Form):
subject = forms.CharField(max_length=100)
message ... | [
"tanxw@kaisagroup.com"
] | tanxw@kaisagroup.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.