blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
a17a8758a0ac0219393819cba9815f0dbee69360
4933b11cc9154e7a76cd742956103930e34ae5e8
/personas/migrations/0050_auto_20160112_0118.py
f7f31954aacf569ab795d599a3290f358e1f1d37
[]
no_license
ToferC/Django-Chronicles
8fde2f09a542b71364cd47e1082ac90f9f09f716
7b4840b36c7f9954a6fa6c936cb354626e53c312
refs/heads/master
2021-01-24T14:46:47.832535
2017-08-06T01:37:26
2017-08-06T01:37:26
33,582,825
2
1
null
null
null
null
UTF-8
Python
false
false
923
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('personas', '0049_mainmap_published'), ] operations = [ migrations.AddField( model_name='aspect', nam...
[ "cgeist7@gmail.com" ]
cgeist7@gmail.com
a0a1dfcb75d7d6bdb396ea4f7730ba7ff5d553c2
0e1336aaa02df598a5179ce5a98ab26c074e56b0
/工作/题库查询/多选题汇总.py
cc1d3722336f1d18db25331780c085d182f1e506
[]
no_license
wskwsy/python3
5286bdd9840355e44c76793e8560185696e4b933
7fb767719199e68e802a7c1f4fc2c6bdc095c10b
refs/heads/master
2021-04-15T17:43:37.019024
2018-03-23T13:22:20
2018-03-23T13:22:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,167
py
from 数据库存储.Mysql import pymysql_util import pymysql from 文档操作.excel import excel_util def get_db(): # 打开数据库连接 db = pymysql.connect( host="123.206.227.74", user="root", password="exue2017", db="sit_exue_resource", port=3306, charset="utf8" ) return db # 查询某个学科信息 # ('语文', '9', ...
[ "359405466@qq.com" ]
359405466@qq.com
9d6219792e20b5c20a5fa83793e1147ba29941b7
ed060ebb6284aae5200b722ed4c1d86a39630a2f
/boards/tests.py
861513f6bba5a87f5f96e8f556f50a7b5841bf8c
[]
no_license
Serrones/django_complete_guide
7e4c4cdb47e379c57f8bfe0794eca52e8ada6875
7d07eda0aa383870ad704b05327b49c4553375ce
refs/heads/master
2020-04-07T08:34:46.063901
2018-11-24T21:56:34
2018-11-24T21:56:34
158,219,842
0
0
null
null
null
null
UTF-8
Python
false
false
5,486
py
from django.urls import reverse, resolve from django.test import TestCase from django.contrib.auth.models import User from .models import Board, Topic, Post from .views import home, board_topics, new_topic from .forms import NewTopicForm class HomeTests(TestCase): def setUp(self): self.board = Board.obje...
[ "fabioserrones@gmail.com" ]
fabioserrones@gmail.com
de5697e7bf58edf344d741454f36c6a2ab17135f
3ec8780e39eeb329e90d6bd02a8638912fc21a93
/Plug-and-play module/attention/CCNet/ccnet.py
410c377709b6177e157fc45cec1365fc504bea8a
[ "Apache-2.0" ]
permissive
pprp/SimpleCVReproduction
446b50c229bb925016ef09676e6a2e137ebb9217
b2cb05d6f31970354f15fec590f1557a7c92c39e
refs/heads/master
2023-01-21T04:58:35.097090
2023-01-08T14:13:48
2023-01-08T14:13:48
227,360,230
1,186
315
Apache-2.0
2022-10-10T00:23:30
2019-12-11T12:25:06
Python
UTF-8
Python
false
false
2,687
py
import functools import time import torch import torch.autograd as autograd import torch.cuda.comm as comm import torch.nn as nn import torch.nn.functional as F from torch.autograd.function import once_differentiable class CA_Weight(autograd.Function): @staticmethod def forward(ctx, t, f): # Save con...
[ "1115957667@qq.com" ]
1115957667@qq.com
fd4a7785f98e6811d2f549f069620f42fd10ec69
52b5773617a1b972a905de4d692540d26ff74926
/.history/trapping_20200617172524.py
013fa5d6865935bc69cc25ffcfc18aff49a21210
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
def trap(arr): # left = max(arr) # copy = [] # for j in arr: # copy.append(j) # arr.remove(left) # right = max(arr) # total = 0 # print(copy) # for i in range(len(copy)-1): # total += min(left,right) - copy[i] # print(min(left,right),"-",copy[i],"==",tota...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
ec9a895e7d000988e130d5a7ee6b28ab5a56d521
dd80a584130ef1a0333429ba76c1cee0eb40df73
/external/clang/tools/clang-format/clang-format.py
1d27985ea085dc6597e1e06ea058472d755ceff5
[ "NCSA", "MIT" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
Python
false
false
2,725
py
# This file is a minimal clang-format vim-integration. To install: # - Change 'binary' if clang-format is not on the path (see below). # - Add to your .vimrc: # # map <C-I> :pyf <path-to-this-file>/clang-format.py<CR> # imap <C-I> <ESC>:pyf <path-to-this-file>/clang-format.py<CR>i # # The first line enables clang-f...
[ "karun.matharu@gmail.com" ]
karun.matharu@gmail.com
2b6658feec409a8a054aa2b2008995258be1b4cc
3fa27b3ad1c1ca90f2bcf311d89fe8c2ca241cb4
/Buyer/tests.py
7be11b10022b7ede61fec2c8de833dd591a866be
[]
no_license
emperorDuke/django-backend-for-ecommerce
717e15d7be899abcd5a4b7a7d2203c612f001aeb
83c1ca4d016d876a5c8711ac5cdc448d5a4a533d
refs/heads/master
2023-02-10T08:57:17.852721
2021-01-02T15:49:07
2021-01-02T15:49:07
271,039,012
0
0
null
null
null
null
UTF-8
Python
false
false
3,999
py
from django.contrib.auth import get_user_model from rest_framework import status from rest_framework.test import APITestCase from Users.permissions import create_user_permissions from Users.models.address import Address from .models.shipping import Shipping from .models.profile import Profile # Create your tests he...
[ "effiomduke@gmail.com" ]
effiomduke@gmail.com
92216df9407c90291b9db6ce8eb9c7dcfce41692
974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_08_01/models/_network_management_client_enums.py
8268d6a0b0fb9c9a6fb1d6cc651b634ce552d054
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
gaoyp830/azure-sdk-for-python
4816f04c554dcffb7510a6b7044b0c86a2dd32e1
1c66defa502b754abcc9e5afa444ca03c609342f
refs/heads/master
2022-10-20T21:33:44.281041
2022-09-29T17:03:13
2022-09-29T17:03:13
250,355,505
0
0
MIT
2020-03-26T19:42:13
2020-03-26T19:42:12
null
UTF-8
Python
false
false
38,466
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" ]
gaoyp830.noreply@github.com
a12b4cfed3fe2069e4cd15dba9a9a215ad03f629
828e58fff5f3779b6fddbc029f332345adb97c4f
/yoohalal/apps/blog/dashboard/views.py
841f2bd52f7f5d4e041f6995893e6797082afb66
[]
no_license
sofyandamha/Django-Oscar-Marketplace-yoohalal
5c33ac77834dcbc199d5f39971b0f527e9627167
8bc1f11b1fe301f1dc5f9f9edfd6c24402effeb3
refs/heads/master
2020-03-27T20:52:37.031477
2018-09-02T16:03:43
2018-09-02T16:03:43
147,099,611
1
2
null
null
null
null
UTF-8
Python
false
false
5,668
py
from django.views.generic import ( CreateView, DeleteView, ListView, UpdateView, View, DetailView) from django.contrib import messages from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse, reverse_lazy from apps.blog.models import PostEntry, Category from apps.blog.forms...
[ "sofyandamha@gmail.com" ]
sofyandamha@gmail.com
11032016904397999e775028fbc9b2696a8f70a1
5b691997b10850109d8ec0b8fb8d4e344354295b
/tests/preprocessing/convertEditorsCsv_test.py
2af90738ae70c2f703750183fb29c5eddf0cbe47
[ "MIT" ]
permissive
elifesciences/peerscout
b6d6b3bdcfe6f2c27bda733cceaaa8b9fb696891
2e899f268b4712ffb7a09b171de3f3841337d65d
refs/heads/develop
2021-03-24T11:54:18.170865
2019-09-26T11:50:36
2019-09-26T11:50:36
84,193,664
3
3
MIT
2019-10-25T05:25:17
2017-03-07T11:54:00
Python
UTF-8
Python
false
false
2,670
py
from io import BytesIO import numpy as np import pandas as pd from peerscout.preprocessing.convertEditorsCsv import ( extract_distinct_emails_from_data_frame, convert_csv_file_to ) EMAIL_1 = 'email1@test.ci' EMAIL_2 = 'email2@test.ci' CSV_HEADER = '\n'.join([ "Description", "Generated on ...", "...
[ "noreply@github.com" ]
elifesciences.noreply@github.com
9aefc48187ea0e261c0ce863da3478eb3e481f2e
f4434c85e3814b6347f8f8099c081ed4af5678a5
/sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/aio/operations/_policies_operations.py
c726733e32c213e18037bbda3aed2065d27c750f
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
yunhaoling/azure-sdk-for-python
5da12a174a37672ac6ed8e3c1f863cb77010a506
c4eb0ca1aadb76ad892114230473034830116362
refs/heads/master
2022-06-11T01:17:39.636461
2020-12-08T17:42:08
2020-12-08T17:42:08
177,675,796
1
0
MIT
2020-03-31T20:35:17
2019-03-25T22:43:40
Python
UTF-8
Python
false
false
20,241
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" ]
yunhaoling.noreply@github.com
8df72241e51bdfde4cd903c3da73a577ee0a922d
fbc3be51cde869d979fe36846f4a2fd8b32ee9f1
/transaction/admin.py
fe385f03870419b8832e8cd56c0cdc5f29f499e4
[]
no_license
ichsandwihimawan/Richfarmapp
60dbe8cef5f785ab0b3725e82ae892771ee7e1bd
16252f04584c0914806cca535beaa387a05ab52e
refs/heads/master
2023-04-26T17:07:19.461486
2021-03-22T17:04:29
2021-03-22T17:04:29
369,094,698
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Deposit) admin.site.register(Invest) admin.site.register(Bonus_Sponsor) admin.site.register(Roi_Percentage) admin.site.register(Bonus_Roi) admin.site.register(Bonus_Pairing)
[ "naba.alvian@gmail.com" ]
naba.alvian@gmail.com
c0dd98e3b5c46eb6dbaa61c87ce617acfe719e0f
53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61
/.history/EMR/EMRryzd_1_20190409102258.py
bf12c0a041bc4395de3ebc0b683b31c2bc6885cf
[]
no_license
cyc19950621/python
4add54894dc81187211aa8d45e5115903b69a182
d184b83e73334a37d413306d3694e14a19580cb0
refs/heads/master
2020-04-11T20:39:34.641303
2019-07-02T12:54:49
2019-07-02T12:54:49
162,078,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
#-*- coding: UTF-8 -*- #本文件用于提取目标目录中的所有txt,并提取关键词所在行到指定目录,并提取关键词新建文件 import time import math import os import sys import os, os.path,shutil import codecs import EMRdef import re emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR')#txt目录提取 zljhs = [] for emrtxt in emrtxts: f = open(emrtxt,'r',errors="ignore")#中文加入e...
[ "1044801968@qq.com" ]
1044801968@qq.com
39b738cd39de015acad80456f0c9676ea6e716e3
eca5ea53686cc952d1baaebb7ed45f3634fc816b
/students/views.py
212b593b9eea1c352acaff321f873eb42b9b6360
[]
no_license
Shirhussain/E-learning-platform-with-Memcached
435ddefc0db66aecb0210208905054637da9188f
31d42a16ba0666ba22e7edb716df7fbf97bf6b8c
refs/heads/main
2023-02-08T18:22:50.419059
2021-01-05T08:03:07
2021-01-05T08:03:07
325,543,781
1
0
null
null
null
null
UTF-8
Python
false
false
2,364
py
from django.shortcuts import render from django.urls import reverse_lazy from django.views.generic import ListView, DetailView from django.views.generic.edit import CreateView, FormView from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import authenticate, login from braces.views import Lo...
[ "sh.danishyar@gmail.com" ]
sh.danishyar@gmail.com
3f5b94b83b9d3d2a65e02c10dfc38cc8b8594173
6484235860ac1d824aaeb39ecc5d5e70dfcd4c34
/ekzamen/.venv/bin/easy_install
7dc307ed700c93d8ca2df450face381a5605dddd
[]
no_license
NickVazovsky/old_project
35472b7cb4a795ecb743027200364b9cf585bfc2
6e33578d40c3d158cea792e8a89c624d8d8fc4e5
refs/heads/master
2022-12-09T17:44:31.658829
2018-02-08T07:34:02
2018-02-08T07:34:02
120,650,958
0
0
null
2022-11-22T02:17:55
2018-02-07T17:59:05
Python
UTF-8
Python
false
false
265
#!/home/nick/old_project/ekzamen/.venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "nvazovsky@gmail.com" ]
nvazovsky@gmail.com
d1a8b2c8e5b9bfd4c52281de6f2ea7ebd191ab0b
1e658cccb47255da82abd0b74614accac2e99dec
/scripts_test/dff_ck2_pass0.py
09b50e5ef2b21a5996a0cb2a16db23b96db3d431
[ "BSD-3-Clause" ]
permissive
xlchan/bag_digital_ec
43aaf3c63d3123f146ba9882da974e57ae4561ea
71b982fc0fbe275fc3901db2e25ab7ca62fb319f
refs/heads/master
2020-06-13T01:16:26.866001
2018-06-04T17:50:07
2018-06-04T17:50:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
# -*- coding: utf-8 -*- import yaml from bag.core import BagProject from digital_ec.layout.stdcells.core import StdCellWrapper if __name__ == '__main__': with open('specs_test/digital_ec/stdcells/dff_ck2_pass0.yaml', 'r') as f: block_specs = yaml.load(f) local_dict = locals() if 'bprj' not in ...
[ "pkerichang@gmail.com" ]
pkerichang@gmail.com
e69ac7e136a913883f11c08936e6f3b382962a47
921aa4d0dddc868b61fe1ea3805cf15c36853bc0
/client/k8s_client/models/v1_service_status.py
852c55469f56c7ffa79815ad444891f3b59abacf
[]
no_license
mbohlool/k8s-python-client
56d569071326820ebb5e11319ca230a272282a56
e083a1991e03f05d69a39f43b02b9bd5ede0a2b7
refs/heads/master
2021-01-09T20:29:17.339112
2016-08-18T23:16:49
2016-08-18T23:16:49
65,772,328
0
0
null
null
null
null
UTF-8
Python
false
false
3,416
py
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 applica...
[ "mehdy@google.com" ]
mehdy@google.com
dcf5df4041123860cec18710adc0b0d3b15039a7
ee8c4c954b7c1711899b6d2527bdb12b5c79c9be
/assessment2/amazon/run/core/controllers/cuddly.py
a02bf62e86ca482037683dfddf9d7331442577cf
[]
no_license
sqlconsult/byte
02ac9899aebea4475614969b594bfe2992ffe29a
548f6cb5038e927b54adca29caf02c981fdcecfc
refs/heads/master
2021-01-25T14:45:42.120220
2018-08-11T23:45:31
2018-08-11T23:45:31
117,135,069
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
#!/usr/bin/env python3 from flask import Blueprint, Flask, render_template, request, url_for controller = Blueprint('cuddly', __name__, url_prefix='/cuddly') # @controller.route('/<string:title>', methods=['GET']) # def lookup(title): # if title == 'Republic': # TODO 2 # return render_template('republi...
[ "sqlconsult@hotmail.com" ]
sqlconsult@hotmail.com
b0b429e76861159b2a2261b796dc624dae40ac91
69889d51e933b4e8a1d4c8397a317aa1d1365a5a
/DP/LIS.py
59b5bc62507b6ca9d760255fb03a37b0e559bfef
[]
no_license
ddraa/Algorithm
a35c87631420ceccec6f7094da6f2b22ddb66c8c
a97c6628d5389f7f93603a2e95ac3b569057f556
refs/heads/master
2023-06-25T17:12:39.925821
2021-07-18T05:53:28
2021-07-18T05:53:28
279,240,088
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
import sys N = int(sys.stdin.readline()) child = [int(sys.stdin.readline()) for _ in range(N)] dp = [1 for _ in range(N)] for i in range(N): for j in range(i): if child[i] > child[j]: dp[i] = max(dp[i], dp[j] + 1) print(N - max(dp))
[ "ruuddyd@gmail.com" ]
ruuddyd@gmail.com
d93d35848f363bf0465122197fa144811134511b
69930e647aca06cf865f958e952941a410cad46b
/usuario/migrations/0005_projeto_aprovado.py
b5bc0ee3dce308895800e4998e79e8bab8e1336d
[]
no_license
GustavoGarciaPereira/trabalho_babrica_de_moveis
9ce32a76eb4c9c5fed8f1482aa8ce6814b350a96
d61b6f3ea09b1b2f0c3781cbc67e8e4ed11f7949
refs/heads/master
2023-08-14T03:50:48.738174
2020-07-03T11:42:21
2020-07-03T11:42:21
276,883,600
0
0
null
2021-09-22T19:22:24
2020-07-03T11:27:51
Python
UTF-8
Python
false
false
390
py
# Generated by Django 3.0.7 on 2020-06-30 10:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('usuario', '0004_auto_20200629_2244'), ] operations = [ migrations.AddField( model_name='projeto', name='aprovado', ...
[ "gusgurtavo@gmail.com" ]
gusgurtavo@gmail.com
8df38f0634adc4f7691b2241a082f74913958a6c
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_271/ch19_2020_03_09_19_55_48_991636.py
725edae119f77503942e52520098b3bd37839727
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
def classifica_triangulo (a,b,c): if a==b and a==c: return 'equilátero' elif a==b or b==c or c==a: return 'isósceles' else: return 'escaleno'
[ "you@example.com" ]
you@example.com
a7b11af97df0e7e6accc0d9d77b4b814d90b2547
c6911aef3f364b10c7c94fc479e6ae84328443ea
/src/filters.py
8cab0e667d88b55d8ab57e309a8d933f203b7f11
[ "CC0-1.0" ]
permissive
ytyaru/Shell.LibreOffice.FilterName.20200928074434
e8378496ec7033bb5ae8433773dbb95a8081612b
6a7ec5d599ed557623f32b232360ce8df99750c8
refs/heads/master
2022-12-24T08:25:49.934025
2020-09-28T05:05:21
2020-09-28T05:05:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,714
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import uno import unohelper from pythonscript import ScriptContext import os.path from com.sun.star.awt.FontWeight import BOLD from functools import reduce from com.sun.star.beans import PropertyValue def connect_script_context(host='localhost', port='2002', namedpipe=Non...
[ "yttry0@gmail.com" ]
yttry0@gmail.com
804232f8452f50eb7bcdd823dee89556c1a11699
9d39d3f2ea3061e1ed6db6960805d722bb88bcfb
/tensorpack/utils/serialize.py
a21523ca7b4c60a930070d86782cc57f82eb3d73
[ "Apache-2.0" ]
permissive
tengyangxie/tensorpack
2965d575022151da66acd3cb5dc2f2b3dbdfc3ce
92ccfe0a46eeb6545336cbe239094aa10e93a9b0
refs/heads/master
2021-04-27T16:24:07.579139
2018-02-21T02:11:31
2018-02-21T02:11:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,224
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: serialize.py import msgpack import msgpack_numpy msgpack_numpy.patch() try: # https://github.com/apache/arrow/pull/1223#issuecomment-359895666 import sys old_mod = sys.modules.get('torch', None) sys.modules['torch'] = None import pyarrow as pa...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
16786c0990d4886a47705571d10c9a75d694fcae
41777d4d219ea97b4632f4a8a31ab6c82a60772c
/kubernetes-stubs/client/models/v1beta1_endpoint_slice_list.pyi
74dd9c9c2ad7459ad57c9e3664c6dfec3ac72a3a
[ "Apache-2.0" ]
permissive
gordonbondon/kubernetes-typed
501d9c998c266386dc7f66f522f71ac3ba624d89
82995b008daf551a4fe11660018d9c08c69f9e6e
refs/heads/master
2023-07-18T12:06:04.208540
2021-09-05T19:50:05
2021-09-05T19:50:05
319,183,135
24
2
Apache-2.0
2021-09-05T19:50:06
2020-12-07T02:34:12
Python
UTF-8
Python
false
false
1,005
pyi
# Code generated by `stubgen`. DO NOT EDIT. from kubernetes.client.configuration import Configuration as Configuration from typing import Any class V1beta1EndpointSliceList: openapi_types: Any attribute_map: Any local_vars_configuration: Any discriminator: Any def __init__(self, api_version: Any | ...
[ "noreply@github.com" ]
gordonbondon.noreply@github.com
ec197960eafc559590ee43c2cdf50bd71509d2fe
87db8a859602b30d4d1092818c92e4aa75397a91
/fastreid/modeling/meta_arch/mgn.py
73fe8c77747d262f3fcaadeb0668b3b8308f6fbc
[ "Apache-2.0" ]
permissive
yemenr/fast-reid
1c1550470f32bf792190923196a18ef62fdedeb2
cbdc01a1c360a58b1265da7a5a86f2d82bdb6ac8
refs/heads/master
2022-10-05T03:21:34.512811
2020-06-10T11:07:29
2020-06-10T11:07:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,987
py
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ import copy import torch from torch import nn from fastreid.layers import GeneralizedMeanPoolingP, get_norm, AdaptiveAvgMaxPool2d from fastreid.modeling.backbones import build_backbone from fastreid.modeling.backbones.resnet import Bott...
[ "sherlockliao01@gmail.com" ]
sherlockliao01@gmail.com
19705a1e338da8344e2967299271f6cbf839ec03
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/OpenGL/GLES2/NV/shading_rate_image.py
bb9e91bd7766afa6307e9c740b808e5d66be6d3c
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
3,935
py
'''OpenGL extension NV.shading_rate_image This module customises the behaviour of the OpenGL.raw.GLES2.NV.shading_rate_image to provide a more Python-friendly API Overview (from the spec) By default, OpenGL runs a fragment shader once for each pixel covered by a primitive being rasterized. When using multisamp...
[ "justin.sostmann@googlemail.com" ]
justin.sostmann@googlemail.com
3a4e24a07f6711837242af541baade6e1384421c
2b54b1fb1540ab73d6c83cae3acd5fdd58bdead5
/Platinum_clusters_Project/deltaEf_CO_CO2_Co3forms/Pt7O12_oxides_zorderimage.py
6bc3405c68f1e060c8e425308819a3e697308a78
[]
no_license
sivachiriki/GOFEE_Pt_V_supported
5787d44294262870075f35f2d31c096021b7ce20
6bd700dac1f3e7c58394b758d75246ac6e07eade
refs/heads/master
2022-04-08T11:38:13.038455
2020-03-09T10:48:31
2020-03-09T10:48:31
226,359,812
0
0
null
null
null
null
UTF-8
Python
false
false
5,201
py
from __future__ import division import matplotlib #matplotlib.use('Agg') # Can also use 'tkagg' or 'webagg' #from plot_neb_tio2 import * from matplotlib.offsetbox import TextArea, VPacker, AnnotationBbox import matplotlib.patches as patches import matplotlib.pyplot as plt from ase.io import read, write from ase.visua...
[ "sivachiriki@phys.au.dk" ]
sivachiriki@phys.au.dk
98f5cf1db0503ed94159807c459bd24ef4b85f8a
32ad4bb6631e3155eb43f22c5a0a94c67343bd9e
/FaceRecognition/Detect/.history/import_20200223020054.py
6dc20af9b54d78d462abb167ffefe327db808b43
[]
no_license
apoorvanand/facepay
cab5eacf29ee5ea178c3e42d5c42b3726e71f5fc
c6444f161eadfcc0bda3d75e3ec1e5f177ddff49
refs/heads/master
2023-03-05T01:01:27.222309
2020-02-23T02:18:45
2020-02-23T02:18:45
242,442,579
0
0
null
2023-03-03T13:26:33
2020-02-23T02:18:13
Python
UTF-8
Python
false
false
722
py
import boto3 s3 = boto3.resource('s3') # Get list of objects for indexing images=[('image.png','Harish Kumar'), ('image_1.png','Ram Kahnanna'), ('image_2.png','Hema K'), ('image_7.png','Simaran Kaur'), ('image_3.png','Jon Doe'), ('image_4.png','Niels Bohr'), ('image_5.png','xyz demo')...
[ "anandapoorw@gmail.com" ]
anandapoorw@gmail.com
e313c7f2129eec000ab83103fecffb4f4e34aecb
417ab6024a95e97b4d2236c67e28d00e6d1defc0
/python/common/db_ops.py
be0dfc59d8c8cf976df28d5e9c30b3193d5b354f
[]
no_license
zeus911/myconf
11139069948f7c46f760ca0a8f1bd84df5ec4275
6dc7a6761ab820d6e97a33a55a8963f7835dbf34
refs/heads/master
2020-04-18T02:16:09.560219
2019-01-22T18:15:08
2019-01-22T18:15:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,956
py
#!/usr/bin/env python # coding=utf-8 import MySQLdb import dateutil class DbOps(object): def __init__(self, conn): self.conn = conn def inertSoundChannel(self, obj): return self.conn.execute( "replace into soundchannel (name,baseurl,url,pic,updateTime,rate) values ('%s','%s','%s'...
[ "liguoqing19861028@163.com" ]
liguoqing19861028@163.com
21069f1adb36e3038041276ef2e78496b7005dc8
b0110e27e3162e2092259dd299481de1dafb4ea8
/xy/v2.py
18214a197e08c4bc47758705a0d4f56714f559e4
[ "MIT" ]
permissive
mobarski/sandbox
f9be203bf7015f6df70badd605a40172b63a90f8
f9054fb3252488208e503a87efba5df74fc70538
refs/heads/master
2023-05-29T14:51:00.125028
2023-05-14T21:02:38
2023-05-14T21:02:38
86,854,790
0
0
null
null
null
null
UTF-8
Python
false
false
1,304
py
from bottle import template canvas_template = """ <canvas id="main_canvas" width="{{ width }}" height="{{ height }}" style="border:1px solid #000000;"> </canvas> <div id="tooltip" style="opacity:1"> tu bedzie tooltip </div> <script> var c = document.getElementById("main_canvas"); var ctx = c.getContext(...
[ "mobarski@gmail.com" ]
mobarski@gmail.com
496a0b964baa24d2da1c11c200844b65ae80acc1
2c49cebd7e11ffa5192bb2e5ceb5f8ac1bd24724
/code/self_attn_speech_parser/berkeley-parser-analyser-master/berkeley_parse_analyser/classify_english_vm.py
1a593296348916e0f8be918a020806326e917e85
[ "ISC" ]
permissive
machnicole/prosody_nlp
3d6993c9c45024574970955d275753192e7b97a4
dc48f6dc96f07d2e7264f0c7096175abe202151f
refs/heads/master
2023-07-12T01:58:01.538296
2021-08-12T14:48:57
2021-08-12T14:48:57
350,102,070
0
0
null
2021-06-02T12:58:53
2021-03-21T19:47:34
Python
UTF-8
Python
false
false
5,479
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=2 sw=2 noet: # phrase_labels = [ # 'S', 'SBAR', 'SBARQ', 'SINV', 'SQ', 'ADJP', 'ADVP', 'CONJP', 'FRAG', 'INTJ', # 'LST', 'NAC', 'NP', 'NX', 'PP', 'PRN', 'PRT', 'QP', 'RRC', 'UCP', 'VP', 'WHADJP', # 'WHAVP', 'WHNP', 'WHPP', 'X' # ] # Table 3.1 stylebook p...
[ "s2096077@ed.ac.uk" ]
s2096077@ed.ac.uk
636f976a5b5c5ca7430ec4bf03f6b9192c9c6c80
cc77574624a98b5f4d107607dbdd7b93b6c615d4
/resnet/layers.py
4605f47d150260382767432eb57d00a660686edf
[]
no_license
mrahtz/tf-resnet
cf96fd7352b1ee2d9d411c4f051b6fa9d0c0da3e
5f64a5897f284e40be31baa83c0f56f95a8a0be2
refs/heads/master
2022-10-26T19:08:01.731528
2019-07-29T11:37:33
2019-07-29T11:39:23
199,441,240
1
2
null
2022-09-24T10:03:19
2019-07-29T11:38:19
Python
UTF-8
Python
false
false
2,596
py
import tensorflow as tf from tensorflow.python.keras import Sequential, Model from tensorflow.python.keras.layers import Activation, Conv2D, BatchNormalization from tensorflow.python.keras.regularizers import l2 class ConvBNRelu(Sequential): def __init__(self, filters, kernel_size, strides, skip_relu=False, input...
[ "matthew.rahtz@gmail.com" ]
matthew.rahtz@gmail.com
bb063d4ba7eab3dfb60b4a1184370c1062fda84d
3a642fa1fc158d3289358b53770cdb39e5893711
/src/xlsxwriter/test/comparison/test_chartsheet08.py
9693959632a98f707b953ad4c5099be6a984d48b
[]
no_license
andbar-ru/traceyourself.appspot.com
d461277a3e6f8c27a651a1435f3206d7b9307d9f
5f0af16ba2727faceb6b7e1b98073cd7d3c60d4c
refs/heads/master
2020-07-23T14:58:21.511328
2016-12-26T22:03:01
2016-12-26T22:03:01
73,806,841
1
1
null
null
null
null
UTF-8
Python
false
false
2,804
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013, John McNamara, jmcnamara@cpan.org # import unittest import os from ...workbook import Workbook from ..helperfunctions import _compare_xlsx_files class TestCompareXLSXFiles(unittest.TestC...
[ "andrey@voktd-andbar.int.kronshtadt.ru" ]
andrey@voktd-andbar.int.kronshtadt.ru
f7a015fc621b39f32c4e16a7e01ff6b115137862
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_rule_response.py
e93b09a0837fcc6afc7fc908e26167c7005cf504
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
10,597
py
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class UpdateRuleResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict):...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
96c63fca841f19fef75a103b62f48fb52e301c5a
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/281/66512/submittedfiles/testes.py
350e7db7ba48d2ee2afae6052f88120000f46579
[]
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
308
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO print("Antonio Segundo Santos de Souza Vieira") print("18") print(11+1037) print((9*35+160)/5) print(3.14159*(5*5)*30) print((2+5)*(2+5)) #add x,y=4,6 print(x+y) """Eu sou lindo""" print(type(3.14)) print(type(5)) print(type('Segundo')) print(1>111)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
fdae24f4bfa2f6a5ea4602d2c2cf9477a2aca237
7fbc2a53886febbead55c30f56ca07fca65159d2
/python/ccxt/coinbasepro.py
930a7ffd3f11380829cd312fd00cac2005f4727a
[ "MIT" ]
permissive
whitebit-exchange/ccxt
632d1b2ce0e0570ae610f67487fb37f4a963b88b
f7fe58e1d5564324fb9404688421a5c7dba1d9ab
refs/heads/master
2022-12-26T21:07:42.873111
2022-12-06T12:25:43
2022-12-06T12:25:43
211,014,730
4
1
MIT
2022-11-24T09:49:12
2019-09-26T06:20:37
JavaScript
UTF-8
Python
false
false
67,923
py
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticati...
[ "travis@travis-ci.org" ]
travis@travis-ci.org
8ff6399c18978f781aa0be086530f71407d387d4
401e28f4347397c99353f73fbc1527b12388e4fd
/pypreclin/plotting/__init__.py
895f941609719806dbc072f7f8bbf20e95c1e1cb
[ "LicenseRef-scancode-cecill-b-en" ]
permissive
VisionandCognition/pypreclin
9c6737195812960740a550998721cdca1dcf97fe
e116a92ae7b186964690a645901c58cc31e9c5d5
refs/heads/master
2020-12-18T16:08:54.144589
2020-02-04T18:01:28
2020-02-04T18:01:28
235,450,156
0
0
NOASSERTION
2020-01-21T22:00:22
2020-01-21T22:00:21
null
UTF-8
Python
false
false
432
py
########################################################################## # NSAp - Copyright (C) CEA, 2019 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ##########...
[ "antoine.grigis@cea.fr" ]
antoine.grigis@cea.fr
a91ee9a90b10544779c385e3247c46018d260314
3385776d9ca6cfad76295fe1c1caa4ad7117e4cf
/leetcode/206.reverse-linked-list.py
83d3f25ec1765b35143200340aba230c1e318911
[]
no_license
Shawntl/Data-Structure-and-Algorithms
fd7678c47b1279bb91c4d663140751bbe3d43461
2c2114aeb40bd97afd713c39fad8c7c7a8f1a6dd
refs/heads/main
2023-06-10T09:15:38.460146
2021-07-02T05:35:46
2021-07-02T05:35:46
312,209,708
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
# # @lc app=leetcode id=206 lang=python3 # # [206] Reverse Linked List # # @lc code=start # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reverseList(self, head: ListNode) -> ListNode: ...
[ "zheweisong@gmail.com" ]
zheweisong@gmail.com
b3507fc611ae08b501ba5a7b25151c30b96ab243
efd203cdba6ee21d0f6edefb6112e8dbf24fb40e
/snow_pkg/src/py/STICS_SNOW/Snowdensity.py
ded5203d0f94a0156370fef53acf26cde1036e58
[ "MIT" ]
permissive
AgriculturalModelExchangeInitiative/Tutorial
22dd5d6a4b49ee8800d398ba97c5dfd5a0ba5dff
2db7490e4c0a2234dc2b3863956868512d380a97
refs/heads/master
2023-03-05T23:06:08.309710
2023-02-08T15:28:05
2023-02-08T15:28:05
180,256,316
0
1
null
2021-05-06T08:01:49
2019-04-09T00:52:30
Jupyter Notebook
UTF-8
Python
false
false
3,247
py
# coding: utf8 from copy import copy from array import array from math import * import numpy from math import * def model_snowdensity(ps_t1 = 0.0, Sdepth_t1 = 0.0, Sdry_t1 = 0.0, Swet_t1 = 0.0): """ - Name: SnowDensity -Version: 1.0, -Time step: 1 - Description: ...
[ "ahmedmidingoyi@yahoo.fr" ]
ahmedmidingoyi@yahoo.fr
a45b434623c631ccf68507a09af1d2b0ef5d8e86
105212e4d2d2175d5105e05552e29b300375e039
/OpenSourceProjects/Deep-Learning-21-Examples-master/chapter_21/cartpole_pg.py
2c5f2a3cfd84ecf9c3131132b193c1a8b21145f9
[]
no_license
Asher-1/AI
84f0c42651c0b07e6b7e41ebb354258db64dd0d1
a70f63ebab3163f299f7f9d860a98695c0a3f7d5
refs/heads/master
2022-11-26T07:24:37.910301
2019-05-30T13:04:31
2019-05-30T13:04:31
160,031,310
7
1
null
2022-11-21T22:02:53
2018-12-02T09:19:03
Jupyter Notebook
UTF-8
Python
false
false
5,221
py
# coding:utf-8 from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf import gym # gym环境 env = gym.make('CartPole-v0') # 超参数 D = 4 # 输入层神经元个数 H = 10 # 隐层神经元个数 batch_size = 5 # 一个batch中有5个episode,即5次游戏 learning_rate = 1e-2 # 学习率 gamma = 0.99 # 奖励折扣率gamma ...
[ "ludahai19@163.com" ]
ludahai19@163.com
c9cc9d2449e8ff7e2506be910a9f28e1dbfa212a
9f1039075cc611198a988034429afed6ec6d7408
/tensorflow-stubs/contrib/coder/python/__init__.pyi
169601d1545c37151e10c58824485d8792f37dcd
[]
no_license
matangover/tensorflow-stubs
9422fbb1cb3a3638958d621461291c315f9c6ec2
664bd995ef24f05ba2b3867d979d23ee845cb652
refs/heads/master
2020-05-23T12:03:40.996675
2019-05-15T06:21:43
2019-05-15T06:21:43
186,748,093
0
0
null
null
null
null
UTF-8
Python
false
false
134
pyi
# Stubs for tensorflow.contrib.coder.python (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen.
[ "matangover@gmail.com" ]
matangover@gmail.com
710ce6b78e2cee2faaa3612ea88748a761a4e96e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03705/s409473799.py
789c98d27ff09fe499c68327618374d57e1fc0cd
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
n, a, b = map(int, input().split()) x = a * n - a + b y = b * n - b + a if a > b: print(0) elif a == b and n == 1: print(1) elif a != b and n == 1: print(0) else: print(y - x + 1)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9209476dd4b72f52ddef6bca7451a0c10e5014aa
0d0cf0165ca108e8d94056c2bae5ad07fe9f9377
/20_Introduction_to_Deep_Learning_in_Python/2_Optimizing_a_neural_network_with_backward_propagation/scalingUpToMultipleDataPoints.py
a3f5c5b89d70ac721e1e6a6e8271eea33248d09d
[]
no_license
MACHEIKH/Datacamp_Machine_Learning_For_Everyone
550ec4038ebdb69993e16fe22d5136f00101b692
9fe8947f490da221430e6dccce6e2165a42470f3
refs/heads/main
2023-01-22T06:26:15.996504
2020-11-24T11:21:53
2020-11-24T11:21:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,230
py
# Scaling up to multiple data points # You've seen how different weights will have different accuracies on a single prediction. But usually, you'll want to measure model accuracy on many points. You'll now write code to compare model accuracies for two different sets of weights, which have been stored as weights_0 and ...
[ "noreply@github.com" ]
MACHEIKH.noreply@github.com
d71bf19d7e069899234f0f73c0bd35611c201d29
8a9dbfd7c2213652265269838ca9c15aad66a66f
/class-20161005/report/김충환_응용생물학/응용생물학, 2013-12130, 김충환_color.py
ac97b6631fd3f55267eedf11552bb486b653ab3b
[]
no_license
askdjango/snu-web-2016-09
48ba3b0301be1e0f05f1e630dcfecac51827e779
eaf703cc3ff7ddf3795a636ad1631624a87a9b70
refs/heads/master
2020-02-26T14:23:00.495594
2016-12-19T11:51:45
2016-12-19T11:51:45
68,677,254
6
2
null
null
null
null
UTF-8
Python
false
false
259
py
word = '노랑 빨강 녹색 파랑 노랑 빨강 노랑 빨강' word_list = word.split() word_list_unre = list(set(word_list)) for i in range(0,len(word_list_unre)): print (word_list_unre[i],"의 갯수는 : ",word.count(word_list_unre[i]))
[ "allieuslee@gmail.com" ]
allieuslee@gmail.com
9f356a872a5e0a99827d7889b9e600dc79d1dae4
1e2c92fd8bf80ad537183870e140b778f4c4033f
/kewpie/drizzle_tests/randgen_slavePlugin/multiThread1_test.py
cffe6f6ff92649c9389bddf4c2c9c242bb0b7d73
[ "BSD-3-Clause" ]
permissive
jonzobrist/Percona-Server-5.1
a53ff052cac38ed03cd8dd7d79258b47e2577208
f45f52484870646500b0260dc1237cfd07a5acde
refs/heads/master
2016-09-06T10:56:33.997409
2013-01-03T18:29:28
2013-01-03T18:29:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,003
py
#! /usr/bin/env python # -*- mode: python; indent-tabs-mode: nil; -*- # vim:expandtab:shiftwidth=2:tabstop=2:smarttab: # # Copyright (C) 2011 Patrick Crews # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwar...
[ "ci@inthinc.com" ]
ci@inthinc.com
923d64e3fa4e04c88c24dcc9a2a3599532db5d5b
5bf1dca7bcbbaca219ff6ab31777fba0212aee5a
/features/migrations/0064_auto_20190506_1940.py
07b160f774d1bb13ed4594f23473ed182abed2a4
[]
no_license
Code-Institute-Submissions/Nordlander
d8b5935b3e701fae1ae785043988103602a24bc3
6400e424c3dc9ae41acc6e8a4684d33ed01a94a3
refs/heads/master
2020-05-24T13:46:41.472340
2019-05-18T00:13:40
2019-05-18T00:13:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-05-06 19:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('features', '0063_auto_20190506_1938'), ] operations = [ migrations.AlterField...
[ "brookkynaston@live.fr" ]
brookkynaston@live.fr
1d18c39d6b9ff7b48bda4a4c1fd15f98bd10be5b
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_1_neat/16_0_1_BillSys_QuestionSmall.py
1e0f87149982427c4c1dc15dca5ee74fc6f6abd5
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,817
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import math def process(num): text = input() #text = list(map(str, text)) #if len(text)!=2 : #return #smax = int(text[0]) #kvalues = str(text[1]) #if (smax > smax_val) | (smax < smin_val): # return ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
4be9d7d42d275354965d0b761ccc02d0d6259f9f
43d38a45adf4249cbf7eb19dbeb6b776a7a46635
/mutt/mutt/tests/python/cli/options_tests_and_manifest.py
2ab4805de382ca0693c54206a29e0a46d6d110fc
[]
no_license
ctalbert/mozmill
f2f8ae522c821aa5b8c868c8c5f9bc00d5d3bf7e
445780f2acfcb8763e24df9142ac2eac418d0cb9
refs/heads/master
2020-12-30T17:12:04.728453
2013-04-30T10:23:18
2013-04-30T10:23:18
738,736
1
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
#!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at http://mozilla.org/MPL/2.0/. import subprocess import os import unittest from mozprocess import ProcessHandler class TestMan...
[ "mail@hskupin.info" ]
mail@hskupin.info
7e34f99b6110e5f6a49605389bd704e68d80f933
062e4902f30c166808404729ffae8046773b391e
/conversion/sqlmap/contents/opt/owasp/sqlmap/extra/shutils/pylint.py
db7baa59cbe5e67f4a73e3672116755d361cf331
[]
no_license
mtesauro/legacy-owasp-wte
30c2bc8d7a7ec5babe16982cd11235f5f663a1a1
5e5e965cba8579237e955817f807a10bd0cff59c
refs/heads/master
2021-01-13T02:08:07.015805
2014-10-03T19:25:12
2014-10-03T19:25:12
24,769,205
2
3
null
null
null
null
UTF-8
Python
false
false
1,334
py
#! /usr/bin/env python # Runs pylint on all python scripts found in a directory tree # Reference: http://rowinggolfer.blogspot.com/2009/08/pylint-recursively.html import os import re import sys total = 0.0 count = 0 __RATING__ = False def check(module): global total, count if module[-3:] == ".py": ...
[ "mtesauro@gmail.com" ]
mtesauro@gmail.com
6b123a7aa7e98d1552c0837b05d567fc6e678a17
31800838039e6834b0f253af6dd4dc021ee068e8
/ourgit.py
59e98d39198787201287272cfd86145d246e1395
[]
no_license
richo/pyBawt
f4f0df47b706e0e550fe282a68486ba36140b94f
6d3a9f6e6709b2f153bbaaa2b4d3d57d9dc93400
refs/heads/master
2020-12-24T15:32:12.942910
2011-09-24T06:40:31
2011-09-24T06:40:31
2,448,612
1
1
null
null
null
null
UTF-8
Python
false
false
1,241
py
import os import subprocess as sp import logging for p in ('/usr/bin/git', '/usr/local/bin/git'): if os.path.exists(p): git_binary = p def oneline(cmd): try: p = sp.Popen(cmd.split(" "), stdout=sp.PIPE, close_fds=True, executable=git_binary) p.wait() return p.stdout.readline()...
[ "richo@psych0tik.net" ]
richo@psych0tik.net
6c0c6b134f7cc04d388007de852960c03d739090
fd48fba90bb227017ac2da9786d59f9b9130aaf0
/digsby/src/util/observe/observable.py
3d4c775d03e7c444152e4db8a00b1a99af51a0cf
[ "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
niterain/digsby
bb05b959c66b957237be68cd8576e3a7c0f7c693
16a62c7df1018a49eaa8151c0f8b881c7e252949
refs/heads/master
2021-01-18T10:07:10.244382
2013-11-03T02:48:25
2013-11-03T02:48:25
5,991,568
1
0
null
2013-11-03T02:48:26
2012-09-28T02:24:50
Python
UTF-8
Python
false
false
12,762
py
''' Classes for observing property changes on objects. ''' from __future__ import with_statement from contextlib import contextmanager from collections import defaultdict from util.introspect import funcinfo from util.primitives.refs import better_ref as ref from weakref import ref as weakref_ref from peak.util.import...
[ "mdougherty@tagged.com" ]
mdougherty@tagged.com
9b723c8342ea621769fc7a6103318141ac1a59e0
a102854812e0d711dda244742614c00446bb3215
/plot_chain_theory_vs_results.py
91225ef1d97c13751d4489e940df3c59a8218c2f
[]
no_license
KineOdegardHanssen/continous_spins1
ef75f02477e132c49473489b828f1a410f6d2435
c6414bae065e6cc61f15c1b2e96acd2192dd7c12
refs/heads/master
2021-01-12T08:40:23.168735
2017-10-11T12:41:38
2017-10-11T12:41:38
76,657,469
0
0
null
null
null
null
UTF-8
Python
false
false
9,312
py
from numpy import * from scipy import * from matplotlib.pyplot import * import time import sys # Numerical results ### L = 2 # J = 1, so betas = betas*J # Open the file for reading #infile = open("chain2_periodic_iso1_beta0to4_everybeta.txt", "r") infile = open("test2_everybeta.txt", "r") # Just to compare methods...
[ "noreply@github.com" ]
KineOdegardHanssen.noreply@github.com
cc2a5915da4d22275ad0fcb8de11ad983fea77fe
d52bc83b3b187c00acc58dc3291a9e7986d2e816
/Chapter_1/1.11.py
9d86229e05e4565fe3054eb6bb1283a9ee50361b
[]
no_license
microease/Python-Cookbook-Note
aca002501dfde959f7d6ec35e572f97f00aa8414
f5904d796fcbcfffd9165167492f1928023a3384
refs/heads/master
2020-04-14T04:23:56.506758
2019-01-19T07:15:32
2019-01-19T07:15:32
163,634,941
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
# 你的程序已经出现一大堆已无法直视的硬编码切片下标,然后你想清理下代码。 record = '....................100 .......513.25 ..........' cost = int(record[20:23]) * float(record[31:37]) print(cost) shares = slice(20, 23) price = slice(31, 37) cost = int(record[shares] * float(record))
[ "microease@163.com" ]
microease@163.com
2686c75c0ec7a1d7bfc6301f800b9fe5afc0dc5a
85373d45a83e4096affafa4f4e5b400787413e57
/src/programy/storage/stores/sql/base.py
4bee1ce3bfd4ad7ea258cc7b683abf22f79d9842
[ "MIT" ]
permissive
keiffster/program-y
a02bb9d8278835547cc875f4f9cd668d5b1f44da
fc7b0a3afa4fa6ed683e0c817a9aa89f9543bb20
refs/heads/master
2023-08-23T13:55:39.255535
2022-12-13T09:51:57
2022-12-13T09:51:57
74,462,571
379
173
NOASSERTION
2023-05-23T00:51:21
2016-11-22T10:43:41
Python
UTF-8
Python
false
false
1,183
py
""" Copyright (c) 2016-2020 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
[ "keith@keithsterling.com" ]
keith@keithsterling.com
3d363fd091fba8b6212d1e0d619e5c03303a5ffe
f336bcdc1eeab553e0d3d1de2ca6da64cd7f27bc
/shape/shape.py
4431d9f5fcd9ba1b4b2b6eab71f951bf3b2d671b
[]
no_license
tonylibing/stockpractice
04568c017a96815e3796c895e74f11fa128d3ffe
039e144b3a4cc00e400338174b31fa277df55517
refs/heads/main
2023-09-05T03:53:02.565539
2021-10-30T22:08:16
2021-10-30T22:08:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,278
py
# coding:utf-8 # 1000元实盘练习程序 # 用程序识别技术形态 """ 参考文献:ANDREW W. LO, HARRY MAMAYSKY, AND JIANG WANG.Foundations of Technical Analysis:Computational Algorithms, Statistical Inference, and Empirical Implementation.TEIE JOURNAL OF FINANCE VOL. LV. NO. 4 AUGUST 2000. """ import pandas as pd import numpy as np import run impor...
[ "zwdnet@163.com" ]
zwdnet@163.com
7e6199a7cb8b82c89d6c57aea7b02c9dee6e4878
663365d4c1c4068dab79a4b24cf6c96888b0862d
/Functions/models.py
14cbce323c387696e5d2b191859e83295b4aeb4b
[]
no_license
gitanjali1077/UnistashFinal
e7052b26db70d3ed728f7cddd90da31f6d4f0a50
31251e441c8759ca3d6c4b0cb274902293fd38a7
refs/heads/master
2021-07-02T07:01:10.919891
2017-09-23T11:55:03
2017-09-23T11:55:03
104,563,813
0
1
null
null
null
null
UTF-8
Python
false
false
2,705
py
from __future__ import unicode_literals from django.contrib.auth.models import User from django import forms from django.db import models from django.db.models.signals import post_save from django.db.models.signals import * import os from django.conf import settings class Profile(models.Model): user = models.OneTo...
[ "gitanjali1077@gmail.com" ]
gitanjali1077@gmail.com
bc0523b6d95170412753018848ef47601ab54afb
fb8cbebdf034b2f478943752d5443afc82c6eef5
/tuirer/venv/lib/python3.6/site-packages/requests/sessions.py
cb1b548d859791370b156423d32bffcf99668fe6
[]
no_license
fariasjr/CitiTuirer
f64e0ec93ef088f8140bb0961d2ad4ed3b59448a
deb3f7a9c2d45b8a7f54639037f097b99abdac11
refs/heads/master
2020-03-24T05:10:36.261050
2018-08-01T20:24:30
2018-08-01T20:24:30
142,477,521
0
0
null
null
null
null
UTF-8
Python
false
false
27,878
py
# -*- coding: utf-8 -*- """ requests.session ~~~~~~~~~~~~~~~~ This module provides a Session object to manage and persist settings across requests (cookies, auth, proxies). """ import os import sys import time from datetime import timedelta from ._internal_utils import to_native_string from .adapters import HTTPAdap...
[ "jornadaciti@ug4c08.windows.cin.ufpe.br" ]
jornadaciti@ug4c08.windows.cin.ufpe.br
1fd1845e12898fa68c17c4638e0c38d5d2c8cf57
14f455693213cae4506a01b7d0591e542c38de79
/vendor/python-munin/plugins/mongodb_queues
d57be186c5d0ec42219560edb4339c3938e862f2
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "X11-distribute-modifications-variant" ]
permissive
Cvalladares/Newsblur_Instrumented
f0b14d063759973330f202108a7eed3a29bcc033
4d6ee6aa9713879b1e2550ea5f2dbd819c73af12
refs/heads/master
2022-12-29T15:19:29.726455
2019-09-03T17:09:04
2019-09-03T17:09:04
206,130,022
0
0
MIT
2022-12-10T06:00:26
2019-09-03T17:07:04
Python
UTF-8
Python
false
false
831
#!/usr/bin/env python # -*- coding: utf-8 -*- from vendor.munin.mongodb import MuninMongoDBPlugin class MongoDBQueuesPlugin(MuninMongoDBPlugin): args = "-l 0 --base 1000" vlabel = "count" title = "MongoDB queues" info = "Queues" queues = ("readers", "writers") @property def f...
[ "Cvalladares4837@gmail.com" ]
Cvalladares4837@gmail.com
1e0336648eac98bce61637a84f9502ab8275be94
348aeccddd5fdb48fb91a63d170b7f0453f70e36
/libcloud/test/compute/test_cloudstack.py
546b182ba478cef3536518cd08c1c007f4ed6ade
[ "Apache-2.0" ]
permissive
lelou6666/libcloud
4eb08e236cb9f4b787fa73ce963347f708faf092
bff26fe27fdd53979e32e08038ecd2fc108b6083
refs/heads/trunk
2021-01-14T14:02:16.661579
2013-10-28T11:18:08
2013-10-28T11:18:08
55,902,523
0
0
null
2016-04-10T14:08:20
2016-04-10T14:08:20
null
UTF-8
Python
false
false
17,167
py
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
[ "tomaz@apache.org" ]
tomaz@apache.org
440981eae42af1dad0b436e25c46f7e76c6230ad
b968a344f81c78a287ecd7addba096de1e1e61c9
/23Sep/local_functions.py
0e58aa3dada1b85d26cd54d6484c5fc4cc3ddd63
[]
no_license
TeknikhogskolanGothenburg/Python20_Python_Programming
c8f5dbe1ead92418589cc7a10a18658ee708db02
b837ddba4003842675533b87cf6209908b04c125
refs/heads/master
2023-01-22T05:15:22.502267
2020-10-28T10:27:33
2020-10-28T10:27:33
290,459,085
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
# LEGB value = 10 def function(): value = 11 print(value) def inner(): value = 12 print(value) inner() def main(): print(value) function() if __name__ == '__main__': main()
[ "joakim@arthead.se" ]
joakim@arthead.se
cb5c716d5384292a115614c8353e31ea1e82e465
b2b388b744dabc61b362c5bbc43dff97a14a77fa
/display/admin.py
2b7eee1f694d0207acc6e18eb40f8c62c58427a8
[]
no_license
berrybab6/Gebeta
835a54ab1b4bef805837d8c99b46a17fcbe0beb6
1a0b9cb88ee23cc0aaebc307fd5c84ff1b785042
refs/heads/master
2022-12-13T06:48:22.017856
2020-09-08T21:20:28
2020-09-08T21:20:28
292,960,798
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
from django.contrib import admin from .models import Chief,Food # Register your models here. admin.site.register(Food) admin.site.register(Chief)
[ "bedatuassefa@gmail.com" ]
bedatuassefa@gmail.com
449370fb91bf7ea16fb3f56de72cd8acf75d306d
f3040bc6962eb5c7890662a23e18d96bd5fd3942
/competitive coding/common_subs.py
fa95ef55a15d3416566e18b41203fa8011640b92
[]
no_license
h0axyboi/practice-scripts
08f5e036d3d58ac888ae830b8763c3f86601643a
5d146102481036dfb43f05c7ba23bed9d698c2f0
refs/heads/master
2023-04-14T18:23:25.024604
2021-05-01T14:51:56
2021-05-01T14:51:56
292,655,129
0
0
null
null
null
null
UTF-8
Python
false
false
1,087
py
#Program to find the longest subsequence of two sequences def get_sub(x1,x2): answer=[] max_val=max(len(x1),len(x2)) D=[[max_val]*(len(x1)+1) for _ in range(len(x2)+1)] for i in range(len(x1)+1): D[0][i]=i for i in range(len(x2)+1): D[i][0]=i for i in range(1,len(x2)+1): ...
[ "sabari15krishna@gmail.com" ]
sabari15krishna@gmail.com
4c98eff6e9dce46cb9d4ff2a9ae6b10bdce10e5e
a2eaa3decc385dea227da8a99203f767f32cf941
/electronic_station/brackets.py
c848067f3e77c31ace0bf312328ce2e071422e1b
[]
no_license
vlad-bezden/py.checkio
94db32111eeeb2cd90c7b3c4606ea72cf2bb6678
6cd870ca3056cc9dcdce0ad520c27e92311719b3
refs/heads/master
2021-07-01T18:39:35.955671
2020-10-05T00:56:38
2020-10-05T00:56:38
93,111,389
0
1
null
null
null
null
UTF-8
Python
false
false
1,670
py
""" Brackets You are given an expression with numbers, brackets and operators. For this task only the brackets matter. Brackets come in three flavors: "{}" "()" or "[]". Brackets are used to determine scope or to restrict some expression. If a bracket is open, then it must be closed with a closing bracket of the same ...
[ "vlad.bezden@gmail.com" ]
vlad.bezden@gmail.com
932e59bcb3e204e179bc409572412b4097ff97c6
118984fdbacf5eb71159eb511ccd055987498886
/CH04/EX4.31.py
f529d0630f72f5d6ca0c8d6b309c5777addf7d03
[]
no_license
6igsm0ke/Introduction-to-Programming-Using-Python-Liang-1st-edtion
321c6256be6ff78adbc8e3ddc73f2f43a51a75ab
159489f3af296f87469ddddf3a1cb232917506b0
refs/heads/master
2023-06-05T20:03:17.951911
2021-06-18T18:04:42
2021-06-18T18:04:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
853
py
# 4.31 (Geometry: point position) Given a directed line from point p0(x0, y0) to p1(x1, # y1), you can use the following condition to decide whether a point p2(x2, y2) is # on the left side of the line, on the right side of the line, or on the same line (see # Figure 4.12): # Write a program that prompts the user to en...
[ "47993441+OmarAlmighty@users.noreply.github.com" ]
47993441+OmarAlmighty@users.noreply.github.com
234a92d6e0ad2289c4540e8e3989377331715e6b
13625dd7375297b066ccd69d6c229e9a1535c9b2
/investfy/asgi.py
098f0293a5e53c518926581c165f31e79e04eed2
[]
no_license
rajman01/investfy
9d5fa3ed7593ec13db575016fc839664630318af
a4c8bf16ba7a1ce38d1370e4779284a4d6426733
refs/heads/main
2023-09-01T19:10:18.411861
2023-08-28T02:30:23
2023-08-28T02:30:23
320,408,218
0
1
null
2023-08-28T02:30:24
2020-12-10T22:46:03
null
UTF-8
Python
false
false
393
py
""" ASGI config for investfy project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
[ "alameenraji31@gmail.com" ]
alameenraji31@gmail.com
dcb54196471535bfaa8939fdaf20dd15ec4e8a9b
205dcb2c563c70016e22c3f466871ecc0a4b92fe
/personal/rmg/phonon/orig_data/grab_pos_info.py
8cb784871c07d6b789bdf070de588d1bf3142073
[]
no_license
RBSystems/github
09fb8b09c23a14bdf897925e2b108915874282b8
a3de54891209567046efc5fe843ef5fa5260932a
refs/heads/master
2022-02-01T06:54:04.425903
2019-06-19T15:15:46
2019-06-19T15:15:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
import os import sys file_pos = sys.arg[1] try: os.system('cif2cell --no-reduce %s'% file_pos) except: print ('Cif2cell need to be installed!\n') sys.exit(1)
[ "zjyx147@gmail.com" ]
zjyx147@gmail.com
0237c4d1d6c762bfffdc26115897e86c9848230f
2a8a6327fb9a7ce8696aa15b197d5170661fb94f
/test/test_get_account_summary_subscription_type.py
9789f3413387b9590ebc36587ec81842069988d3
[]
no_license
moderndatainc/zuora-client
8b88e05132ddf7e8c411a6d7dad8c0baabaa6dad
d50da49ce1b8465c76723496c2561a3b8ebdf07d
refs/heads/master
2021-09-21T19:17:34.752404
2018-08-29T23:24:07
2018-08-29T23:24:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
38,840
py
# coding: utf-8 """ Zuora API Reference # Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A...
[ "jairo.velasco@alertlogic.com" ]
jairo.velasco@alertlogic.com
0afaf18b84511b95a010a8a41356b37521026c77
d684237925e552a6ebcf56aeb3e65c254cbc37b4
/alembic/versions/a753295c449e_create_ericsson_cnai_cm_insert_queries.py
d879b14ca5f85dcb772dac1ec33ac17d251e3c3b
[ "Apache-2.0" ]
permissive
bodastage/bts-ce-database
7c1ac1e8558cc0e911cb6903fbc99b97489d10ab
96df7915621dd46daf55016eedf5cfc84dd0e3a2
refs/heads/master
2021-06-15T21:59:43.174602
2019-08-30T01:22:31
2019-08-30T01:22:31
114,766,401
1
3
Apache-2.0
2019-08-30T01:22:33
2017-12-19T13:09:21
Python
UTF-8
Python
false
false
45,648
py
"""Create Ericsson CNAI CM insert queries Revision ID: a753295c449e Revises: 85f1ac33370c Create Date: 2019-01-23 02:29:21.718548 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a753295c449e' down_revision = '85f1ac33370c' branch_labels = None depends_on = Non...
[ "emmanuel.ssebaggala@bodastage.com" ]
emmanuel.ssebaggala@bodastage.com
12f58ce208759186273d686dec141810f8d9f940
fcca7ebb332ae400b82f7d75d424ace30e35963c
/apps/acoustics/1d/interface/actools.py
4941276e49c71673ddd58f7f08ccfdebe941fa82
[]
no_license
clawpack/sharpclaw
5d2812149b28a09bfb626daf057fd27e4ab2f6a5
7c9782d932a449b92c875ff341a16bf00f0cc630
refs/heads/master
2021-01-04T14:06:42.001372
2013-11-28T15:19:26
2013-11-28T15:19:26
1,613,567
2
1
null
null
null
null
UTF-8
Python
false
false
11,574
py
from clawtools import * import pylab as pl from pylab import * #====================== class AcousticsProblem: #====================== """ Gives exact solution for 1D acoustics problem with piecewise constant medium with arbitrary number of interfaces """ #============================== def _...
[ "dketch@gmail.com" ]
dketch@gmail.com
d351e92c1fe237890ce230ca339e4190f3bca569
6b2cfafe9f986639a825e4df22405ec351886087
/appliedpy_ecourse/class8/remote_connection/ssh_connection.py
d8655cbdc46348d1488d62602b2a751ab656e523
[ "Apache-2.0" ]
permissive
jlawless6/pynet
c1f2064e31ed20b1ad0ea700000de048d9ef78e9
b4040b6870c9310b509ff6eb8941fe2bf3b309a0
refs/heads/master
2022-09-03T10:01:04.036267
2022-08-04T22:33:11
2022-08-04T22:33:11
233,743,588
0
0
Apache-2.0
2020-01-14T02:57:48
2020-01-14T02:57:48
null
UTF-8
Python
false
false
5,911
py
import paramiko import time MAX_BUFFER = 65535 class SSHConnection(object): ''' Base class is based upon Cisco IOS behavior. Should subclass this class for different vendors. ''' def __init__(self, net_device): self.net_device = net_device self.ip = net_device.ip_address ...
[ "ktbyers@twb-tech.com" ]
ktbyers@twb-tech.com
f60ef06f563e3ef37dafa11a31fd8b9296b717d8
0017247b95fc6dfe2265ffc81fe2ffd8a56e892e
/tutorial/snippets/migrations/0001_initial.py
c13ffcee05d1f56f37b7fffd71a024d555757416
[]
no_license
bchuey/django_rest_framework_tutorial
5b60cb7017af6faf1a7538dc53910d529fce962d
dad564e229d819226943bf6e74be28e86cbd0410
refs/heads/master
2016-08-11T22:03:25.874849
2016-02-03T16:54:47
2016-02-03T16:54:47
51,014,811
1
0
null
null
null
null
UTF-8
Python
false
false
12,576
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-02-02 20:27 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 = [ migration...
[ "bchuey415@gmail.com" ]
bchuey415@gmail.com
554adfb6929b32f0b763ee3c56fb7fd2e4759495
8ea2a4667dec632c44750271e8853d394d42bfef
/example/ssd/demo.py
521267550b4181de364cde95b1bf0a8b974d3beb
[ "Apache-2.0" ]
permissive
DR08/mxnet
609039020af9ccc368875d87f212b3bae4beedea
6ff1c8bb2de09627cd36c039e4dcc8baeb37cb26
refs/heads/stable
2020-06-15T06:10:03.947400
2017-08-16T00:01:36
2017-08-16T00:01:36
75,320,492
0
6
Apache-2.0
2019-05-21T21:46:05
2016-12-01T18:26:16
Python
UTF-8
Python
false
false
6,468
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "piiswrong@users.noreply.github.com" ]
piiswrong@users.noreply.github.com
8f86f52d3cde325ffadb3723753329f0fdd5547d
76e62ddbfdfba19c80b37e855a4df67672ef0808
/BITs/2014/Borsheva_ V_O/task_4_6.py
8dd065f03bdf816dc7e9e72f8b4e1802463e9a3f
[ "Apache-2.0" ]
permissive
stasvorosh/pythonintask
9d30f3cd492e89783b7221402375c1ebe4690baa
8169ed26510022fe0d589f4013f11749131957df
refs/heads/master
2021-01-17T16:49:32.778063
2016-10-10T14:08:04
2016-10-10T14:08:04
52,255,539
6
0
null
2016-02-22T07:33:16
2016-02-22T07:33:15
null
UTF-8
Python
false
false
755
py
# Задача4. Вариант 6 #Компьютер выводит имя, под которым скрывается София Шиколоне,выводит область интересов, место рождения, годы рождения и смерти. #Борщёва В.О #14.03.2016 print ("София Шиколоне известна, как итальянская актриса и певица Софи Лорен.") born= 1934 years= 2016- born place="Рим, Италия" interes= "кино...
[ "stasyan.v@gmail.com" ]
stasyan.v@gmail.com
b7f128e32bd6baf6d7deab84bdcb22dd42fc6777
00f5807ff009054426f0e489b9e86d6506dcbe11
/Famous Algorithms/Kadane's Algorithm/Solution1.py
4992a58a2a18e5b9ed1b19a4d6a7bc872fa08586
[]
no_license
aidansmyth95/AlgoExpertSolutions
0e405f85414daad8f47c1e7d9280fabc182331ea
f945e4ba3e1c12162a75c337a8f3087c51a3014e
refs/heads/master
2023-04-12T18:58:56.762316
2021-04-30T15:50:25
2021-04-30T15:50:25
363,187,614
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
''' Dynamic programming, but surprisingly easy! Sum at previous number + some value, or just restart with new value 3 5 -9 1 3 -2 3 4 7 2 -9 6 3 1 -5 4 3 8 -1 1 4 2 5 9 16 18 9 15 18 19 14 18 Max so far was 19, answer ''' # O(N) T | O(1) S def kadanesAlgorithm(array): # max so far maxSoFar = array[0] # runni...
[ "aidan.smyth36@mail.dcu.ie" ]
aidan.smyth36@mail.dcu.ie
c8d6c347c87c5e0245223f4ef23be06e2bceea9a
9123ca569035f18151afff88b9cc405e9692dc95
/create_github.py
862947e9492246a05986784d7807d90ac4567b77
[]
no_license
DavidLBallard/AutomatingProjects
d8428c9dcfbbb3308e0a58180345b38f34ba8c88
ecd979527608f5855db5d495122840c7d979d0d3
refs/heads/master
2020-06-20T19:56:32.129307
2019-09-17T03:50:05
2019-09-17T03:50:05
197,229,542
0
0
null
null
null
null
UTF-8
Python
false
false
1,845
py
#!/usr/bin/python3 # import statements for the script to work import sys import time from selenium import webdriver from selenium.webdriver.common.keys import Keys # local variables that are set to take in info by the bash program called project = sys.argv[1] pub_priv = sys.argv[2] # sets username and password from ...
[ "email_id" ]
email_id
10612d07c136b77ee7a2af74622b3e4645490363
ccc955e52786bd7940c21432743984defe11dbcf
/src/cryptoadvance/specterext/swan/client.py
70b44bbfd74e2ceb3aa377d5c91ab8ce986a688a
[ "MIT" ]
permissive
cryptoadvance/specter-desktop
7b4be65c2dcf6a3bf96fbc111db33892e9684955
72fed92dd5d00e3164adcc97decf5ae03328538a
refs/heads/master
2023-08-23T12:06:48.311367
2023-07-27T12:38:37
2023-07-27T12:38:37
205,435,205
827
247
MIT
2023-09-08T14:39:20
2019-08-30T18:18:02
Python
UTF-8
Python
false
false
17,631
py
import base64 import datetime import hashlib import json import logging import secrets from decimal import Decimal from os import access from typing import List from urllib import request from urllib.parse import urlparse import pytz import requests from flask import current_app as app from flask_babel import lazy_get...
[ "noreply@github.com" ]
cryptoadvance.noreply@github.com
37588017220a9c4f2c38a19d621375a59e76e3f1
4ae3a570595bde09b76e64795474216c3a19d36a
/tests/data/teams_response.py
ee436b5260a4a3b467796c906d88303b6221c812
[ "BSD-3-Clause" ]
permissive
Cloud-CV/evalai-cli
494af37c735eab51580d655cfb09a1fc759e4ae6
944da3e9ce48d9544906328299a261bb278cf88f
refs/heads/master
2023-06-23T04:31:08.990340
2023-06-20T18:39:02
2023-06-20T18:39:02
129,204,440
50
76
BSD-3-Clause
2023-06-20T18:39:04
2018-04-12T06:33:35
Python
UTF-8
Python
false
false
2,401
py
teams_list = """ { "count": 2, "next": null, "previous": null, "results": [ { "created_by": "admin", "id": 22, "members": [ { "member_id": 4, "member_name": "admin", "status": "Self" ...
[ "rishabhjain2018@gmail.com" ]
rishabhjain2018@gmail.com
811dcd208eeae1d2356a5bb6faaf3b92801fd214
6d97197c34c9b3e46b59d029c2d39990b0319e5f
/models/resnet/save-unquantized.py
9816cfc6a354b9daaaa24cd56367370b8fd1138e
[ "MIT" ]
permissive
sunblaze-ucb/ensemble-detection-attacks
43c3c0b0033da2ba70e25af5a09b4fd1915ccbbb
ff3e85cc58addb8f2ad85eac97443136ba0e6f09
refs/heads/master
2021-08-14T13:40:48.670442
2017-11-15T21:26:29
2017-11-15T21:26:29
110,887,308
0
1
null
null
null
null
UTF-8
Python
false
false
3,671
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "none" ]
none
961bb958d22f48060b66f37924e2b2d5dd1af12b
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/6269618/snippet.py
47e6767dacc2ed3df376c57393931c0454f0e67d
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,341
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from subprocess import check_call from subprocess import check_output from subprocess import CalledProcessError # First prune the list check_call(['git', 'remote', 'prune', 'origin']) # Second get all of our remote branches remote_branches_output = check_output(['git', '...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
8dda232378d8bad11d79eea6134b11904e8383ec
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_plushest.py
9bfe7c7aaa3b8a21217bc7f50a3b4a09c2911117
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
from xai.brain.wordbase.adjectives._plush import _PLUSH #calss header class _PLUSHEST(_PLUSH, ): def __init__(self,): _PLUSH.__init__(self) self.name = "PLUSHEST" self.specie = 'adjectives' self.basic = "plush" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e2f55ef79d9ab742ccfee2b52575fb73a28d41f6
d570cfe1653caa80d30616cb0d36d3115b59b3a2
/Python/Python Advanced/Lesson 10/demos_classes.py
0815d7db9cf364999d4f7d5bba0c08893faab876
[]
no_license
AntonYordanov/Start
e6ce0d7171ae1d2f3e4b6b6321dbd4b619a1940b
bb7c9fcfcce55e2694fb9e6cd6567f27da3e0fa0
refs/heads/master
2023-04-10T09:53:34.619063
2021-04-10T11:22:44
2021-04-10T11:22:44
274,082,156
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
def init(person, name, age): person.name = name person.age = age class Person: min_age = 0 max_age = 150 def __init__(self, name, age): self.name = name self.age = age def get_older(self): self.age += 1 def get_info(self): return f'{self....
[ "anton.y@abv.bg" ]
anton.y@abv.bg
e813647b66be8957e84364edf0c8af5234e77e83
2b2e1101197cff28e911c1e1540c7870e9332423
/dc_rsn_fastmri/dataset.py
7c17f2b3db1b12566aa5bfca762bcbe07b32758a
[]
no_license
Bala93/Holistic-MRI-Reconstruction
56e88e751dcbddefb2a4c2b36917a76378f88dbb
219652c8a08c4f2f682acd9f95a4e1b3fd36b70b
refs/heads/master
2022-11-12T10:32:14.981003
2020-06-27T13:34:55
2020-06-27T13:34:55
240,435,331
1
1
null
null
null
null
UTF-8
Python
false
false
6,682
py
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import pathlib import random import numpy as np import h5py from torch.utils.data import Dataset from tqdm import tqdm class SliceData(Dat...
[ "balamuralim.1993@gmail.com" ]
balamuralim.1993@gmail.com
583ba5309f82728c34a02fd5589e509d7f85ad04
90c2619937019bb1145edfb2d9d6a7cdea460b57
/src/572.py
8ae7290f8fc719cd97e253ea74b0787607bbaf08
[ "MIT" ]
permissive
zhaoyi3264/leetcode-solutions
2d289a7e5c74cfe7f8b019c6056ce16485ae057b
1a3a2d441cdd07a17e80b0ea43b7b266844f530c
refs/heads/main
2023-06-03T11:35:25.054669
2021-06-28T02:58:07
2021-06-28T02:58:07
349,618,427
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def check(self, root, subRoot): if not root and not subRoot: return True elif ro...
[ "zhaoyi3264@gmail.com" ]
zhaoyi3264@gmail.com
cbdc10be028df17533416d5cff5da020fbc60223
6a6fb844c9753d470c1266529c1624d9c9ee3b41
/QueryTermSubgraphConstruct/__init__.py
0329bf1b73a269b1549a6e5a82fe7236a0e6149c
[]
no_license
xiongchenyan/QueryFreebaseSemantic
ed6a5028e9dcfadd6256161273c480f9930caba2
16ec01291002641faa00920b536e17324a69227f
refs/heads/master
2021-01-19T06:53:18.176250
2014-05-20T17:35:12
2014-05-20T17:35:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
43
py
''' construct subgraph from query term '''
[ "xiongchenyan@gmail.com" ]
xiongchenyan@gmail.com
7af8ad806d67cdfe696fa71f58ff91a0499f9303
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.4/django/bin/django-admin.py
0f42f8f86acf3af6eb517c8cf60c3db74f150fa3
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
92
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/django/bin/django-admin.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
d653d243aee09c94bdab3bdc4ac79add2fb1e03a
b85a8e9d2c4dc601370f866919cc41b100238746
/objects and mehods project.py
07e4f80224bc1f3f7e48da50a0f03bdd6946a093
[]
no_license
amanlalwani007/important-python-scripts
42cf5747b7b7695dbbd3a550527f0ba4f15adcda
8c0e7ed71a159b9f41cd46f76219ba21303de767
refs/heads/master
2020-03-30T06:23:28.413697
2018-09-29T11:26:31
2018-09-29T11:26:31
150,857,232
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
#strip function remove he starting and last spaces practical use is login if there is spaces in starting and #last of username #difference between round and format print(round(57.467657,2)) print(format(57.467657,'10.2f')) print(format(57.467657,'10.2e')) #left align the format data print(format(57.467657,'<10.2f')) #...
[ "amanlalwani0807@gmail.com" ]
amanlalwani0807@gmail.com
57f8a20aacd07c3dd2a0754f7092d6d6fa023cb2
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/ad_group_criterion_label_service/transports/base.py
bc98627238c8f500c2a8c1ed5aadce38ca1026b9
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,351
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
c7610ca12724dd7761a4ec085a9c7a7c2a3e60ee
d11851baa7d951b537800d955cba49b411f40081
/ScikitLearn/Kmeans/kmeans02.py
ea2383e3a31c43f92eb8ac64f0178a74d2abd701
[]
no_license
sapphire666/MachineLearning
2c65cc747f85afcc6e80a2efa6f31c39a3e3c346
f89f131f95c4433f76e57b32d44c0535b7cd0124
refs/heads/master
2020-04-09T04:37:48.004937
2018-05-23T06:46:01
2018-05-23T06:46:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,838
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author:ZhengzhengLiu #聚类算法评估 import time import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.colors from sklearn.cluster import KMeans,MiniBatchKMeans from sklearn import metrics from sklearn.metrics.pairwise import pairwise_dist...
[ "15201078137@163.com" ]
15201078137@163.com
608317a89a8bdb2cfa6589b15a25c4e5af69e07d
3cf1cb73a60e0fcf9be8b70ec9f51ef4325b14c5
/tests/providers/aws/services/cloudtrail/cloudtrail_insights_exist/cloudtrail_insights_exist_test.py
3debb85f76cc4b3e2026ceda0a361bbe0d31c18a
[ "Apache-2.0" ]
permissive
gabrielsoltz/prowler
ab791d754fe6cd4939ead9bdcc3e109ccde95278
3c2096db68d171ca9f0313ffa48a6fa61d87f6f0
refs/heads/master
2023-05-24T23:07:20.771523
2023-04-25T09:59:30
2023-04-25T09:59:30
188,259,272
1
0
null
null
null
null
UTF-8
Python
false
false
5,915
py
from unittest import mock from boto3 import client, session from moto import mock_cloudtrail, mock_s3 from prowler.providers.aws.lib.audit_info.models import AWS_Audit_Info from prowler.providers.aws.services.cloudtrail.cloudtrail_service import Cloudtrail AWS_ACCOUNT_NUMBER = "123456789012" class Test_cloudtrail_...
[ "noreply@github.com" ]
gabrielsoltz.noreply@github.com
2e5fe9a935eab20f2d73491b9a32052eba342318
cdbebeb0c212e30dd1a865e791fc3484ecf44958
/axitom/phantoms.py
1c485ee284a25efec48426c3601ced0b86cf1c38
[ "MIT" ]
permissive
PolymerGuy/AXITOM
a88ee61f3488480c9acf793bc66f30d1f771c42b
7682be5b21fa933b9bea4082fe9a830076431feb
refs/heads/master
2020-06-05T10:31:42.517740
2019-10-10T08:53:51
2019-10-10T08:53:51
192,409,914
6
7
MIT
2019-10-09T16:30:25
2019-06-17T19:54:59
Python
UTF-8
Python
false
false
1,167
py
import numpy as np """ Phantoms This module contains the phantoms that can be used for forward projection and virtual experiments """ def barrel(domain_size=128, outer_rad_fraction=0.7,center_val=None): """ Barrel shaped phantom with a linear density gradient The domain size is cubic with dimension "domain_...
[ "sindre.n.olufsen@ntnu.no" ]
sindre.n.olufsen@ntnu.no
d5fd30e0624c1c5e02af2dde362d6bf5dff6d30f
053221e1d90b365f68701dbd5b6466f30d1f6fd7
/Day4/vd1.py
121eb18fd4cc5a74b39737235e6ab14a64a80ce6
[]
no_license
pytutorial/py2011E
eceb4d563cc807294b08b818edadd521ed8da488
306437369b0bfe55a2fa827b098283856242e731
refs/heads/main
2023-02-28T23:57:32.851536
2021-01-30T14:56:12
2021-01-30T14:56:12
318,186,117
1
1
null
null
null
null
UTF-8
Python
false
false
325
py
# vd1.py # Nhập vào họ , tên đệm và tên của một người # In ra họ tên đầy đủ ho = input('Họ:') ten_dem = input('Tên đệm:') ten = input('Tên:') #TODO #C1: print(ho, ten_dem, ten) #C2: ho_ten = ho + ' ' + ten_dem + ' ' + ten print(ho_ten) #C3 ho_ten = f'{ho} {ten_dem} {ten}' print(ho_ten)
[ "duongthanhtungvn01@gmail.com" ]
duongthanhtungvn01@gmail.com
9a5173ded90e6ae131f8437ec9639e5cd85630cd
43459d0a1b5c8d1b631ef3edb91b6a7bb1b26078
/core/viewsets.py
9289b4571085aa041fd6511cddb62d5ca9f6a2dd
[]
no_license
titusowuor30/dj_rest_jwt_auth_api
2ee5046b043d34d88c0fad344d9bb6525513ee90
ee33e33ed2f5852d5882cbc7b694e7ca9be7e7da
refs/heads/master
2023-07-16T21:42:08.820624
2021-08-28T07:50:47
2021-08-28T07:50:47
400,724,458
1
0
null
null
null
null
UTF-8
Python
false
false
808
py
from .serializers import UserSerializer from .models import User from rest_framework import viewsets, filters from rest_framework.permissions import IsAuthenticated from rest_framework.filters import OrderingFilter class UserViewSet(viewsets.ModelViewSet): http_method_names = ['get'] serializer_class = UserSe...
[ "titusowuor30@gmail.com" ]
titusowuor30@gmail.com
afdf894f282fb19eecaae34ad3387a0ef2f5685a
759de7cc7c264b165cc481d277eaf46235470bc6
/run/sova_timofei/run_looking.py
1558f32e81c47dc8904a4390bd5dc54d19f0838c
[]
no_license
RuzzyRullezz/insta_project
cdc743bcad8c95bbbec589d202aaa4e4bcc44857
3c29e5a505abaec9b468817117da1f0222fb2b49
refs/heads/main
2021-06-27T01:01:02.532268
2020-10-28T09:45:25
2020-10-28T09:45:25
174,750,569
1
0
null
2020-06-05T20:05:13
2019-03-09T21:56:57
Python
UTF-8
Python
false
false
367
py
import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir)) import bootstrap bootstrap.setup() from database.models import Accounts from promoting.promo_looking import LookingPromo from sova_timofei import username def run(): LookingPromo(Accounts.objects.get(username=username)...
[ "rgilfanov@fix.ru" ]
rgilfanov@fix.ru
00d794cba90d93f5f828f217347701665945ab8a
531a5c09ed774dca6f85f3c96827ff4d9f8fc3be
/AutotestWebD/apps/webportal/scripts/web_portal_service_interface_coverage.py
ce2ca828c11994c486988f45a6232141eb086a9c
[ "MIT" ]
permissive
xiaochaom/sosotest
a98db41088d9411aa7d2723894f5bdc60bfbbd52
a3a5ce67c3dc302cf4bca906496ec6ee26b42c33
refs/heads/master
2020-07-06T09:31:39.598616
2020-06-23T07:51:00
2020-06-23T07:51:00
202,971,957
0
0
MIT
2019-08-18T07:12:52
2019-08-18T07:12:51
null
UTF-8
Python
false
false
4,750
py
import django import sys,os rootpath = os.path.dirname(os.path.realpath(__file__)).replace("\\","/") rootpath = rootpath.split("/apps")[0] # print(rootpath) syspath=sys.path sys.path=[] sys.path.append(rootpath) #指定搜索路径绝对目录 sys.path.extend([rootpath+i for i in os.listdir(rootpath) if i[0]!="."])#将工程目录下的一级目录添加到python搜索路...
[ "wangjilianglong@163.com" ]
wangjilianglong@163.com
e451c0c8a604617181345cf6f4442e786ab4ffd8
448756d7ff6c9cbdf0a8b3b4ff8309207a6bb504
/scripts/howtofit/chapter_graphical_models/tutorial_1_global_model.py
6d4695fbacdf06e4a7ee929851784407e3c0d0c7
[]
no_license
jonathanfrawley/autofit_workspace_copy
f84c8ed8d8106cbd0735601b54d35104976219cf
4631ac452f62cd9c3d5257b4d0b2a64630c51ecf
refs/heads/master
2023-04-21T04:06:20.140963
2021-05-13T16:02:59
2021-05-13T16:02:59
367,427,102
0
0
null
null
null
null
UTF-8
Python
false
false
12,309
py
""" Tutorial 1: Global Models ========================= In chapter 1, we primarily focused on fitting one model to one dataset. We have inspected the results of those individual model-fits using tools such as the `Aggregator` and demonstrated that when necessary we are able to fit more complex models, for exampl...
[ "james.w.nightingale@durham.ac.uk" ]
james.w.nightingale@durham.ac.uk
554e5468b9afa36d466b244d1e404d40304a7f49
7c261270f871b5948a2945adaf8da99b17612192
/docs/conf.py
13822b5ab53378751d278b013139c252989076b0
[]
no_license
ElectronicRU/sppy
351894cf88886095e95610a77a42c6a6eb4dffc2
aca0433908d4ebdaf3b78d661dcc37fbe44a579e
refs/heads/master
2021-01-18T19:45:44.964442
2012-11-17T10:53:10
2012-11-17T10:53:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,755
py
# -*- coding: utf-8 -*- # # sppy documentation build configuration file, created by # sphinx-quickstart on Sun May 27 11:59:41 2012. # # 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. # # All co...
[ "charanpal@gmail.com" ]
charanpal@gmail.com
74854bd70980d9d1b4d204f4b168e1fe028b8cc6
8d161515037cd42dcd6404a068620c11b2597ae8
/LeetCode/Greedy/best_time_for_stock.py
6a5faef8348e65799c9e3f4137a060a31a11c0cf
[]
no_license
YiseBoge/CompetitiveProgramming
433526d18a7bfe754f9e1c8d20b2b234d7b7568c
26b720623bcc1afe054101a13ca37b65ff518ce1
refs/heads/master
2021-12-03T17:52:00.048476
2021-11-23T17:40:14
2021-11-23T17:40:14
225,392,780
1
0
null
null
null
null
UTF-8
Python
false
false
714
py
class Solution: def maxProfit(self, prices: list) -> int: profit = 0 stock = 0 selling = False for i in range(len(prices)): if selling and (i == len(prices) - 1 or prices[i] > prices[i + 1]): profit += prices[i] - stock stock = prices[i] ...
[ "Ethiopia1!" ]
Ethiopia1!
12bdcb3261191b7c37fb7df829a38281285eee68
751cf52d62dba7d88387fc5734d6ee3954054fc2
/opencv/commercial/Instructions/CV_Fundamentals/blurring/blurring.py
e987765d25b4af71cc50c17e0ccdb3e4d5f6f279
[ "MIT" ]
permissive
nooralight/lab-computer-vision
70a4d84a47a14dc8f5e9796ff6ccb59d4451ff27
0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9
refs/heads/master
2023-03-17T12:45:22.700237
2017-07-11T22:17:09
2017-07-11T22:17:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
import cv2 import numpy as np img = cv2.imread( "street.jpg" ) blur = cv2.blur( img, (9,9) ) gauss = cv2.GaussianBlur( img, (9,9), 3 ) median = cv2.medianBlur(img, 9) cv2.imshow("Mean", blur) cv2.imshow("Gaussian", gauss) cv2.imshow("Median", median) cv2.imwrite("mean.jpg", blur) cv2.imwrite("gaussian.jpg", gauss) ...
[ "danbudanov@gmail.com" ]
danbudanov@gmail.com
6affed677d1b11d592733e859ff6987ed61a8942
45467e07e77131f631d0865046dcc4d18f483601
/src/CodeChef/aug_ltime_18/mix_max_game.py
08ae3ae351442f2272d0000a1885e108136f2e52
[]
no_license
bvsbrk/Algos
98374e094bd3811579276d25a82bbf2c0f046d96
cbb18bce92054d57c0e825069ef7f2120a9cc622
refs/heads/master
2021-09-25T10:01:59.323857
2018-10-20T16:07:07
2018-10-20T16:07:07
98,708,839
0
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
if __name__ == '__main__': for _ in range(int(input().strip())): n, z1, z2 = [int(__) for __ in input().strip().split()] a, b = [int(__) for __ in input().strip().split()] found = False p1 = False s1, s2 = 10 ** 10, 10 ** 10 for i in range(1, z1 + 1): for ...
[ "v.ramakoteswararao2015@vit.ac.in" ]
v.ramakoteswararao2015@vit.ac.in
4df469a371b5ac3107bb9e6ab6e978c3923d4f84
46732d613208ee4096fbbd3fd74f22146471d1ce
/nc_file_process/code.py
c54f83bf6f1f8d779af2b67577ffeed9e5021bda
[]
no_license
cassieeric/python_crawler
7cb02f612382801ae024e2cee70e0c2bcdba927c
6d2b4db3d34183d729f6fd30555c6d6f04514260
refs/heads/master
2022-11-30T20:30:50.031960
2022-11-27T02:53:22
2022-11-27T02:53:22
118,204,154
322
283
null
2022-12-21T09:33:08
2018-01-20T03:17:14
HTML
UTF-8
Python
false
false
2,016
py
# -*- coding: utf-8 -*- import netCDF4 from netCDF4 import Dataset nc_obj = Dataset('D:\\皮皮猫数据\\tem_e0025_2.nc') #查看nc文件有些啥东东 # print(nc_obj) # print('---------------------------------------') #查看nc文件中的变量,结果是:['lon', 'lat', 'lev', 'time', 'tem'] # print(nc_obj.variables.keys()) # for i in nc_obj.variables....
[ "noreply@github.com" ]
cassieeric.noreply@github.com