blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fbdf2e39230a6f0c81bf9a0a4d41242ef6b9ba23 | a0fdea61891c67c48cff01738f7a2bb6a38635ce | /documentation/mcss.conf.py | 715bc44768d6f9d0dac92c0ac630505fb3e02aa8 | [] | no_license | yunusemreyilmazz/MarkovPasswords | 02620f8bd4a631a5bc1b8acd21110ff7ed97723d | 4aebd0a99064308eff1360a047f4a4b6607752e5 | refs/heads/main | 2023-06-16T06:19:21.223307 | 2021-05-17T09:39:58 | 2021-05-17T09:39:58 | 358,263,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import os
HTML_EXTRA_FILES = "../README.md"
DOXYFILE = 'Doxyfile-mcss'
MAIN_PROJECT_URL = "https://github.com/FlameOfIgnis/CNG491-Project"
SHOW_UNDOCUMENTED = True
HTML_HEADER = open('documentation/includes/header.html').read()
x = ["images/" + (item) for item in os.listdir('documentation/images/')]
print(x)
HTML_E... | [
"ahakcil@gmail.com"
] | ahakcil@gmail.com |
b7bb9e2667cf24be506017cb6e95edf3f301d4ed | c0a72c0bda2dd0bd1b8e811622e63f337065e29f | /hrl/frameworks/options/option.py | 62ec974a569d323515797eaf19d4fd7741f0942e | [] | no_license | konichuvak/hrl | 45337654fba87ac119ad242c314b19fc828cd0f3 | c654c91a9cfe5d34c778723977794dfa3e213776 | refs/heads/master | 2020-05-16T00:46:00.664032 | 2019-10-17T03:39:32 | 2019-10-17T03:39:32 | 182,587,564 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | from typing import Callable
class Option:
def __init__(self,
termination: Callable,
policy: Callable,
initiation: Callable,
id: str = None):
self.I = initiation
self.β = termination
self.π = policy
self.id... | [
"arialinvlad@gmail.com"
] | arialinvlad@gmail.com |
26544908ba48d80336509c2244ed04b85b7fc2ce | f805abde328858fee80890e09b5ecda9bf66d269 | /vigbridge-static/paygo-drop_or_forward.py | 5b4a88a3b7c071afc1691d8a660ad27a521913ca | [
"MIT"
] | permissive | luispedrosa/vigor | a6880d6fc4f4c4b8ac91ccfac3fb986edf87a5c1 | 945990ad714bc84ce1ffa676ba1d22b79597b7dd | refs/heads/master | 2022-12-11T01:25:27.001993 | 2021-07-16T23:14:24 | 2021-07-16T23:14:24 | 214,473,468 | 1 | 2 | MIT | 2022-01-25T19:20:26 | 2019-10-11T15:42:10 | C | UTF-8 | Python | false | false | 417 | py | import table_updates
h = pop_header(ether, on_mismatch=([],[]))
static_key = StaticKeyc(h.daddr, received_on_port)
if stat_emap.has(static_key):
if (stat_emap.get(static_key) == -2 or stat_emap.get(static_key) == received_on_port):
return ([],[])
elif dyn_emap.has(h.daddr) and dyn_vals.get(dyn_emap.get(h.da... | [
"fchamicapereira@gmail.com"
] | fchamicapereira@gmail.com |
12efa0c024a4d99d986aa818a7c90acda314472b | 50f88fd9cae1a4870edae36d2a437cc9af3bd2dd | /fav.py | 7e9cd408424ebee7fdd652df82403b3020b7b489 | [] | no_license | MustangNM/Anime-Potatoes- | 2c7f27554248498732bf38edbcda8294a074ca4d | ddb0874c6c3cc2e8c896f2b9eba70aca2cabbfee | refs/heads/master | 2021-04-30T04:07:31.088164 | 2018-02-14T17:00:49 | 2018-02-14T17:00:49 | 121,528,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | import mediaa
import index
# list of movies
aSilentVoice = mediaa.Movie("A Silent Voice", "Great Movie", "silent.jpg",
"https://www.youtube.com/watch?v=syqBF25r1Ak")
KimiNoNawa = mediaa.Movie("Your Name", "A love story", "Kimi.no.Na.wa.jpg",
"https://www.you... | [
"noreply@github.com"
] | MustangNM.noreply@github.com |
14a94b626bfcf3afd62e4dfc6074dbfac75ffcfb | 0a2918121f792d63a480fd04fe45167ccf5c20b8 | /scrapper.py | 332a63b8430c316e92e1ed336421481f050d84c9 | [] | no_license | orionmontoyac/house_scraping | c61c6f717e7a10b015c4567e2506929954faaa28 | 73e07b2bcdad017f53738c5aae23201563174c48 | refs/heads/master | 2021-04-06T22:09:01.786225 | 2020-03-23T17:11:32 | 2020-03-23T17:11:32 | 248,618,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | from house_page_object import *
def _save_houses(news_site_uid, houses):
now = datetime.datetime.now()
csv_headers = list(filter(lambda property: not property.startswith('_'), dir(houses[0])))
out_file_name = '{news_site_uid}_{datetime}_houses.csv'.format(news_site_uid=news_site_uid, datetime=now.strftime(... | [
"solar@iMac-de-SOLAR.local"
] | solar@iMac-de-SOLAR.local |
5611d0b092a75ea444e63dcb6ab7086032f9af36 | cfbb34dd860a0707a5c6937c3e9dfe8d74433e27 | /survey/migrations/0017_remove_survey_borrower_status.py | 09efdb8998ed1dc700e22f7f9f2c54e3ccb28f39 | [] | no_license | andamuthu/test | eba4876fc886877eeb458f4a37e96ddb02dbfed1 | 49db219a905ea3ebcb71120dac3f1d66821cc752 | refs/heads/master | 2022-12-09T13:19:31.618651 | 2020-09-07T04:10:00 | 2020-09-07T04:10:00 | 292,813,311 | 0 | 0 | null | 2020-09-07T04:10:01 | 2020-09-04T09:58:00 | Python | UTF-8 | Python | false | false | 336 | py | # Generated by Django 3.0.8 on 2020-07-26 12:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('survey', '0016_auto_20200726_1207'),
]
operations = [
migrations.RemoveField(
model_name='survey',
name='borrower_status',
... | [
"andamuthu.a@gmail.com"
] | andamuthu.a@gmail.com |
5f5772fc46a71ddeaf199e84f8036c0f5b86fbb9 | 98f3a92c7a558fa53266a6ead40e3fa6b7786f5e | /servers/admin.py | ed4e2ce02044dcc0d079630e561cdf030edc5cb6 | [] | no_license | yangkun9151/Cjit_Devops | e9d7b988b783ca131cc363f796ba86c8ace68122 | 7bf80cb03f1f357c5bc83b076ea1c3ad48ded0de | refs/heads/master | 2023-05-21T23:47:40.200665 | 2020-04-18T05:57:48 | 2020-04-18T05:57:48 | 256,160,314 | 0 | 0 | null | 2021-06-10T22:47:06 | 2020-04-16T08:51:12 | Python | UTF-8 | Python | false | false | 95 | py | from django.contrib import admin
from .models import Servers
admin.site.register(Servers)
| [
"245115113@qq.com"
] | 245115113@qq.com |
cd43e1d10dcc78a00cd676cd6422f7108738d668 | 5e726f41a95e1fc79ed98b777ec85a386f7c7a13 | /Scrapy/Pipeline/PipeLine.py | 15562deb29cbaa56f299f0c3c9aee5dd71930889 | [] | permissive | 825477418/XX | a3b43ff2061f2ec7e148671db26722e1e6c27195 | bf46e34749394002eec0fdc65e34c339ce022cab | refs/heads/master | 2022-08-02T23:51:31.009837 | 2020-06-03T13:54:09 | 2020-06-03T13:54:09 | 262,987,137 | 0 | 0 | MIT | 2020-06-03T13:54:10 | 2020-05-11T08:43:30 | null | UTF-8 | Python | false | false | 4,518 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/8/14 16:09
import json
import os
import time
from logzero import logger
from thrift.transport import TSocket
import XX.DB.SqlAlchemyHelper as sa
import XX.Encrypt.EncryptHelper as enc
import XX.File.FileHelper as cf
import XX.HTML.HtmlHelper as chtml
im... | [
"billsteve@sina.com"
] | billsteve@sina.com |
cf901aa9b34691b0af99752116c4af9c235fbbe8 | d7c0c76cab2d74bd6dad63f68873b9b8a56e6909 | /课件/第三节课/shiguangkey/shiguangkey/wsgi.py | 6825808deb7fa0a88f9fe80dad368cab257e406d | [] | no_license | LinearPi/ClassDoc | 6c871b03bcd6f081c071236d1ce8d131ba45f52a | 5408f98f76edfbfaeab392d4437725f81badd279 | refs/heads/master | 2022-11-30T04:29:45.879839 | 2019-06-17T06:51:51 | 2019-06-17T06:51:51 | 128,883,724 | 0 | 0 | null | 2022-11-22T02:31:50 | 2018-04-10T06:21:55 | CSS | UTF-8 | Python | false | false | 400 | py | """
WSGI config for shiguangkey project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"807745654@qq.com"
] | 807745654@qq.com |
7d9f251613e25a7b8026c8f78e8ba0808bd4c7ea | e0c38c2c98e0ee1d206debd2ccb98635ef248020 | /maps/foliumMaps.py | fece96dc896e75a634255768c6898114b3c6f1c0 | [
"MIT"
] | permissive | selinerguncu/Yelp-Spatial-Analysis | 81f629d5b0be7ab6cea4de3421c044606b6534ff | befbcb927ef225bda9ffaea0fd41a88344f9693c | refs/heads/master | 2020-12-30T11:02:01.419106 | 2017-09-08T14:35:27 | 2017-09-08T14:35:27 | 98,835,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,568 | py | import folium
from folium import plugins
import numpy as np
import sqlite3 as sqlite
import os
import sys
import pandas as pd
#extract data from yelp DB and clean it:
DB_PATH = "/Users/selinerguncu/Desktop/PythonProjects/Fun Projects/Yelp/data/yelpCleanDB.sqlite"
conn = sqlite.connect(DB_PATH)
##################... | [
"erguncu@usc.edu"
] | erguncu@usc.edu |
7e4b7ae698a95107a84e9fecd32a88e6c4685d6a | 803db2cc2c44fa50983f04e5a77dc2da87c37583 | /introduksjon_lerer/evige_lokker.py | 803c353752b3b65c6efdf8f46a42c6af80d2f45b | [] | no_license | NataliPotter/DAT110_eksenpler_2021_New | 1b44f796f32b2d27f6bb288c8e14a8dcadb76fc5 | 53bfde9462a6722f6948f1dd50d0288c19224a29 | refs/heads/main | 2023-03-23T18:45:56.773150 | 2021-03-09T19:57:41 | 2021-03-09T19:57:41 | 346,041,291 | 0 | 0 | null | 2021-03-09T19:57:42 | 2021-03-09T14:51:33 | Python | UTF-8 | Python | false | false | 273 | py | # Skriv inn et antall tall, så skal den gjøre 1 + 2 + 3 + ... + antall
antall = int(input("Antall tall: "))
tall = 1
resultat = 0
while tall <= antall:
resultat += tall
tall += 1
print(f"Foreløpig resultat: {resultat}")
print(f"Resultatet ble: {resultat}")
| [
"natali.v.goncharova@gmail.com"
] | natali.v.goncharova@gmail.com |
b48869e3cf23fc8447b997428554d005b1fb32f1 | d1216260d3f91d741781ccf7c0601590a6725f90 | /agent.py | c709ed1a2e7a11957a84f4e1bf846ace92abf372 | [] | no_license | lornzy/smartcar-p4 | b40821fc65fad2daac5e0b0cb25889cec6a6d227 | 1a94aca1b2afd377f72ac5917451ca8bd8398d91 | refs/heads/master | 2021-07-09T16:40:50.374849 | 2017-10-10T04:00:16 | 2017-10-10T04:00:16 | 105,352,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,894 | py | import random
import math
from environment import Agent, Environment
from planner import RoutePlanner
from simulator import Simulator
class LearningAgent(Agent):
""" An agent that learns to drive in the Smartcab world.
This is the object you will be modifying. """
def __init__(self, env, learning=Fal... | [
"noreply@github.com"
] | lornzy.noreply@github.com |
53d11d7a9d216d841eafcd87ae7bb090a3c17a52 | 1e14d31427714787abd4a1784a59d88591be9a68 | /IntroductionToML/decision_tree_01.py | 0f22c652d68e38535a642cd373763a2b2f93b054 | [] | no_license | jancywen/ml_learning | 4b6a84f1b6816e7ef6af9c0368eade47e5185d3c | aa3e9ee597424e9fdfe6e9b593ce9cc11392994b | refs/heads/master | 2020-03-16T07:51:35.853982 | 2018-08-28T09:44:14 | 2018-08-28T09:44:14 | 132,585,004 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | # -*- coding: utf-8 -*-
__author__ = 'wangwenjie'
__data__ = '2018/5/11 上午11:15'
__product__ = 'PyCharm'
__filename__ = 'decision_tree_01'
"""
决策树
"""
import matplotlib.pyplot as plt
import numpy as np
from sklearn.linear_model import LogisticRegression
from sklearn.tree import DecisionTreeClassifier
from skle... | [
"wangwenjie@ewell.cc"
] | wangwenjie@ewell.cc |
cfec095fd6de03ecdee2408f43de4864cdb3a360 | 8c80a0fa64b858cb27cf19bfd880844d1379ae8a | /cellules.py | e389a108c401ade15cc692b2f4dfc41ce0e404ea | [] | no_license | RaphaelJ/Python | 1241a54bc8c81d931633b5dce37478157ab194d1 | ff63214503215c175d931e18881fc55156457a23 | refs/heads/master | 2016-09-06T05:29:29.983225 | 2012-09-24T22:50:46 | 2012-09-24T22:50:46 | 2,337,660 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def cellules(x, y):
avg = x // y
rem = x % y
prec_sum_avg_rem = 0
for i in range(1, y+1):
sum_avg_rem = rem * i // y
print (avg + sum_avg_rem - prec_sum_avg_rem)
prec_sum_avg_rem = sum_avg_rem | [
"raphaeljavaux@gmail.com"
] | raphaeljavaux@gmail.com |
41afd00ba70b9bb4632093db934b2914019e239f | 5056caf1eb9546dbc10e1953c58d8605d229e4a7 | /fabfile.py | 9a3605e6c3b67cb37d96202cb8dd098a4a127d44 | [] | no_license | ergelo/fab-setupscript | cf1d3725c159bdc9002e2e5d046d55df69ec843b | 708f96fdacb7763099b043c07d6a43c109959c59 | refs/heads/master | 2020-12-24T15:13:48.886361 | 2011-11-08T11:13:51 | 2011-11-08T11:13:51 | 2,708,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 763 | py | import settings as s
from fab_helpers import *
env.hosts = s.hosts
def main():
"""
checks the settings and calls the appropriate setup functions
"""
if s.single_machine_setup:
dev_setup()
else:
db_setup()
dev_setup()
#################################
# ... | [
"bruno.panara@gmail.com"
] | bruno.panara@gmail.com |
ace30bcdb3f821bb721e5bedc043f25384bc5d38 | 5f4af71f507ddd668ecfb8640860a40003554871 | /BiddingSystem_Logic.py | 53f57868f982e800fa825edc19508a7c5ad5e360 | [] | no_license | Muhaimeen92/BiddingSystem | eab9a2cfb5b7d7bce2c6565ed3feda4b05d8c490 | dfc64bb69a6c3cb46dd86935ac92a90148c83413 | refs/heads/main | 2023-08-01T15:11:19.998331 | 2021-09-06T17:02:29 | 2021-09-06T17:02:29 | 403,695,522 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,586 | py | from BiddingSystem_Static import Campaign, AdCampaign, Request, BidRequest, Generator, AddGenerator, BidGenerator, timer
import json
from collections import defaultdict
class Evaluation:
def __init__(self, ad_campaigns, bid_requests):
self.ad_campaigns = ad_campaigns
self.bid_requests = bid_request... | [
"noreply@github.com"
] | Muhaimeen92.noreply@github.com |
52e8c2cb412b5c1812825c192dbe463a5b1e34dc | ecbdf14f5ce530a476223a60e2c9ab5f7894f747 | /hackrank/min_max.py | 9f7fd85550f29ffe1bdcf60b3c95563a3698db1c | [] | no_license | liangshinegood/lg-Python | daf7243ef6cba27276f375a50b78d3781d6d4527 | 6fb1ef9412eaa2b542693944ec2013f28ad0decb | refs/heads/master | 2021-04-12T11:12:03.443876 | 2018-03-23T15:15:36 | 2018-03-23T15:15:36 | 126,433,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#思路:输入对应的值,调用numpy.min,求得结果后再调用numpy.max
import numpy
N,M = map(int,input().split())
A = numpy.array([input().split() for _ in range(N)],int)
print(numpy.max(numpy.min(A,axis=1),axis=0))
| [
"liangshinegood@gmail.com"
] | liangshinegood@gmail.com |
8288d2ed8c9cf2c7939cfa000b9f3118cd4e900d | e8215b98dcf46417e720cc6ef4a0329474ae9b82 | /Tkinter Test/venv/Scripts/easy_install-3.7-script.py | da9765a503b6bfc8c21745c8a60562ec4bc9965c | [] | no_license | rgkaufmann/PythonCodes | 2d47bab84ec851fc962598f613b1e666a14c8efd | a5d5cd993beabdb79897a05b35420ad82f438f51 | refs/heads/master | 2021-06-13T23:19:09.109162 | 2021-03-03T06:00:04 | 2021-03-03T06:00:04 | 162,771,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #!"C:\Users\ryank\Desktop\Personal Files\Github\PythonCodes\Tkinter Test\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys... | [
"ryankaufmannprof@gmail.com"
] | ryankaufmannprof@gmail.com |
510a9f985a0efe43257e5c09347d375e3bf7a034 | 3a6d77832cf48484a42d9e993d3cbec60b449953 | /articles/form.py | 072bd279e74a848e466e9d3cf05d0417253ffa91 | [] | no_license | braylo41/DjangoGram | d10ab96d9fe18d030a000ad7d468d87b484ebb8d | dc4a119e005838485770d50913bc4b16d8cd59d0 | refs/heads/master | 2023-01-12T17:08:47.212258 | 2020-11-18T09:13:48 | 2020-11-18T09:13:48 | 303,852,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from django import forms
from .models import Article
class ArticleForm(forms.ModelForm):
class Meta:
model = Article
fields = ['title', 'body', 'image']
| [
"bray.logan2018@gmail.com"
] | bray.logan2018@gmail.com |
04de4d127e94160d5c5142b7f31b4796ded8dacb | 0f2865ba4c4c900ccc4a993d054390e45a064822 | /rplugin/python3/defx/source/sftp.py | d28a19d10678e2c5d58e74d346f7061b591f040c | [
"MIT"
] | permissive | skt041959/defx-sftp | 01e8763121eeae346cde27eb80c5a4dd3e1aca67 | 836ed150046691861b0332be3ca6aaa8caf13ac9 | refs/heads/main | 2023-04-22T09:17:04.643696 | 2021-05-03T12:42:32 | 2021-05-03T12:42:32 | 365,133,407 | 0 | 0 | MIT | 2021-05-07T06:16:34 | 2021-05-07T06:16:34 | null | UTF-8 | Python | false | false | 2,941 | py | from defx.util import error
from defx.context import Context
from defx.base.source import Base
from paramiko import Transport, SFTPClient, RSAKey
import re
from pathlib import Path
import site
import typing
from pynvim import Nvim
site.addsitedir(str(Path(__file__).parent.parent))
from sftp import SFTPPath # noqa: E4... | [
"haru.matu9168@gmail.com"
] | haru.matu9168@gmail.com |
85ad9b0323f892ca5498766a84096ba57bbaade4 | 218c8dd2da9cc70305c2720fa9e4e13cc79f1d7e | /calculator/calculator.py | f774b32a26b7bfdfa610fe723caa614cb112ae6f | [] | no_license | fernandoferreiratbe/python-setup | 5dfcc9e45f6720bf4d455accd83d0cb720485d49 | 92d543017299e5aebd57ab306d6ced1107d3f73d | refs/heads/master | 2023-03-11T09:45:57.799434 | 2021-03-01T12:53:12 | 2021-03-01T12:53:12 | 343,409,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # _*_ encoding: utf-8 _*_
class Calculator(object):
def add(self, x, y):
return x + y
def subtract(self, x, y):
return x - y
def multiply(self, x, y):
return x * y
def divide(self, x, y):
if y == 0:
raise ZeroDivisionError('You can not divide a number by ... | [
"fernando.ferreira.tbe@gmail.com"
] | fernando.ferreira.tbe@gmail.com |
92828e651c90169efa925b7a8d680a79c9534dce | 5a965b99a698bae7b2ade1bc3541380bfbe0c59e | /29.None.py | a008abd2ece7f245207819b48ac79afa4a0e062d | [] | no_license | sanjay-3129/Python-Tutorial | 29b03368db10140af39883e3ceef32ffe3710d64 | ba505f0ef1e79a6190fddb7159249e28acaf8ae6 | refs/heads/master | 2021-10-23T22:50:11.773143 | 2021-10-23T08:00:12 | 2021-10-23T08:00:12 | 230,701,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | '''
The None object is used to represent the absence of a value.
It is similar to null in other programming languages.
Like other "empty" values, such as 0, [] and the empty string, it is False when converted to a Boolean variable.
When entered at the Python console, it is displayed as the empty string.
'''
#(i)
... | [
"noreply@github.com"
] | sanjay-3129.noreply@github.com |
e23225b6151127ce9730c313dafca0c89005cd87 | a99123d0d3842cf5b3c311b0bce57aaba88dcc4f | /monpetitmarche/blog/admin.py | 10908684dfd09390086438f135bba60c01c9c7a1 | [] | no_license | jeg56/django | 20a0a2d158795c52ece0e8df136c11536ce1448f | 6d4209e5919e8391752e23e60741cc713dcf0cf8 | refs/heads/master | 2020-12-23T07:48:24.968722 | 2020-01-30T11:58:34 | 2020-01-30T11:58:34 | 237,087,595 | 0 | 0 | null | 2020-01-30T11:58:35 | 2020-01-29T21:39:14 | Python | UTF-8 | Python | false | false | 144 | py | from django.contrib import admin
from .models import Post
from .models import TestTable
admin.site.register(Post)
admin.site.register(TestTable) | [
"arnaud.jegoux@gmail.com"
] | arnaud.jegoux@gmail.com |
541a5c56a7332e5d66bc2214e29acf49b173ffdf | 4875939a6612f193cc94b1100c45fc0393c5421b | /logica/Transiciones.py | 2fd5a25c812a56d76502d51c1f8e19a7856e226a | [] | no_license | MaikelAndres/ProyectoCompiladores1.1 | 22359e7493112b293f49d0b46d5fcfb6d2910c79 | cf849a7d3e03af3fd2b49674aae79e9c2e888653 | refs/heads/master | 2020-05-21T01:24:29.895514 | 2019-10-15T21:42:44 | 2019-10-15T21:42:44 | 185,855,675 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | import Pila
#clase padre
class Trans:
def __init__(self):
self.pila = Pila.Pila()
self.p_1 = True
self.q_2 = False
self.r_final = False
def getP_1(self):
return self.p_1
def getQ_2(self):
return self.q_2
def getR_final(self):
r... | [
"noreply@github.com"
] | MaikelAndres.noreply@github.com |
cfe7693a63cc509737708e430b0e01a20ab1b668 | f7fdb86606ea1e0b7eeab4ccc216ccb5ecc6e97d | /apps/appointmentapp/migrations/0001_initial.py | 67837bd3b7261d2f61d3c374c130f0cd22579658 | [] | no_license | jkaloya/python_belt_exam | 93bc43638311edd3fecc6680db5f0f8772846402 | bc4a22a0fdebb6bcb39843bbe6918181b55a1f6d | refs/heads/master | 2020-12-31T00:52:59.724673 | 2017-01-31T23:32:19 | 2017-01-31T23:32:19 | 80,562,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-31 20:52
from __future__ import unicode_literals
import apps.appointmentapp.models
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
class Migration(migrations.Migration):
initial = True
... | [
"jkaloya@MacBook-Pro-2.local"
] | jkaloya@MacBook-Pro-2.local |
459a01ac146738b3a40827a2f553be5797d92b5e | bd4d78d90ffdb35dcf16224ff19442206b2716e9 | /RoomModesV2.py | 9d6b0a862b0065df55381fc7dec89f3f979a42d3 | [] | no_license | lizlgrzyb/Room-Modes | f2f75afc6f4493392060ce9f07c3ca313ee48f1b | 627b96d6038cb2a2bf4006a317c2d11c2940bacb | refs/heads/master | 2021-05-04T23:50:33.750726 | 2018-02-02T00:26:41 | 2018-02-02T00:26:41 | 119,425,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | #This program takes the dimensions of the room as
#an argument, and returns the axial, room modes
#within that given area via graph.
#Importing nessicary materials
import matplotlib.pyplot as plt
import numpy as np
import math
#Taking user input to determine the area being evaluated,
# the units that should be used ... | [
"Gayle@Gayles-MacBook-Pro.local"
] | Gayle@Gayles-MacBook-Pro.local |
2481d85d475e22868833a6a4c1a9f10d5167e005 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-4079.py | 2a05d715a81f2afdf05f6cbef244c71ef369dced | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,348 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
6b63d1623978dcba7792d56ad483f38edcf4156c | 161dad54f942177075b234475d2b41e908cde718 | /blog/models.py | 148d9cc4989542370dbb74a3ede2642d1318ddc8 | [] | no_license | TeYoMe/DMblog | a5711ab33251629a86d1519535ddc51756e6566f | b852e558d6cae0d18219e6e6caf6b27a4756c80f | refs/heads/master | 2021-01-25T13:00:12.452373 | 2018-03-02T03:05:47 | 2018-03-02T03:05:47 | 123,522,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | from django.db import models
from django.core.urlresolvers import reverse
class PublishedManager(models.Manager):
def get_queryset(self):
return super().get_queryset().filter(status='p')
class Category(models.Model):
name = models.CharField('分类名', max_length=30, unique=True)
imgurl = models.Char... | [
"2027598917@qq.com"
] | 2027598917@qq.com |
147f6d1feac51fa7a3bb8519b7d88ed3884e6cda | e9bffc770b30fe8ed1a28c4d60cbae013a95c0a5 | /Django/Code/mysite/library/admin.py | a4a5bd862c89aecce2aa6df008d68b70b14f8d27 | [] | no_license | robotautas/kursas | 2fa0506e3473112ca0f1aa3f26c0084f28b6daa7 | 11d991b5fdd0e5c5a6d3b6e271cf9877124a659c | refs/heads/master | 2023-08-31T18:56:08.184618 | 2023-08-31T08:03:57 | 2023-08-31T08:03:57 | 227,419,547 | 19 | 90 | null | 2023-05-19T11:15:04 | 2019-12-11T17:11:03 | Jupyter Notebook | UTF-8 | Python | false | false | 971 | py | from django.contrib import admin
from .models import Author, Genre, Book, BookInstance
class BooksInstanceInline(admin.TabularInline):
model = BookInstance
class BookAdmin(admin.ModelAdmin):
list_display = ('title', 'author', 'display_genre')
inlines = [BooksInstanceInline]
class BookInstanceAdmin(admin.... | [
"jotautas.treigys@gmail.com"
] | jotautas.treigys@gmail.com |
43b67be874649b4beaad1b6d9039f7f297c766c4 | a912f143a97ad67d61efb29a37a4bb2b36272c48 | /scripts/putnam/Fantastic Mini-Mods/pydwarf.materialsplus.py | 503bf892eae54323eb6bd92f6f27643ac0ab1ba8 | [
"Zlib"
] | permissive | johny5w/PyDwarf | bde43748f0b64c246b17edb749a68472620b2b32 | 1ac698f395d036a46b63f63a2c2dd28494759082 | refs/heads/master | 2021-01-20T16:47:41.095478 | 2015-05-23T12:56:28 | 2015-05-23T12:56:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,510 | py | import os
import pydwarf
from raws import rawsfile, rawstoken
permitted_reactions = '''
\t[PERMITTED_REACTION:MANGANESE_STEEL_MAKING_BARS]
\t[PERMITTED_REACTION:MANGANESE_STEEL_MAKING_ORE]
\t[PERMITTED_REACTION:HIGH_SPEED_STEEL_MAKING]
\t[PERMITTED_REACTION:BERYLLIUM_MACRO_PUTNAM]
\t[PERMITTED_REACTION... | [
"sophie@thehumangeo.com"
] | sophie@thehumangeo.com |
2ba2eebd706830142539b0bf84840ac31b9f221e | 06c1179ff523f2de0b2caf68cc1f93b1012ced77 | /bot/utils/__init__.py | 5d3a88cd3716652febc9864e3cf975a737a872be | [] | no_license | jpark9013/Discord-Bot | 6ab6bae3070ff9542dd862fc7fc2e732c3f8a3b1 | 290c638cf46379219ee5ac9426bf0ee98ee79776 | refs/heads/master | 2022-12-06T17:53:32.814677 | 2020-08-28T01:25:01 | 2020-08-28T01:25:01 | 281,536,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | __all__ = ["format", "paginator", "permissions"]
| [
"jpark9013@gmail.com"
] | jpark9013@gmail.com |
2f3eedae276c137379edc09c54ff1f17e0e09bd2 | b1aa8cb635a0f1488b6eb6ca4b0edc6bbcbf8673 | /sample_question/divisible.py | bb03fb9ea829705dfed26e30d3c4c75a850a3c50 | [] | no_license | Tansiya/tansiya-training-prgm | f106f042159e9d5635ae6c6529e0e18e4afce73b | b24958c1453c08cd0fd902f0b6e92a3dee7ee057 | refs/heads/master | 2020-03-30T09:27:58.571427 | 2018-10-27T10:31:06 | 2018-10-27T10:31:06 | 151,076,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | """ find the factorial number and divide the 7 and but are not a multiple of 5.print the values factorial or list"""
#assign a factorial and using function
def fact(x):
if (x == 0):
return 1
else:
return x * fact(x - 1)
#assign a list and using function
def maths():
l= []
#creating for loop function
for i in... | [
"tansiyamalarkodi3396@gmail.com"
] | tansiyamalarkodi3396@gmail.com |
36baaf3a20ce83d3a6c8ba5ff5520dfea9c221a4 | f6ab35c3c5f899df0c0ee074de8f8df30227ffe2 | /main/migrations/0003_bugreport.py | 339e86ba41ebea2281621593ccd51d79e4b43551 | [
"MIT"
] | permissive | josylad/RoomScout | f3614291bbfdd226110e038fb60d593ab3093c7e | a3d067dd67dfdd43702ea2e89064213dbd469157 | refs/heads/master | 2020-12-27T09:22:47.486710 | 2020-02-20T10:18:05 | 2020-02-20T10:18:05 | 237,850,614 | 0 | 0 | MIT | 2020-02-20T10:18:06 | 2020-02-02T23:08:10 | Python | UTF-8 | Python | false | false | 646 | py | # Generated by Django 2.2.4 on 2019-09-23 16:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0002_auto_20190922_2118'),
]
operations = [
migrations.CreateModel(
name='BugReport',
fields=[
('id', models.AutoField(auto_created=True, primar... | [
"nova1104@live.com"
] | nova1104@live.com |
ca4769c5895b8ad278b14f94504182d144f01b95 | 13505f9ba1f90ec62de6bd3f03f3df26bee0ab09 | /app.py | 494df93a82231531726f732a365fcd87cb27b0a0 | [] | no_license | ohdDev/FSND-capstone | e5d3e6a4a0745f1abdb5125aa27e770d07c94366 | cbe8f34d1e0857afe2f56f4fdaa69afa883129cf | refs/heads/master | 2023-03-14T01:25:49.913658 | 2021-03-05T00:31:55 | 2021-03-05T00:31:55 | 344,076,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,139 | py | import os
from flask import Flask, request, abort, jsonify
from models import setup_db, Movies, Actors
from flask_cors import CORS
from auth import AuthError, requires_auth
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
def create_app(test_config=None):
app=Flask(__name__)
setup_db(app)
CORS(a... | [
"w.ohd95@gmail.com"
] | w.ohd95@gmail.com |
59b2593d0beb148c783eff6a76d9b084c0fab175 | d442d1f39ea86a85612d0b2014cf7a0b4aaf6e4e | /main.py | 41445742e8557aeb16e38c0c992dbda64f1049f3 | [] | no_license | avaloshka/Day_29_Password_Generator | 8f1f49df5c90ee8ccb3d12a85af3eccd036faf25 | 80f473d0355fabf5dfb4a11efdca5c05e1298bd1 | refs/heads/main | 2023-06-05T02:39:37.624069 | 2021-06-26T17:54:22 | 2021-06-26T17:54:22 | 378,091,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py |
import tkinter
from tkinter import END
from tkinter import messagebox
import random
import string
import pyperclip
import json
WEB = None
# ---------------------------- PASSWORD GENERATOR ------------------------------- #
def generate_password():
letters = string.ascii_lowercase
up_letters ... | [
"noreply@github.com"
] | avaloshka.noreply@github.com |
373f663a57489c8b441d1942ab19631dc3ab477d | c1c8aa53670d25857f1fbde77c9a5afc8eb8503f | /weblog/migrations/0006_auto_20170828_1148.py | e07b448627f9f7d52f9e8605c72dfd3f8bee1009 | [] | no_license | ricale/private-block | 177690393f5590f2d6160b24756638cf0ac18a16 | bedb33defaaeb5e4ca35b274406f79ebce909cdf | refs/heads/master | 2020-05-22T03:56:27.639483 | 2018-01-11T06:25:59 | 2018-01-11T06:25:59 | 65,257,341 | 0 | 0 | null | 2018-01-11T06:26:00 | 2016-08-09T02:51:40 | Python | UTF-8 | Python | false | false | 1,031 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-28 02:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('weblog', '0005_post_category'),
]
operations = [
... | [
"KIM.kangseong@gmail.com"
] | KIM.kangseong@gmail.com |
285bd3f58ba4329c58773cb361b56b8cbc72ae46 | e8cd62402d54dce1b6325335d4cbfa8b2394cf84 | /blog/migrations/0001_initial.py | e6ae6d9a972f7cf94e10765a4ed3d3b5a359dc8c | [] | no_license | 07legion/my-first-blog | c603a44cd0f349459b02ce06fa1927bb84da7aac | 8c93249b29fe01974c7d37fc5c96bd9c687c9368 | refs/heads/master | 2023-05-13T01:53:45.429640 | 2021-06-04T04:31:10 | 2021-06-04T04:31:10 | 373,373,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.2.24 on 2021-06-03 03:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"sharmaamish39@gmail.com"
] | sharmaamish39@gmail.com |
ec2323c56afae2e06a5a3139251e27471c4b6ab6 | 6a285406e7cd181c12d6a949c894bafda2d881d4 | /scripts/check_expansion/check_expansion.py | 36a373b14f3478c1e7b6db496cd2be0be79a3859 | [] | no_license | jngaravitoc/time-dependent-BFE | e26ed886fcf4eb3215e96c092f6b12cba41aa983 | 529295cec801a50de62ba8cf6b1cba530f08957a | refs/heads/master | 2023-09-01T06:47:02.535033 | 2023-08-24T14:41:04 | 2023-08-24T14:41:04 | 235,460,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,377 | py | import numpy as np
import matplotlib
#matplotlib.use('Qt5Agg')
import matplotlib.pyplot as plt
plt.style.use('/mnt/home/nico/matplotlib.mplstyle')
from astropy import units as u
import gala.coordinates as gc
import gala.dynamics as gd
import gala.potential as gp
import gala.integrate as gi
from gala.units import gala... | [
"jngaravitoc@email.arizona.edu"
] | jngaravitoc@email.arizona.edu |
7a4878c76aa17420d73c206deeb3c9c60a71f66a | dd636f4abc446dc9a1d738d394c49884d0d305ac | /app/core/management/commands/wait_for_db.py | 08fcd67c1656ba95773e34cd7f87971fd69a6cec | [
"MIT"
] | permissive | locspoc/recipe-app-api | 3824ccdc409623266278136bf1d6471d25b6e2bd | 86a0e3893c27f4eee9f29c9ad68e4f8092b57b98 | refs/heads/main | 2023-04-16T06:35:16.345532 | 2021-05-01T00:57:01 | 2021-05-01T00:57:01 | 349,620,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | import time
from django.db import connections
from django.db.utils import OperationalError
from django.core.management.base import BaseCommand
class Command(BaseCommand):
"""Django command to pause execution until database is available"""
def handle(self, *args, **options):
self.stdout.write('Waitin... | [
"mrlocspoc@gmail.com"
] | mrlocspoc@gmail.com |
63cff32c562a62ea23fc6c8cfdd282617065883a | 529a5686f69e38527809f86c055ccd70095065cd | /scripts/prepare_txt_done_data_file.py | 6c3e00ef6300dd57d6d3de652c50581a3f9bb91d | [
"MIT"
] | permissive | AvashnaGovender/Tacotron | 925ad68050bde7a5b3b0f6686295ff6ea0cb241d | b4d710ffb0f9e7ef0096d1993b8a24cae4f0d557 | refs/heads/master | 2023-01-14T01:23:04.539018 | 2020-11-27T08:55:53 | 2020-11-27T08:55:53 | 277,764,431 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import os
import sys
import numpy as np
import codecs
if __name__ == "__main__":
if len(sys.argv)!=3:
print('Usage: python src/prepare_txt_done_data_file.py <meta_file> <utts.data>\n')
sys.exit(0)
meta_file = sys.argv[1]
out_file = sys.argv[2]
out_f = open(out_file,'w')
with ope... | [
"38498073+AvashnaGovender@users.noreply.github.com"
] | 38498073+AvashnaGovender@users.noreply.github.com |
1a001cf8f6a9d8db86f80d2e07c8aa293af28736 | 0ba0448cf8c125669f07ec1254b2ba8b0a8112b3 | /Django/databash/datasets/urls.py | 784d50093441a2b8c45a9fee4b123f1540bb1aa5 | [
"MIT"
] | permissive | sethkabir/Cicada-3301-Hackathon | e6f6d1684b57e21c2e5ecb20333ca8a77f9365e5 | e91454b237121efa6642607e990395d2e51ff048 | refs/heads/main | 2023-05-08T15:46:06.173622 | 2021-05-29T07:23:28 | 2021-05-29T07:23:28 | 371,747,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.urls import path
from django.urls.resolvers import URLPattern
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('datasets/', views.datasets , name='datasets'),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
| [
"sanchjain101@gmail.com"
] | sanchjain101@gmail.com |
2f5457ea24011bda9e4d5f8c0bfe6274053603bd | eccdbca906891de626be8ee7d11573d3fa74248d | /N-queens.py | 422fab1bf4db460573fdf583de364436bfd89308 | [] | no_license | TerryCh1995/N-queens | bfb179774052183615f16aa06b1efc5eee5528a8 | ab62c677e71973e8fe1444cbda723b560495c2ad | refs/heads/master | 2021-05-11T17:32:26.698661 | 2018-01-17T07:42:06 | 2018-01-17T07:42:06 | 117,800,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | import random
import time
from datetime import timedelta
#冲突检查,在定义state时,采用state来标志每个皇后的位置,其中索引用来表示横坐标,基对应的值表示纵坐标,例如: state[0]=3,表示该皇后位于第1行的第4列上
def conflict(state, nextX):
nextY = len(state)
for i in range(nextY):
#如果下一个皇后的位置与当前的皇后位置相邻(包括上下,左右)或在同一对角线上,则说明有冲突,需要重新摆放
if abs(state[i]-nextX) in (... | [
"624495528@qq.com"
] | 624495528@qq.com |
9ca1ae42d2994c511aa05fb67a74159c6e6d4488 | 15fa13fad9a05a51843c3ed6cf1f8afbb33aae66 | /examples/reference/save/save.pde | 2b5b228b7744b1a986067a42dde526639429d72c | [] | no_license | kazimuth/python-mode-processing | 4ad39f18c9637206fa7c691ac328baae0fc21b1a | e6274f89e0464b771870327a56ce01bff629e0fb | refs/heads/master | 2021-01-22T05:27:44.912530 | 2014-04-22T17:20:15 | 2014-04-22T17:20:15 | 10,946,779 | 4 | 0 | null | 2013-12-31T01:23:52 | 2013-06-25T18:40:55 | Java | UTF-8 | Python | false | false | 163 | pde | line(20, 20, 80, 80);
# Saves a PNG file named "diagonal.png"
save("diagonal.png");
# Saves a PNG file named "cross.png"
line(80, 20, 20, 80);
save("cross.png");
| [
"martin_p@lineone.net"
] | martin_p@lineone.net |
c65e79d20c1da3b65054b30115487a08497c16c4 | 27e646d5671e1ea6f87c5f3f23d732e5208a6719 | /rust/build03/comparedat.py | 621795c4ea0ef28c44a47dd218e967e9163654d3 | [] | no_license | richardlford/digsim | 950683c9bba244e447b81302d1caf77fa71e96a8 | 4da30b04be3c66762050e56f1eb5a533d6d806d7 | refs/heads/master | 2023-02-10T01:57:40.474901 | 2019-08-14T17:10:01 | 2019-08-14T17:10:01 | 325,349,160 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | #!/usr/bin/python3
import os
from pprint import pprint as pp
# cwd = list(os.path.split(os.getcwd()))[1]
# pp(cwd)
cwd = "build01"
canon = []
with open("../../f77/" + cwd + "/output.dat","r") as ifile:
for line in ifile:
canon.append(tuple(map(float,line.split())))
belief = []
with open("output.dat","r") a... | [
"roy.crippen@archarithms.com"
] | roy.crippen@archarithms.com |
97960e3328b8f1cfd55840e4f352b67dd9e8d23c | fc81b9c13f4fa2218c0fe6e6666a737cb427bd8a | /mledge-master-8be9042002b67467223306dbefc7bc8e772a95d9/ICML/MultiTask/dataset_utils.py | a26559e579379c4b0d1cbd802977f193d180342e | [] | no_license | WangyaqiAlly/burned_in_captions | 21b6dcb3a8350d732b42b8dca6fd1627168fef4c | 46dad50a8336e305ceabe2e598d2290fafb48824 | refs/heads/master | 2020-03-28T14:10:20.096202 | 2018-11-14T08:37:45 | 2018-11-14T08:37:45 | 148,463,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,218 | py | import tensorflow as tf
import os, sys, pickle
import numpy as np
from scipy import linalg
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_bool('aug_trans', False, "")
tf.app.flags.DEFINE_bool('aug_flip', False, "")
def unpickle(file):
fp = open(file, 'rb')
if sys.version_info.major == 2:
data = pickle... | [
"yaqi-wan15@mails.tsinghua.edu.cn"
] | yaqi-wan15@mails.tsinghua.edu.cn |
f53f49552b8909f3cef6a07045dbfc113e7e8581 | 4823948cb075cdd51d523a5f72ff4119edebe7ab | /opencenteragent/plugins/output/plugin_sleep.py | ac148dd5cb54a6beb0b2d2aeeb1a5276815c1ffd | [] | no_license | hughsaunders/opencenter-agent | 738647dd462c38a1da2f078eb1fed9e3e6452b7f | e9facb74ceb9f03391dcd5ee3c61ff27406305cd | refs/heads/master | 2021-01-17T23:49:42.465661 | 2013-02-26T21:38:45 | 2013-02-26T21:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | #!/usr/bin/env python
#
# Copyright 2012, Rackspace US, Inc.
#
# 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 applicab... | [
"jason.cannavale@rackspace.com"
] | jason.cannavale@rackspace.com |
efacab27cdad747145ceafc36a9158f2b215c1a8 | a935f2800e48bb7069fe966972eef56fc8ea2007 | /events/tasks.py | 0aa59c22887be428476faba38eb6b1be105339e8 | [] | no_license | ptrus/findtofun | 88ae4328b38110167559728e635e5e3b73566410 | 58f0ce6777f7d4cbb5d697a9c4b79dad7d81bca0 | refs/heads/master | 2021-01-17T23:39:06.658549 | 2013-05-21T20:32:59 | 2013-05-21T20:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,442 | py | from djcelery import celery
from celery.utils.log import get_task_logger
from facepy import GraphAPI
from events.models import FbEvent, FbUser
# from copy import deepcopy
logger = get_task_logger(__name__)
@celery.task
def process_events(access_token):
graph = GraphAPI(access_token)
query_events = """
SELECT
... | [
"Tomi@me.com"
] | Tomi@me.com |
2429a385627bfa93b1a51418d01fb03830dcb6d9 | abb3174a489f5a00ff3392b485d43c62395c1929 | /model_big.py | 9e1bb2abeb5c5b79b7eb747f8388b501b478058e | [] | no_license | sWizad/SingleImgMPI | 3fab9787fed6613527f6dc11fdd1948c869d7d7b | f77cce1cd92aab1ac41273c5dbe92ed6d697ae13 | refs/heads/master | 2020-12-09T08:18:29.369114 | 2020-01-28T11:01:51 | 2020-01-28T11:01:51 | 233,247,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,825 | py | ## Make MPI by direct optimization
import os, sys
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from tensorflow.compat.v1 import ConfigProto
import cv2
from sfm_utils import SfMData
#from view_gen import generateWebGL, generateConfigGL
from utils import *
#from localpath import getLocalPat... | [
"suttisak@v03.vll.ist"
] | suttisak@v03.vll.ist |
a7a4c82d7babe5a5178fe675ff518a0da8e7edd7 | 9eedcae2097f724fa8cde0a7ff01f851becdb2e9 | /datapeace/venv/bin/sqlformat | d9920ae115c41a21819f76363a3b71420cadef5a | [] | no_license | Chhavnish/datapeace_user_management_system | 7ea4a16f4e206e05543006b0557756095c8ca1d3 | 7f4256cbbfc0974ba0c047a0971b50b66624eb2c | refs/heads/master | 2020-05-15T00:52:56.088542 | 2019-04-18T06:21:39 | 2019-04-18T06:21:39 | 182,016,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/cmittal/Desktop/Extra/datapeace/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"v-mchhavnish@expediagroup.com"
] | v-mchhavnish@expediagroup.com | |
ba9bd981bd880e5f72294cb26838efd16f6b1a93 | f4e16d12b5b95fb05ebfca7d2a3338715077cb63 | /extend/migrations/0001_initial.py | 69a3c0b71cf6db59efe5ab947990b5696178fc10 | [] | no_license | z747553743/Lab4 | 6110fbd598114c13914e4b8eb7d7d26b11801524 | 1d674ad857f1db81af79f2afadabca2d97f6ea78 | refs/heads/master | 2021-01-20T11:42:01.335368 | 2015-11-12T08:24:29 | 2015-11-12T08:24:29 | 45,901,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
('id', models.AutoField(verbo... | [
"747553743qq.com"
] | 747553743qq.com |
aad9488676d3f5b3bfee0855179e545f1e14d504 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /GaXXfmpM72yCHag9T_4.py | 22925ca97568e06a1a2019dab94c6ca385feb516 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py |
def unique(lst):
return [l for l in lst if lst.count(l) == 1][0]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
538183605cea0ff1b5fef40d2c62d45448a7cfcf | c3cff2173c371541de2175f90a68b5d91e98b353 | /admin/tool.py | b062697243ccab9c839d8a9098db0a8d91f6fb68 | [] | no_license | suruleredotdev/suruleredotdev.github.io | 7490bf61b1af0424f0df845cebc2d6a332c5555e | e55896e07d1fd18275c7c7d36561a99b58f6763b | refs/heads/master | 2023-01-25T02:07:51.391593 | 2023-01-20T04:36:26 | 2023-01-20T04:36:26 | 224,273,040 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/python3
import flask
import os
from subprocess import Popen, PIPE, STDOUT
import logging
app = flask.Flask(__name__)
app.jinja_env.add_extension('pypugjs.ext.jinja.PyPugJSExtension')
@app.route('/')
def start():
run("./serve.rb")
def run(cmd):
process = Popen(cmd, stdout=STDOUT, stderr=STDOUT)
... | [
"kaderele@gmail.com"
] | kaderele@gmail.com |
e9b8e93e36efe9ee9c406bf969fd120cc56c3151 | ea44a1681e276b3cc85226b53de217f6096a05d4 | /fhir/resources/models/bundle.py | e8589ec8f2e903e432742ea6bcaa7820df89456e | [
"BSD-3-Clause"
] | permissive | stephanie-howson/fhir.resources | 69d2a5a6b0fe4387b82e984255b24027b37985c4 | 126e9dc6e14541f74e69ef7c1a0b8a74aa981905 | refs/heads/master | 2020-05-04T22:24:49.826585 | 2019-06-27T15:51:26 | 2019-06-27T15:51:26 | 179,511,579 | 0 | 0 | null | 2019-04-04T14:14:53 | 2019-04-04T14:14:52 | null | UTF-8 | Python | false | false | 11,353 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-9a13c5160d (http://hl7.org/fhir/StructureDefinition/Bundle) on 2019-04-12.
# 2019, SMART Health IT.
from . import resource
class Bundle(resource.Resource):
""" Contains a collection of resources.
A container for a collection o... | [
"noreply@github.com"
] | stephanie-howson.noreply@github.com |
4958c8f8de2376b57b77ccc6d602f2b6daf0f752 | b070ca9185ba9ef59245f829d01fbefd696e8bfe | /aeriscloud/vagrant.py | ed987842125f6cfe78d74a4d7dcdf91096062b55 | [
"MIT"
] | permissive | AerisCloud/AerisCloud | 73aaa84b6d09f8fa5590f0c736a93cc0d252cebc | dad93c6273411cf8275ada8511984f4decf5386a | refs/heads/develop | 2021-01-17T15:40:49.065158 | 2017-08-16T02:52:41 | 2017-08-16T02:52:41 | 54,878,917 | 9 | 4 | null | 2017-08-16T02:52:42 | 2016-03-28T08:41:50 | Python | UTF-8 | Python | false | false | 8,278 | py | from __future__ import print_function
import json
import os
import platform
import re
import six
from subprocess32 import call, Popen, PIPE
from .ansible import ansible_env
from .config import aeriscloud_path, data_dir, verbosity, default_organization
from .log import get_logger
from .organization import Organizatio... | [
"ekenler@wizcorp.jp"
] | ekenler@wizcorp.jp |
7493a8116456207dcd792e75c00189176aa93994 | af9bf5dbf42e05e78a016c976027988165293f96 | /list2.py | 3f956dd8317e201d85c33e5d263bcbd663a42582 | [] | no_license | basiliskorres/exetasi | 5c8681073d67072e811b3be2f5f9950b0530621e | c7ae87fa9f2e9c56efdfe17892a6be73cf78d6d6 | refs/heads/master | 2020-04-06T04:05:51.773039 | 2017-02-24T11:05:07 | 2017-02-24T11:05:07 | 83,032,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | x = [0,1,2,3,4,5]
import statistics
s = statistics.stdev(x)
print (s)
| [
"noreply@github.com"
] | basiliskorres.noreply@github.com |
bc29e6c0f5f901e1a2c45442f76d771066b15de3 | b65dc4d7e4047b99b5ce8e4c5464a6cc9d105ed9 | /courses/langtons_ant.py | 0fd8f0f1503f3089f42ad50d5663fab887fab853 | [
"MIT"
] | permissive | sonumathur/Python | 2adfeba0320a324b2ac83fb13bcfc0558989aeba | 6bc459a3621cd89710bc96f70e894e3929aea1dc | refs/heads/master | 2023-08-28T20:14:32.065229 | 2021-10-18T11:23:05 | 2021-10-18T11:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | import pygame
class Ant():
def __init__(self, origin):
self.loc = origin
self.heading = 3
def move_ant(self, board):
if board[self.loc]:
self.heading = (self.heading - 1) % 4
board[self.loc] = False
else:
self.heading = (self.heading + 1) % ... | [
"you@example.com"
] | you@example.com |
b513f276b4d8ecd56a16b6df4477924e5903dbec | 4ba19fd50e0b91860b6ca54d7cb54111509d12b7 | /core/migrations/0005_auto_20171120_1629.py | 9f4cc78aa9368171f8c071044c2ace9f26783337 | [] | no_license | lauragomess/ProjetoIntegradorSite | d0f036929923a49ad482b4564544067d161969a7 | 60c06cd371a9b74ec68df6f0dc8a453160d6a6aa | refs/heads/master | 2021-08-23T16:44:58.337249 | 2017-12-05T18:52:00 | 2017-12-05T18:52:00 | 112,805,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-20 18:29
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):
dependencies = [
migrations.swappable_depende... | [
"31424112+lauragomess@users.noreply.github.com"
] | 31424112+lauragomess@users.noreply.github.com |
03a2f096090bbf4c177404b3af5aac47dad54ce8 | e00ecfef9d441340660c3acee7d9622654e403fd | /ch14_sort/14-24.py | e5a3d3e1f3efc5e5f7fe9e72c1b600c7a60a70d5 | [] | no_license | wasiwasi/pycote | ce8c32adae41b58bb075303ddf106b7b9b7c6fd9 | 7c451cd1ec743a478090e73d6ff8cbfd15d3b990 | refs/heads/main | 2023-07-11T19:26:07.862256 | 2021-08-22T13:47:42 | 2021-08-22T13:47:42 | 386,192,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | # 안테나
n = int(input())
houses = list(map(int,input().split()))
houses.sort()
# 중앙에서 가장 가까운 집을 찾음
print(houses[(n - 1) // 2])
| [
"kbm4250@naver.com"
] | kbm4250@naver.com |
2c6463fb808f00fb69724478575d70a328acf1fe | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03478/s455409776.py | a8cd217bb4eecbecbc989ed96b2dec2f8f965310 | [] | 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 | 282 | py | n, a, b = map(int, input().split())
def calc_digit_sum(num):
sums = 0
while num > 0:
sums += num % 10
num //= 10
return sums
answer = 0
for num in range(1, n+1):
sums = calc_digit_sum(num)
if a <= sums <= b:
answer += num
print(answer) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f0d745d3620cb14966ac123eed3ef062ff3bfb2b | 69e318f2b60175108bc74ee669bfe16287a71cb6 | /plugins/modules/fortios_extender_controller_extender.py | f6987b6f9b43623c42497888f3cb3bc3e2f4b548 | [] | no_license | chillancezen/ansible-galaxy-fortios-collection | 5268a5fd97fb4594772349b8d89cb818ec54b3bd | 66a331cd4493d1b0f49798d5c2cd6ef5aeba84d3 | refs/heads/master | 2022-04-09T19:20:59.073193 | 2020-03-26T07:17:09 | 2020-03-26T07:17:09 | 250,185,374 | 0 | 0 | null | 2020-03-26T07:06:16 | 2020-03-26T07:06:16 | null | UTF-8 | Python | false | false | 21,761 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | [
"fshen01@fortinet.com"
] | fshen01@fortinet.com |
f705d5d0993896d6941f93c55a6ae28bf152150e | 301dcdc581aa4219ad09fa2066d12d8b45b84a66 | /urlshortner/migrations/0002_url_active.py | 2a4d5d301ff643ab7b512ecb4522c99dd236fc44 | [] | no_license | AakashiBhansali/urlshortner | 6db5248841894459f52a872b05905d2a9d77319f | 3c36bed51f119833faa60848967c612ff00cd3a1 | refs/heads/master | 2020-03-18T03:06:55.801069 | 2018-05-21T12:07:35 | 2018-05-21T12:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 2.0.3 on 2018-03-18 10:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('urlshortner', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='url',
name='active',
fi... | [
"jinayshah86@gmail.com"
] | jinayshah86@gmail.com |
76152b15258f9dc79ca9eb3ad411f542917e9437 | 35d1b21067f0478280a6e44a0513c65a44ebf3d6 | /autoGen/tests/__init__.py | 4f4c91e950556306d05fb6b8af420eb391441427 | [] | no_license | ruperto7/autoGenDir | 28113cb1f5da8fabf0b7eb60fb19ce484726b310 | 5f1727bebdb2418d15183ec65b5ff157e2a4989d | refs/heads/master | 2023-04-12T05:35:37.530473 | 2021-03-03T15:17:18 | 2021-03-03T15:17:18 | 338,215,719 | 0 | 0 | null | 2021-03-03T15:17:19 | 2021-02-12T03:33:10 | Python | UTF-8 | Python | false | false | 248 | py | from .notes27_jan import Notes27JanDeleteTestCase
from .notes27_jan import Notes27JanUpdateTestCase
from .notes27_jan import Notes27JanDetailTestCase
from .notes27_jan import Notes27JanCreateTestCase
from .notes27_jan import Notes27JanListTestCase
| [
"totoarrieta@yahoo.com"
] | totoarrieta@yahoo.com |
2b1a48ebdabf626c00ebda91ba063c75a43f5145 | 9b3a433af0548421808f557c08a8cd5c8c7f2d9e | /gdb/repos/pwndbg/tests/gdb-tests/tests/test_command_vmmap.py | 568378b13ffe1eaa4e7c14dee98c7f5d299fb142 | [
"MIT"
] | permissive | thawk/dotfiles | 9984338c18c34f25343d8e8682989bf193f0045b | 36fd9453da56ebcbce66382001c7d6254f603078 | refs/heads/master | 2023-08-29T07:00:10.873545 | 2023-08-09T05:42:52 | 2023-08-09T05:42:52 | 31,524,933 | 5 | 3 | null | 2023-07-20T11:58:40 | 2015-03-02T05:33:30 | Python | UTF-8 | Python | false | false | 6,501 | py | import tempfile
import gdb
import pytest
import pwndbg
import tests
CRASH_SIMPLE_BINARY = tests.binaries.get("crash_simple.out.hardcoded")
def get_proc_maps():
"""
Example info proc mappings:
pwndbg> info proc mappings
process 26781
Mapped address spaces:
Start Addr ... | [
"thawk009@gmail.com"
] | thawk009@gmail.com |
631dd4555b098d0170d537dd8b76a065c312b23a | 13c02796a22a41572633378f4c20f0b37d90ba8f | /setup.py | 0f10028adc32767440e05cf2c327dc755e06d489 | [] | no_license | Cromlech/dolmen.forms.table | 97df1d647ab45c24ca3259a815ed897881762dc1 | c17f0b6d96d92249e7549648bc8df745ed94c785 | refs/heads/master | 2016-09-06T15:10:21.638189 | 2014-03-13T15:20:09 | 2014-03-13T15:20:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | # -*- coding: utf-8 -*-
from os.path import join
from setuptools import setup, find_packages
name = 'dolmen.forms.table'
version = '2.2.1'
readme = open(join('src', 'dolmen', 'forms', 'table', 'README.txt')).read()
history = open(join('docs', 'HISTORY.txt')).read()
install_requires = [
'cromlech.browser >= 0.5'... | [
"trollfot@gmail.com"
] | trollfot@gmail.com |
b7c35700fe1212856f5a143e9556c752153998f9 | 5a9b75f3a6dab10ebf81596b16142e686045e492 | /Code/run_exp_new2.py | 4b9e512209568f8964f0d60b945e53aa64230ca2 | [] | no_license | 135790zs/rsnn | 91d879be0b219b75a9b828358cdc1b5b8ec0ed8d | e514f3ae69ecc232a477af76fc185f9f296a5acc | refs/heads/master | 2023-03-25T03:29:33.120343 | 2021-01-20T18:39:34 | 2021-01-20T18:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,874 | py | import sys
#TODO: path
sys.path.append('.')
import torch
import torch.nn as nn
import torch.optim as optim
from torchvision.datasets import MNIST
from torchvision import transforms
import time
from collections import OrderedDict
from torch.utils.data import DataLoader
import json
run_id = sys.argv[1]
#print(sys.argv)... | [
"eric.koepke@tum.de"
] | eric.koepke@tum.de |
c7077f36875fba1bcb9961a40222ec01ebf28678 | f60b0c051d8ba5088dc4246679b870f577646bb0 | /172 Fri, 04 May 2012 12:27:33.py | 5af608982a8030ed68109044a3103c2c4798d26f | [] | no_license | joopeed/lp1 | bbd11fe7749356828a16fc45703e010db5d35464 | 117bf769a048ec1dff53f779b26c9e7adec052ba | refs/heads/master | 2021-01-02T22:50:08.600553 | 2014-04-03T21:15:40 | 2014-04-03T21:15:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Date: Fri, 04 May 2012 12:27:33 +0000
# Question 172
# coding: utf-8=2# Jo=E3o Pedro Le=F4ncio
# Matricula: 21211940
# Programa=E7=E3o 1 - UFCG 2012.1
def inverte3a3(s):
=09
invertida = list(s[::-1])
# inverte a string e transforma em lista pra poder manipul=E1-la
for i in range(1,len(s),3):
inverti... | [
"joopeeds@gmail.com"
] | joopeeds@gmail.com |
c430f57c14f8149b37d29047f1f155e0e62e1136 | be4d3e2bb1d64f691741e7cc69981b80ba1209ec | /runserver.py | 74d369a51b308203f647715d4faf249741cf667b | [
"MIT"
] | permissive | rudrapakav58/angular_flask | 53216c3b1f81c8607da845cf2b17eac8019a9d70 | bbc05565f9ea26eeb3c5dacfb9f4380808b7f540 | refs/heads/master | 2020-04-09T07:59:23.278647 | 2018-12-03T13:01:45 | 2018-12-03T13:01:45 | 160,178,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | import os
from angular_flask import app
def runserver():
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
if __name__ == '__main__':
runserver()
| [
"rudra@sanctusit.com"
] | rudra@sanctusit.com |
56718630e14ea0fc4877975d520aa034b7e1b620 | 6d18e674d8c08131247642157bca1240b6473e1e | /product/serializers.py | 2e289d090d90c5b62ce46f3c654c0a6489f8723f | [] | no_license | Authurton/e-commerce-Django-backend- | feb3d58b464126eaeedbeaccad60f331c8811363 | 305f0cf107050a29662b94aa6639032fbe717c44 | refs/heads/master | 2023-06-09T08:21:01.710537 | 2021-06-21T11:22:14 | 2021-06-21T11:22:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from django.db.models import fields
from rest_framework import serializers
from .models import Category, Product
class ProductSerializer(serializers.ModelSerializer):
class Meta:
model = Product
fields = (
"id",
"name",
"get_absolute_url",
"descriptio... | [
"Authurlunga@gmail.com"
] | Authurlunga@gmail.com |
a5695cc2dc47790abf2fb0cf6c6c1970070d4a36 | 9135a1c5bcd20f77971085496d9e966d892fb7e9 | /easyScript/storePassword/python/storePassword.py | 3b93a969c84bab73e73b5bf68e4359ab4f7dae53 | [
"Apache-2.0"
] | permissive | bseltz-cohesity/scripts | cc54b2b3534175562b0d9cfba85bd63aa5ca2346 | 53c4b057bb4f41ae079fc8236caacf13fd35c10e | refs/heads/master | 2023-08-23T13:13:12.169724 | 2023-08-22T13:21:22 | 2023-08-22T13:21:22 | 142,414,700 | 83 | 44 | Apache-2.0 | 2023-08-24T11:42:22 | 2018-07-26T08:50:47 | PowerShell | UTF-8 | Python | false | false | 703 | py | #!/usr/bin/env python
from pyhesity import *
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--vip', type=str, default='helios.cohesity.com')
parser.add_argument('-u', '--username', type=str, default='helios')
parser.add_argument('-d', '--domain', type=str, default='local')
parser.add_ar... | [
"bseltzer@cohesity.com"
] | bseltzer@cohesity.com |
c06c18d951be044a735f4f88843ab004913b9f5e | a779da38efccb47658db1f7fddd961a4fa165901 | /analysis/week_tweets_test.py | 3940d4bf548c4cbfdc605ea97d9010b27931fe41 | [] | no_license | Sofiia2001/Coursework_research | 0685e3e164694cdac4a392d495ad99dfb309728f | d546536d437030734ae654e7684503fc2497c985 | refs/heads/master | 2020-04-24T15:28:44.622845 | 2019-05-14T16:54:09 | 2019-05-14T16:54:09 | 172,069,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | from unittest import TestCase
from week_tweets import WeekTweets
import unittest
class TestWeekTweets(TestCase):
def setUp(self):
self.my_week = WeekTweets('08.04')
self.wrong_week = WeekTweets('31.65')
self.ending_month_week = WeekTweets('30.01')
self.week_1 = WeekTweets(... | [
"723405Ss"
] | 723405Ss |
791225936567507d75c2dc5130e873969750ced7 | cde4501b9cdb6675020eaf4e03c6d5e4f237050b | /test/series_test.py | 685164abf6f11192f77a089582bfb07571fc8d55 | [
"MIT"
] | permissive | vanessagraber/bilby | edc955f7abbb87d9749577e1460a8edbd1aea7fe | 80ee2d123a913d881f2a790b04e2939c46584d27 | refs/heads/master | 2020-04-08T21:32:23.908339 | 2018-11-29T00:02:52 | 2018-11-29T00:02:52 | 159,748,097 | 0 | 0 | MIT | 2018-11-30T00:58:53 | 2018-11-30T00:58:53 | null | UTF-8 | Python | false | false | 4,657 | py | from __future__ import absolute_import
import unittest
import bilby
import numpy as np
class TestCoupledTimeAndFrequencySeries(unittest.TestCase):
def setUp(self):
self.duration = 2
self.sampling_frequency = 4096
self.start_time = -1
self.series = bilby.gw.series.CoupledTimeAndFre... | [
"email@moritz-huebner.de"
] | email@moritz-huebner.de |
28f5dfeccf6456eaa3b217dc5f9313a1ab5ff7b1 | b3950a2a6912c9b494d22b9353322c3357df0110 | /tock/employees/migrations/0025_userdata_billable_expectation.py | da8842ab66c628595d88cdd31a26a899ef31febf | [
"CC0-1.0",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | 18F/tock | df1fa5e817e690ce0bff315a15799e2f78915882 | 99005d8f6c4605a69fbb620c41f38447ecbee459 | refs/heads/main | 2023-08-31T01:34:55.299577 | 2023-08-23T18:49:10 | 2023-08-23T18:49:10 | 30,162,008 | 135 | 50 | NOASSERTION | 2023-09-07T18:40:30 | 2015-02-01T22:19:32 | Python | UTF-8 | Python | false | false | 615 | py | # Generated by Django 2.2.7 on 2019-12-19 14:25
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('employees', '0024_auto_20171229_1156'),
]
operations = [
migrations.AddField(
model_name='userdata... | [
"joseph.krzystan@gsa.gov"
] | joseph.krzystan@gsa.gov |
707758dcec3f0ee4f884ca88cb1907c569e5b374 | 040515a2fa081bd98d64da726c2700146f15bc61 | /utils/sentence2windows.py | 129d1a87c2ce4d0cadd94ff365aceaaf687e4531 | [] | no_license | daniele-sartiano/DeepWebClassifier | c3cf264996eacfd0dbd09da66a833a6a4051d39b | 16d1168b3bec373956281ec94f7efa5f038605ea | refs/heads/master | 2021-01-11T07:48:31.975861 | 2017-09-28T07:36:59 | 2017-09-28T07:36:59 | 72,100,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/env python
import sys
import math
def windows(sentence, n=3, end='<END>'):
for token in sentence.split():
prev = 0
s = []
for i in xrange(0, int(math.ceil(len(token)/float(n)))):
s.append(token[i*n:(i+1)*n])
s[-1] = '%s%s' % (s[-1], end)
yield s
... | [
"daniele.sartiano@gmail.com"
] | daniele.sartiano@gmail.com |
8d1d57e3f0a63f0f45c57ffc9828afb89d696d33 | 04d09687e96c92d901ecf70de3328499af57bc4b | /30_repeat/repeat.py | 17d5362bdaeaace84e1a1a01c6a8f35f7b6e3988 | [] | no_license | hauqxngo/PythonDataStructures | 3307b6793270bbbc9918f00513aea6b690ec9265 | 37742a5d5df09379f7dc445527a898bccd21781e | refs/heads/main | 2023-06-05T14:42:31.314046 | 2021-06-24T06:38:46 | 2021-06-24T06:38:46 | 379,828,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | def repeat(phrase, num):
"""Return phrase, repeated num times.
>>> repeat('*', 3)
'***'
>>> repeat('abc', 2)
'abcabc'
>>> repeat('abc', 0)
''
Ignore illegal values of num and return None:
>>> repeat('abc', -1) is None
True
>>> repeat(... | [
"hngo1227@gmail.com"
] | hngo1227@gmail.com |
e210f5244e6408c5d3ea387244c46ba0dbe0cca9 | 14863d8114f46867eca9eb8b3a4713babdd68976 | /website-env/Lib/site-packages/cms/tests/test_rendering.py | a13f07fb5a3a7440ca0cce7e5f286b942e51dbc1 | [] | no_license | adrianwizowski/WebSite | 02c690e424fd4f533fb7d8569ed0cc097bbb6695 | b8d62d9c27a06200c97caa3698018ed69343c85c | refs/heads/master | 2021-07-01T22:06:03.913197 | 2018-04-28T17:30:11 | 2018-04-28T17:30:11 | 96,202,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,405 | py | # -*- coding: utf-8 -*-
from django.core.cache import cache
from django.test.utils import override_settings
from sekizai.context import SekizaiContext
from cms import plugin_rendering
from cms.api import create_page, add_plugin
from cms.cache.placeholder import get_placeholder_cache
from cms.models import Page, Placeh... | [
"visa90@gmail.com"
] | visa90@gmail.com |
7b11ef0b23654a3fae68b6e95a59e4684ef14de8 | 91135a7054305bc7ad91f339fbc18134d6f9404d | /ips/ip/spi_master_reduced/__init__.py | 112bc64cdcb7f1e902e9b9a48cca54fe2d509988 | [
"MIT"
] | permissive | hakehuang/pycpld | 86c7644b8e253ee513bbb4fabb3d22672acb68a6 | 2c9e11695b6c8905e76434e8c2744a6f57dae253 | refs/heads/master | 2021-01-09T20:47:36.108917 | 2020-04-24T10:19:52 | 2020-04-24T10:19:52 | 60,778,468 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from spi_master_reduced_partial import get_ip_name
from spi_master_reduced_partial import SPI_MASTER_reduced
| [
"hake.huang@oss.nxp.com"
] | hake.huang@oss.nxp.com |
12fd294c29f55e5d60045eb9da1747d7a9b78417 | bc0caa79fa93f14e0410b88bb7756c36a75f4bd3 | /verification.py | fd8f4df73856ae13361a7e43d305216591fc5578 | [] | no_license | BlackShad0w95/Blockchain | b676a5903381410ca31c8a18a0f409d67f351975 | a931134075e151df717540d61ee78d92851ef989 | refs/heads/master | 2021-02-27T22:23:08.355459 | 2020-07-19T13:27:37 | 2020-07-19T13:27:37 | 245,640,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | from hash_util import hash_string_256, hash_block
class Verification:
@staticmethod
def valid_proof(transactions, last_hash, proof):
"""Validate a proof of work number and see if it solves the puzzle algorithm (two leading 0s)
Arguments:
:transactions: The transactions of the blo... | [
"DCiesielczuk@gmail.com"
] | DCiesielczuk@gmail.com |
767c94b7c668c92fdfaaf60b48adfe31d6aeb3a8 | 5d493bb2f26cb9ba1879c60b060b2975490ea0cd | /venv/bin/django-admin | abf2a350c6a69f45300e8a1c28ddcd317ecf040b | [] | no_license | amjedsaleel/heroku-sample-hosting | cfe96fb58c0a4565b37e617147584dafe247abda | aa935a1e7231c47e11b41d62927961c0ceb49f6e | refs/heads/master | 2023-08-11T02:31:43.519211 | 2020-08-26T06:50:55 | 2020-08-26T06:50:55 | 277,723,810 | 0 | 0 | null | 2021-09-22T19:23:58 | 2020-07-07T05:19:21 | Python | UTF-8 | Python | false | false | 312 | #!/home/amjed/PycharmProjects/heroku-sample-hosting/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"amjedsaleel@gmail.com"
] | amjedsaleel@gmail.com | |
37c1118dc5489084dfb4e8071683eab33cd27eb3 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Configuration/Eras/python/Era_Run2_25ns_HIPM_cff.py | 3e9ad3977dcf0ecdb0d5ed98d51af534d211ebce | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 262 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Run2_25ns_cff import Run2_25ns
from Configuration.Eras.Modifier_tracker_apv_vfp30_2016_cff import tracker_apv_vfp30_2016
Run2_25ns_HIPM = cms.ModifierChain(Run2_25ns, tracker_apv_vfp30_2016)
| [
"matti.kortelainen@cern.ch"
] | matti.kortelainen@cern.ch |
6c5a0cf192d5952d2f4df24f25b483a0b06012a2 | defea90d2930a12c8279437833e28261e19f797b | /clickertg/main.py | 8990be0c4dd0cf882cd4134d198544ea4f7052dd | [] | no_license | Ilya069/ppppp | f7caa1bc3bb80d797fb7eed0b71211c4228be84e | 607562dcfeb82b8539e3e9676f2c4b258792281a | refs/heads/main | 2023-07-17T11:58:39.072009 | 2021-09-03T12:42:43 | 2021-09-03T12:42:43 | 402,766,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,520 | py | import logging
from aiogram import Bot, Dispatcher, executor, types
from config import API_TOKEN, number, QIWI_SEC_TOKEN, sum, admin
import keyboard as k
import functions as fc
import text as tx
import sqlite3
from qiwipyapi import Wallet
# Логи в консоль
logging.basicConfig(level=logging.INFO)
# Инициа... | [
"noreply@github.com"
] | Ilya069.noreply@github.com |
0a52e9968f56c6b6508688a6df3635b95b32fffa | b0776dc9032cdda5dc25f4e0b9c5c292ba5c2957 | /source_code/237_DeleteNodeInALinkedList.py | 968ddd543c0ad6442a58e2e49a62b9384f349cf1 | [] | no_license | CircleZ3791117/CodingPractice | af3c0369927abc52b7c52cd35781af83e9ee0923 | ecbb8fb7f96f644c16dbb0cf7ffb69bc959a5647 | refs/heads/master | 2021-06-05T11:41:56.266121 | 2020-01-21T11:24:20 | 2020-01-21T11:24:20 | 113,287,559 | 14 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'circlezhou'
'''
Description:
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.
Given linked list -- head = [4,5,1,9], which looks like following:
4 -> 5 -> 1 -> 9
Example 1:
Input: head = [4,5... | [
"zhouhuan@onescorpion.com"
] | zhouhuan@onescorpion.com |
a3fbae8a293967922f56e1fae50c9f4ebc126454 | 5f10b66c511909a85283aef554f0b0902ccca669 | /parsernews/projectnews/migrations/0001_initial.py | ff1ee4e90d6c1d9db4b90fe4be2439c4f55ae6f2 | [] | no_license | q3tourney4/parsernews | bd82562ef0db97df86cc5f52be29b49a7c3c390a | 4bde12985f313d8a740afb99749718151a1c4306 | refs/heads/master | 2023-02-09T14:30:02.621271 | 2020-01-22T18:14:28 | 2020-01-22T18:14:28 | 235,368,481 | 0 | 0 | null | 2023-02-02T05:59:07 | 2020-01-21T14:59:01 | Python | UTF-8 | Python | false | false | 1,209 | py | # Generated by Django 3.0.2 on 2020-01-19 08:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="NewsAggregator",
fields=[
(
... | [
"a.davydov@reg.ru"
] | a.davydov@reg.ru |
e5e6099b01faac1626e8c046a9c1a52db712c2a2 | cfdc7b7ce996230f76bc880b4bd30d7ba57ea479 | /news/views.py | cd07215ccceb64413797a64117dd98b829d145f8 | [] | no_license | Pylearn2017/city | 6d23435f71a5f8b9f4f139b5bd4e573f2b5108a6 | 19091103f6229345863c5e33dc47ea30180134c7 | refs/heads/main | 2023-05-02T19:26:48.048951 | 2021-05-15T07:26:29 | 2021-05-15T07:26:29 | 361,100,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
# Create your views here.
def post_list(request):
# posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
posts = Post.objects.all()
return render(request, 'news/post_list.html', {'pos... | [
"alexlik73@gmail.com"
] | alexlik73@gmail.com |
c448def6a36651331720a8ac8259a34e02676be8 | 9ca0fe2e70cdc475dad74628fd62c16ef49bbf6b | /flaskr/db.py | 56eaf41ec3a7e91f670029c0b610f3e702a4a479 | [] | no_license | journey-bit/jackpot | 9144dce80d1c8d5750eabe1d58a2392d87c1d7ef | 9d8aefec1eac30e54bd6a91ed8ee687cb412ebec | refs/heads/master | 2022-04-02T21:38:44.092785 | 2020-02-03T16:21:18 | 2020-02-03T16:21:18 | 233,868,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from flask import current_app, g
def get_db():
# if 'db' not in g:
# g.db = sqlite3.connect(
# current_app.config['DATABASE'],
# detect_types=sqlite3.PARSE_DECLTYPES
# )
# g.db.row_factory = sqlite3.Row
return g.db
def close_db(e=None):
db = g.pop('db', N... | [
"lucky@luckydeMBP.lan"
] | lucky@luckydeMBP.lan |
7dc5e816aebb07e25919394fecbd9694deaeec5d | 8e21663b4b1f2c5fe7da27db5c510d98832c9ebd | /test_pet_friends.py | 55c7b53478c8198c806080a1e9014c709a22e356 | [] | no_license | JokeRrr1992/19-modul | d1257d03534be3d3d5a6e3fe67cc411e98913aff | 6c693c8265eeb6bc7f7283d584dd471132668721 | refs/heads/main | 2023-01-30T04:13:55.261749 | 2020-12-13T15:52:39 | 2020-12-13T15:52:39 | 321,099,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,231 | py | import os
from api import PetFriends
from settings import valid_email, valid_password, not_valid_email, not_valid_password
pf = PetFriends()
def test_get_api_key_for_valid_user(email=valid_email, password=valid_password):
""" Проверяем, что запрос api ключа возвращает статус 200 и в результате содержится слово ... | [
"noreply@github.com"
] | JokeRrr1992.noreply@github.com |
6bb121fe304e7a75d445a0bdc12c1aa8c54b8db4 | f27fe88de38ed799d900a8cfd4d3a92b7cade8db | /test/test_bootstrap.py | 5f1ac5de7d5bb87ba4a5e73dee15f9dc50bad3ba | [
"Apache-2.0",
"curl",
"MIT"
] | permissive | eoinsha/aws-lambda-python-runtime-interface-client | 43b599177ed5cae2699b38e4caa94e344512c00e | 3b6a82f0f35c19b04cdd3f20fab27ee35c290982 | refs/heads/main | 2023-01-18T19:10:52.836690 | 2020-09-30T13:09:22 | 2020-12-01T10:01:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,808 | py | """
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
"""
import json
import os
import re
import tempfile
import traceback
import unittest
from imp import C_BUILTIN
from io import StringIO
from tempfile import NamedTemporaryFile
from unittest.mock import patch, Mock, MagicMock
import awslambdari... | [
"11421173+carlzogh@users.noreply.github.com"
] | 11421173+carlzogh@users.noreply.github.com |
00cc5253654225237f259127c0b421064c796d04 | e4ff1b059345de4ecde159c19a7b58cb75dd0df5 | /skipper.py | 1c06defdbf337fcadf8f8576cfa646f44d2cb24b | [] | no_license | holychicken99/skip_ad | 4f7f4972ba5e14345091aea3125e29730df48f37 | 1ccdc39458eeba6a8cce4a19d42aa89aefe244e9 | refs/heads/master | 2023-08-16T00:02:03.862869 | 2021-10-03T02:44:14 | 2021-10-03T02:44:14 | 412,956,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py |
import random
import time
import keyboard
import pyautogui
import win32api
import win32con
from pyautogui import *
while 1:
if pyautogui.locateOnScreen('Capture.png',confidence=0.6,grayscale=True)!=None:
a,b,c,d = pyautogui.locateOnScreen('Capture.png',confidence=0.6,grayscale=True)
a+=15
... | [
"akshit.singh20@gmail.com"
] | akshit.singh20@gmail.com |
f0c2ca134afc4cc14b53ae4652e5f051a58d2cb3 | e5eebab946cd83851d6f788c51600ecc36b42a64 | /cochincorperation.py | 25b7ecc1d0addbde8dfa5902932c1deb2da2ec36 | [] | no_license | mayant-solutions/tender-progarams | 70ea8e261f0ca3214de0f39540dadf367e08f68a | 8392e969e20710331438a17575a3d9a6b4ef3b61 | refs/heads/master | 2020-04-01T09:59:42.917947 | 2018-10-15T11:01:30 | 2018-10-15T11:01:30 | 153,098,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import requests,bs4 ,re, os, datetime
output = []
def extract(i):
soups = str(i)
td = bs4.BeautifulSoup(soups,"lxml")
tdList = td.findAll('td')
url = td.select('a')
sample_urls = url[1].get('href')
urls = "http://tender.lsgkerala.gov.in"+sample_urls[2:]
LB_name= tdList[0]
tender_No= tdL... | [
"noreply@github.com"
] | mayant-solutions.noreply@github.com |
da6113fd27319ee8325f6c7cc61632067aa28883 | e5cfe0f84f38280839d9eef67baca718c04f4dea | /python_code/ndvi_evi_cigreen_apar.py | 7133d24177ac27f154efc3e8bb734fbbae886ead | [] | no_license | songlaoshi/SIF_GPP_reviewer | a02a58c11af666064cce02d519d2cb19e07e8233 | ac00782f9166af31a062ea91af8e33fc08613bce | refs/heads/master | 2020-04-15T15:03:49.485906 | 2019-05-18T01:56:01 | 2019-05-18T01:56:01 | 164,778,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,343 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@author: lizhaohui
@contact: lizhaoh2015@gmail.com
@file: ndvi_evi_cigreen_apar.py
@time: 2019/3/2 16:37
'''
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from scipy.optimize import cu... | [
"lizhaoh2015@gmail.com"
] | lizhaoh2015@gmail.com |
0eb742bea954542d8ca1e1f83256561089c96248 | a0cae0c3e510a81fd9db6d945bf7518a85ecca30 | /editline/tests/test_dict_completion.py | 8323bdceb754b96fc19b4ac300c2015e8deee338 | [] | no_license | mark-nicholson/python-editline | c5deb7789caab43eee08337a4e92bb2336646b1d | c23f1071c4b832a92f66e2f49142e5c5f00e500d | refs/heads/master | 2021-01-18T14:11:48.376557 | 2020-02-19T00:30:42 | 2020-02-19T00:30:42 | 14,903,378 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | """
Verifying the completer will properly complete various forms of dictionaries.
"""
import sys
import re
import unittest
from test.support import import_module
# just grab what we need from the other...
from editline.tests.test_lineeditor import CompletionsBase, CompletionsCommon
#
# Check Dictionary support
#
c... | [
"nicholson.mark@gmail.com"
] | nicholson.mark@gmail.com |
6dc1d885d1fb02394835aa756909605c8de5de1c | 23a21d79dfe1a986939225b95fa4f574dc9989bf | /day2/test_mem_alloc_in_function.py | 9af31f4a00fbc2e14a99588b9f701d5daaa9ff43 | [] | no_license | Tourmaline/computational_python_course | 591b0092d1c4f4d0d89ecfb079ac16f16dff47a7 | 3a8e62d3d454d8473ae3dd04d9209868edb8b2fa | refs/heads/master | 2021-07-13T13:19:38.719628 | 2017-10-18T12:00:22 | 2017-10-18T12:00:22 | 107,129,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | def f(l):
print(id(l))
l = [1,2,3] # to modify l which is outside of the function we can use l[:] = [1,2,3], but it is not recommended due to potential problems because of function's side effects
print(id(l))
print("inside function ", l)
val = 4
return l, val
if __name__ == '__main__':
i... | [
"nastja.kruchinina@gmail.com"
] | nastja.kruchinina@gmail.com |
d17fe38776c513a5cb06ef0fa54950c272ffa0c4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_212/171.py | 5ce8038ecc3ce657db872f7688e9b63545982c5a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | t = int(raw_input().strip())
for xyz in range(1, t+1):
n, p = list(map(int, raw_input().strip().split()))
ans = 0
if p == 2:
x = list(map(int, raw_input().strip().split()))
o, e = [0, 0]
for i in range(n):
if x[i] % 2 == 0:
e += 1
else:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
714212d2cd4b88de22de78b73d4b79a9b9e35572 | 072a9b5465681b42b5520209d31cc739e74ebbb6 | /apps/reviews/urls.py | ce631420d1849a0ad47be9c1bbaa32ef5dbd0fd1 | [] | no_license | rpmmitchell/book_reviews | a1786e569e5a39c3c27be07c680c02e796a2e63b | 956aad3d7335313cb924665ef0180eafb7d87d0e | refs/heads/master | 2021-04-26T23:42:38.280176 | 2018-03-05T00:41:39 | 2018-03-05T00:41:39 | 123,843,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^success/(?P<num>\d+)$', views.success),
url(r'^login$', views.login),
url(r'^register$', views.register),
url(r'^logout$', views.logout),
url(r'^add/$', views.add),
url(r'^create$', views.create),
url(r'^review... | [
"rpmmitchell@outllok.com"
] | rpmmitchell@outllok.com |
de5926d2d1a9ddb96b44a178957c07d2b6bb98e4 | ca875898694ad83624fba6529c19e45620380f17 | /python/test/py_tools/cp_tools/release1.py | d410b580dd82814f9a8765cf04a7e46fdfed167a | [] | no_license | yyzhou94/my-codes | 0759c2db3095f52f19f5b667057444033958a8f2 | cf75e581fc0a016fc9ba3064cc4aab5d3a0c3869 | refs/heads/master | 2021-02-15T19:40:49.432217 | 2017-04-07T07:09:54 | 2017-04-07T07:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,249 | py | #! /usr/bin/env python
"""
Created on 2015-06-12
@author: lisapi
@name: release.py
The script is used to copy images from daily dir to release dir and create md5 file
"""
#import some lib
import pexpect
import sys
import re
import os
import pxssh
from time import sleep
import api
# Build platform model dir name m... | [
"lpi@dev-18.local.pica8.com"
] | lpi@dev-18.local.pica8.com |
efc46ec92cc13a67bcd81507e3c3300c35ca8125 | f8fcbb45e46fe3b6454e808c141c9a1f3185c49c | /vedadep/converters/__init__.py | 860f13b61b164a5c078a6d377f8e42e0a07b8e9d | [
"Apache-2.0"
] | permissive | liuguoyou/volksdep | b00ad2b4635b2e217bf387c9bab671b2df2f0278 | 8739dcfa1d2218e287265e74e2e71a77c5d3247f | refs/heads/master | 2022-08-24T01:44:16.306057 | 2020-05-22T10:48:52 | 2020-05-22T10:48:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from .tensorrt import TRTEngine, Calibrator
__all__ = ['TRTEngine', 'Calibrator']
| [
"hongxiang.cai@media-smart.cn"
] | hongxiang.cai@media-smart.cn |
0a69648a119a1ae14dd61e9e09c441cc8aa3ddfe | 3e7e8384836599db9d788281a8cc924b6d77bbb6 | /dota_item_scrapper.py | 356d1fbeadd341d3f8c1b8edce20ea9ea756fd9d | [] | no_license | kjayashankar/ctf | db4941661bf49f6c7d6f7b1967cdde99c0221d34 | 6ab7668384aaf4b44766b7c77ba9b41e84176412 | refs/heads/master | 2021-01-21T10:05:00.104736 | 2017-02-28T01:22:22 | 2017-02-28T01:22:22 | 83,374,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | import time
import re
import socket
import dota2api
import json
api = dota2api.Initialise('829F60173C0683A4DCC3C665FF8ED79F')
match = api.get_match_details(match_id='1000193456')
items = api.get_game_items()
sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.connect(('139.59.61.220',6666))
#FLag ALEXCTF{1_4M... | [
"kjayashankar@yahoo.com"
] | kjayashankar@yahoo.com |
014a46f05f01c5b4e4e36b7b40e78eee8f08aa00 | f7d3593150c8f5001926bf025d41c6424b91cafd | /app/api/v1/gift.py | 8f428794e6aabaa98f161814ee1521126f70fcac | [] | no_license | lemonlxn/Restful-API | 7fa99f97be60392547f837c279021799757ae84f | 56339337451174976e96ec897f3cd7bfdb768f9f | refs/heads/master | 2020-03-23T21:22:08.643676 | 2018-07-24T04:03:41 | 2018-07-24T04:03:41 | 142,100,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # /usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2018/6/23 15:23
# @Author : lemon
from flask import g
from app import db
from app.libs.exception import DuplicateGift, Success
from app.libs.redprint import Redprint
from app.libs.token_auth import auth
from app.models.book import Book
from app.models.gift im... | [
"38677657+lemonlxn@users.noreply.github.com"
] | 38677657+lemonlxn@users.noreply.github.com |
90b965c8e3a8cc2af5edd2a522eaa2b3efb2b225 | 4d1b8b145c32bdb7a63d14927878b83396d0a63f | /data mining/kernel_trick.py | d213197f210dc528eb60afd9060f10772163f74f | [] | no_license | a5587527/Datamining1 | 70242052166a16330962aa2dc8b333bb98952b0e | 0ec0bb7d646bb61e41625fe7bb88957a1ed5fd4b | refs/heads/master | 2020-03-17T09:48:16.917172 | 2018-05-15T09:01:23 | 2018-05-15T09:01:23 | 133,489,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | import numpy as np
import pandas as pd
# remember to change the path
data=pd.read_csv('iris.csv')
data=np.array(data)
data=np.mat(data[:,0:4])
# print np.dot(data[0],data[1].T)
# length refers to the number of data
length=len(data)
# caiculate the kernel(k) using the kernel function
k=np.mat(np.zeros((length,length)))... | [
"491169734@qq.com"
] | 491169734@qq.com |
c3976314a62b60431040c3cfb906ee25f4bb2eaa | 2dbb8edc6167cc00778a7e863a63a56c384f75cf | /examples/ex10_rhombus_tesselation.py | caadac4f3bcd50bda6f95b324042f5fe7a3c4559 | [] | no_license | simvisage/oricrete | 129e130433eb438a271f8cd24d77fd78c552ef8c | ef7d20e66806037cc0c07541b45abc4f516ae187 | refs/heads/master | 2020-12-25T16:54:18.988848 | 2016-08-05T14:06:09 | 2016-08-05T14:06:09 | 3,638,675 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,038 | py | #-------------------------------------------------------------------------------
#
# Copyright (c) 2012, IMB, RWTH Aachen.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in simvisage/LICENSE.txt and may be redistributed only
# under the conditions des... | [
"rostislav.chudoba@rwth-aachen.de"
] | rostislav.chudoba@rwth-aachen.de |
73db1eaf700cf7ea4ae45ea490cfa1ba6d779e8d | 0b05dcb48e41a1ad3a2648e312fdec3fc9ba6977 | /contactapp/admin.py | 0a560c3a6201e105481fea1c96e4afa66c40c393 | [] | no_license | murengera/eportal-api | fe90962d5a1a039e0d782c3a360d11dec9cce89a | 0faf8c5dd072d26ed010cbc4d24b27f232037e77 | refs/heads/master | 2023-03-15T11:38:49.751643 | 2021-03-12T14:39:43 | 2021-03-12T14:39:43 | 286,403,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.contrib import admin
from contactapp.models import ContactForm,Subscribe
admin.site.register(ContactForm)
admin.site.register(Subscribe)
| [
"daltonbigirimana5@gmail.com"
] | daltonbigirimana5@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.