blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
afd0e272f53f664ee3b9139fa436e06067281f3b
fe8da1d3efa5bcc5b9833bd1358275fb517f1060
/facenet-pytorch/models/tensorflow2pytorch.py
359e6d245ca30b8a48d0f5f7db120f22cd4d1dd8
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
permissive
juliagong/sketch2face
d57a95a4eea9bcdafff88f801cee7b0bb740049e
40b7f1ee129dc0ff14c4d3a4e3479a7ee5439296
refs/heads/master
2023-05-27T08:22:12.110124
2020-06-30T02:51:15
2020-06-30T02:51:15
192,847,872
13
2
NOASSERTION
2023-05-22T22:16:07
2019-06-20T04:22:22
Jupyter Notebook
UTF-8
Python
false
false
11,619
py
from dependencies.facenet.src import facenet from dependencies.facenet.src.models import inception_resnet_v1 as tf_mdl import tensorflow as tf import torch import json import os from models.inception_resnet_v1 import InceptionResNetV1 def import_tf_params(tf_mdl_dir, sess): """Import tensorflow model from save d...
[ "juliaxgong@gmail.com" ]
juliaxgong@gmail.com
6e8f312ce8d26da7d371c9bd295ee0598f010704
5cc1296f10af0d65691fd01a23221d6d85f4deff
/cotizacion/migrations/0009_auto_20150805_1400.py
f213b7ccb1a13cf363c1195baf3b10f04e54fea3
[]
no_license
yusnelvy/mtvmcotizacion
e52b58fe8c50d3921d36490084de328c52e4e9ea
07d2bd5f36350b149c16a0aa514bb610b0cd3e18
refs/heads/master
2016-09-05T23:31:15.800940
2015-11-07T13:12:30
2015-11-07T13:12:30
35,440,629
0
0
null
2015-12-18T16:16:23
2015-05-11T18:01:47
JavaScript
UTF-8
Python
false
false
1,033
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('cotizacion', '0008_auto_20150727_1207'), ] operations = [ migrations.AlterField( model_name='tiempo_carga', ...
[ "yusnelvy@gmail.com" ]
yusnelvy@gmail.com
ca2ae996f994c2921230d0d35c9f69c38a27eabf
877c8c11143be609c3105d6f29a18f992cca5cfc
/0064_20190415_204400.py
096608f9dc3ad2ee5fa514fd243a57b9cbb9e5c6
[]
no_license
IvanaGyro/LeetCode-Answer
8a0b0c56d7d751002f430f676280f6ee9dba1939
aab9b4e6fda821763ce54e4f580a39c622971349
refs/heads/master
2020-05-01T17:53:15.651545
2020-04-18T11:49:20
2020-04-18T11:49:20
177,611,356
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
class Solution: def minPathSum(self, grid: List[List[int]]) -> int: if not grid or not grid[0]: return 0 if len(grid) > 1: for i in range(1, len(grid)): grid[i][0] += grid[i - 1][0] if len(grid[0]) > 1: for j in range(1, le...
[ "iven00000000@gmail.com" ]
iven00000000@gmail.com
0f606882ce06c84c1d476970b5e536632bad59e4
b5aea44506bd21fcd7b259abb372d93cca5837a4
/income_classification.py
167d494b05429e52f77aec7108da545266c93fff
[]
no_license
programmingknowledege/MachineLearning
b5135c996c6c103852023a6a33f01d5d930baa17
37c523a3dd107fa8a22ef268a9ee9f64c90afaca
refs/heads/master
2022-11-10T08:48:15.519752
2020-06-24T17:23:05
2020-06-24T17:23:05
274,725,891
1
0
null
null
null
null
UTF-8
Python
false
false
296
py
import pandas as pd from sklearn.preprocessing import LabelEncoder data=pd.read_csv("C:\\Users\\kunal\\Downloads\\income-classification\\income_evaluation.csv") print(data.columns) le_income=LabelEncoder() data[" income"]=le_income.fit_transform(data[" income"]) print(data[" income"].unique())
[ "bafnakunal1998@gmail.com" ]
bafnakunal1998@gmail.com
1591371310314083e2b8c2848fe393223b425cc9
b50d4539a08d18839f7260dd5283eced8a40f932
/project/urls.py
29be03a36c2098adf0b01931dddd988f236ccb3f
[]
no_license
walid-brahim/django-class
6b8739b1c370489182e2662d8f06e5c750ab65e5
80ad2264c09adb3fec287806be7b79a109abe9e2
refs/heads/master
2022-11-17T05:51:00.875416
2020-07-15T11:43:41
2020-07-15T11:43:41
279,705,336
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "wbrahim1899@gmail.com" ]
wbrahim1899@gmail.com
d510a984109e30d272424766c0f4ceedc20d77e2
ec5c35ac5163c4e81262a81a6a6c46667c01733d
/server/api.py
dfdfa338713c8c53b8fe3fb180871a407ed32b13
[]
no_license
kotawiw/bytedance-exercise-2
27b32d81aa7e8040c1c8448acbe9c4ff20ff5b26
8db190487a6490ec852d8418d93ba62251a5437f
refs/heads/master
2022-12-24T00:04:53.047395
2020-09-23T11:48:13
2020-09-23T11:48:13
297,948,510
0
0
null
null
null
null
UTF-8
Python
false
false
2,826
py
from flask import Blueprint, request, abort, jsonify from flask import g from server.auth import login_required from server.models.users import User from server.models.events import Event from server.models.events import EventRegistration bp = Blueprint("api", __name__, url_prefix="/api") @bp.route("/events", metho...
[ "you@example.com" ]
you@example.com
fa46caa1f1f3f3becac7ffa22defea3a911bab75
ade138f110f2a311a6d2b425be33b5691fe8bd11
/src/regex/patterns.py
f07bf814760ef45cc07ba4723857880fd075dde6
[]
no_license
colinbazzano/learning-python
68f6c7435691834b7c6e2dd6ac43872b76c94aee
118c51d8b4a16c571584457bbadf97041c23953d
refs/heads/master
2022-12-10T12:59:52.122819
2020-03-22T17:26:29
2020-03-22T17:26:29
247,514,583
1
0
null
2022-12-08T03:51:47
2020-03-15T17:21:34
Python
UTF-8
Python
false
false
543
py
"""patterns patterns are a powerful way to use Regex to learn more regex101.com to practice https://regexone.com/ email validation r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" """ import re pattern = re.compile(r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)") string = 'fake_email@email.org' pattern2...
[ "colinbazzano@Colins-MacBook-Pro.local" ]
colinbazzano@Colins-MacBook-Pro.local
b9950dd4f6bb688de78a9a92c88f0ae70755ed6e
8f6a9ff4c63fd24d145088077d5da1c3e4caaa3a
/programming trade/easyhistory - download 备份修改/easyhistroy/history.py
ea5e4c058c768ff89e5b70d20e111adb96f0d2fc
[]
no_license
liaofuwei/pythoncoding
6fd2afba0d27c4a4bbb4b2d321b3fa402a60d6fe
966bd99459be933cf48287412a40e0c7a3d0b8e5
refs/heads/master
2021-07-15T10:34:57.701528
2017-10-10T05:27:13
2017-10-10T05:27:13
107,651,470
0
1
null
null
null
null
UTF-8
Python
false
false
1,621
py
# coding:utf-8 import os import pandas as pd import talib class Indicator(object): def __init__(self, stock_code, history): self.stock_code = stock_code self.history = history def load_csv_files(self, path): file_list = [f for f in os.listdir(path) if f.endswith('.csv')] for ...
[ "459193023@qq.com" ]
459193023@qq.com
f0c5be2e54cfd6b4c05e9c5ed5ce3fd666c97b30
ce2feffb3b8c3433eefb596aacbb9b73ff8bb3bb
/Desktop/TAGTOSHOP/Chatbot/qrcode-bot/fb_chatbot/models.py
e932d9c0e6e0c6d56aa0984ccaa6a386132d3f42
[]
no_license
RamonRR93/MicrocontrollerPrisonProject
a6fe0fa8de6b05a490514bec3857918639afe138
3f7e65e29440744fa37e178737e18edc157c7f70
refs/heads/master
2020-12-24T09:56:22.248517
2017-09-29T14:50:38
2017-09-29T14:50:38
73,256,369
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
from __future__ import unicode_literals from django.db import models # Create your models here. class FacebookUser(models.Model): fb_id = models.IntegerField(primary_key=True) first_name = models.CharField(max_length=255) last_name = models.CharField(max_length=255) profile_pic = models.CharField(max_...
[ "rr3088@columbia.edu" ]
rr3088@columbia.edu
77e0b14f23eeea5597c04077de558897a24bc4d1
d62ab6cb9243e790ac9537274f5bfa424b154d45
/04-Flappy_bird_single/Brid_DQN.py
7c1eec3fe592b3fdb4acf78eb6e18efab6b481d3
[]
no_license
HeatedMajin/RL_experiment_note
cd06916b296f8ffcce96ebfe8250d14cf81ecf0b
445a76c9c85895fe5bcda83cd0d37d7cbfd0107f
refs/heads/master
2022-11-29T23:56:45.188342
2020-08-10T12:52:56
2020-08-10T12:52:56
278,829,649
0
1
null
null
null
null
UTF-8
Python
false
false
3,562
py
from collections import deque import numpy as np import torch from torch import nn from torch.autograd import Variable device = torch.device("cuda" if torch.cuda.is_available() else "cpu") class Bird_DQN(nn.Module): '''' Deep Q network for flapping bird: Given image , the network will output what the...
[ "a145926@163.com" ]
a145926@163.com
c02a678107f5e807bc54b95fb1bc038e46931756
f338eb32c45d8d5d002a84798a7df7bb0403b3c4
/DQM/DTMonitorModule/test/DTkFactValidation_1_TEMPL_cfg.py
28873b4aebd3900356c5f720350f92f2c2e3d464
[]
permissive
wouf/cmssw
0a8a8016e6bebc611f1277379e12bef130464afb
60da16aec83a0fc016cca9e2a5ed0768ba3b161c
refs/heads/CMSSW_7_3_X
2022-06-30T04:35:45.380754
2015-05-08T17:40:17
2015-05-08T17:40:17
463,028,972
0
0
Apache-2.0
2022-02-24T06:05:30
2022-02-24T06:05:26
null
UTF-8
Python
false
false
3,607
py
import FWCore.ParameterSet.Config as cms process = cms.Process("PROD") process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring('resolutionTest_step1', 'resolutionTest_step2', 'resolutionTest_step3'), cout = cms.untracked.PSet( threshold = cms.untracked...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
a03b1ddee9bd276eb940bb87b27069497c127011
b5c33e768a9845ae242026cb2a85ec4f073c4aa4
/2_create-topic-model/sparkutils.py
ea2bc40e68ad0e69fe65c29a9bff4ba918b2b465
[]
no_license
htrc/ACS-samayoa
560e292db3d90fa1f4c1228d3239a7933863e4fb
3a4652eef53e86e5ac6e566a6fdf62da88525854
refs/heads/master
2023-05-14T20:07:16.282745
2021-06-03T20:01:43
2021-06-03T20:01:43
362,940,964
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
import sys from typing import Union from pyspark import SparkConf, SparkContext from pyspark.sql import SparkSession def config_spark(app_name: str, num_cores: int = None) -> SparkSession: spark_conf = SparkConf().setAppName(app_name) if num_cores is not None: spark_conf.setMaster(f"local[{num_cores}...
[ "capitanu@illinois.edu" ]
capitanu@illinois.edu
269ba1cfc40017b082ebff0bdbc3320c353476f2
febd53417e07f52dc4a717cf241967be6e977913
/DataRendering/structures.py
de84e5e948b5a1f2fe43f99a24c790b2bebcbaad
[]
no_license
DynamicsAndNeuralSystems/DevelopingMouse
1d2d9d1e14fcee22f1032876e37fdd09334fd64f
551d68ade7e522a62534293d004e24dc05ccb804
refs/heads/master
2023-03-21T09:25:22.200676
2021-03-19T02:24:54
2021-03-19T02:24:54
93,137,008
0
0
null
null
null
null
UTF-8
Python
false
false
6,026
py
# import sys # print('\n'.join(sys.path)) from allensdk.api.queries.rma_api import RmaApi import pandas as pd import os api = RmaApi() MOUSE_GRAPH_ID = 17 def getStructureInfo(structure_level, other_criteria): STRUCTURE_LEVEL=structure_level OTHER_CRITERIA=other_criteria structures = pd.DataFrame( ...
[ "lauhoiyangladys@gmail.com" ]
lauhoiyangladys@gmail.com
33889b44e80246dbdece176c1b56e7f53f3baae2
f64a580208cfd7fa332dc1df9cb9e776f9581216
/jobportal/views.py
df0025f809db53e36768749963ad5a71e1de3618
[]
no_license
pravsp/job-portal
66f0bb3051643da6af73a5ea3328cd61ad22254a
84c2a18a1ce54374b107de18d73f2184565f1658
refs/heads/master
2022-12-23T09:09:38.763835
2020-10-01T16:45:32
2020-10-01T16:45:32
299,570,940
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
from jobportal import app from flask import jsonify @app.route('/') def home(): return jsonify({'message': 'Welcome to rusteez!!!'})
[ "praveen.kumar.sp@gmail.com" ]
praveen.kumar.sp@gmail.com
1a24d817c3f129cc65696bef11cd602b33c56141
edde0db6d7df34dce6b68b64bd88b382300d5661
/021.py
1a4a7697905445a6524d39963a4f8134345e59b0
[]
no_license
Trietptm-on-Coding-Algorithms/eulerproject
2af378c2464130e097e410ca981d11e8de743d7b
c794ae2528a516bd62069d59f9375210e4376969
refs/heads/master
2021-01-14T02:29:38.582949
2013-04-05T05:03:44
2013-04-05T05:03:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
#! /usr/bin/env python def memo(func): cache={} def f(*arg): if arg not in cache: cache[arg] = func(*arg) return cache[arg] return f @memo def divisors(n): return [x for x in range(1,n//2+1) if n%x == 0] def d(n): return sum(divisors(n)) #print d(284),d(220) #220,284 ...
[ "kennel209@gmail.com" ]
kennel209@gmail.com
4869b01a3ceb8a2fe7ccd3a7f8289efc0306cd9a
4b8100df8c29a3676f3ed3f9cf4ce19f83fac6d5
/images/urls.py
038957d622f8315d93fcfe38b4d4c39f1b274bb3
[]
no_license
mtali/bookmark
bc96818764e18865ef18142ab075d512cd028cfa
f568e2463599b7d4333074d4dc0de28ca67f76ce
refs/heads/master
2021-04-12T01:45:48.934820
2018-03-18T19:43:34
2018-03-18T19:43:34
125,758,566
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
from django.urls import path from . import views app_name = 'images' urlpatterns = [ path('', views.image_list, name='list'), path('create/', views.image_create, name='images'), path('detail/<int:id>/<slug:slug>/', views.image_detail, name='detail'), path('like/', views.image_like, name='like'), p...
[ "emmanuelmtali@yahoo.com" ]
emmanuelmtali@yahoo.com
0282347967f78e46d8770816ad02f6e2e4a5cc3d
1f2494e856352873edba6dd24dcd5736a6c05351
/pystart/pystart/spiders/Hue.py
530c13f5d2cf578f79eadaa8e8868f7c8f2b2221
[]
no_license
namvh145/Nam-Scott
c0f5ae4b2e0e9cabe7b7896d5a2153ac2b5e7cbc
a9c7c84f85bb3cecd622ec07f44e05efdf955c50
refs/heads/master
2021-07-04T06:54:24.790942
2021-05-11T09:36:02
2021-05-11T09:36:02
234,663,416
0
0
null
null
null
null
UTF-8
Python
false
false
1,033
py
import re import scrapy class QuangTri(scrapy.Spider): name = "Hue" start_urls = [ "https://toplist.vn/top-list/diem-du-lich-noi-tieng-xu-hue-382.htm" ] def parse(self, response, **kwargs): address = ".media-body li::text , .media-body p::text , strong::text , .item_dsp_row .media-hea...
[ "noreply@github.com" ]
namvh145.noreply@github.com
ff4ddb936b2b3872ee557d4c51e532d34037b10d
38b5dff792caa9246b9cb0a92c74c713878f1a19
/Python/0804_UniqueMorseCodeWords/uniqueMorseRepresentations.py
3cfca6e6817a9ceae5e7bbc481b0cf325ad0971f
[]
no_license
mtmmy/Leetcode
12b108f81a3b3cee4f2801353e8fc8e9ec5e791e
75aef2f6c42aeb51261b9450a24099957a084d51
refs/heads/master
2020-12-02T06:43:22.419495
2019-04-07T18:30:45
2019-04-07T18:30:45
96,882,649
3
0
null
null
null
null
UTF-8
Python
false
false
674
py
import string class Solution: def uniqueMorseRepresentations(self, words): """ :type words: List[str] :rtype: int """ morseCode = [".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-"...
[ "mtmmy@users.noreply.github.com" ]
mtmmy@users.noreply.github.com
bc4df46eb7872b86c36c55931baed6b9e64e0e68
0b2590e8c6783a0ba9d811d4467e59241b037767
/python3_programming_tricks/ch09/9-4.py
7d550afaa409e34ca6df96184d15899b3b21c182
[]
no_license
tuxnotes/python_notes
f070dffb46f34eefd341c47fdb2e414e4f85261c
f031490b3a208898a45fec67d83bf75f6ad91b8e
refs/heads/master
2020-05-20T20:39:29.239620
2019-12-04T06:34:35
2019-12-04T06:34:35
185,746,541
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
import time import logging import random def warn_timeout(timeout): # 既然是带参数的,那么就是一个生产装饰器的工厂 # 定义装饰器 def decorator(func): def wrap(*args, **kwargs): t0 = timem.time() res = func(*args, **kwargs) used = time.time() - t0 if used > timeout: ...
[ "vodaka@126.com" ]
vodaka@126.com
fb6f67a97a02f948ad2aa2760275229fce44c0f1
1abe01b916df738f6597fd3d754e0caf5bba82db
/Books/contact/views.py
486198a07c7f7a2686fb8f898ce2ddaa145b8fda
[]
no_license
alegoriyas/Books
58cb711b3b35ca9069802e0437f7a28a4e8db8f0
b8fc2e0a5db88b921bd1b22965e95012feaadffd
refs/heads/master
2022-12-24T10:08:09.362715
2020-10-08T08:31:06
2020-10-08T08:31:06
273,240,848
0
0
null
null
null
null
UTF-8
Python
false
false
1,495
py
from django.shortcuts import render from django.core.mail import send_mail def index(request): send_mail('Hello from SteblinaEE', 'Hello there. This is an automated message.', 'steblinaee@gmail.com', ['egorinkas@gmail.com'], fail_silently=False) retur...
[ "alegoriyass@yandex.ru" ]
alegoriyass@yandex.ru
5f90d9616705b9653e695c4d316f9a93a74866bd
080ed9d2b5ff76c5613d8dd42cb4f33bd9b3a82e
/code/sheet_cleaner/sheet_processor.py
f41e8a41c99357f2914903acd8abb13763aa675a
[ "MIT" ]
permissive
garain/nCoV2019
2114b9031baa13a52a93c30e92995ccfb01ea075
9cd6829ada1fd193908b213e4716f536253dbbe4
refs/heads/master
2022-12-12T01:21:18.883025
2020-09-09T05:01:52
2020-09-09T05:01:52
260,449,278
2
0
MIT
2020-05-01T12:03:27
2020-05-01T12:03:26
null
UTF-8
Python
false
false
6,509
py
import logging import os from datetime import datetime from typing import List import configparser import pandas as pd from geocoding import csv_geocoder from spreadsheet import GoogleSheet from functions import (duplicate_rows_per_column, fix_na, fix_sex, generate_error_tables, trim_df, value...
[ "thomas.brewer@childrens.harvard.edu" ]
thomas.brewer@childrens.harvard.edu
d3169a5021ad5997b3bd8cbd3b310c67d027bb0e
53356576265cd15a98837e0f7ba60ce2b6a8d687
/getemails/pipelines.py
8cc50f657318fe68120fd1b906966134090cffa1
[]
no_license
cnoott/getemails
87abd44533d315f8929b00dc55ee23f5d328e424
2465a01f058ff4d47b57bf5184537023d54fe834
refs/heads/master
2022-11-28T15:37:36.620549
2020-08-11T16:37:55
2020-08-11T16:37:55
286,796,440
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class GetemailsPipeline: def process_ite...
[ "liamamadio@gmail.com" ]
liamamadio@gmail.com
03eb716acba6ddc2f77eb15d4d74e33f46e68cc5
a9bbcbb4d6142c0b290ad7177d29085354d3a1b1
/upstream/python-bitstring/test/test_bitstream.py
ebd92078b09f342167699b6492d4421e71d5e798
[ "MIT" ]
permissive
nssllc/carver
44caf9181824215e3c317485d93ad1ed92e0d2f6
89ce21ee8df216ce8485adb5f0b413050a4b3cce
refs/heads/master
2021-01-13T01:41:23.561399
2011-10-26T13:03:22
2011-10-26T13:03:22
2,506,499
0
0
null
null
null
null
UTF-8
Python
false
false
135,708
py
#!/usr/bin/env python import unittest import sys sys.path.insert(0, '..') import bitstring import copy import os import collections from bitstring import BitStream, ConstBitStream, pack from bitstring.bitstore import ByteStore, offsetcopy class FlexibleInitialisation(unittest.TestCase): def testFlexibleInitialis...
[ "dwindsor@networksecurityservicesllc.com" ]
dwindsor@networksecurityservicesllc.com
ead64974c7f331db8bd57afaac4d4c6e4eb8d533
98a288ad0496c484a777d31ffaaa0cd8678e6452
/plusfriend/urls.py
afa16ed72fcced5aec68292880dc2565ef9d9d58
[]
no_license
WHWH10/Askbot_ex
24224b78cfb3f5e5d8b15987075ff675396f3690
4bc0fb3f7c81470010617ffb927eaa886496a4b1
refs/heads/master
2021-06-26T06:46:26.077884
2017-09-11T07:47:35
2017-09-11T07:47:35
103,101,059
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^keyboard$', views.on_init), url(r'^friend$', views.on_added), url(r'^friend/(?P<user_key>[\w-]+)$', views.on_block), url(r'^chat_room/(?P<user_key>[\w-]+)$', views.on_leave), url(r'^message$', views.on_message), ]
[ "eyet010@gmail.com" ]
eyet010@gmail.com
41ad7dfb509fba61890e0aea60cd3b110cef1c09
01362c32c4f28774d35eb040fce84e1bdc1dbe36
/programming/migrations/0006_auto__add_field_film_picture__add_field_festival_picture__add_field_gi.py
f9215083aa7020ad553feb308aef4229099fee4b
[]
no_license
marcusvalentine/starandshadow
90c434e04829248a69c6a4d9cf6b32eb395d42c9
93a74542bc5d949238232632ee85de66438f78bb
refs/heads/master
2020-03-29T16:24:36.163141
2018-05-10T13:32:08
2018-05-10T13:32:08
150,112,777
0
0
null
2018-09-24T14:10:08
2018-09-24T14:10:07
null
UTF-8
Python
false
false
17,082
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Film.picture' db.add_column('programming_film', 'picture', self.gf('django.db.m...
[ "sjk@psimonkey.org.uk" ]
sjk@psimonkey.org.uk
5d009ec1750156835ab05bd369cef58aeaed239e
b4c93bad8ccc9007a7d3e7e1d1d4eb8388f6e988
/farmercoupon/migrations/0048_auto_20210322_1046.py
45f4e7b616e00e32a923afc76da686935d36cabb
[]
no_license
flashdreiv/fis
39b60c010d0d989a34c01b39ea88f7fc3be0a87d
b93277785d6ad113a90a011f7c43b1e3e9209ec5
refs/heads/main
2023-04-02T12:46:32.249800
2021-03-31T00:27:29
2021-03-31T00:27:29
343,431,800
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
# Generated by Django 3.1.7 on 2021-03-22 02:46 from django.db import migrations, models import multiselectfield.db.fields class Migration(migrations.Migration): dependencies = [ ('farmercoupon', '0047_auto_20210321_1524'), ] operations = [ migrations.AddField( model_name='f...
[ "dreivan.orprecio@gmail.com" ]
dreivan.orprecio@gmail.com
b84f468a68c639807ccd982bd0207469b605c051
d0571268b8b7fa8e6621d138217f6a98a418ca93
/_1327/main/migrations/0005_add_anonymous_group.py
c8edc82430a8a8a4e4e7e3ee4d329e6563f138d4
[ "MIT" ]
permissive
xasetl/1327
743a4a8b7c9b1984d3b8b434c4db4b6799a5ddb7
71a9d3adac0f01fb87612c24bb8d0f1b945cc703
refs/heads/master
2020-04-05T11:44:44.422539
2017-08-21T16:11:34
2017-08-21T16:11:34
35,056,504
2
0
null
2015-05-04T20:04:55
2015-05-04T20:04:55
null
UTF-8
Python
false
false
596
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.contrib.auth.models import Group from guardian.management import create_anonymous_user from guardian.utils import get_anonymous_user def add_anonymous_group(apps, schema_editor): create_anonymous_user(None) ...
[ "steffen.koette@gmail.com" ]
steffen.koette@gmail.com
8dda7acc6045272a3c4408b6132cc59c2ad575dc
97b5e5caedf0931b00fdce1df7bbdbad692bdd0b
/pyscf/cc/ec_ccsd_t.py
add7818fc1ad1071e15d9c022971f6ae9c6e6573
[ "Apache-2.0" ]
permissive
seunghoonlee89/pyscf-ecCC-TCC
c08cd333d7bf9accfb340ad3c1397b5d8a354b26
2091566fb83c1474e40bf74f271be2ce4611f60c
refs/heads/main
2023-08-21T08:22:12.188933
2021-10-21T17:54:50
2021-10-21T17:54:50
326,832,474
2
2
null
null
null
null
UTF-8
Python
false
false
18,463
py
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
[ "slee89@caltech.edu" ]
slee89@caltech.edu
17b8933019a86e9c2ffbcdaa3cb4a887f9d66940
7411152e1618fe463d170e78fc8df594de9ce88e
/web_scrapper.py
b22663f1377bfd8bab6de148fe86b01a03892fbe
[]
no_license
neramas1221/Bird_web_scrapper
31aa7f92df2223966359d9235feb452ea3f0d78a
11fb372932b5443f5586e0af7eb5ce88afbc25ce
refs/heads/master
2020-04-01T14:54:06.181993
2019-03-19T13:43:48
2019-03-19T13:43:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,201
py
import requests from bs4 import BeautifulSoup import time import numpy as np import pandas as pd import re page_counter = 8040 #8575 page_url = "https://www.xeno-canto.org/explore?dir=0&order=xc&pg=" download_url = "https://www.xeno-canto.org" folder = "/media/neramas1221/Maxtor/sounds/" row_Data = [] c...
[ "connorwheeler1997@gmail.com" ]
connorwheeler1997@gmail.com
1a4bb46bd52734b636a9289f60533e348c0cd036
6a7e2db41319fc6a4470a06258bf487234055021
/venv/Scripts/pip3.8-script.py
fa9e30e2c16968d373a28069a08af45f14f409f1
[]
no_license
AthanasiosChaloudis/Data-Science-for-Web-Applications
4cd448f4b9dd4d5df01be3ef12a4c00591a100e0
a99bfd0fad92c6b6238ee48b10d7543fa32de92f
refs/heads/main
2023-01-30T00:33:36.762972
2020-12-13T10:37:19
2020-12-13T10:37:19
308,966,948
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
#!C:\Users\Thanos\PycharmProjects\test1\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8' __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)?$', '', sys.argv...
[ "61148755+thanosuhh@users.noreply.github.com" ]
61148755+thanosuhh@users.noreply.github.com
ff6271a955e1cb503a3d11d4da07cb233f75e69b
897e63cc3e19882e50e76fc4abb3b1e7c5408001
/manage.py
7ded26bba34bfae49570ed0facc1d25773c241ff
[]
no_license
sasirekha3/molecular-search-system
277d67330532401bdb886845430f4dca3623fad4
eccb7722034bcbe1fa1d173ae91bdf1a98dba83b
refs/heads/master
2020-12-04T14:10:09.412422
2020-01-04T17:24:02
2020-01-04T17:24:02
231,795,662
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DjangoProj.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. A...
[ "ksasirekha@gmail.com" ]
ksasirekha@gmail.com
339cf3d15e438d86c084c9aa0f60c0b938831e58
3a910ca48f778e57cb0ab9a42f3e57ba2f527e6b
/reduceDimension/plotMethods.py
1d0c4ca6a23a62cb52ac8e19fcea7b522952998d
[]
no_license
DaveGeneral/tensorflow_manage_nets
d7daec9f6fbe466b5257ad2add5de8733df35ef0
1ed8e657a593ffd37eb15b1ec2dfb1c9e7dff4ea
refs/heads/master
2021-06-19T11:41:14.760786
2017-07-18T01:14:38
2017-07-18T01:14:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,554
py
import sys, os import numpy as np import matplotlib.pyplot as plt from itertools import cycle switch_server = True testdir = os.path.dirname('__file__') srcdir = '..' sys.path.insert(0, os.path.abspath(os.path.join(testdir, srcdir))) if switch_server is True: from tools import utils from nets import net_aenc...
[ "rikardo.corp@gmail.com" ]
rikardo.corp@gmail.com
cccbb148040f217b8a624f39a07f85f4fb552de4
433ada0b349e8a68dd85a5af047b90d23aee44c9
/include/ClientCaches.py
f4a6eb45028de815aa1b2763dfac4061d03724d5
[ "WTFPL" ]
permissive
3wayHimself/hydrus
7ddfe3507ad2b3e9dc4ab69cb9c6e25efc06c5aa
804ffe8cecfe01bdb9518070d31dbf826b72e8ef
refs/heads/master
2020-03-23T04:37:53.849078
2018-07-11T20:23:51
2018-07-11T20:23:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
106,375
py
import ClientDefaults import ClientDownloading import ClientParsing import ClientPaths import ClientRendering import ClientSearch import ClientServices import ClientThreading import HydrusConstants as HC import HydrusExceptions import HydrusFileHandling import HydrusPaths import HydrusSerialisable import HydrusSessions...
[ "hydrus.admin@gmail.com" ]
hydrus.admin@gmail.com
468c319fce38acce24ace0e88fc5325e3bdc9b49
4b56e86b33a52d2d1808d6b80f13a169f3f6159a
/ImproveDeepNN/OptimizationMethods/Momentum.py
c93deca6fb6eb05c5f1e573354eb5b638d4451d0
[]
no_license
vandeppce/DeepLearning
d922d4780afab5b733cc7a87b0c167bc4b2cfc81
5e2d4a34b8a5a1c81e132a1a70e2b503859b1f7d
refs/heads/master
2021-04-03T04:13:07.250159
2018-05-24T04:49:51
2018-05-24T04:49:51
124,764,156
2
0
null
null
null
null
UTF-8
Python
false
false
3,219
py
import numpy as np import matplotlib.pyplot as plt import scipy.io import math import sklearn import sklearn.datasets from ImproveDeepNN.OptimizationMethods.opt_utils import * from ImproveDeepNN.OptimizationMethods.testCases import * def initialize_velocity(parameters): """ Initializes the velocity as a pytho...
[ "sdtczyj@163.com" ]
sdtczyj@163.com
cba48a755863db9c8468e5ef1df1f3d89d1a79df
06cb3c450c322f6b01ee44c1f4de0a883a5a785e
/Echoo/__init__.py
09fa2ddd18cdb10f827e8356184c130e6e0f7acb
[ "MIT" ]
permissive
Lyken17/Echoo
239077c1791e61745e3dda97ca6661a5e9eca962
ae604ee42ee3cae9afe9d3583ede568567c7dbe8
refs/heads/master
2023-06-22T01:48:22.873260
2023-06-15T15:30:38
2023-06-15T15:30:38
205,288,960
5
2
MIT
2019-08-30T02:59:53
2019-08-30T02:26:11
Python
UTF-8
Python
false
false
24
py
from .echoo import Echoo
[ "ligeng@mit.edu" ]
ligeng@mit.edu
60860eacc8024b7eec8832f1bace9276b752943b
9af43f9f52ab8726caacdd594980d5e0bf462c40
/flask_transmute/decorators.py
29e4c8463f456ffad3e1540e4880e4cebb3c4467
[]
no_license
elindell/flask-transmute
3b28509fee071e606be0021bfdc63bff85b51a38
bd3c103c5eca9a5e4071f71be4a12460acddfd26
refs/heads/master
2021-01-22T09:16:45.945064
2016-04-04T08:49:08
2016-04-04T08:49:08
67,669,319
0
0
null
2016-09-08T04:48:59
2016-09-08T04:48:59
null
UTF-8
Python
false
false
769
py
def updates(f): """ this labels a function as one that updates data. """ f.updates = True return f def creates(f): """ this labels a function as one that creates data. """ f.creates = True return f def deletes(f): """ this labels a function as one that deletes data. ...
[ "tsutsumi.yusuke@gmail.com" ]
tsutsumi.yusuke@gmail.com
38ec4f2c3c29b218a061ec89a9850e93af9664f6
c0057c0bfa216ec991894352700c8e7bca52ad4a
/test2.py
9638768a9f5438f8d5af7319ec5bf987a0ec0be7
[]
no_license
syurituu/exercise
f040150d2a734fbc458038de2834b84585c5adaa
c7d4f5e16b79305c513c6576d9edf3da4b051974
refs/heads/master
2020-12-13T18:45:07.937811
2020-01-17T07:48:50
2020-01-17T07:48:50
234,498,432
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
import jieba def splitfile(inputFile, outputFile): fin=open(inputFile,'r',errors='ignore') fout=open(outputFile,'w',errors='ignore') for line in fin: line = line.strip() line = jieba.cut(line) outstr = " ".join(line) fout.write(outstr + '\n') fin.close() fout.close()...
[ "zhutom1996@gmail.com" ]
zhutom1996@gmail.com
7c818c5e714842a6d73b7c92f35e9830888d1a26
c6a37df4e40530dd87f89de5c8f6d98b10173c63
/concolic.py
b182cfc1bac7d0fa89b9d437352d1a084534721a
[]
no_license
KevinBender/AutomatedConcolic
ed88fc7cbe122d76679093b6945214c0ecd4a0b6
7c5e50f434bff0d3e25c4f346790915a55397d7a
refs/heads/master
2023-05-01T04:42:08.827665
2021-05-18T14:50:42
2021-05-18T14:50:42
361,894,492
0
0
null
null
null
null
UTF-8
Python
false
false
5,125
py
import z3 import traceback from inspect import currentframe, signature from dataclasses import dataclass """ This file implements a concolic execution engine. It assumes that a program under test is instrumented and will use the API concolic.guard() to collect path constraints, and the API concolic.set() and ...
[ "theguykevin@gmail.com" ]
theguykevin@gmail.com
94cb36fc55af1eb504fcbf88f2c20c31038bd4dc
917b85156ddfb653592b3b0994e7e7e9802a9eed
/ejerXML.py
c8789ca346bf35fd1f02bff24c1534fdec3609d4
[]
no_license
antoniogomezvarela/XML
3d2f2e8e1949b4a7f335a0b7c6ea229544d816a4
c6dfeed3d782c4a28e56c7992414accf9fdcc660
refs/heads/master
2021-01-22T03:25:47.441160
2015-03-06T07:28:34
2015-03-06T07:28:34
31,011,138
0
0
null
null
null
null
UTF-8
Python
false
false
2,135
py
# -*- coding: utf-8 -*- from lxml import etree from datetime import date tree = etree.parse('becas_premios.xml') documento = tree.getroot() #MENU print "1- Buscar beca o premio por teclado" print "2- Mostrar becas y enlaces" print "3- Buscar las becas y premios que su fecha de publicación este entre febrero y abril" ...
[ "root@debian" ]
root@debian
a6cb5f2f4b102661f20b0783836f1b11b3805ee9
3ebe732756194704043bb353c768ebb26cfed22e
/enbuyuksayi.py
e0d3d117bb893497f93897df0bc0708ec1b5cef0
[]
no_license
BarisKamis/CLARUSWAY
68ddf303d992d91268e0b5ef472fab13d1bdd554
63b2e0b3e119fdcbc27c956b436226134bec57b7
refs/heads/main
2023-06-09T16:18:25.579005
2021-07-01T20:48:01
2021-07-01T20:48:01
382,150,801
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
sayilar=[] for i in range(1,6): print ("bir sayi girin") x=input() sayilar.append(int(x)) i=i+1 enbuyuk=sayilar[1] for i in sayilar: if i > enbuyuk: enbuyuk=i i=i+1 print ("en buyuk sayi:", enbuyuk)
[ "noreply@github.com" ]
BarisKamis.noreply@github.com
5fc9f33ad9117e2363e5ed12f9e8c613c93c79bf
3ac9007691cacf0620530baf04dda9dd85fee556
/usr/bin/gooroom-update
db947198d61acf88ab08e6d71ed22d8f717e9f75
[]
no_license
ozun215/gooroom-update
406cec20414486113d04867ad8f5ec9fc455378d
1b69e58b001c36569557f51767310f33fa1a2dc8
refs/heads/master
2022-12-01T11:36:19.672171
2020-07-08T11:10:11
2020-07-08T11:10:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
130
#!/usr/bin/python import os import commands command="/usr/lib/gooroom/gooroomUpdate/gooroomUpdate.py show &" os.system(command)
[ "gooroom@gooroom.kr" ]
gooroom@gooroom.kr
321d28bf716d6a7c7adbd903db11e67dbdfd4a8b
743be419d9af6be760a4c9754a9fb946b84827ec
/manage.py
55a16d5a5082fbd03c4d4c1723d5af460278aaa9
[]
no_license
mathbeal/videomembership-django
f76c9debaef1b00171d79e8fd1e9409e24705f68
3fa779458197a245aacb82d00ff0e7102a3cb831
refs/heads/master
2021-06-04T20:13:38.457946
2016-09-13T13:37:05
2016-09-13T13:37:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "videomembership.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "leo.maltrait@gmail.com" ]
leo.maltrait@gmail.com
1262b3cda999d37cac7c4fdb37305365b0c404ab
38df8849ad0b43594dafb94008fd0036951dde85
/regexquerytool/regexquerytool/wsgi.py
505c9396070827e73bb9d9157051f0d3b84ff44c
[]
no_license
yasminhillis/regex_query_tool
ffebdcfeb312e9ec164f4ca429aa23c14a58823d
10e713755a9b35350ab467f515cbb541af891f0d
refs/heads/main
2023-01-05T00:03:23.064281
2020-11-08T09:33:21
2020-11-08T09:33:21
306,550,614
1
0
null
2020-11-08T09:33:22
2020-10-23T06:40:27
JavaScript
UTF-8
Python
false
false
683
py
""" WSGI config for regexquerytool project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os import sys # from pathlib import Path # path = 'regexquerytool.settings' from d...
[ "jasminehillis94@gmail.com" ]
jasminehillis94@gmail.com
54375b15c50675fc6a4c8d7cd3c9ca6202d57faa
07cd7d98765ffd3a11342155fb21fd1f209a4c9a
/examples/simple_user_interface.py
c25bfe062f4299ae0c71dd2229b4935b49fe2214
[ "Apache-2.0" ]
permissive
fooelisa/network_traffic_modeler_py3
1ce439b938289c02bfb4c0950b8fee9fefda8fde
9c5151c066331536b6864f7c5e152de3c352282f
refs/heads/master
2020-05-07T09:46:29.567195
2019-07-24T15:41:31
2019-07-24T15:41:31
180,391,380
0
0
null
null
null
null
UTF-8
Python
false
false
28,910
py
"""Simple, menu-driven UI for network_modeling module. Allows users to interact with and relate between associated demands, interfaces, and nodes.""" from pyNTM import Model from pyNTM import ModelException from pyNTM import Interface from pyNTM import Demand from pyNTM import Node from graph_network import graph_net...
[ "elisa@jasinska.de" ]
elisa@jasinska.de
a29090ef119e51b024e2fc4af969d65ecaef476a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_155/1805.py
f216188bcb5e778686fc1da1297901988727a426
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
566
py
def get_min_members(smax, audience): standing = 0 friends = 0 i = 1 standing += audience[0] while i <= smax: if standing < i: new_friends = i - standing standing += new_friends friends += new_friends standing += audience[i] i += 1 retu...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
e0e32be403a6963887949ef4f1269a652f11e196
89e6c3548fbdd06178aae712de1ff19004bc2faa
/my_django/contrib/localflavor/sk/forms.py
f5428d879572000d4ed3f57df9882da6f007f378
[]
no_license
bhgv/ublog_git.hg.repo-django.python-engine
a3f3cdcbacc95ec98f022f9719d3b300dd6541d4
74cdae100bff5e8ab8fb9c3e8ba95623333c2d43
refs/heads/master
2020-03-23T01:04:07.431749
2018-07-25T12:59:21
2018-07-25T12:59:21
140,899,479
0
0
null
null
null
null
UTF-8
Python
false
false
1,560
py
""" Slovak-specific form helpers """ from __future__ import absolute_import from my_django.contrib.localflavor.sk.sk_districts import DISTRICT_CHOICES from my_django.contrib.localflavor.sk.sk_regions import REGION_CHOICES from my_django.forms.fields import Select, RegexField from my_django.utils.translation import ug...
[ "bhgv.empire@gmail.com" ]
bhgv.empire@gmail.com
be7efb58da4aaf5477a500e8e99560403997a417
f8200c79eeddbf64f39ca21ac0afcaa1c235703a
/debug.py
dc93da203b599c61812c22b41857c85bd4143eb9
[]
no_license
glanton/robocritic
dbe98eb2ec7d8f79fa482f547f480e780b0688db
afd9545dfa158957e7ca9d40fcf59b410d192dcb
refs/heads/master
2016-08-05T03:52:24.779438
2015-05-01T20:57:25
2015-05-01T20:57:25
34,097,283
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
# functions and data used for debugging purposes # holds all counts kept when running the program _count_dict = {} # creates a new counter with the specified name when first called; increments counter on future calls # also prints the current count based on the specified frequency def run_counter(name, frequency): ...
[ "classay@gmail.com" ]
classay@gmail.com
e784cfeb07b1b4b44de67e5f78c4e17cfbf1338b
1d717c797e93b451f7da7c810a0fb4075b1050d5
/src/data/dataset/basic_dataset.py
bc875ea6516703ea40caa5028c2b7984ad5dd2fa
[]
no_license
jessie0624/nlp-task
32338b08051a3ea192db2bf74c9c969bdff1f6ad
aaeeed86341356d9fd061664f6f7bccf2ac353d0
refs/heads/master
2023-01-24T12:06:13.323646
2020-12-10T08:38:23
2020-12-10T08:38:23
292,151,135
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
import numpy as np from src.base import BaseDataset class BasicDataset(BaseDataset): def __init__(self, x: list, y: list, callbacks=None): super().__init__(callbacks=callbacks) self.x = x self.y = y self.sample() # 先获取候选的索引池(index pool) def get_index_pool(self): ''' ...
[ "jessie_lijie@126.com" ]
jessie_lijie@126.com
1c54602c168cdfc90d1c47fa582a445c1da70afa
730d9b6251cfb911250626b21c8476c30f5729c0
/day04/code/4-xpath-language.py
87de8b71941e2a1cc8923144e991fd9861a31ac6
[]
no_license
Wuhuaxing2017/spider_notes
7b6d6e9e26e97d9b67dda85fd4833f82ef793f58
69cb18e38f54c839e4d0ebaa7199f984dfbcf5da
refs/heads/master
2020-03-19T08:09:51.723802
2018-06-05T14:32:46
2018-06-05T14:32:46
136,180,732
0
0
null
null
null
null
UTF-8
Python
false
false
2,153
py
from lxml import etree html = '''<div> <ul> <li class="item-0"><a href="link1.html">first item</a></li> <li class="item-1"><a href="link2.html">second item</a></li> <li class="item-inactive"><a href="link3.html" class="linkjfdlsfjls">third item</a></li> <li class="shfs-in...
[ "Wuhuaxing2017@qq.com" ]
Wuhuaxing2017@qq.com
3baa1450535e83cf7f724f6e11344aa79973106c
18f5ea1689c88eac0a8e68f1697d04b9f4028e19
/manuel-ortiz-fortis-leonardo-Jimenez-miguel-rodriguez.py
66b9c13a76ea9db5d44f53949579900476c2621e
[]
no_license
MiguelAngelR95/programas-automatas
44dc69ff4fee2a807417de18e6cbdb946193ed2f
60881b805c01b09850691c4741e3ea6456d866c2
refs/heads/master
2021-01-18T22:55:27.817884
2016-08-05T03:47:27
2016-08-05T03:47:27
62,854,122
0
0
null
null
null
null
UTF-8
Python
false
false
2,063
py
mensaje = "ingrese los arreglos" print mensaje t = raw_input() lista = [] for i in range(0, int(t)): lista.append(raw_input("Ingrese elemento -> ")) print "A^0 = E" #--------------------------------------------------------------- a = "{" for i in range(0, len(lista)): a = a + lista[i]+"," a = a + "}" print "A^1 = ...
[ "noreply@github.com" ]
MiguelAngelR95.noreply@github.com
7ceee000b032290546e28faeaac57035bee55b29
9a65ca76a29102c3a74433a0d11a29e7d369b1b3
/Assignment03/single_layer_nn.py
1e93e03133650f348f4b4d9a593a02a3946dcb27
[ "MIT" ]
permissive
Ericbrod10/Deep-Learning
bd8ffe7d17f2275c885f7550b3394a8969f5c705
5b0a01597ce19f2da5bf45b76023b898c494f46a
refs/heads/main
2023-02-05T11:52:12.677261
2020-12-26T23:01:50
2020-12-26T23:01:50
324,647,676
0
0
null
null
null
null
UTF-8
Python
false
false
4,253
py
#Eric Broderick #eab37 #Assignment 3 import numpy as np import sys # Command: python single_layer_nn.py <train> <test> <n> # sys.argv[1] = <train> = training data # sys.argv[2] = <test> = test data # sys.argv[3] = <n> = number of nodes ## Read in data ## f = open(sys.argv[1]) data = np.loadtxt(f) train = data[:,...
[ "56181235+Ericbrod10@users.noreply.github.com" ]
56181235+Ericbrod10@users.noreply.github.com
3df5d2864b2526594da536cb97351fd21b615766
f8ee3224c99732805a09bd2cb4af787c47d6bc5f
/src/map/Menu.py
46c1d1c2cc713c69b77073a5d18d639b1ca0b9fc
[]
no_license
q3226257/FreeFantasy_v2
b57b2e5b4431f8d730ef7d4e6dafb1bf535be138
d1b5ba206b03a4b57a28a539618772c19f91169e
refs/heads/master
2020-04-13T15:50:52.044653
2019-01-01T15:36:39
2019-01-01T15:36:39
163,303,661
0
0
null
null
null
null
UTF-8
Python
false
false
893
py
import pygame import thorpy from info.App import AppInfo from main.Constant import * from info.Items import * import main.Main from interface.EventDeal import Update a = [Big(), Big(), Big()] class Menu(Update): def __init__(self, screen: pygame.Surface): self.screen = screen rect = pygame.Rect(s...
[ "616784622@qq.com" ]
616784622@qq.com
fc286ee99bce63c3cf6dad314ec4c1925f581e0f
7a98fb6d68f06f7926ed4a27e58ea0721d03e008
/utils/utils.py
a81cc75cb506506a3f3fc833b1e91252bbd44802
[]
no_license
d-c-a-i/DualVar
6ae0515e1ec2a35f27aab33cea008a74bb614f0d
244b19e29b9a8f67db94c41faeb50b91ec5f45f9
refs/heads/master
2023-08-31T13:02:07.917998
2021-10-22T17:09:44
2021-10-22T17:09:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,824
py
import os import glob import math import pickle import numpy as np import torch from torchvision import transforms import torch.distributed as dist from datetime import datetime from collections import deque import time from numba import jit from shutil import copyfile from dataloader import KVReader def save_checkp...
[ "bytedance@c02dw62hml85.sso.bytedance.com" ]
bytedance@c02dw62hml85.sso.bytedance.com
3ebc4805f20af93c3c9a5846bf9c7185e1c7a7c0
f2852e75af2c15d59cb962d7d5c81fa1e5cbe374
/home/migrations/0015_contactpage_map_address.py
b413c8f57fffec09fcecc85728e290124f5f5250
[ "Unlicense" ]
permissive
jesuispaulbonnet/technic-alu
27f4cb95a736894de7588d8d5a42efaa42a0ddb8
697b948108bdda3c2f538f88d747b5cd50e21254
refs/heads/master
2021-05-11T11:05:54.110018
2019-01-20T14:23:26
2019-01-20T14:23:26
118,121,037
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-02-23 12:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0014_auto_20180223_1254'), ] operations = [ migrations.AddField( ...
[ "paul.bonnet@tuware.com" ]
paul.bonnet@tuware.com
c3469d4c16126daa8fbccf787da1442ae647afdf
450021885a28d498f309b656973f1afd2ae538ef
/Mnist_UseNN.py
c232b0a1668431936e280db93cbd467d5cdeb590
[]
no_license
kimwoojoo/DeepLearningStudy
5f1f2e859b4f926c461847fafab02c855646ed71
521816261a2538cb6cb51b9b1019d27ca7e9a0b8
refs/heads/master
2020-04-27T11:57:33.578479
2019-03-08T01:59:53
2019-03-08T01:59:53
174,315,975
0
0
null
null
null
null
UTF-8
Python
false
false
3,160
py
# Lab 7 Learning rate and Evaluation import tensorflow as tf import matplotlib.pyplot as plt import random from PIL import Image tf.set_random_seed(777) # for reproducibility from tensorflow.examples.tutorials.mnist import input_data # Check out https://www.tensorflow.org/get_started/mnist/beginners for # more infor...
[ "kwj1217@gmail.com" ]
kwj1217@gmail.com
1c8145007edb09d77a3b15de5c34d0bc86c0ba97
f3f38df4c88ab9818bf9c8ef1fe4f7d2533d023c
/libwyag.py
b52610c487ba19ad0f1185c2d04c72475b8b4807
[]
no_license
dipam7/own_git
1c2c275f7873e2c09e04b5f8ca7f9ba12e82cd38
9c0598bd79cae02d3bb76c1d481593774f3ac1a1
refs/heads/master
2022-04-25T03:07:36.082607
2020-04-28T01:44:56
2020-04-28T01:44:56
258,418,031
0
0
null
null
null
null
UTF-8
Python
false
false
4,967
py
import argparse # for handling command line arguments import collections # for container types like OrderedDict import configparser import hashlib # for SHA-1 import os import re import sys import zlib # git compresses everything using zlib argparser = argparse.ArgumentParser(description="The stupid content tracker") ...
[ "dipam44@gmail.com" ]
dipam44@gmail.com
04047ac8d8a9f25d66d99cc2fac1fb7c0d56021c
f8054fae8e496cb9859a363d2571b4ac94c1d7a2
/Python/LineGrapg.py
c23e0235ad9bd49ab90ff0f8844f609f92732e79
[]
no_license
22aishwaryagoyal/Python
54f5d394a88c64496291de6de8dfa6c36d87b5f0
1daa508a664af423ce28d92dc7e837a68312fdf1
refs/heads/main
2023-07-03T20:18:00.729924
2021-08-19T12:15:45
2021-08-19T12:15:45
397,931,199
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
import pandas as pd data={'year':[1971,1981,1991,2001,2011],'pop':[50,73,81,98,111]} df=pd.DataFrame(data,columns=['year','pop']) df.plot(x='year',y='pop',kind='line')
[ "noreply@github.com" ]
22aishwaryagoyal.noreply@github.com
971dd6b3cb304f9c7d87eacd5e07e92e1786bc2e
f8d181f293ce950f1a70bef1d023139d9e70a2c7
/tests/contrib/operators/test_gcp_vision_operator_system.py
2b75642d6f3a3c93aab282d82e823a4a09d01087
[ "Apache-2.0", "BSD-3-Clause", "Python-2.0", "MIT", "BSD-2-Clause" ]
permissive
Piboonsak/airflow
d242f79561d893111ad73b9e3481b9180adecfd4
dce92a54190155898c75c0f3392d42fb28f1884a
refs/heads/master
2020-04-29T15:16:06.779329
2019-03-18T05:16:14
2019-03-18T05:16:14
176,222,528
1
0
Apache-2.0
2019-03-18T06:57:38
2019-03-18T06:57:38
null
UTF-8
Python
false
false
1,397
py
# -*- coding: utf-8 -*- # # 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 #...
[ "kaxilnaik@gmail.com" ]
kaxilnaik@gmail.com
467dc99e87a1d24ba74fc20773404fbbbbab9966
828e541b8c218db557da35b9d9d7a66fae68485a
/answer5.py
e67977dadcd32fbf0c9906928ea5d8f8e7163257
[]
no_license
arsh1807/Assignment-2
57b177e25dda5b41ce28382621c18c8731e71448
586c61138c4667ca651c53052170e9f2ea34edf8
refs/heads/master
2020-03-26T17:03:49.923704
2018-08-17T16:43:26
2018-08-17T16:43:26
145,139,602
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
#5 s="Acadview" course="Python" fees=5000 print ('%s' %(s)) print ('%s' %(course)) print ('%d' %(fees))
[ "arshi.1807@gmail.com" ]
arshi.1807@gmail.com
f00c3e6b4362f9f605b96e38965bde24e43788d5
eb10fc180021d020b0bf1ef73a37b96661270a25
/dbms_submissions/dbms_assignment_006/query.py
be7bc1956e3a11e80d86453f463bcfe51ec1559c
[]
no_license
Venkataramana228/dbms
efdffc66433476d69117aaf26143a87b851ac330
94f70053014c6f79170ae8c05b8a03f2ec315e0c
refs/heads/master
2022-09-08T16:42:57.615502
2020-05-28T09:19:12
2020-05-28T09:19:12
263,019,317
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
#Q1="SELECT fname,lname FROM Actor a INNER JOIN Cast c on a.id==c.pid WHERE c.mid==12148;" Q1="SELECT fname,lname FROM Actor INNER JOIN Cast on id==pid WHERE mid==12148;" Q2="SELECT COUNT(mid) FROM Actor a INNER JOIN Cast c on a.id=c.pid WHERE fname='Harrison (I)' and lname='Ford';" Q3="SELECT DISTINCT(pid) FROM Mov...
[ "ec2-user@ip-172-31-24-189.ap-southeast-1.compute.internal" ]
ec2-user@ip-172-31-24-189.ap-southeast-1.compute.internal
21f87cfc4e94213f0943b398cd2ea89c8f3719cd
268a5ff900334afe5a3201391857663cdda9b854
/VectoElem.py
5250eb381bfd722154c6b4d417290df90b45bda6
[]
no_license
Albertillo/Mecanica-Orbital
b065f297bd84421f1e5b1471c53e45ef32060026
0185a2614805be0ad39a22aa19439798a4c8b3d1
refs/heads/master
2020-03-28T07:06:43.501474
2018-09-07T22:50:51
2018-09-07T22:50:51
147,881,512
1
0
null
null
null
null
UTF-8
Python
false
false
2,524
py
############################################################################################################################################################### # VectoElem.py: Esta función se ha desarrollado para uso académico. No se recomienda que se utilice con otros propósitos. #...
[ "noreply@github.com" ]
Albertillo.noreply@github.com
0b5713449027037d0ab2ad412af79684d0153c48
1a166165ab8287d01cbb377a13efdb5eff5dfef0
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_06_01/aio/operations/_vpn_site_links_operations.py
5637893f1b1e6e52468412705bc4b471675b3407
[ "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
8,712
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" ]
manoj0806.noreply@github.com
f1a64d7a84c54f957d4f22b4840665e842377b13
5c052790b46d7b8e22dcf980c52bb3044b55a18f
/CSC308 Examples/Examples/Exceptions/UniversalExcept.py
ef4798f933a46e0471c8c6f950c2d51d5bbf2896
[]
no_license
raarnoldy23/pythonExamples
84ae05a20d962ae6f9ef3f2048260ce654e2baaa
3f50625198fdc51315810ffd7ff6647fbba9fd8a
refs/heads/master
2022-06-20T04:27:11.293644
2020-05-11T18:08:06
2020-05-11T18:08:06
263,116,977
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
def main(): total = 0.0 try: infile = open('text'.txt,'r') for line in infile: amount = float(line) total += amount infile.close() print(format(total, ".2f")) except: print("AN ERROR OCCURED!!!") ...
[ "ARN0644@calu.edu" ]
ARN0644@calu.edu
54a1edcce616c00b9f5f2d3535a386ba07406025
4b9d121c8df2d1a9985bec2315aa639976889b81
/Test de la manette.py
84a21e43250fb8d5b77ed31b4d06307649601b5f
[]
no_license
totowarx/proberXY
5d5d833a81b0e96b2e732922b6ede7f7ebcb4f0a
d0b40121d2795d413893b31a39ab2879ae1af980
refs/heads/main
2023-06-19T18:04:12.988081
2021-07-20T09:30:10
2021-07-20T09:30:10
360,071,861
1
0
null
2021-06-25T13:21:02
2021-04-21T07:28:07
G-code
UTF-8
Python
false
false
1,480
py
from __future__ import print_function import xbox # from xbox import Joystick # change le nombre à virgule flottante au format de chaîne -x.xxx def fmtFloat(n): return '{:6.3f}'.format(n) def show(*args): for arg in args: print(arg, end="") def showIf(boolean, ifTrue, ifFalse=" "): if boolean: ...
[ "noreply@github.com" ]
totowarx.noreply@github.com
13b67511127b138050e2016acbbbb75feb3e8ca5
f153a36b5e211690ded1af00c0160eebd2add1ca
/PROGRAMMERS/Level 1/두 정수 사이의 합.py
70d41e935d84b333409311cfd37d198781261bca
[]
no_license
KyungHoon0126/Algorithm
47551bbe22c70eac04ed518c2c9c1f65d48ee5b9
8369f0e1103d282cdc138666add65dd0ca926e70
refs/heads/master
2021-08-17T08:32:09.970502
2021-06-22T12:52:22
2021-06-22T12:52:22
214,456,043
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
def solution(a, b): answer = 0 first = 0 second = 0 first = a if a < b else b second = b if b > a else a print(first, second) for i in range(first, second + 1): answer += i return answer
[ "kidi052812@gmail.com" ]
kidi052812@gmail.com
063873b31a1e996e64f6e6dbfa4b16583a381395
50784449f366b224f9e652ab49789fe7c148b4f5
/environments/Env_RoleChangingZeroSum.py
ccd1da607ae956d4e8fe7fe91d0421252e6a3270
[ "BSD-2-Clause" ]
permissive
wbarfuss/POLD
655c5e3a499ed2b338d8826c52314a749f2d3175
0c12d3f937831770efa83e20d72c37df60c96882
refs/heads/main
2023-04-16T22:37:04.126714
2022-04-11T08:52:38
2022-04-11T08:52:38
470,242,430
1
0
null
null
null
null
UTF-8
Python
false
false
3,230
py
""" The 2-state Matching Pennies according to HennesEtAl2010 """ # import sys # from pathlib import Path # base_dir = Path(__file__).resolve().parent.parent.parent # sys.path.append(str(base_dir)) # from LearningDynamics.Envs.Env_Null import NullEnv from .Env_Null import NullEnv import numpy as np class RoleChangingZe...
[ "noreply@github.com" ]
wbarfuss.noreply@github.com
2e21fbc4566ec48ec6d3e36c44da1af16c81e5ea
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc101/A/4927211.py
4e4246f50058560e91aa73a6173b4e550e2b0b90
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
51
py
s = list(input()) print(s.count('+')-s.count('-'))
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
cfb58a7a49bde127229470f43e7c101d5f9d7168
ba1ddbc6b364dc2fd55f83ea807b50bf45ce3d1a
/PageObject/VivaVideo/home.py
23b61b58c20490654f07d632cf8e5bfc9c4414a4
[]
no_license
zlmone/ATX-UI
81c58fa722586fe6fb20cd39e3a85afa6057db93
44bfa67ed2274c2eeb36f905d5bd482fd96a6707
refs/heads/master
2022-05-28T09:03:40.380824
2020-05-06T11:39:39
2020-05-06T11:39:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,770
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from Public.Decorator import * from Public.Test_data import * log = Log() class home_Page(BasePage): '''创作页首页''' # @teststep # def wait_page(self): # try: # if self.d(resourceId="com.quvideo.xiaoying:id/iv_vip_home8_cut").wait(timeout=10)...
[ "lixin.zhu@quvideo.com" ]
lixin.zhu@quvideo.com
aa2a3f50015d27ba5e13535865c82d7ddc196297
6a200b3c86329d501c9c8082fb69a512fa69228b
/tasksupervisor/endpoint/fiware_orion/orion_interface.py
de408a5dc5b0878f8f6a886bb523c3fd1e473f09
[ "Apache-2.0" ]
permissive
iml130/mod.sw.tp.ts
09792a33e4ec4e53ac89d59aa19cb4dae7762b90
4cda3ef0d3791eb204d5510631fdb9ec7ec57aab
refs/heads/develop
2023-04-17T04:07:15.909996
2021-04-26T22:00:14
2021-04-26T22:00:14
335,564,272
0
1
Apache-2.0
2021-04-26T22:00:15
2021-02-03T09:00:35
Python
UTF-8
Python
false
false
6,795
py
""" Contains OrionInterface class """ import threading import logging # import local libs import tasksupervisor.my_globals as my_globals from tasksupervisor.helpers import servercheck from tasksupervisor.helpers.config_reader import ConfigReader from tasksupervisor.endpoint.fiware_orion.flask.flask_setup import cre...
[ "noreply@github.com" ]
iml130.noreply@github.com
2d9c96d214896f6dc2b7daa6ac2d6b09a83c5fe6
00acd54857f007df1ab2cacfaf48954d7d8a1cd2
/cp_2/sporysh_fb-95_cp2/lab2_encrypt.py
1d270d92d444d9f042abce5c435ab6df7901af6e
[]
no_license
Zhek0nBek0n/fb-labs-2021
2cc4a20680148a6e6e296f3c37034da8d23d8d5e
2c14c112ee23cc617227db41283799c3fb9271ad
refs/heads/master
2023-09-05T20:27:27.289457
2021-11-03T15:25:26
2021-11-03T15:25:26
413,180,574
0
0
null
2021-10-03T19:46:06
2021-10-03T19:46:05
null
UTF-8
Python
false
false
965
py
import numpy as np import time import matplotlib.pyplot as plt import os from Decryptor import lab_2_Decryptor as L2D from Cryptor import lab_2_Cryptor as L2C if __name__ == '__main__': start_time = time.time() cryptor = L2C("./voina_i_mir_small.txt") keys = "да нет киви жалко " \ "приветкиви " \ "приветж...
[ "sporyshzhenya@gmail.com" ]
sporyshzhenya@gmail.com
882b8ffb7a237ed542db1f3b35ec88de5b26db07
223a8859b801df7603f239a0ea3bdda0446591ce
/Corrector.py
081999aa39ec3369043fa86d70f3a53a69e3a36b
[]
no_license
nthuepl/On-Pen-handwritten-Word-Recognition-Using-Long-Short-Term-Memory-Model
bc3db0cb254b818efbac543314f4e6175bf69766
7cb597aa4dc749c03115421570472e43865a1583
refs/heads/master
2020-03-27T13:27:53.992505
2018-09-10T10:30:54
2018-09-10T10:30:54
146,611,269
0
0
null
null
null
null
UTF-8
Python
false
false
2,681
py
from spell import correction from Levenshtein import levenshtein, index import numpy as np class Lexicon(): def __init__(self): vocab_list = [] # load from file fp = open('20k.txt', 'r') for line in fp.readlines(): word = line[:-1] vocab_list.append(word) fp.close() self.word_list = [] self.pa...
[ "gn02336853@gmail.com" ]
gn02336853@gmail.com
fe1cc4e8b6b8201c08c79ccc09f50d705606c468
69e7dca194ab7b190e1a72928e28aa3821b47cfb
/Concepts/Strings/49.py
579955f18e9b68d977d8b50ba8f8ff8b211b3947
[]
no_license
Dinesh94Singh/PythonArchivedSolutions
a392891b431d47de0d5f606f7342a11b3127df4d
80cca595dc688ca67c1ebb45b339e724ec09c374
refs/heads/master
2023-06-14T14:56:44.470466
2021-07-11T06:07:38
2021-07-11T06:07:38
384,871,541
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
""" 49. Group Anagrams Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], ["nat","tan"], ["bat"] ] Note: All inputs will be in lowercase. The order of your output does not matter. """ import collections def group_...
[ "dinesh94singh@gmail.com" ]
dinesh94singh@gmail.com
31475d7e6cd976e2ad2ea6c3ecd3f56b4ae48fbc
326a026bcc6bad962159677110d78d3d836532ed
/markote/api/notebook.py
e05023873ff40b79701ec2540061e8c2d53ca0e2
[ "MIT" ]
permissive
Frederick-S/markote
f63a5007fd0a70ce4b3ae9d03425ae9f9c8b54f3
095dabe3da83b5d8809593758661eb78fa527f49
refs/heads/master
2023-03-04T16:50:30.541147
2022-08-12T01:24:43
2022-08-12T01:24:43
110,396,888
9
2
MIT
2023-03-04T13:11:38
2017-11-12T02:04:32
Vue
UTF-8
Python
false
false
870
py
from flask import jsonify, request from markote.api.api_blueprint import api_blueprint from markote.oauth import oauth @api_blueprint.route('/notebooks', methods=['GET']) def get_notebooks(): oauth_client = oauth.microsoft_graph response = oauth_client.get( 'me/onenote/notebooks?$select=id,displayName...
[ "mao_xiaodan@hotmail.com" ]
mao_xiaodan@hotmail.com
85307e709e74ac64e17f146241b6cfd3567f4f85
cf3f8baeb9e431ac9c070dbfa2cf28e748dc40a9
/Database/JsonToIPC.py
d4f1b93c4a808463082bd56f4e9b0c74d72b6523
[]
no_license
ericstoneking/42
b2eb7cb0a2c8c87b092a0b64bd9204f79013a98c
d4547dae44270876657aec009fe59980082ed999
refs/heads/master
2023-09-03T17:34:48.025904
2023-05-26T12:58:46
2023-05-26T12:58:46
32,602,944
198
92
null
2023-03-30T07:25:21
2015-03-20T19:30:47
C
UTF-8
Python
false
false
36,023
py
import sys import os import re # Regular Expressions import json # Set up globals Prog = "" Verb = "" Pipe = "" outfile = 0 EchoString = "" ParmPass = 0 ######################################################################## def WriteProlog(): global Prog, Verb, Pipe, outfile, EchoString outfile...
[ "Eric.T.Stoneking@nasa.gov" ]
Eric.T.Stoneking@nasa.gov
4b9a62611c764cd8d705fcf54fd46f2a5624deae
d9e26e516ab3863b6e7d00c4e3cdecf1af7028eb
/src/oaklib/io/rollup_report_writer.py
e4644c058309aeb0aeae82b0c4cc2fa52f2b5e04
[ "Apache-2.0" ]
permissive
INCATools/ontology-access-kit
2f08a64b7308e8307d1aaac2a81764e7d98b5928
8d2a124f7af66fe2e796f9e0ece55585438796a5
refs/heads/main
2023-08-30T14:28:57.201198
2023-08-29T17:40:19
2023-08-29T17:40:19
475,072,415
67
15
Apache-2.0
2023-09-07T01:06:04
2022-03-28T15:50:45
Jupyter Notebook
UTF-8
Python
false
false
3,444
py
from typing import Dict, List, TextIO from airium import Airium from linkml_runtime.dumpers import json_dumper, yaml_dumper def format_object(curie, label): if label: return f"{label} [{curie}]" else: return curie def add_association_group(doc: Airium, associations: List[Dict], subject: str...
[ "noreply@github.com" ]
INCATools.noreply@github.com
3a487eaa5b78fc12e70fe3c362a2bbce9ff5fb7c
fd7498ec78932500333d1c922bdbdebac94fbd7e
/leads/api.py
caeb33d61ba3b09108f7dee82ab41b9f0bdc6ace
[]
no_license
ajay-staruss/DjangoReactLEadManager
303419f2108379eb8ac78ad1bb7c8e171e2e1ded
83dadbb2d60657662f46a61aa8cf7fae2c0ee567
refs/heads/master
2022-07-02T08:25:32.669245
2020-05-16T09:39:04
2020-05-16T09:39:04
264,403,920
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
from leads.models import Lead from rest_framework import viewsets,permissions from .serializers import LeadSerializer class LeadViewSet(viewsets.ModelViewSet): queryset = Lead.objects.all() permission_classes = [ permissions.AllowAny ] serializer_class = LeadSerializer
[ "ajaypratap9980@gmail.com" ]
ajaypratap9980@gmail.com
00fb40dc657af4f71f40f6e500abe5ae5e629c29
66c8b9ee95b951a60847cfabad08250e65289812
/src/stringMatching.py
3d448a7161cd94aaf929827be219ed63195eda51
[]
no_license
sampanayak/ccfl-elastic
707206c2c08cc63d67bd9846fc38fce078b3b091
c717cce1855de0dce6d4b9c3b709a94331db55c6
refs/heads/master
2021-07-24T15:14:29.855623
2020-04-28T19:10:01
2020-04-28T19:10:01
157,615,068
0
0
null
2018-11-14T21:44:36
2018-11-14T21:44:35
null
UTF-8
Python
false
false
529
py
#contents = [] import re #i = 0 with open('gene.txt') as f: lines = f.readlines() i = 1 sizeOflines = len(lines) while i < sizeOflines: # print(lines[i]) fullString = lines[i] i += 1 sub = lines[i] print(fullString) print(sub) i += 1 for ma...
[ "31867379+sampanayak@users.noreply.github.com" ]
31867379+sampanayak@users.noreply.github.com
12360d4c69b79a4dda8833a2bc7d232357e2cee1
d0a240a606f6de871197ab21ff911f94c6eb6e20
/encoder.py
ba1215fdc88fed29ccbdbcc25a1cf565796be6cd
[]
no_license
PhucNguyen12038/RNN
e7bd2d8ed8fadab16af92257b9fc4b81b5e634e6
e7c8fee7fca8e846ddc01e6c4e5a2adfb64fd65f
refs/heads/main
2023-04-24T13:20:02.541340
2021-05-09T10:12:29
2021-05-09T10:12:29
349,739,483
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
import json import numpy as np class NumpyEncoder(json.JSONEncoder): """ Special json encoder for numpy types """ def default(self, obj): if isinstance(obj, np.integer): return int(obj) elif isinstance(obj, np.floating): return float(obj) elif isinstance(obj, np.ndarray): return obj....
[ "nguyenhuuphuc12038@gmail.com" ]
nguyenhuuphuc12038@gmail.com
7acf6cb2e275ff6ff0ce9cbc15c9a5046904a862
c8dee6f9c6885a8005765726673062f00cb18565
/main.py
bb748e27c54729621348c5365dd91804f2f2b9b0
[]
no_license
bhavanasrini/NFLFinal
6e41aab7c667cb073b4964d7ea906baa8076393d
5a877b336834b7ac341da3d8806481e9a0e6c0ab
refs/heads/master
2021-08-24T13:29:13.029930
2017-12-10T01:07:05
2017-12-10T01:07:05
113,593,079
0
1
null
2017-12-08T18:52:06
2017-12-08T16:12:06
Python
UTF-8
Python
false
false
31,166
py
def teamname1(): return "GB" def teamname2(): return "DET" def list(teamname): # CHIEFS if teamname == "KC": return ["http://www.espn.com/nfl/matchup?gameId=400951566", "http://www.espn.com/nfl/matchup?gameId=400951636", "http://www.espn.com/nfl/matchup?gameId=400951634", "http:...
[ "crystinrodrick7@hotmail.com" ]
crystinrodrick7@hotmail.com
0b6ed03178625556243a0a366ec1c4729202755e
93a35763a4fe06d6d7daa17166f7a899420905c0
/SRC/create_output.py
43256507f3904e77134d8e6a0b5157adad20be70
[]
no_license
uscoburgo/project-pipelines
43308d392d4c515204065cb1dec114449c38feea
aba5808a4d93d20e582155610634cc80657c2055
refs/heads/master
2022-11-11T15:43:30.782726
2020-06-23T01:47:12
2020-06-23T01:47:12
273,896,097
0
0
null
null
null
null
UTF-8
Python
false
false
2,792
py
import pandas as pd import numpy as np import re import requests from bs4 import BeautifulSoup from alpha_vantage.timeseries import TimeSeries from alpha_vantage.techindicators import TechIndicators from plots_stocks import plotSentiment import matplotlib import matplotlib.pyplot as plt from matplotlib.pyplot import fi...
[ "uscoburgo@gmail.com" ]
uscoburgo@gmail.com
bb926ed9470058408a9f838241a53266d6394661
3411c5b7b6821fb7ea5c836b47395cd6692cfc66
/single.py
9066023ec75cf1fab996795331007848d92db18d
[]
no_license
sparticlesteve/py-mt-example
410dbd057e77bee83793ccf244a52ac7cbf5a5af
349fb2e674388a0e50ad6dd881de0a57c0e72703
refs/heads/master
2020-04-28T23:18:10.610223
2015-04-04T22:19:44
2015-04-04T22:19:44
33,418,820
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
#!/usr/bin/env python3 import logging import os from time import time from download import setup_download_dir, get_links, download_link logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.getLogger('requests').setLevel(logging.CRITICAL) ...
[ "sfarrell@cern.ch" ]
sfarrell@cern.ch
5d531cf3d38f4598b918f4a682fe7d61279880ef
2e4d1da92dbf5b3d8a88322c19fc700f3bd1ef4e
/FDLNet-master/latency/rfnet/config.py
28d993a8b6d6bdf0d30d823a1e0305b76247a83a
[]
no_license
iamwangyabin/hardnetNas
e0ad756134556dacb152f1a326014baa48d6d010
ed2b22031971b5de15aa40844cab350ec1a1b8aa
refs/heads/master
2022-09-26T11:33:40.607810
2022-09-19T01:49:23
2022-09-19T01:49:23
215,681,633
1
0
null
2022-09-19T02:02:11
2019-10-17T01:59:48
Python
UTF-8
Python
false
false
3,115
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function # `pip install easydict` if you don't have it from easydict import EasyDict as edict __C = edict() cfg = __C """ Project options """ __C.PROJ = edict() # whether us gpu __C.PROJ.USE_GPU = True # seed for ra...
[ "38123329+iamwangyabin@users.noreply.github.com" ]
38123329+iamwangyabin@users.noreply.github.com
3df81fa28702b06dbef1125fae7633efa3dc8cc4
f81cb2e289ea1554c09164908c05dda1714005fc
/readSql_execute_in_DB/readScript.py
fe3ec84372868d68a7183ec7fccdd9f665b1a9ee
[]
no_license
priya100697/Python_
1a1997f409039c2406d3efea534e3e91e2cc91cc
55c62b9b2999022b4407d0ac9ccea56a4535d3dd
refs/heads/master
2022-12-18T03:05:31.651468
2020-09-20T18:21:11
2020-09-20T18:21:11
297,124,710
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
def readfile(path): data = list() buffer = str() with open(path, "r") as file: for line in file: if not line.isspace(): if line.strip()[-1] == ";": data.append(buffer + line.strip()) buffer = str() else: ...
[ "pandaypriya926@gmail.com" ]
pandaypriya926@gmail.com
91cfc2c67452f91c2a9477b90f68a5ca951e0c4a
71053f65cad20188ae5182fce4c77a074fde4309
/background-backup/hardware.py
71a5393a9447748f831f99a7812aa47e0a3a70b1
[]
no_license
Chenzhiyong47/Hello-World
f446b6ae4429e976ecafb27dec4fe4de63bceab3
5f41681a1630487af21d01013dba0618f8aebac9
refs/heads/master
2021-01-13T01:17:38.448915
2020-08-07T08:14:09
2020-08-07T08:14:09
81,441,023
0
0
null
null
null
null
UTF-8
Python
false
false
3,304
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Writing in newfile.py: from hardware import Hardware hardware = Hardware() # Press "Ctrl+C" to end a progress. hardware.ultrasound_A.test_distance() hardware.ultrasound_B.test_distance() hardware.ultrasou...
[ "chenzhiyong47@163.com" ]
chenzhiyong47@163.com
83a1d8573fd98ab9baa0b2388b9256d3d27f2daf
483d26722245774d0860f45157b0bc578dd2ff15
/crudproject/crud/views.py
dee5b041dd944c71b1cab6032b56809eee6b90fe
[]
no_license
raianibnfaiz/crudproject
a44a0a9a49e83442bb0019c2141b6304ff10fb2d
0a7ab9efb57aa57784b169ffb2eea8792daa1b86
refs/heads/master
2022-11-28T04:19:27.177597
2020-08-05T07:39:36
2020-08-05T07:39:36
285,215,884
0
0
null
null
null
null
UTF-8
Python
false
false
750
py
from django.shortcuts import render,redirect from .forms import MyUserForms from .models import MyUser def create_user(request): form= MyUserForms(request.POST or None) users= MyUser.objects.all() if form.is_valid(): form.save() return redirect('/') return render(request,'index.html',{...
[ "raianibnfaiz@gmail.com" ]
raianibnfaiz@gmail.com
6c04b7cbd139e06c8c9112a9e505b24f5d41fcbb
3a9ed017ed45361811fee0980af2eaf1bd7e3624
/homework3.py
9b7384f0e0a60585a00be03fd7b61b7ea89d6117
[]
no_license
harshsjani/State-space-search-Artificial-Intelligence
058e97f1bda8ce2bc55f52aad9a8584f5a956944
5609dbaa92c44a8cc5c7df554f7edf0b69428cd0
refs/heads/main
2023-06-19T05:58:12.968683
2021-07-17T00:58:58
2021-07-17T00:58:58
337,557,565
0
0
null
null
null
null
UTF-8
Python
false
false
4,604
py
import os from collections import deque class Constants: input_filename = "input.txt" output_filename = "output.txt" fail_output = "FAIL" directions = [(0, 1), (1, 0), (0, -1), (-1, 0), (1, 1), (1, -1), (-1, 1), (-1, -1)] class Solver: def __init__(self): self.parse_input() self....
[ "whizkid@gmail.com" ]
whizkid@gmail.com
9da3525a508b015180d6cba65f119f57588df51e
608900d5be9f4d45fdfebda9822a314405754913
/config/settings/test.py
0e7b2de859fa698aba87ce0873244f80f8d82f1b
[ "MIT" ]
permissive
brahimchougrani/e-sanad
2a204cd4198ab702638ff247850850379e2760ad
0b3869a9cd07dd037421de7f562ffdc70ddb867c
refs/heads/master
2022-12-05T16:57:02.707895
2020-08-23T12:43:55
2020-08-23T12:43:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,702
py
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="0hRchob8y...
[ "brahimchiugrani31@gmail.com" ]
brahimchiugrani31@gmail.com
8a32ce25bfea1cadc9dbf675455e80e62c2842db
54d81ffa9dc1faacb0a2cf0baa9a334bc99faa23
/day00/ex02/TinyStatistician.py
1e72ff0de7481fcb678d1b6099fd067cb94e55f7
[]
no_license
AdrianWR/MachineLearningBootcamp
94bee5cd1ec30c62390ccd3c4b679223dd011174
b30f717aaceca02f9fbb273b607a0ec496e432a0
refs/heads/master
2022-12-22T17:38:16.883083
2020-09-26T15:40:20
2020-09-26T15:40:20
259,935,134
2
0
null
null
null
null
UTF-8
Python
false
false
1,317
py
import math class TinyStatistician: @staticmethod def mean(x): if not len(x): return None return sum(x) / len(x) @staticmethod def median(x): if not len(x): return None return TinyStatistician.quartile(x, 50) @staticmethod def quartile...
[ "adrian.w.roque@gmail.com" ]
adrian.w.roque@gmail.com
eafde55b4128f1e79475991b307f8e91de418586
8a283e52a9180b81356e68dd35b1293c3d32aa5c
/task9.py
505435e338a98373032a0ff4dc1235507216c43b
[]
no_license
irishabharya/k8swebapp
d4458421c9dd7965302533e98817011616d03ae2
b5822e9b0b39bae1b184db32151b279e4ed8abb1
refs/heads/main
2023-06-29T08:10:53.279283
2021-08-11T18:04:02
2021-08-11T18:04:02
395,074,927
0
1
null
null
null
null
UTF-8
Python
false
false
1,369
py
#!/usr/bin/python3 print("content-type: text/html") print() import cgi import subprocess f= cgi.FieldStorage() cmd = f.getvalue("x") pod = f.getvalue("pod") port = f.getvalue("port") replica = f.getvalue("replica") if ("all" in cmd ): print(subprocess.getoutput("sudo kubectl get pods --ku...
[ "noreply@github.com" ]
irishabharya.noreply@github.com
13fc5bfd35ccc53b0ba4c7f355f221b3b9619a9a
73004bfe307af66fc0486e4ce4d79c9f4f9c1158
/messenger/user_profile/migrations/0008_remove_user_nick.py
0d13178b86c66410baf21327d8c652902f180b55
[]
no_license
ArtemCoolAc/2019-2-Atom-Backend-A-Kutuzov
a618662882448a0058208f1165697fe774568c58
54254aee1a7ff0e3920d9205f3ba57c2f77f3c3a
refs/heads/master
2022-09-06T00:14:35.129550
2019-12-01T15:19:51
2019-12-01T15:19:51
210,880,063
0
0
null
2022-08-23T18:07:02
2019-09-25T15:33:04
JavaScript
UTF-8
Python
false
false
329
py
# Generated by Django 2.2.5 on 2019-11-13 17:30 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('user_profile', '0007_auto_20191113_1535'), ] operations = [ migrations.RemoveField( model_name='user', name='nick', ...
[ "us210716@yandex.ru" ]
us210716@yandex.ru
0063e50243f7175fd73817b1c36e95c42296fd57
a7c86066f6c5477b98cf82b9ead3532b2f942153
/FP.py
722088fcb732773535fb5f25399d590df4d551d2
[]
no_license
TegarSU/K-Means
171e261f22f4eb263eaca377efda0afee5256960
ac15f22841c5d4f99606e7a528a5ae87095d3515
refs/heads/master
2020-04-24T12:40:52.238490
2019-02-22T18:34:08
2019-02-22T18:34:08
171,963,171
0
0
null
null
null
null
UTF-8
Python
false
false
4,195
py
import csv import math import copy import random def loadDataset(filename,k,dataSet=[]): with open(filename) as csvfile: lines=csv.reader(csvfile) dataset=list(lines) normalize(dataset) banyak=len(dataset)/k mulai=0 for x in range(len(dataset)): for y in range(len(dataset[x])-1): #kalau ...
[ "noreply@github.com" ]
TegarSU.noreply@github.com
d2087a647ace24760336a7b0244273fd6458835a
144151dba4a365018a0e109d3173c1af0ea8f149
/scan.py
0ed330ae2cb006f7353a05af74ff1225bda113aa
[]
no_license
miguelps/document_detection
1e24035374e63d9234da066718527d5fffa190fb
9f6afc62481dd7a90259e1064a8b4de65f30446d
refs/heads/master
2021-10-26T16:01:11.459227
2019-04-13T17:07:48
2019-04-13T17:07:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,575
py
from imutils.perspective import four_point_transform from skimage.filters import threshold_local #from ocr.helpers import implt import numpy as np import cv2 import imutils img = cv2.imread('images/page.jpg') ratio = img.shape[0] / 500.0 orig = img.copy() img = imutils.resize(img, height = 500) gray = cv2.cvtColor(im...
[ "noreply@github.com" ]
miguelps.noreply@github.com
85140adbd56c46390eb3746b437a36b0224da0a8
f632e642d2727fbe33f7a52ad32b03a3d13d4add
/校庆论文/校庆论文/xiaoqing/ClusterMain.py
952d5420bdf3206343b287acabbd48ecabefd247
[]
no_license
east1203/CPlusPlus
7e0896fce4d36851ab26014ab50de1e3ab0e2f09
be61a73e54647fd66fcce2f3d93c0703bdb7a6d7
refs/heads/master
2020-04-28T04:46:05.868932
2019-05-16T06:45:59
2019-05-16T06:45:59
174,964,387
0
0
null
null
null
null
UTF-8
Python
false
false
3,211
py
# coding=utf-8 import numpy as np import networkx as nx import matplotlib.pyplot as plt from math import * import PseudoCenter import ClusterFunc ##def EL(centers,clusters: print("************** start ***************") #size = 162 size = 214 clustersnum = 9 array_regsloca = np.zeros((size,2)) ind = 0 with open("./regs...
[ "dyk1203@126.com" ]
dyk1203@126.com
7e32fb23b50d259b671d2a54a962904278c56be9
4c4b5bae788c4ac2029e975e814acdb0eef89b35
/news_blog/migrations/0003_auto_20180210_1858.py
c8ddcd0d4a11276bf7b90bf789849804273711e1
[]
no_license
barabashka7/DjangoProject
db76b7a7ea8be8af776b52516af6546eff577cc3
efb268ebb2247daf51e69a727c4f8b0d129cb1b8
refs/heads/master
2021-05-05T06:02:02.502404
2018-02-18T07:36:57
2018-02-18T07:36:57
118,735,294
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
# Generated by Django 2.0.2 on 2018-02-10 11:58 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('news_blog', '0002_auto_20180210_1856'), ] operations = [ migrations.AlterField( model_name='author', nam...
[ "vadikpro7@mail.ru" ]
vadikpro7@mail.ru
38fa1bdcf32d9a41324dc89afe6c727eb8ccee83
7c7e998d59511c752061005cddc921833ae6372d
/bot.py
9ad445cb1a03d2736110465c709c3b1e07ff068d
[]
no_license
999WRLD999/ECO.bot-v1
1d53a8c2b05fbbf4d848cf14c7986216c1c1c7d1
e0e760b9beab81a6dfb0e4d5f67067d4a5ac05cc
refs/heads/main
2023-03-21T19:34:27.142517
2021-03-14T22:31:04
2021-03-14T22:31:04
347,770,111
0
0
null
null
null
null
UTF-8
Python
false
false
36,449
py
import discord import requests import json import discord.utils import random import string import asyncio from discord.ext import commands Version = 'v1.0.2.7 - Alpha.4' bot = commands.Bot(command_prefix='$') bot.remove_command("help") with open('usercash.json', 'r') as f: usercashjson = json.load(f) def c...
[ "noreply@github.com" ]
999WRLD999.noreply@github.com
32bbdc3dfa362fb7cf6b2b7a7e8c026eae0eb5f1
9a40c85c55d75327d82a6e2010d58faf6aaeff49
/Website/mysite/settings.py
91fc5443013ba838a30d491bdefcace58d23f46c
[]
no_license
MostafaHamedAbdelmasoud/Liver-cancer-detection-in-CT-scans
8b1dab64cb1273d9dae8709435ac05e38ac26e84
5a6c3eb4d84ce1badb3a7103c06dc336caab3073
refs/heads/master
2022-12-25T00:54:47.344764
2020-09-20T14:31:02
2020-09-20T14:31:02
295,721,623
1
0
null
null
null
null
UTF-8
Python
false
false
5,159
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.0.2. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ i...
[ "mostafa.hamed1944@gmail.com" ]
mostafa.hamed1944@gmail.com
d9a6b276047aedbc1ab62415fd3b8fcf764596d0
bf9aab3694c7cb0b8fbc588f79da29f3993d77b5
/search/djangohaystack/migrations/0001_initial.py
2511f634f69cdaba051f6ed4114da4c0a1594463
[]
no_license
clarle/council-catalog
c765bf641c114e426bd170f6ed56a2e2a3df9c79
123348d60233191d8938ec8341bbc5c0b4b3ad7b
refs/heads/master
2021-01-21T08:20:53.389689
2017-08-11T02:32:10
2017-08-11T02:32:10
101,958,092
0
0
null
2017-08-31T04:09:10
2017-08-31T04:09:10
null
UTF-8
Python
false
false
902
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-06-27 21:47 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
[ "hoangle2806@gmail.com" ]
hoangle2806@gmail.com
4413bba5a363984d44c924cc07685156b01cd5a9
5820d1c5d784f95257834eb42da8069905e2c426
/ocear/preprocess/normalize.py
3e6ea57f421dfec08681f6ef6d7122d157f4df94
[ "MIT" ]
permissive
bartdegoede/ocear
b976133d81ed92fd651e9161bccd2d023a570f37
8b155457a9085df72bb6a84c6549abeabebf27ba
refs/heads/master
2020-03-29T12:00:06.598638
2018-09-28T12:55:28
2018-09-28T12:55:28
149,880,597
0
0
MIT
2018-09-28T12:49:49
2018-09-22T13:43:21
Python
UTF-8
Python
false
false
270
py
import numpy as np def normalize(image): """ Scale pixel values between 0.0 and 1.0 """ if image is None or np.max(image) == np.min(image): raise Exception('No valid image provided') img = image - np.min(image) return img / np.max(img)
[ "bdegoede@gmail.com" ]
bdegoede@gmail.com
e49f952e2c76871ed20d6b04f878fb0efc340461
9d8188246250c2506bf69ebb44ee5342891d3663
/model/layers/encoder.py
9d1d5eee9ac2c25e543abcc6b66ec7b2edb7c2e4
[]
no_license
wujunjie1998/kg-topic-chat
22433e35758972a519056b61de117820e26c3de9
d3d393cdc49d9a82727d4b0aee71692e90fed17f
refs/heads/master
2020-12-02T01:42:35.543629
2019-12-30T04:25:22
2019-12-30T04:25:22
230,845,762
0
0
null
null
null
null
UTF-8
Python
false
false
8,628
py
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence, PackedSequence from utils import to_var, reverse_order_valid, PAD_ID from .rnncells import StackedGRUCell, StackedLSTMCell import pdb import copy class BaseRNNEncoder(nn.Module):...
[ "1052231507@qq.com" ]
1052231507@qq.com
5d10a9d692575a05db729af626128d544ad5b613
13141a522f31660b2b90d949b56eb02acb5580b7
/动态规划/064 Minimum Path Sum.py
24b9e2be3bf06b278a323bd0ea7618c6e087121b
[]
no_license
Busc/LeetCode-learning
a2341fd00d1e4fb4e41d701f1c6385e88f6a8539
4a32734908b2efe0577e11807981e0c37b0dd8d4
refs/heads/master
2020-12-02T07:48:45.817641
2018-04-03T08:24:48
2018-04-03T08:24:48
96,728,879
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
''' Array -- Medium Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: You can only move either down or right at any point in time. ''' class Solution(object): def minPathSum(self, grid): """ ...
[ "762521772@qq.com" ]
762521772@qq.com