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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6dac4d3ae2c2516063e5d6676ce3071b96f2fbdf | f18f08aa4d46e0c46b16a25d844fbf6c4b2d8675 | /regym/tests/rl_algorithms/dqn_test.py | f6dc770777ca0301b9add9bcd5cf1c8e505b4bd2 | [
"MIT"
] | permissive | Mark-F10/Regym | 39d9c474c043fd328a353f4d0759cbbde59832fa | afb02ecea67b433e2ec6369089e937078d37770c | refs/heads/master | 2022-12-17T23:10:08.229072 | 2020-07-08T18:47:59 | 2020-07-08T18:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,002 | py | from regym.rl_algorithms.agents import build_DQN_Agent
from regym.rl_algorithms import rockAgent
from test_fixtures import RPSTask, dqn_config_dict
def test_dqn_can_take_actions(RPSTask, dqn_config_dict):
env = RPSTask.env
agent = build_DQN_Agent(RPSTask, dqn_config_dict, 'DQN')
number_of_actions = 30
... | [
"danielhp95@gmail.com"
] | danielhp95@gmail.com |
545e4da781cdcb91444d0c9a3028bcd81af51526 | 0f456ba3169b38c66613695c5f05ad41ecde8de1 | /recipes/migrations/0009_auto_20210319_0124.py | 7501dd8274bf189442a97b901ee4f375b87521ea | [] | no_license | RustamIR/foodgram-project | 1daa8030b2d084720eb7ead69dcae5a81cf69437 | 4f2be1ad4a3782625557f9a7163c93d756383605 | refs/heads/master | 2023-03-28T19:12:50.829317 | 2021-02-20T16:14:05 | 2021-04-02T07:42:39 | 332,435,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # Generated by Django 2.2.6 on 2021-03-18 22:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0008_auto_20210319_0123'),
]
operations = [
migrations.AlterField(
model_name='ingredient',
name='dimensi... | [
"roostamishteev@yandex.ru"
] | roostamishteev@yandex.ru |
cda4e97c1e1e43336e78a648b69ffe1fbc0e384b | 6517cab0ea11f6c1328d1954c5056556e38cf54f | /do_deramp.py | f19b6f5a346c422eb883b612fbb90013f8b0a9a1 | [] | no_license | fbernauer/blueseis_sandbox | 1cd1fc7feb006d92348304b107e86ad7340dbf37 | 8605797f0dc82c72d08adceb9952b934ffc7fb28 | refs/heads/master | 2020-03-11T03:04:28.063819 | 2019-06-05T10:23:33 | 2019-06-05T10:23:33 | 129,736,270 | 0 | 1 | null | 2019-06-05T10:23:35 | 2018-04-16T12:02:24 | Jupyter Notebook | UTF-8 | Python | false | false | 540 | py | #! /usr/bin/env python
import os
doy = ['246', '247', '248', '249', '250', '251', '252', '253', '254']
sta = 'BS3'
for d in doy:
print('processind day '+d)
os.system("./process_blueseis.py -F /bay_mobil/stromboli2018/BlueSeis/archive/2018/XX/"+sta+"/HJ*.D/XX."+sta+"..HJ*.D.2018."+d+" -R /bay_mobil/stromboli... | [
"noreply@github.com"
] | fbernauer.noreply@github.com |
1df682dec69f5e03efd7d4005cfab8a84fa2d5f9 | 566512c4365dc3ee591a4fd2c0f11ab71793bb02 | /print_xml.py | e62d985f612391e111baf3ce3935817e4d0e1207 | [] | no_license | HOLDfoot/Xml-Python | d6acd08541881f3159e2a87e79b78bf01be65366 | eb265bf851e48df50cd48c234890b10fc444a3b2 | refs/heads/master | 2021-01-25T14:26:31.197938 | 2018-03-03T14:07:18 | 2018-03-03T14:07:18 | 123,696,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | # encoding: utf-8
import lxml
from lxml import etree, objectify
from max_models import MaxModel
max_list = []
global all_max
all_max = 0
def print_element(file_name, name_contain, mini_bounds=35, print_detail=1):
tree = lxml.etree.parse(file_name)
res = tree.xpath('/resources')[0] # 获取bndbox元素的内容
had_pr... | [
"zhumingren@secretlisa.com"
] | zhumingren@secretlisa.com |
bbf6495ef15d263f9b0209e1ec6ddd64c08619e0 | 9962a8beef6a486d40b22ef6067b9160ccb2a26c | /lambdas/addObservation.py | 2bfb81cad18d9d3fa237d4b5ed5e39d61e587ed9 | [] | no_license | neodyymi/observation-collector | c148cc9cfbce243e88bfab8b15eeca14b9f55581 | a6329aa94c319f632bbfc63d14a07a6f884dfe6f | refs/heads/master | 2021-04-26T23:18:18.977113 | 2018-03-06T08:22:33 | 2018-03-06T08:22:33 | 123,968,434 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | import boto3
import json
import uuid
from datetime import datetime
def create_response(body=None, error=None):
if error is None:
return {
'statusCode': 200,
'headers': {
'Access-Control-Allow-Origin' : '*',
},
'body': json.dumps(body)
... | [
"ville-veikko.saari@cs.helsinki.fi"
] | ville-veikko.saari@cs.helsinki.fi |
58ccdc4f1c4a8883d310b628e0103984c4225d0f | f69d5688f25f881463e76b89b326f46c794843cf | /sitemon.py | c8f65a3cc3b7674c05821c9947ececa77b5d26f6 | [] | no_license | funkwhatyouheard/Sitemonitor | 780a1c5baaafe0e46ae157297f6b4d2d46195366 | 0c89907d3ef3d2b4ae3b2bb35a8e68487084db01 | refs/heads/master | 2022-07-15T21:48:44.844296 | 2020-05-16T17:16:13 | 2020-05-16T17:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,743 | py | import requests
import time
import getpass
import re
import lxml
from bs4 import BeautifulSoup
from datetime import datetime
from pushbullet import Pushbullet
# requirements below, literally copy paste the line into a terminal
# pip install requests getpass pushbullet.py bs4
# you'll also need to install pushbullet on... | [
"erhodes@GAIG.COM"
] | erhodes@GAIG.COM |
41b1440af3178b6c8d0faf9af5ae3ae7979c8dde | 2173770363bff0611a2ce609c857efba6f1b8234 | /attendenceapp/apps.py | 52753796c27bb764ef059e5e37244d6951d13541 | [] | no_license | karan295/attendence | b3041e81777328adc0458a05e04d4ab202430e2f | b59fb5089e156b01f073d69f727cb4e865494afd | refs/heads/master | 2021-04-01T02:45:21.184255 | 2020-03-18T06:19:46 | 2020-03-18T06:19:46 | 248,151,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class AttendenceappConfig(AppConfig):
name = 'attendenceapp'
| [
"deykaran07@gmail.com"
] | deykaran07@gmail.com |
ed8ce7575ef1287db6eceab6410ac37199487929 | c3570ea22a039b85a5d95b6e7773396f992516ae | /14 Koşullar.py | 89472e6daa42ceda9e20b27f5728d506321d6d4a | [] | no_license | omerdurmus61/Python | 122089182c23a28244c3ae56e4f404bd47839b2c | 0d8e9118965b294981401706bead59c838936994 | refs/heads/master | 2023-06-04T13:14:37.418113 | 2021-06-13T17:07:05 | 2021-06-13T17:07:05 | 295,943,557 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | #if & else & elif
x= input("x sayısını giriniz:")
y= input("y sayısını giriniz:")
if x>y:
print("x daha büyük")
elif x==y:
print("x ile y eşit")
else :
print("y daha büyük")
| [
"noreply@github.com"
] | omerdurmus61.noreply@github.com |
48a94778a48102bf2d170dbb2c0257405b4cf550 | 9461183ab838e2c9cd3a9a256ad0de394040b28d | /echo-client.py | c4ac96b2c2be5d051772979d33270a63614a5bf8 | [] | no_license | xuanfang1993/socket_of_python | 2828b9b296a58ae978c8e9ca06e431a88739157f | b69bb8a541ddf44b4b40555d7ddd7be703b2bf86 | refs/heads/master | 2022-12-02T10:17:14.606269 | 2020-08-17T14:47:47 | 2020-08-17T14:47:47 | 288,207,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | import socket
HOST = '127.0.0.1'
PORT = 65432
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST,PORT))
s.sendall(b'Hello World')
data = s.recv(1024)
print('Received!',repr(data))
| [
"xuanfangpsyche@outlook.com"
] | xuanfangpsyche@outlook.com |
3a9e02fc8a6c5b3f54d8ee4037d79fcf25c19a85 | d4db40737792b98f52aa0cf61e350a1fb57670d4 | /20191002_DAY-24/domAPI.py | 04a9bc016f26ae1460e050d278043820704267f2 | [] | no_license | NamrataMeripo/pyproject01_nit | 2702a655b4e2d2b88f5ff2fa48503aaf35164123 | aa11bb7c9ae0b571d0b25984fde2d36554604990 | refs/heads/master | 2020-07-10T07:18:03.459954 | 2019-12-17T01:40:28 | 2019-12-17T01:40:28 | 204,037,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import xml
from xml.dom import minidom
doc = minidom.parse("/Users/keshavkummari/pyproject01_nit/20191002_DAY-24/staff.xml")
name = doc.getElementsByTagName("name")[0]
print(name.firstChild.data)
first = doc.getElementsByTagName("staff")
for staff in first:
sid = staff.getAttribute("id")
nickname = staff.ge... | [
"54295343+NamrataMeripo@users.noreply.github.com"
] | 54295343+NamrataMeripo@users.noreply.github.com |
0d071e93586656a675e85a1d154f12b8e9874c53 | 74e9f6230f4dba7ad2ec26c7c4910e12c4abb0e2 | /products/forms.py | c1d8058975c1cd3b652ee49a47d892f0ce243147 | [] | no_license | BassamMsmar/store-django | 6456cb0d4e2fc15b865f42bc10202fd32b1051e5 | ee82d6710872d2004dec6461ab5e493d1ab7e799 | refs/heads/master | 2023-06-11T11:23:04.956795 | 2021-06-05T18:49:49 | 2021-06-05T18:49:49 | 321,753,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from django import forms
from .models import Product
class AddProductForm(forms.ModelForm):
class Meta:
model = Product
fields = (
'brand',
'title',
'price',
'description',
'image'
) | [
"bassammsmar@gmail.com"
] | bassammsmar@gmail.com |
c15503b47abeb7780592bcf35a87957372ab541b | 02b6a68a13b091143b9eeea11d2105245d44da3e | /configs/pipelines/models/generic_cfrnn.py | e7449f389dc174dd1a76fd0e520851ae1a27cc0b | [
"BSD-3-Clause"
] | permissive | xkortex/VIAME | 7087eea21bcd562184a0a8a22d7cd2f346bc692e | 1dce09362e62e519e9e24528b2491da853719f64 | refs/heads/master | 2020-05-15T19:45:52.240607 | 2019-12-11T18:02:07 | 2019-12-11T18:02:07 | 182,464,505 | 0 | 0 | NOASSERTION | 2019-12-11T18:02:09 | 2019-04-20T23:39:53 | C++ | UTF-8 | Python | false | false | 6,196 | py | # model settings
model = dict(
type='CascadeRCNN',
num_stages=3,
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='... | [
"matt.dawkins@kitware.com"
] | matt.dawkins@kitware.com |
ac978c07b911048b02dc7b0b58e1ef51073e5877 | 640f75f7bd5cc89aa0da3e0cf0b5f317f11941bc | /scripts/add_pools.py | 1e5c7964163d01e573b02eb383451a3adba40399 | [] | no_license | kfgamaga/curve-pool-registry | 4c8d0ca796f830ef71a0bb5836275abb9fcc53f5 | ed52ad5ddfdeb87d42c2eb78e2fc62af8230a868 | refs/heads/master | 2023-03-22T22:03:40.026623 | 2021-03-13T22:51:19 | 2021-03-13T22:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,196 | py | from brownie import Contract, Registry, accounts
from brownie.exceptions import VirtualMachineError
from brownie.network.gas.strategies import GasNowScalingStrategy
from scripts.get_pool_data import get_pool_data
from scripts.utils import pack_values
# modify this prior to mainnet use
DEPLOYER = accounts.at("0x7EeAC6... | [
"ben@hauser.id"
] | ben@hauser.id |
ebe6decc791db0f6e4da77d62ed16b05281d8514 | 4cdca3b1afdd775fe0ad86071b6ebc2e00c5395d | /vilya/frontend/assets.py | 84d98136f91ca38bc8e01d051d4560736c281512 | [] | no_license | alexband/vilya | fce3da77352e4d4d45895e2c6efffd5e4fa86e61 | f490d4a02a6a81cb1a435ec48ee68c27fe586107 | refs/heads/master | 2021-01-18T05:26:42.406188 | 2014-06-23T15:07:13 | 2014-06-23T15:07:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # -*- coding: utf-8 -*-
from flask_assets import Environment, Bundle
#: application css bundle
css_overholt = Bundle("less/overholt.less",
filters="less",
output="css/overholt.css",
debug=False)
#: consolidated css bundle
css_all = Bundle("css/bootst... | [
"xutao881001@gmail.com"
] | xutao881001@gmail.com |
c3f8b6a2a35b6f4245e56fa424e96c576e127f2a | 012bbe8712a41a1aa991d573cc211e1ac1059356 | /ch04tree/eular_tour.py | 6c08cde02dc9dfaf0389691f16b375ab1dd3ecc9 | [] | no_license | dqhcjlu06/python-algorithms | 8c0fe62da2083f98fbf58eb35ff8b5b344661f12 | 44f7e80316562614688f322472116807d7bc2409 | refs/heads/master | 2020-07-31T20:37:27.145895 | 2019-10-07T08:27:28 | 2019-10-07T08:27:28 | 210,746,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | # 欧拉图
class EulerTour:
""" Abstruct base class for performing Euler tour of a tree """
def __init__(self, tree):
self._tree = tree
def tree(self):
return self._tree
def execute(self):
if len(self._tree > 0):
return self._tour(self._tree.root(), 0, [])
d... | [
"172057129@qq.com"
] | 172057129@qq.com |
f9a5e29679cd15fff7964f31500dfa05e070f15c | dcb761102647aed31c9b330bc1e1028db0e92726 | /.env3/bin/dipy_nlmeans | b5422837ad2ed650efc0e1ebb0e91c7caae8e778 | [] | no_license | neurodata/aloftus | 8d2dea9884282811b8b13c432dce43824b091dae | 0060691a5d8b90cc42523c02472ecce427b89921 | refs/heads/master | 2020-04-10T01:44:24.174629 | 2019-09-30T18:19:19 | 2019-09-30T18:19:19 | 160,724,056 | 0 | 0 | null | 2019-07-19T17:52:59 | 2018-12-06T19:49:32 | Python | UTF-8 | Python | false | false | 283 | #!/Users/alex/Dropbox/NeuroData/ndmg-top/exploration/aloftus/.env3/bin/python3.7
from __future__ import division, print_function
from dipy.workflows.flow_runner import run_flow
from dipy.workflows.denoise import NLMeansFlow
if __name__ == "__main__":
run_flow(NLMeansFlow())
| [
"alexloftus2004@gmail.com"
] | alexloftus2004@gmail.com | |
37cda867edc4d229e172d4eb71676bd3601fc5f9 | 2b119702e0649b9ace7d7df01839656ce927137b | /exp-42.py | 265d59205302e71806b4ef32e2621819d7575425 | [] | no_license | GowthamSingamsetti/Python-Practise | b936ada645f89cda32dfe0d356271143abc75f1e | ab18011d91e4bf90b04c58948a738c0d11719f45 | refs/heads/main | 2023-08-11T05:28:27.834372 | 2021-09-17T13:23:00 | 2021-09-17T13:23:00 | 407,545,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | import openpyxl as xl
from openpyxl.chart import BarChart, Reference
wb = xl.load_workbook("transactions.xlsx")
sheet = wb['Sheet1']
cell = sheet['a2']
cell = sheet.cell('1, 2')
print(cell.value)
print(sheet.max_row)
for row in range(2, sheet.max_row + 1):
cell = sheet.cell(row, 3)
print(cell.valu... | [
"noreply@github.com"
] | GowthamSingamsetti.noreply@github.com |
4885eac56f096a4bffe4a3e1bdae240e443b1617 | a25789434114b9b1b116f9ceb3bc55e006fdc1aa | /analyse_ob2_stars_and_around.py | 4198cef03564877aeac2f03331b5f024b44f1d62 | [
"MIT"
] | permissive | kcotar/VES-263-and-Cyg-OB2-association | feb8f001bf5ffaa8ff4fee7934ccaafc8fe4fe56 | 06dcd30d9e6831f312b9d166ddc53733c63d034d | refs/heads/master | 2020-06-01T08:57:16.161572 | 2019-08-02T08:47:07 | 2019-08-02T08:47:07 | 190,723,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,944 | py | import matplotlib
#matplotlib.use('Agg')
import numpy as np
import matplotlib.pyplot as plt
from astropy.table import Table, join, unique, hstack, vstack
from os import path
from scipy.stats import multivariate_normal, norm
import astropy.coordinates as coord
import astropy.units as un
import imp
import joblib
from skl... | [
"noreply@github.com"
] | kcotar.noreply@github.com |
0d1062fa6ffe6c1ab9e23a5ba3b463eeaec6c5bf | d59c1cf0f594f001a0dc26ee3666e356a18dee97 | /implementation_codebase/consumer_3.py | 2e74925ff0b78b6a86aac56f3eae1ff4e4a2754a | [] | no_license | QinZhong1014/NDN_MQTT | 304eb5b70396571122b0da04e13384f8ff74699f | bf0b0f5274edef9413cd0a6f53d64258cfe65b7a | refs/heads/main | 2023-08-13T10:32:13.494899 | 2021-10-15T18:11:21 | 2021-10-15T18:11:21 | 417,324,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | # -----------------------------------------------------------------------------
# Copyright (C) 2019-2020 The python-ndn authors
#
# This file is part of python-ndn.
#
# 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 ... | [
"noreply@github.com"
] | QinZhong1014.noreply@github.com |
b30d9e1cb7a39cd686c7f778df51abf58f07f81c | 1b3ba6720e74199b54c33a146e36145640781be3 | /Software/QuickUsbPy3/QuickUsbUnittest.py | 61dfc5532a49723e4a6af8b87ba1179c4ca0d656 | [
"MIT"
] | permissive | BitwiseSystems/QuickUSB | 094e27663f24ecdbca3f34349bcd03fd39526a9b | 0b26af3340a662580122aa71e33f9636992129ca | refs/heads/master | 2022-01-14T12:29:06.052344 | 2022-01-04T14:34:49 | 2022-01-04T14:34:49 | 246,888,640 | 4 | 9 | null | 2022-01-04T14:34:50 | 2020-03-12T17:04:34 | Python | UTF-8 | Python | false | false | 26,269 | py | """
============================================================================
Title : QuickUSB.py
Description : QuickUSB Python API Interface
Notes :
History :
Copyright (c) 2012 Bitwise Systems. All rights reserved.
This software contains confidential information and trade secrets of
Bitwis... | [
"bhenry@bitwisesys.com"
] | bhenry@bitwisesys.com |
cc64e943d7525291596095b2f73f6142a0b0f5ae | ea43c87200430f6ba44a631897e67b2a31e0fd9f | /scraper/scraper/settings.py | 021155affd18589a9a796d611b7b5e6a5454d535 | [] | no_license | rcfox/PowerMetalGraph | f92954d87fd734c4459faa31f7bf112c36850408 | 530009581cbc7b1d5b510abcd3822a564c7cdc6a | refs/heads/master | 2020-07-26T22:17:31.986536 | 2014-11-16T05:36:28 | 2014-11-16T05:36:28 | 26,528,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # -*- coding: utf-8 -*-
# Scrapy settings for scraper project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
#
BOT_NAME = 'scraper'
SPIDER_MODULES = ['scraper.spiders']
NEWS... | [
"foxryan@gmail.com"
] | foxryan@gmail.com |
d379fed41e0a25143b5d39b82fae3c78d7e19137 | 20e8d7c95cae9539601444b146d7613d7c235a8c | /02_word_count/02_regex.py | c281076f6f95336a1c33e4e54b040fcc0848c2ad | [] | no_license | Kowczi/big-data-hadoop-map-reduce-course | 03058a441d5af094a452d8644489167cbbe4a7bd | 4341fec1326b53a10d7fa5ef1d82ea67dda8f5d9 | refs/heads/master | 2022-04-24T01:14:45.394150 | 2020-04-20T19:37:58 | 2020-04-20T19:37:58 | 255,967,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import re
# Budowa wyrażeń regularnych. Poniższy regex będzie szukał znaków, mających
# co najmniej jeden tzw. word character.
WORD_RE = re.compile(r'[\w]+')
words = WORD_RE.findall('Big data, hadoop and map reduce. (hello world)')
print(words) | [
"kowczi@gmail.com"
] | kowczi@gmail.com |
cbc69c07a863d77c65ff5f3b1a5e16dca6fd6d4e | 626bc832c8cb4d2804cdaa2e598abdfdbbcf0458 | /t2-916-Popa-Andrei-Calin/UI.py | ef449914d8c34e6bd53187a813a67485f753bc45 | [] | no_license | andrei47w/Fundamentals-of-Programming | cc5f3d998e451c5f0535d0e75eeed6bfb9fe7171 | b0839c1f9620da73cc117ba1539899509544ad1a | refs/heads/main | 2023-08-18T14:11:01.842273 | 2021-10-22T16:56:14 | 2021-10-22T16:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from entities import read_player_file
from repo import Repo
class UI:
def __init__(self):
self.repo = Repo()
def list_players(self):
for player in self.repo.list():
print(str(player))
def start(self):
self.repo.sort()
self.list_players()
print('\nRemai... | [
"kalinpopa@outlook.com"
] | kalinpopa@outlook.com |
2d450af746eb856afc99a0fcde561e1d291d4721 | af3b6f7cef150c471e777cc4eca761f77fff441d | /app.py | 950cc0668626482314cbf4b8ca1caafb33369ac1 | [] | no_license | MUSKANJASSAL/opencvCamera | 83037202dfe7c05347c1607ff9f29678eaee2322 | 9464d6333fa900c07106b53b9f3e59effd6c329d | refs/heads/master | 2022-12-06T17:52:51.468125 | 2020-08-20T04:53:54 | 2020-08-20T04:53:54 | 288,909,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | from flask import Flask, Response
import cv2
app = Flask(__name__)
video = cv2.VideoCapture(0)
@app.route('/')
def index():
return "Default Message"
def gen(video):
while True:
# to get next frame or image in video
success, image = video.read()
# returns two values if ... | [
"noreply@github.com"
] | MUSKANJASSAL.noreply@github.com |
9b53aa7ada60e066d5410a3d2ed0b2915149a81d | 52d4debb2636893bc323d6dd76b44c813b5676fa | /hardware/HardwareInterface.py | 4bde51f7a962b5470362f2b3cd6e912bccc34216 | [] | no_license | jamesfowkes/home-energy-monitor | f823d9918bd551fd033889b466bdfad35750f38e | 6314eac302960eba2f7a7414790ec6fe966012ef | refs/heads/master | 2021-01-17T18:03:09.214321 | 2017-07-06T07:33:49 | 2017-07-06T07:33:49 | 95,536,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,626 | py | import serial
import datetime
import time
import sys
class HardwareInterface:
def __init__(self, port, baudrate=115200):
self.port = serial.Serial(port, baudrate, timeout=2)
self.port.readline()
@staticmethod
def get_set_timestamp_command_bytes(timestamp):
return "!T{}\n".format(t... | [
"jamesfowkes@gmail.com"
] | jamesfowkes@gmail.com |
ea87132b34cce53dff9893dd206eae888f13f125 | 7c8e49455f0cd9a1e82900be41b55e56dcb7ff85 | /app/translate.py | 282b86af4e639b817ca1cb680fedc3105c239e24 | [] | no_license | webdevalex72/microblog-miguel | 5de669bb398706999086d323fc10128c63fc6772 | 132ec6ead71e5a42128085c197ce57e455110735 | refs/heads/main | 2023-02-27T06:29:56.114900 | 2021-02-01T07:44:22 | 2021-02-01T07:44:22 | 318,638,046 | 0 | 0 | null | 2021-01-20T12:47:24 | 2020-12-04T21:22:09 | Python | UTF-8 | Python | false | false | 854 | py | import json
import requests
from flask_babel import _
from flask import current_app
def translate(text, source_language, dest_language):
if 'MS_TRANSLATOR_KEY' not in current_app.config or \
not current_app.config['MS_TRANSLATOR_KEY']:
return _('Error: the translation service is not configured... | [
"web.dev.alex72@gmail.com"
] | web.dev.alex72@gmail.com |
6d60ca3e949e3a6069a4d35c1470040747faa7fc | c01e80d3d68d97b66e7e6639d94906c77ee8d7f8 | /bot/keep_alert_bot.py | ec9b649499793909ecee03c584eb5e9d05aadd7b | [
"Apache-2.0"
] | permissive | latenthero/keep-alert-bot | 351c58e84c1cd209d3492d8156f24d5533fd186a | 47a65f2cfedc6d02fb60c877893e501d6aca900e | refs/heads/master | 2023-05-26T04:11:09.869617 | 2020-07-28T16:12:59 | 2020-07-28T16:12:59 | 283,247,372 | 0 | 0 | Apache-2.0 | 2023-05-23T00:11:46 | 2020-07-28T15:07:04 | Python | UTF-8 | Python | false | false | 5,976 | py | import logging
from web3 import Web3
from aiogram import Bot, Dispatcher, executor, types
from aiogram.dispatcher import FSMContext
from aiogram.dispatcher.filters.state import State, StatesGroup
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from unbonded_eth_checker import UnbondedEthChecker
import mong... | [
"latenthero@protonmail.com"
] | latenthero@protonmail.com |
3d87dc557f14a1fd27f9bfb4e0cfb4a1d1985fa5 | 7d7d537755f8980d0e8fd4c6d3c21a95f52c7f87 | /mtweet/admin.py | e9c4aed47d67e9fc7e61eb35d3c6a9b05df18622 | [] | no_license | mayankkushal/mini-twitter | d4145550b9d97a4acaebd54f3853d431c4de38b0 | 4abe550303c01f1bc249e57426f6f82c898a9dbe | refs/heads/master | 2021-01-11T20:01:03.088985 | 2017-01-25T10:46:01 | 2017-01-25T10:46:01 | 79,448,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from django.contrib import admin
from mtweet.models import UserProfile, Post, Comment
# Register your models here.
admin.site.register(UserProfile)
admin.site.register(Post)
admin.site.register(Comment)
| [
"noreply@github.com"
] | mayankkushal.noreply@github.com |
77c6dffb5337cfbc33ff1d31e091536f8984aa46 | 35469c680bae483a42dfe9a5e71f98300d0b4c86 | /streamlit-venv/first_app/first_app.py | a07cd83238e99c4830945458a1525b14ae709999 | [] | no_license | difo23/streamlit-apps | cc0994fdbcada131e7b26e9ec260b633e75ccfb0 | e249e0bdb152609b263920ad2b97b144ff50801c | refs/heads/main | 2023-06-10T17:48:39.807490 | 2021-06-24T03:39:07 | 2021-06-24T03:39:07 | 379,794,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import streamlit as st
# To make things easier later, we're also importing numpy and pandas for
# working with sample data.
import numpy as np
import pandas as pd
# Draw a title and some text to the app:
'''
# This is the document title
:+1:
:100:
This is some _markdown_.
'''
df = pd.DataFrame({'col1': [1,2,3]})
df ... | [
"lizandro.ramirez@ucateci.edu.do"
] | lizandro.ramirez@ucateci.edu.do |
8e7b656d729088b17ad2b5bc569419b228868e8e | 296bc22dbcb0c63d197777e9dccb07571d86b577 | /devel/tevent/patches/patch-buildtools_wafsamba_samba__install.py | e47e541abf0b88597b21d59c57780e4006764bd1 | [] | no_license | virtua-network/pkgsrc | e0adef65116d6531ce5bf00e9f3a72dac913d93b | 115af209c442eec0f31b6f554727e696ba49515b | refs/heads/trunk | 2020-04-22T16:08:27.508917 | 2019-01-10T09:38:18 | 2019-01-10T09:38:18 | 112,642,527 | 0 | 0 | null | 2017-12-12T14:28:39 | 2017-11-30T17:52:23 | Makefile | UTF-8 | Python | false | false | 842 | py | $NetBSD: patch-buildtools_wafsamba_samba__install.py,v 1.1 2019/01/03 19:30:47 adam Exp $
Apply correct install_name on Darwin.
--- buildtools/wafsamba/samba_install.py.orig 2018-07-12 08:23:36.000000000 +0000
+++ buildtools/wafsamba/samba_install.py
@@ -150,6 +150,9 @@ def install_library(self):
bld.sym... | [
"adam@pkgsrc.org"
] | adam@pkgsrc.org |
17b61f581f4214359f2214304fdd0f0683ef8675 | d4c4e798cd0c94f28a9282bc8028157855f8fa96 | /Tree/shortestPathBinaryMatrix.py | e7eb028009840ed7222b4730c047ff33797b77a2 | [] | no_license | tijugeorge/DS-and-Algos | 5ab53fff764c8dd62b385739b696406700c5516a | 2bab1231f9c7050972e3855281884fbe1951efa1 | refs/heads/master | 2023-08-31T07:30:38.374031 | 2023-08-29T00:09:50 | 2023-08-29T00:09:50 | 75,580,515 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from collections import deque
class Solution:
def shortestPathBinaryMatrix(self, grid: List[List[int]]) -> int:
if grid[0][0] == 1:
return -1
def valid(row, col):
return 0 <= row < n and 0 <= col < n and grid[row][col] == 0
n = len(grid)
see... | [
"noreply@github.com"
] | tijugeorge.noreply@github.com |
60d179c2f89aad439a7440bfa1803ec8ad8e05bc | 3290ccdcb254e347d739238e366705a653aa55ba | /app/app/urls.py | b5048c3eab9f304100e682b94e13a51c64e9bcb3 | [
"MIT"
] | permissive | iapurba/recipe-app-api | 9125fe2e58cf510762bba788b99bc794d31b5d47 | 1ab5bd2388f8651eef5fe9bea38a156668cdce17 | refs/heads/main | 2023-02-12T12:59:37.485543 | 2021-01-16T16:48:15 | 2021-01-16T16:48:15 | 326,918,086 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | """app URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"apurbapanja1@gmail.com"
] | apurbapanja1@gmail.com |
8e3bd2675f39d619008fe533e9bf20c68913a478 | fcec21a964d279aecf4b7818472e3a59ca6ff7d9 | /apps/blog/templatetags/blog_tags.py | 31ae1a2fd25df7ae38dc35fa08de351d505782dd | [] | no_license | VISVO-TV/blog-with-api-for-mob-app | 5a9763776809343f7fe662e3417de899c9cb3c3f | d2f1ed43f8f01113b2f6cf65bef644e392c5b6c1 | refs/heads/master | 2023-03-21T02:03:16.710226 | 2021-03-22T14:31:25 | 2021-03-22T14:31:25 | 350,374,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from django import template
from ..models import Post
from django.db.models import Count
from django.utils.safestring import mark_safe
import markdown
register = template.Library()
@register.simple_tag
def total_posts():
return Post.objects.count()
@register.inclusion_tag('blog/post/latest_posts.html')
def show... | [
"visvo.lider@gmail.com"
] | visvo.lider@gmail.com |
72a917446dbc4fd22fca1dc24a576d9f2b62b8c0 | b14a690e635722d3a6f6578fdfa0e17a5c8132dc | /NLTK/3_words_list.py | 048e4778329d66529ce572c79927a1485e475d5d | [] | no_license | Yo-Systems/scripts | 881023ec0684f85c98e99b67fb2d1c135ef293cf | f6d9b034c31114625de90e634ef4899f163c32b3 | refs/heads/main | 2023-01-13T02:47:57.457073 | 2020-11-20T06:21:49 | 2020-11-20T06:21:49 | 308,233,548 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | # Using list comprehension
List = [list_of_words[i:i + 3]
for i in range(len(list_of_words) - 2)]
# printing list
print(List) | [
"noreply@github.com"
] | Yo-Systems.noreply@github.com |
d599a099915df2f3a7b0e84e7bc8922249768aa1 | 9e5f89954fae8ac705d3e721d82b7b72d9fbcbaa | /v1/identificador.py | ce063a56231d27f0f73a6088b1e9cc337d37a8b5 | [] | no_license | Diego-18/python-algorithmic-exercises | dda950d0fcabd25244ce3ecfc1296d06a7701f5f | 583907b82c3549a4bff7718d23aa3e0d7be2e4a3 | refs/heads/main | 2023-08-12T02:28:49.425894 | 2021-09-26T05:14:07 | 2021-09-26T05:14:07 | 410,439,661 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 395 | py | car = raw_input('Dame un carácter: ')
if 'a' <= car.lower() <= 'z' or car == '_':
print 'Este carácter es válido en un identificador en Python.'
else:
if not (car < '0' or '9' < car):
print 'Un dígito es válido en un identificador en Python,',
print 'siempre que no sea el primer carácter.'
else:
... | [
"ingdiegochavez18@gmail.com"
] | ingdiegochavez18@gmail.com |
cd192e239ca89ca3b87be8caf3c52cf21a53900b | 74d31a65c825469d2d0a1d6e7604455ca2fbf0e2 | /src/galaxy/__init__.py | 9b3302a5fe954d0b6df2155cb82985ed594d2677 | [
"MIT"
] | permissive | AHCoder/galaxy-integration-ps2 | d80116619abc33140d8af5c260ca61ba3d7c263c | 2d57a094e4447a2016074a42dd4d7b425985a48a | refs/heads/master | 2021-09-27T05:14:12.927921 | 2021-09-14T18:15:20 | 2021-09-14T18:15:20 | 198,490,246 | 49 | 9 | MIT | 2019-11-06T16:11:03 | 2019-07-23T18:50:57 | Python | UTF-8 | Python | false | false | 155 | py | import logging
logging.getLogger(__name__).setLevel(logging.INFO)
__path__: str = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore
| [
"AHCoder@users.noreply.github.com"
] | AHCoder@users.noreply.github.com |
95e6f59e7a2a6067468883e2555c45f701c3af2c | 71723ab431d071af2a20a6df748c4cfaa94a4ff6 | /src/pytest_cpp/error.py | da77df59894d6364602604ddcfb0143f421d5c6b | [
"MIT"
] | permissive | pytest-dev/pytest-cpp | 7aa20409b4e926785aa39e07f728a7122c67192e | 00ffd823a2e7c6d2eff06274c6bda68defdfa573 | refs/heads/master | 2023-08-29T15:37:18.733648 | 2023-08-25T13:06:29 | 2023-08-25T13:06:29 | 22,797,415 | 111 | 32 | MIT | 2023-09-12T20:01:19 | 2014-08-09T23:32:11 | C++ | UTF-8 | Python | false | false | 3,559 | py | from __future__ import annotations
import os
import string
from abc import ABC
from abc import abstractmethod
from typing import Sequence
from typing import Tuple
from _pytest._code.code import ReprFileLocation
from _pytest._io import TerminalWriter
class CppFailureError(Exception):
"""
Should be raised by ... | [
"nicoddemus@gmail.com"
] | nicoddemus@gmail.com |
7374a49abd5baf3e01c56a441e5bce07a07eb8ab | f6465cac733fec018d4e9d32591254d476aced7c | /countdown.py | 3db55bd69d49e2ed98805bb9582bb95c47fceefe | [
"CC-BY-NC-SA-3.0",
"Apache-2.0",
"CC-BY-NC-4.0"
] | permissive | ferranpons/ccc_pumptrack_attack | 22c62592e2f0826288c0662edc5493104820411a | dbe8662c617f353821422642cf95255cef167fc6 | refs/heads/master | 2021-08-17T19:23:54.927727 | 2020-04-08T14:29:04 | 2020-04-08T14:29:04 | 155,850,792 | 0 | 0 | Apache-2.0 | 2020-04-08T14:29:05 | 2018-11-02T10:29:00 | Python | UTF-8 | Python | false | false | 1,586 | py | import pygame
import colors
from gameState import GameState
from textUtils import text_format, MENU_FONT
class CountDown:
start_ticks = 0
state = GameState.STARTING
countdown = 5
time_in_millis = 0
def __init__(self):
self.start_ticks = pygame.time.get_ticks()
self.start_text = t... | [
"ferranpons@gmail.com"
] | ferranpons@gmail.com |
a34440377e54af5af4478fddbf7d0a346c197b34 | 18b51fdd2549c49bda5cc39b342669125819de58 | /gallery/views.py | 57bda6daf8c650e5295db07814ef4ae767406601 | [] | no_license | gschultz64/artHub | 51beeb5066358349e008c5501bab33214f87c501 | 2abebb8a766a1f94da510c404a40ea4e80048acc | refs/heads/master | 2022-12-25T23:28:37.486249 | 2018-08-14T18:08:59 | 2018-08-14T18:08:59 | 144,074,022 | 0 | 0 | null | 2022-12-08T02:22:15 | 2018-08-08T22:27:15 | Python | UTF-8 | Python | false | false | 3,743 | py | from django.shortcuts import render, redirect, HttpResponse
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from django import forms
from django.views import View
from django.conf import settings
from django.contrib import messages
from django.core.files.storage import FileSystemStorage
from dj... | [
"genschultz@gmail.com"
] | genschultz@gmail.com |
8eae618dd80fb9c1f441ad756c97b37bf196dcd9 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /test/test_athletics_api.py | 21b851ea7f9d1ec00d0e2a0d763180ba521fa921 | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import dbpedia
from dbpedia.api.athletics_api import AthleticsApi ... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
6489b6395ab64e7a340b118348a3b0f4f27afa6b | bdf1dde23024e854f31da05ca6d5fe9f57930cad | /machineLearning/code/nbReg.py | 80f3c009a489a8e0707f038a655044cc8e511867 | [] | no_license | setupred/iit-asgn | 4d8400084025854734c4744a493f8fe2dd4f850e | 121c07d3f30ab5b8e5eb79bc78d472621a1f5615 | refs/heads/master | 2020-04-02T09:44:01.338280 | 2013-08-05T11:34:53 | 2013-08-05T11:34:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | '''
Decision Tree Regression
'''
from time import gmtime, strftime
from collections import defaultdict
from sklearn import tree
import csv
def prob(pos,neg):
if( (pos+neg) == 0):
return -1
else : return (pos*1.0)/(pos+neg)
#'''
train = csv.reader(open(sys.argv[1],'r'))
test = csv.reader(open(sys.argv[2],'r'))... | [
"pratap130492@gmail.com"
] | pratap130492@gmail.com |
e7881d34621184fd7b44e1969765877ae3568079 | 8d3c37f8d66c3d49a4318d3694e1fe01fa324867 | /build/exe.win32-3.6/venv/Scripts/pip-script.py | 4986ff9209f1d8822a36162f98cb037d1d44d905 | [] | no_license | yessikameliza/proyecto_final_softwareIII | 80f55ca0b03054c06fec7ef025cb191a29e7c018 | ffce31b026790cadd83c628e0872a2c38cd5d7ef | refs/heads/master | 2020-03-28T14:39:54.816050 | 2019-03-30T00:19:10 | 2019-03-30T00:19:10 | 148,509,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!"C:\Users\alexa\Music\Software 3\proyecto_final_softwareIII\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"ealealr@uqvirtual.edu.co"
] | ealealr@uqvirtual.edu.co |
987738b06e1aa35e4bc300f0033658d71515f911 | b840b86b490cfc6686bc0080780799c944682032 | /test_api.py | 822da321d98dedfd58e794adf1924934b3ee0a42 | [] | no_license | Swich1987/PythonImhioTestTask | 5fb458e7edff12bef069bd46976d8c68003fa9a4 | 8e86c64e00b16782ce50a690345101958a6acb25 | refs/heads/master | 2020-04-30T18:51:43.540185 | 2019-03-22T12:50:59 | 2019-03-22T12:50:59 | 176,955,160 | 0 | 0 | null | 2019-03-21T14:58:09 | 2019-03-21T13:55:15 | Python | UTF-8 | Python | false | false | 8,389 | py | """
Testing our API.
"""
import sys
import random
import string
import csv
import unittest
import requests
URL = 'http://localhost:8078/get_config'
SUCCESS_CODE = 200
BAD_REQUEST_CODE = 400
RAINY_DAY_REQUESTS_NUMBER = 3
CSV_DEVELOPE_FILENAME = 'sunny_days_develop_mr_robot_configs.csv'
CSV_VPN_FILENAME = 'sunny_da... | [
"swich1987@mail.ru"
] | swich1987@mail.ru |
fca8f2fc674b7f037b327f7b907d9900aca9ba9c | f2721656f488c512fcf8e182efaafb88a1d70ceb | /matrixmul.py | a085bb20c14dda36bd3dad9e4fd30ab1c51a27f0 | [] | no_license | yangzhenwnt/louplus | 5237701ff11e6091cced5e8e665d68fb7ffadcdb | 9700a4aaaa6c780eb686c676565eb2d2aff48b8c | refs/heads/master | 2021-03-17T21:49:54.480339 | 2020-03-25T03:32:06 | 2020-03-25T03:32:06 | 247,020,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | #!/usr/bin/env python3
n = int(input("Enter the value of n: "))
print("Enter value for the Matrix A")
a = []
for i in range(n):
a.append([int(x) for x in input().split()])
print("Enter values for the Matrix B")
b = []
for i in range(n):
b.append([int(x) for x in input().split()])
c = []
for i in range(n):
c... | [
"yangzhenwnt@163.com"
] | yangzhenwnt@163.com |
88c46763d7ccef9ca626cf9355ed3c62fa20d20d | eeffdf9d58189b60506e1414ed64fd74367eb6d0 | /tracking.py | be56b7da2ffdbcdb374ea8655542a8bf3b60ccd2 | [] | no_license | dcmendoza2/Digital_Image_Processing | e653f123789f9bd899e7b3778b920b27850ca2b8 | 693983345f350f0304b8229e8717e071c26efbf3 | refs/heads/main | 2023-04-30T06:57:19.194680 | 2021-05-12T03:57:50 | 2021-05-12T03:57:50 | 366,585,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | import cv2
cap = cv2.VideoCapture(0)
tracker = cv2.TrackerMIL_create()
success, img = cap.read()
bbox = cv2.selectROI("Tracking",img,False)
tracker.init(img, bbox)
def drawBox(img, bbox):
x,y,w,h = int(bbox[0]), int(bbox[1]), int(bbox[2]), int(bbox[3])
cv2.rectangle(img,(x,y),((x+w),(y+h)),(255,0,255),3,1)
... | [
"ddcmendoza@gmail.com"
] | ddcmendoza@gmail.com |
35da978a59322a15b0812511052fcc1a3ccd2388 | fd971f08f5603eb3651da442678e82a1c21ae098 | /qgs/diagnostics/streamfunctions.py | 2f3c58dce0f5824bb19f119939a0a71668381ade | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ChanJeunlam/qgs | 78111cd43caf67ca2474aa27f07d20990bbd3321 | b4f9c6bb443d3846600e8bc08560dcdb398818b9 | refs/heads/master | 2023-09-02T10:40:55.299590 | 2021-11-23T09:41:59 | 2021-11-23T09:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,965 | py | """
Diagnostic streamfunction classes
=================================
Classes defining streamfunction fields diagnostics.
Description of the classes
--------------------------
* :class:`AtmosphericStreamfunctionDiagnostic`: General base class for atmospheric streamfunction fields diagnostic... | [
"jodemaey@meteo.be"
] | jodemaey@meteo.be |
9869ba9f08a4b1d43b66ba15aadb4d3043f6f04f | 1f3d6f2f00506ac47ffb645954c39e7f75c47da7 | /prog4.py | 1e521b1af8a2d713c1281a4dedede3e38f1cb3fd | [] | no_license | ravali1101/DSA-assignment | 1cf1ccdbaecd4d8060264734e1bcafa205d3df41 | 243d13cec6f5d10cac13aeba7a689270ea06c4de | refs/heads/master | 2020-04-06T04:53:36.749991 | 2016-12-09T07:36:30 | 2016-12-09T07:36:30 | 73,819,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py |
class Stack:
def __init__(self):
self._data = []
def push(self,e):
self._data.append(e)
def pop(self):
if(self.is_empty()):
print("stack is empty")
else:
return self._data.pop()
def is_empty(self):
return len(self._data) == 0
def reverse(self):
s = Stack()
t = Stack()
... | [
"rsanju0111@gmail.com"
] | rsanju0111@gmail.com |
ac8ebc3787d2342f9a4bfdb64177a5c9f1862098 | 8e57bc9558c84a59e0dd1470d45f254efa2b1322 | /lab8.py | fd432dfc316e016a3b049d044ab21cdb2194826b | [] | no_license | NathanMacDiarmid/ECOR-1051-Module-1 | d14e9eaa2137d9fc8bdf12d85be53364cb2d8cf3 | 2325d1c6838fb58c62488d64f5e6a2a0a2a5be9d | refs/heads/master | 2022-04-09T07:57:04.008666 | 2020-03-13T00:47:47 | 2020-03-13T00:47:47 | 246,958,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,199 | py | # IMPORTS
def test_fn(fn, expect: bool, var1) -> bool:
print("Testing", fn.__name__, ":")
actual = fn(var1)
print("Expected result:", expect, "Actual result:", actual)
if actual == expect:
return "\n Test passed \n"
else:
return "\n Test failed \n"
def test_fn2(fn, expect: bool,... | [
"nathanmacdiarmid@gmail.com"
] | nathanmacdiarmid@gmail.com |
fefc940bf718002a0db6861dd6ef2b7e7fd84f6f | 4ad1afc018f0fbee73e491a418451ebce131f418 | /src/jupyter_starters/py_starters/cookiecutter.py | 14bfe22c146ed3397af8358b7c66e1495c8dd0c6 | [
"BSD-3-Clause"
] | permissive | bollwyvl/jupyterlab-starters | 2abfa0e92af9db71d7c5a03038aff211fc8ec9d2 | 1a829a56468d60a91c293020cdfd4685bc0db6f8 | refs/heads/master | 2023-02-21T09:44:41.901370 | 2019-12-18T22:12:37 | 2019-12-18T22:12:37 | 228,930,227 | 0 | 0 | BSD-3-Clause | 2019-12-18T22:14:24 | 2019-12-18T22:14:23 | null | UTF-8 | Python | false | false | 6,419 | py | """ a starter that runs cookiecutter
"""
# pylint: disable=cyclic-import
import re
import shutil
from copy import deepcopy
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import TYPE_CHECKING, Any, Dict, Text
from notebook.utils import url_path_join as ujoin
from .._json import JsonSchem... | [
"noreply@github.com"
] | bollwyvl.noreply@github.com |
fe4c56b131d97aba2bdaa75204a2a9bd583f136d | c29eba01ce299ebb27b886a83e19e59add7e2f6b | /tests/cases/so/test_so2.py | ff88ef28ce3ceae12a209eb291ea8e662cd77714 | [
"BSD-3-Clause"
] | permissive | smarie/python-pytest-cases | e87516e73d5067d5c307c7fdb37cc5f1f97c417e | ab3b7190d728b18512141b9f5f3a1c3dfc7cedf2 | refs/heads/main | 2023-07-08T11:41:57.278697 | 2023-02-23T13:11:25 | 2023-02-23T13:11:25 | 138,296,136 | 286 | 40 | BSD-3-Clause | 2023-07-03T14:57:02 | 2018-06-22T11:42:19 | Python | UTF-8 | Python | false | false | 980 | py | # from https://stackoverflow.com/a/51199035/7262247
from pytest_cases import parametrize_with_cases
try: # python 3.2+
from functools import lru_cache
except ImportError:
from functools32 import lru_cache
read_files = set()
@lru_cache(maxsize=3)
def load_file(file_name):
""" This function loads the fi... | [
"sylvain.marie@se.com"
] | sylvain.marie@se.com |
4b48d40dcaa6739996252f8cac135cd32f73eaae | 8ff5d67f9781f3ff23bc3e5ed0c9d4f11c6f14ff | /Archive/old_src1/window_timing_test.py | 719172a436f0c272e9784373bd2ff229ed36e920 | [] | no_license | daniellisachuk/Page-Load-Time | 514c38d97cb94f49dd5712af3893edeba65320b6 | aecce15c2f7cd05e652194633ac07935271e03f2 | refs/heads/master | 2023-08-24T05:37:26.295146 | 2021-10-25T09:28:26 | 2021-10-25T09:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | from selenium import webdriver
df_dict = {
'url': [],
'ff_navigationStart': [],
'ff_redirectStart': [],
'ff_redirectEnd': [],
'ff_fetchStart': [],
'ff_domainLookupStart': [],
'ff_domainLookupEnd': [],
'ff_connectStart': [],
'ff_secureConnectionStart': [],
'ff_connectEnd': [],
... | [
"daniellisachuk@gmail.com"
] | daniellisachuk@gmail.com |
3d09b0796d9c583f864ccb2784ab8ff634c1d629 | 59c55725576bbf0e2f6617507ba2f1db639abb3f | /analytic_resource_plan_stock_picking_out/__openerp__.py | 1003910d5e1a27b95f02578252bad4ec2a383147 | [] | no_license | bmya/eficent-odoo-addons | e3426ebaf1f59e52726253fc1dd36a09d9363059 | 5d8ddfa384ab4417f42bda103b71d926848035f6 | refs/heads/7.0 | 2021-01-21T16:48:55.312452 | 2015-11-04T14:11:19 | 2015-11-04T14:11:19 | 45,649,141 | 1 | 3 | null | 2015-11-06T00:35:17 | 2015-11-06T00:35:17 | null | UTF-8 | Python | false | false | 1,806 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014 Eficent (<http://www.eficent.com/>)
# <contact@eficent.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero ... | [
"jordi.ballester@eficent.com"
] | jordi.ballester@eficent.com |
c6be2e433f63e2c4e908dd3e1890f6ef95dcd4c5 | f98ac38debdb21ddfd5723cd15fff28cdcbe07c1 | /ecs_fargate/datadog_checks/ecs_fargate/__about__.py | d0a682750f9a67049f4d112086986abc73694a4d | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | rmsy/integrations-core | fff6924db331e0bccda71dde123eef37574eecc7 | 230236537acb9fc9ebeca427a01959b7bed22ac5 | refs/heads/master | 2020-07-09T19:38:53.747552 | 2019-08-23T20:17:52 | 2019-08-23T20:17:52 | 204,064,648 | 0 | 0 | null | 2019-08-23T20:19:24 | 2019-08-23T20:19:24 | null | UTF-8 | Python | false | false | 130 | py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
__version__ = '2.2.2'
| [
"noreply@github.com"
] | rmsy.noreply@github.com |
5b05538a5055bb7d74a3fb673f64ec31bf8c02a2 | 82ecfdec9184781e16a77ed9c836d88356025a10 | /ucf_sub_catkin_ros/src/sub_utils/src/color.py | 6333f635f3f04d07a89fc04b1aa45497bb31d67f | [
"MIT"
] | permissive | RoboticsClubatUCF/RoboSub | 9778bba4cbb648566991e2d3ef089c67e8cbfc71 | 47304c620f963a8762db57a7ed248d1df90190fb | refs/heads/master | 2020-12-24T06:27:48.831408 | 2018-08-03T19:37:09 | 2018-08-03T19:37:09 | 37,393,696 | 0 | 8 | MIT | 2018-06-24T23:34:14 | 2015-06-14T00:50:37 | Python | UTF-8 | Python | false | false | 2,950 | py | from matplotlib import pyplot as plt
import numpy as np
import argparse
import cv2
from imutils import paths
import imutils
import os
from sklearn.externals import joblib
#Argument Parsing
ap = argparse.ArgumentParser()
ap.add_argument("-p", "--positive", required=True, help="path to positive images directory")
ap.a... | [
"rfatt13@gmail.com"
] | rfatt13@gmail.com |
ec43e813c712bd6dad5b19928e8169a1ac7bfb41 | ef6213036210b487ef01ce61e361fd234b05df03 | /friday/website/friday/apps/migration/__init__.py | e18667d477080c9a8efff67080eac4fa3fcd8f67 | [] | no_license | BGCX262/zzheng-hg-to-git | f1bfc07ea940547da3ba616fc1f799d0720eca48 | a3fc0f6d907b8e11dcefcf4ec988b337ad66a09d | refs/heads/master | 2020-06-30T05:30:59.672935 | 2010-06-04T09:10:33 | 2010-06-04T09:10:33 | 41,257,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/>
#
# Created on 2010-05-03.
# $Id$
#
| [
"heavyzheng"
] | heavyzheng |
e3efe74f2ab969e81989d355bfcd37f1df324e13 | 58f17f998d21121a4e9c7d1666d63873880fe7a0 | /article/migrations/0002_auto_20150524_0200.py | 9114f36613f061823d2eb618829a61ad2ea50ec2 | [] | no_license | itssiva/django_test | cc03b914bc2dc9cec31ac7fe6158b6b010b31f66 | 060769d3787af7212f7521e8feb7f16b450ef507 | refs/heads/master | 2021-01-10T10:25:06.996888 | 2015-05-24T02:16:55 | 2015-05-24T02:16:55 | 36,039,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import article.models
class Migration(migrations.Migration):
dependencies = [
('article', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Comment',
... | [
"sivaponugoti@gmail.com"
] | sivaponugoti@gmail.com |
695ee5a6ea016daf5d8460780f7d0f764b2a4cc3 | 4462fb13def2b1c310ff74d9eb1091ac89375191 | /python/test/y2021/test_dec02.py | 8f0d14198f6704a31b887a8ec37094043560bb5e | [] | no_license | prositen/advent-of-code | d9037e096c04a036833aedf7afff308ad2c9f846 | 40f554a163fbf8d0c26d53aa6f624d31d1a2549b | refs/heads/master | 2023-01-08T22:20:46.779900 | 2022-12-26T14:11:07 | 2022-12-26T14:11:07 | 47,338,913 | 16 | 0 | null | 2022-12-25T19:24:19 | 2015-12-03T14:58:54 | Python | UTF-8 | Python | false | false | 436 | py | import unittest
from python.src.y2021.dec02 import Dec02
class TestDec02(unittest.TestCase):
data = [
"forward 5",
"down 5 ",
"forward 8",
"up 3 ",
"down 8 ",
"forward 2"
]
def test_part_1(self):
self.assertEqual(150, Dec02(instructions=sel... | [
"noreply@github.com"
] | prositen.noreply@github.com |
d9fec02a880258463f3f2cd5ca0c3dc36cc5b577 | bb3167f4a848aee6bb4c16b17aa51f2785a3456f | /app/src/repositories/CardsRepository.py | b4454f555218140328873e477a1724a0965b7413 | [] | no_license | Thomasa91/flashcardsApp | 8d80473aaa82cad3077bf89a1525cd5c20ba2038 | 5f68adcbf8775f7c5f0af2b502738aaff661aeee | refs/heads/main | 2023-07-20T04:26:36.150727 | 2021-09-04T09:39:53 | 2021-09-04T09:39:53 | 328,564,217 | 0 | 0 | null | 2021-07-13T19:13:13 | 2021-01-11T06:02:48 | Python | UTF-8 | Python | false | false | 2,638 | py | from typing import List, Optional
from sqlite3 import Error
from app.src import dbConn
from app.src.models.Card import Card
from app.src.utilities.logger import logger
conn = dbConn.get()
#TODO implement exception handling
def create(deck_id: int, word: str, translation: str) -> Optional[Card]:
query = f"IN... | [
"tomaszgrochdk@gmail.com"
] | tomaszgrochdk@gmail.com |
e5f38b9d0a0aaee53640ab7615d8e4ddda231a9a | 959185d2f84f04ba4a31d97d11be78fdf5955d96 | /aqsa-master/aqsa_apps/import_from_file/views_db_records_csv_backup.py | c2aa527216fb795fec4fac5ea5e17727ca8cded6 | [
"MIT"
] | permissive | WhytryB/Cross | 2fcc1a87bf59f7e870e59ce3c55fbe37cb31f45a | 00402d5198065909359af80982e7e2dbbcdb67bc | refs/heads/master | 2020-04-13T13:37:13.823379 | 2018-12-27T02:43:36 | 2018-12-27T02:43:36 | 163,236,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,706 | py | # Author of Aqsa: Yulay Musin
from django.utils.translation import ugettext_lazy as _
from django.views.decorators.http import require_POST
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404
from . import models as m
from django.shortcuts import redirect
from . impo... | [
"offlittlehooligans@gmail.com"
] | offlittlehooligans@gmail.com |
333058665bf2b0a98e358b786ba8fea7c65b07f9 | 4063e90751b8bb35a1139ad9a7b329c2fe9b09da | /writing_csv.py | c31f00e537dfeed40a0f135b71af6056d6577715 | [] | no_license | hyde1004/parse_itooza | 0b22e5799401e4d94b380f19caf6849965e17394 | 7ede949e8a34d28ef32464e10e6c2da16803d83c | refs/heads/master | 2016-09-14T02:34:00.229364 | 2016-05-18T02:45:46 | 2016-05-18T02:45:46 | 58,028,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import csv
with open('eggs.csv', 'w', newline='') as csvfile:
spamwriter = csv.writer(csvfile, delimiter='\t')
spamwriter.writerows([['apple','banana', 'ccc']]) | [
"junggu.lee@PTDMF10-NA105C3.LGE.NET"
] | junggu.lee@PTDMF10-NA105C3.LGE.NET |
e19ae4499f896b3193692d5ff4a4a2ac652dad7a | d57d7eb716f7e2b027c59fee2e3df57d043c1210 | /004-phonebook-web-application/phonebook-app.py | 4cb72b92aa9b110ca8f67bf7f92f6c79d89289aa | [] | no_license | bruce-scott/clarusway-aws-workshop | ff8e004657ee1a77b3dac458a5ca34c6427453fb | eb10f4adb20330fd9176397500e048ab0260c2a3 | refs/heads/master | 2022-12-22T17:49:51.413744 | 2020-09-25T23:28:43 | 2020-09-25T23:28:43 | 274,543,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,949 | py | # Import Flask modules
from flask import Flask, request, render_template
from flaskext.mysql import MySQL
# Create an object named app
app = Flask(__name__)
db_endpoint = open("/home/ec2-user/dbserver.endpoint", 'r', encoding='UTF-8')
# Configure mysql database
app.config['MYSQL_DATABASE_HOST'] = db_endpoint.readli... | [
"brucescott236@gmail.com"
] | brucescott236@gmail.com |
ad1b3bb809c1dcf82b2d13c5f9741207cdd4eaf3 | d9df51eb5b8aa6b4b80daa412111ca4ab60a0778 | /runrandom/batchsub.py | cab8f848dbb4f4d0f5a2cae020dad866229de918 | [] | no_license | liarrn/QC_Tools | c4b13dacb3a38e463f25a2fb22c3116a2d5fb621 | 5d03f61442ce73848c3ecc221b465f8961992d47 | refs/heads/master | 2021-01-19T21:52:08.062110 | 2017-04-19T08:04:31 | 2017-04-19T08:04:31 | 88,717,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,099 | py | import numpy as np
from itertools import islice
import re
from subprocess import call
import math
import copy
def coor2xyzforce(elems, coor, force, des=''):
xyz = ''
natoms = coor.shape[0]
xyz += '%d\n'%(natoms)
xyz += des.rstrip()
xyz += '\n'
for i in range(natoms):
xyz += '%-5s%15.9f%... | [
"liyadong1102@gmail.com"
] | liyadong1102@gmail.com |
4f3adc03df3ac996ba76ec5833dd99a6337c3229 | 343fafb2d0e30a7c9c433602bfb1e9db217098db | /blog/main/routes.py | 3e62deadbf9535da787675afb577ac2fc7348284 | [] | no_license | elmahico7/Python-Flask-App | 1032ae69b6dc46db55abaf06d197c8c7dc784844 | aac767868c1b993d5d9d5fd19b586ebd9904cf01 | refs/heads/master | 2022-11-13T00:05:51.291116 | 2020-06-23T13:51:09 | 2020-06-23T13:51:09 | 271,318,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from flask import render_template, request, Blueprint
from blog.models import Post
main = Blueprint('main', __name__)
@main.route("/")
@main.route("/home")
def home():
page = request.args.get('page', 1, type=int)
posts= Post.query.order_by(Post.date_posted.desc()).paginate(page=page, per_page=4)
return render_temp... | [
"53228477+elmahico7@users.noreply.github.com"
] | 53228477+elmahico7@users.noreply.github.com |
5dcc69cd5f217ed5a31c8579e42364e7264c87f7 | 94c8dd4126da6e9fe9acb2d1769e1c24abe195d3 | /qiskit/transpiler/propertyset.py | 3932d6497e58a40960957c373dac081afbcb852e | [
"Apache-2.0"
] | permissive | levbishop/qiskit-terra | a75c2f96586768c12b51a117f9ccb7398b52843d | 98130dd6158d1f1474e44dd5aeacbc619174ad63 | refs/heads/master | 2023-07-19T19:00:53.483204 | 2021-04-20T16:30:16 | 2021-04-20T16:30:16 | 181,052,828 | 1 | 0 | Apache-2.0 | 2019-06-05T15:32:13 | 2019-04-12T17:20:54 | Python | UTF-8 | Python | false | false | 724 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2018.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | levbishop.noreply@github.com |
f4d9862f204cb7a5b07c91b4a8e8902059517d87 | 1b80f08fb2f25c625ced0cf3ba37b342f3ea9898 | /ltr-gan/ltr-gan-pointwise/eval/ndcg.py | 1df608ca57e3291e2a6b5a3f6b6d5eeac3cea93a | [] | no_license | dpaddon/IRGAN | 42a45dd574ce70b3b68006a3b9d5d9f24231ad91 | bce7b543ddc2ffdc9fe323614111394be8383570 | refs/heads/master | 2021-09-03T08:44:30.206677 | 2018-01-07T17:53:14 | 2018-01-07T17:53:14 | 111,242,532 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,234 | py | import numpy as np
def ndcg_at_k(sess, model, query_pos_test, query_pos_train, query_url_feature, k=5):
ndcg = 0.0
cnt = 0
for query in query_pos_test.keys():
pos_set = set(query_pos_test[query])
pred_list = list(set(query_url_feature[query].keys()) - set(query_pos_train.get(query, [])))
... | [
"31183898+dpaddon@users.noreply.github.com"
] | 31183898+dpaddon@users.noreply.github.com |
9e5db47ace2274632f2b2a5b285166229a46a94e | a601f4acfabd112ab05f6ce60a20f8549cf5e023 | /code/data.py | 04e3b6b7be6014d9c75c561796294caa857aabc9 | [
"MIT"
] | permissive | shri-kanth/GAIN | b57b0e8d9971968323c6cbebff7be275c71cf6ea | 5ae151c23116fa553ac77833cf740e759b771f5e | refs/heads/main | 2023-01-27T13:28:50.077356 | 2020-12-08T01:13:16 | 2020-12-08T01:13:16 | 306,441,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,741 | py | import json
import math
import os
import pickle
import random
from collections import defaultdict
import dgl
import numpy as np
import torch
from torch.utils.data import IterableDataset, DataLoader
from transformers import *
from models.GAIN import Bert
from utils import get_cuda
IGNORE_INDEX = -100
class DGLREDat... | [
"631710518@qq.com"
] | 631710518@qq.com |
324c11463f9e8f7ce76e5cec1d386bb0346edc81 | 81f013aabcf585fd16ea76a0ac7d037dd2006745 | /djangoproyect/polls/views.py | bc4967626d77525fc6e4016d4c2722a5f3b0130f | [
"BSD-2-Clause"
] | permissive | Khanos/SoftCode | e417092f140f978a140195e117516f292f7d3742 | b7ea21ac6acaf54c49379c14281f3992ddf9316d | refs/heads/master | 2021-01-16T19:02:58.507240 | 2015-02-11T20:55:48 | 2015-02-11T20:55:48 | 30,253,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | # from django.shortcuts import render
#
# # Create your views here.
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the polls index.")
| [
"KhanosTech@gmail.com"
] | KhanosTech@gmail.com |
8fd4870d1e4f43fde69fefd695806b933d476116 | b652934b616631053844e76adfb036d2bc74f9d3 | /env/lib/python3.7/genericpath.py | 4559668c144e91d0f549ad238af863de599a3695 | [] | no_license | majmoud1/saHeroku | fc49ee554c4c7d580e85cd7ceab827c33c1bc178 | cb76a6116c60515d7946bb0ca6d7d7fc87ed33b9 | refs/heads/master | 2021-06-23T20:30:18.161533 | 2019-07-26T11:48:56 | 2019-07-26T11:48:56 | 199,005,727 | 0 | 0 | null | 2021-03-20T01:24:33 | 2019-07-26T11:33:14 | JavaScript | UTF-8 | Python | false | false | 49 | py | /home/diop/anaconda3/lib/python3.7/genericpath.py | [
"thebest16295@gmail.com"
] | thebest16295@gmail.com |
e7a365fc1d2c464c860a69ded83309e68287fdb9 | dd51b54eae1d60e2c97b7f0e0b5b35b6c7c5e573 | /matriz.py | c20ae7fd1e12a0a6e0817674b9f9b4775d309ff1 | [] | no_license | leob009/projetospython | eb82a83f9b7d4fd4a7238f02d386fba58c95a23c | 06f14e6dda4dffda179ff5d977d7a5601c063dd9 | refs/heads/master | 2023-08-28T06:47:06.698414 | 2021-09-29T19:02:24 | 2021-09-29T23:42:00 | 409,776,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from random import randint
def cria_matriz(num_l, num_col):
mat = []
l = []
while len(mat) != num_l:
l.append(randint(0, 99))
if len(l) == num_l:
mat.append(l)
l = []
return mat
num_lin = 5
num_col = 5
mat = cria_matriz(num_lin, num_col)
print('* '*11)
for l... | [
"leobc009@gmail.com"
] | leobc009@gmail.com |
6d13e94941952220209672f122ad70bf317b32c7 | a75c3fc060cd3e1d8e48e5f32a6e7e6dd58fb1ed | /challenges/re/vault1/chal.py | b5986c6eaae1bb7792d83be997b5871c0b177708 | [] | no_license | cyber-castors/castorsCTF20 | 7bb7f7ae3161c4e60297ab2cfd0e356ead4d8f13 | e88a0b24562cf9ec1ddd51e4ede378469f42271c | refs/heads/master | 2022-09-18T13:45:11.051813 | 2020-06-03T23:18:19 | 2020-06-03T23:18:19 | 268,179,913 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import base64
def xor(s1,s2):
return ''.join(chr(ord(a) ^ ord(b)) for a,b in zip(s1,s2))
def checkpass():
_input = input("Enter the password: ")
key = "promortyusvatofacid"
encoded = str.encode(xor(key, _input))
result = base64.b64encode(encoded, altchars=None)
if result == b'ExMcGQAABzohNQ0TR... | [
"admin@cybercastors.com"
] | admin@cybercastors.com |
1c6aab212a160a1e5b8c7357ffc472e1a02d3394 | 907147fa621b090c8b4f7a1dbd4debfdb2167a3f | /Triángulos .py | e84ce7386e9a2d1b6be1770d3ef6909cbefe19e3 | [] | no_license | A01745969/Mision_04 | ad89be759aafaf429cd58a92ba488a0edb8812e7 | ee37bf48586a9c7858d9b6d5202e7f43442d7efa | refs/heads/master | 2022-04-20T20:03:04.539464 | 2020-04-17T05:47:11 | 2020-04-17T05:47:11 | 255,160,055 | 0 | 0 | null | 2020-04-12T20:00:13 | 2020-04-12T20:00:13 | null | UTF-8 | Python | false | false | 1,014 | py | # Paulina Mendoza Iglesias
# El programa indica el tipo de triángulo de acuerdo a su longitud
def main ():
ladoA = int(input("Teclea el valor 1: "))
ladoB = int(input("Teclea el valor 2: "))
ladoC = int(input("Teclea el valor 3: "))
if ladoA == ladoB and ladoB == ladoC:
... | [
"noreply@github.com"
] | A01745969.noreply@github.com |
faec3958eb37fe965876c4475d19f4c1fe393695 | 360c35fbb399ae6433e2eb38651e399d83c88bac | /src/fetchFunction/video_service/fields/auth.py | 337a2c5e0e836bca13fc17876f9c8b12e285b017 | [] | no_license | tbnoy/ownvl | 738634a9015bcef5e13bf0ce3f416ca8669be992 | bc7136e6f8bc072757d19e41447ef5f634b12aa1 | refs/heads/master | 2021-09-03T21:47:04.444508 | 2018-01-12T08:08:51 | 2018-01-12T08:08:51 | 116,219,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | class Auth:
def __init__(self, profileApi):
self.profileApi = profileApi
def fetch(self, baseData, raysData, params, language):
returnArr = {}
linkId = baseData['media$content'][0]['plfile$releases'][0]['plrelease$pid']
data = {
'videoId': params['videoGui... | [
"tzookb@gmail.com"
] | tzookb@gmail.com |
071b9018d7b5d3a3d7c9a5b3589f44d0281d703d | 2cb2bc953975540de8dfe3aee256fb3daa852bfb | /thisweek_masuipeo/tyama_codeiq1004.py | 4f5716abb362e9613f9926ca620533ad8a0c0db1 | [] | no_license | cielavenir/codeiq_solutions | db0c2001f9a837716aee1effbd92071e4033d7e0 | 750a22c937db0a5d94bfa5b6ee5ae7f1a2c06d57 | refs/heads/master | 2023-04-27T14:20:09.251817 | 2023-04-17T03:22:57 | 2023-04-17T03:22:57 | 19,687,315 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | #Used this to solve checkio "Lantern Festival"
D=( #Right,Up,Left,Down
(0,1),
(-1,0),
(0,-1),
(1,0),
)
class Maze:
def __init__(self,x,y,gx,gy,d,v):
self.x=x
self.y=y
self.gx=gx
self.gy=gy
self.d=d
self.v=v
def ok(self):
return self.gx==self.x and self.gy==self.y
def same(self,other):
return se... | [
"cielartisan@gmail.com"
] | cielartisan@gmail.com |
ac907214a6b17a3e62c84672c03479b87ba1abec | 41d4ae4913ac94f5e21ce45f8c07f631faffd0ba | /phonenumbers/data/region_AF.py | d72f4ebcb3ebd230b5c50f7bdb29871fa662aaf4 | [
"MIT"
] | permissive | ayushgoel/FixGoogleContacts | faabbc475b9e992caca8aed23f253cee7ae120bf | e49e58db6718bef8f95b6f767241605441c7fe41 | refs/heads/master | 2021-01-20T06:25:26.550106 | 2013-09-07T07:59:41 | 2013-09-07T07:59:41 | 12,215,068 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | """Auto-generated file, do not edit by hand. AF metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_AF = PhoneMetadata(id='AF', country_code=93, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[2-7]\\d{8}', possible_number_pattern='\\... | [
"ayush.g@directi.com"
] | ayush.g@directi.com |
cce5fa446680822ce8935dae90fab36f22c29f29 | 4c59278e23b4e2620288b3216973e1f7637be2cd | /0x11-python-network_1/4-hbtn_status.py | ad05aab9c086665c99f05b6aa69b4fa7a977bd8e | [] | no_license | Hassan8521/alx-higher_level_programming-1 | f469c77da954f4661eab86b531a379489563046a | ca10e1c36c8fb52a839e2e1ea88b83fd0d025b80 | refs/heads/main | 2023-08-06T22:40:58.167847 | 2021-09-23T06:43:41 | 2021-09-23T06:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/python3
"""
fetches https://intranet.hbtn.io/status
"""
import requests
if __name__ == "__main__":
r = requests.get("https://intranet.hbtn.io/status")
print('Body response:')
print("\t- type: {}".format(type(r.text)))
print("\t- content: {}".format(r.text))
| [
"fraoltesfaye.ft@gmail.com"
] | fraoltesfaye.ft@gmail.com |
1684c3866ad82c508fcf59e23e783bc17e47562f | 522fcd903a5308c015cfd85c40b63a9f30236170 | /mainapp/migrations/0003_auto_20210812_1548.py | c9f72c6ba35f43b322b5b7b8c75431c81899538e | [] | no_license | ChyngyzTorogeldiev/super_flawer | 2b8cf1d8108e4f5c8b7b5780e8149e6f951224ba | c42ba643e3f35a3eddba9fb7e8f857adfced0112 | refs/heads/main | 2023-07-12T12:20:55.741873 | 2021-08-18T14:48:31 | 2021-08-18T14:48:31 | 394,655,141 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | # Generated by Django 3.2.6 on 2021-08-12 09:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0002_flowers_flowersinpots'),
]
operations = [
migrations.CreateModel(
name='Flower'... | [
"www.araket@gmail.com"
] | www.araket@gmail.com |
930ca0fd3a6df943f526f2121d75079cec161856 | e955d60c69bd7c7b09bd759324e2e5beab0d5736 | /appbuild/build.py | 2beabf4013aabbeabba3db1c03cf3823f6d51ec3 | [
"BSD-2-Clause"
] | permissive | a-mcintosh/blackbox | 0c201f45e223f4b00401dc9d58373c21651b307e | 23e09f747cb0af0028bd4d471df5dc3a5d7dcb32 | refs/heads/master | 2020-07-15T11:14:38.664963 | 2016-11-12T23:29:48 | 2016-11-12T23:29:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,103 | py | #!/usr/bin/python
#
# Python 2.7 script for building the BlackBox Component Builder for Windows under Linux Debian 7.
# Looks at all branches and puts the output into the branch's output folder 'unstable/<branch>'
# unless building a stable (final) release, which is always put into folder 'stable'.
# A stable rele... | [
"josef.templ@gmail.com"
] | josef.templ@gmail.com |
9f12948c7c8d94d0fe4ef8f846a9192a6f472f7a | 347dcbcfa4d05b4d4310d725a4201c81972659b7 | /HMM/Gb_stimulus.py | 2a72738c07af36dbabe4ea152191826e5568d96a | [] | no_license | nghdavid/retsim | d3a73f6e60897a41e9ea136db8db8f1533d50700 | 76ed39c37bc034d6e455952cb400f23ab3a82c95 | refs/heads/master | 2022-05-31T06:44:45.703776 | 2022-03-29T07:21:38 | 2022-03-29T07:21:38 | 118,088,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,573 | py | #Calculate the mutual information between stimulus and Gauss_bipolar
import matplotlib as mpl
mpl.use('nbagg')
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from scipy.io import loadmat
import numpy as np
import operator
import os
import sys
sim_time = int(sys.argv[1])
period = float(sys.argv... | [
"nghdavid123@gmail.com"
] | nghdavid123@gmail.com |
e127d00741cb6dbd6bce2dda267f67ec41545d00 | 6c60d05d92a1b9d3a763688f8e15bf5cbc88d6fb | /heraldbot/discord.py | 9b2121d95436020cba1c01db40f7a57cc3a7fafb | [
"CC0-1.0"
] | permissive | Elemecca/heraldbot | 2ad77fb055ff7ed7efe4afc73dbf2fe0f2662343 | 681ba6e1aee99eba24ea5ec0ff2c58c14297d89c | refs/heads/master | 2021-04-09T16:20:22.100203 | 2019-05-03T20:42:45 | 2019-05-03T20:42:45 | 125,658,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | # HeraldBot - polling notification bot for Discord
# Written in 2018 by Sam Hanes <sam@maltera.com>
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any warranty.
... | [
"sam@maltera.com"
] | sam@maltera.com |
d0e08883e725074865937fe4750be1941a25ee52 | f1ed50d1e9644fa2f17bcb48e1ad273133deb5c5 | /Descent_dice.py | 2d550f5d132f86a703a0c36891241cf16e6c23fa | [] | no_license | ErickBrindock/Descent2eDice | 412c978a819221e2767355fca7e7fbc847da88fc | 0b9a7608180fe76988a757c1f47b0637aa15dae4 | refs/heads/master | 2020-05-24T06:03:06.362988 | 2019-05-17T02:24:35 | 2019-05-17T02:24:35 | 187,132,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,586 | py | import numpy as np
import matplotlib.pyplot as plt
import random
import math
class Dice(object):
color = ""
face = None
class Face(object):
damage = 0
burst = 0
range = 0
defend = 0
def __init__(self, dmg, burst, range, defend):
self.damage = dmg
self.burst = burst
self.ran... | [
"noreply@github.com"
] | ErickBrindock.noreply@github.com |
657501ffbfcf89b356b0d8a9d8eea04b060dd09a | 2793f4d1e70e50bd5dba329be5c7c15a1423f189 | /pyscripts/pythoncookbook3/6.2_json/jsondemo.py | 93e71b051067f567897e4e3a72789b90efeeaf60 | [] | no_license | finfou/viclearning | 92b13c1c9c102f857dcf5110ca85ac288e7b229d | 165473514684bb320f7e8352edc5edb583f9bda3 | refs/heads/master | 2021-01-17T08:52:28.990141 | 2019-10-26T12:10:51 | 2019-10-26T12:10:51 | 38,920,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #!/usr/bin/env python
import json
data = {
'name' : 'ACME',
'shares': 100,
'price' : 512.43
}
json_str = json.dumps(data)
data = json.loads(json_str)
class JSONObject:
def __init__(self, d):
self.__dict__ = d
data1 = json.loads(json_str, object_hook=JSONObject)
class Point:
def __init__(self, x, y):
sel... | [
"finfou@gmail.com"
] | finfou@gmail.com |
c08056d18d4732a3aa0f499f8c32cc258ca6d053 | f5ac2542ea4cba357b6224c053e91ae864e0610f | /iris_estimator/utils.py | 1bc3f6e7ceb277a08c38eba6b2d41af4628b29b6 | [] | no_license | tonylibing/tfestimator | 492f0eb4909f2106d05284e4c4b324fc176374b2 | 1b083820b3c88f0ebb8171ed40d28073d6ff43b9 | refs/heads/master | 2023-03-21T07:19:20.012206 | 2020-10-16T08:02:04 | 2020-10-16T08:02:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,158 | py | # -*-coding: utf-8-*-
# Author : Littlely
# FileName : utils.py
# Description:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import abc
import six
import logging
from tensorflow.contrib.saved_model.python.saved_model import reader
from tensorflow.... | [
"2473134393@qq.com"
] | 2473134393@qq.com |
78baf2a896b614f96b9d6e4e8e6b222c12551547 | bfc477f64528bda4f13d2541f38e4e8b879a8d4f | /one_month/07day/work/09-判断奇偶数.py | 1d9444e37476510a5b2177e4574cb65777bfee7e | [] | no_license | 945153590/first_codes | fa3cb6c71c2c4591789df0194b44fc96dee9f443 | ad431740fbd0bc0107e1ae7396d0bf39f81a384d | refs/heads/master | 2020-03-22T15:30:16.201038 | 2018-09-06T00:58:33 | 2018-09-06T01:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | a = int(input('请输入一个数字:'))
if a%2 == 0:
print('我是偶数')
else:
print('我是奇数')
| [
"945153590@qq.com"
] | 945153590@qq.com |
382fe25bc8201c96508d4f5af3cf37e14838ac3a | 881db1d02e39223e6320bc19da950f997b4b1545 | /apps/hotdeal/models.py | 91a30029c6edb3bfe01e726ebaa3f3ff6d761586 | [] | no_license | ds-tothemoon/wantdeal-crawling | b575b8469a0d841a9ce0a07b1a7a882b57bc602c | 8d257aa344dc8fdb6aae974a55e4fbce968d3971 | refs/heads/master | 2023-02-09T18:33:10.986333 | 2020-12-31T04:48:42 | 2020-12-31T04:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | from django.db import models
class HotDeal(models.Model):
site_post_id = models.IntegerField(unique=True, blank=True, null=True)
site = models.CharField('사이트',max_length=255, blank=True, null=True)
title = models.CharField('제목',max_length=255, blank=True, null=True)
category = models.CharField('카테고리',m... | [
"mmdsds@u.sogang.ac.kr"
] | mmdsds@u.sogang.ac.kr |
7427cb112c14b466eb4d2092abdf6f8f6059d08f | 78073b175933419fb50b1a7e97fda0c92f67696c | /Chapter-03/code/keyui/lib/send_email.py | ac6eb0b27804e5c0a07d048f52c7ad1b0d7d487b | [] | no_license | yueweiw/python-test-dev | baeefffefd0564db25339ea7258b33b1673f1a5b | 05a70f350d58bd5efd3f4fa963035faa0004cc09 | refs/heads/master | 2023-07-02T09:06:04.797797 | 2021-08-07T00:47:53 | 2021-08-07T00:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | import os
import smtplib
from email.header import Header
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEApplication
from email.mime.text import MIMEText
from .log_config import get_logger
from .read_config import readConfig
_mylogger = get_logger('send_mail')
mailto_list = read... | [
"260137162@qq.com"
] | 260137162@qq.com |
0a5097054cb54b982ff61d0b09a2de99fa6086e9 | a86b732e65530ca74487e006994df75db8321b19 | /.venv/bin/easy_install | d93767c6e1e13a1496ae2d1702a5c54f411a8721 | [] | no_license | imudiand/coffee | fe5babc3479aea3e039895a8aa3d9650fdea88ea | c0a4902e167ee5f8b72d8ab8819d904662ab33ac | refs/heads/master | 2021-01-23T05:24:14.828719 | 2017-03-27T07:01:38 | 2017-03-27T07:01:38 | 86,301,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/home/himudianda/Code/pourkarma/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"harshit.imudianda@gmail.com"
] | harshit.imudianda@gmail.com | |
3be39b5fe4dd419e200b224263af3c62fdc0ab08 | 5fa129728be401ac437ea29ce851d603dd884d40 | /amazon_from_space/experiments/simple_vgg/submit.py | 980209affb34e26234e1cc507f38ea9d47970f10 | [] | no_license | csmfindling/kaggle | 343b6be155423b4b5d6b539e45b91d86f5f3dce5 | 5260488128e4d1fc3265b6794232588598c9f090 | refs/heads/master | 2021-05-09T21:50:09.943758 | 2018-02-06T17:36:07 | 2018-02-06T17:36:07 | 118,736,590 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | import sys
from vgg_16 import get_model, build_model
from theano import tensor, function, config
import lasagne
from fuel.streams import ServerDataStream
import numpy
import pickle
from config import basepath
submit_stream = ServerDataStream(('features', 'image_name'), produces_examples=False)
# tensor
X = tensor.fte... | [
"charles.findling@gmail.com"
] | charles.findling@gmail.com |
e6e189cb558812c531ad1716c7146ef83fc9e95e | 85d90c0bd78b8bb37f8dfd2e8a93b5f43a34e100 | /scripts/analysis/bag/plot_ttm_performance.py | d59533fa56ad459f43306ca5bef1d85ee8bde2ab | [] | no_license | tsizemo2/flymad | 61a85b1bb9eda9692e1ba0ca2545d7cf4da7f562 | 2c484df1244549da52f49ffedc894d435c809d34 | refs/heads/master | 2022-04-27T18:29:46.953644 | 2015-04-09T09:54:08 | 2015-04-09T09:54:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,305 | py | import sys
import json
import math
import os.path
import collections
import cPickle
import glob
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import roslib; roslib.load_manifest('flymad')
import flymad.madplot as madplot
Err = collections.namedtuple('Err', 'err dt_thisfly dt_ttm')
Target = c... | [
"john.stowers@gmail.com"
] | john.stowers@gmail.com |
0bd87328647ac320d4cd30c64aa2ba244f533733 | 2e0a75c2b277c6e36838fe5410ab54c897a9d952 | /train_xception.py | da7652769cfcf49d03ea095f40ab18e24e261702 | [] | no_license | msakarvadia/TFrecords- | 4a4f30cabfe4794ce2c85d621b399ab488da7426 | f5c3a413a079df366adf63d55ba484fa8ab831f3 | refs/heads/master | 2022-12-19T05:56:14.177044 | 2020-09-28T03:26:14 | 2020-09-28T03:26:14 | 299,161,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | import tensorflow as tf
from functools import partial
import matplotlib.pyplot as plt
try:
tpu = tf.distribute.cluster_resolver.TPUClusterResolver()
print("Device:", tpu.master())
tf.config.experimental_connect_to_cluster(tpu)
tf.tpu.experimental.initialize_tpu_system(tpu)
strategy = tf.distribute.... | [
"mansi.sakarvadia@gmail.com"
] | mansi.sakarvadia@gmail.com |
bd41f792944b8b6c00855931c0ca64dcf053e71c | 4ddd4a5f7361ded2c6582c6f132b996e8ead3998 | /controle/migrations/0003_auto_20180605_2344.py | 874399f1adb9c265dac280d65b5eb9e0c01817d4 | [] | no_license | welttonsantos/django-biblioteca | e9eff96d72787ec283189d64d15e265c5a2b1fe7 | 873bee1c880c055376054a2cc5a4d0e90581ad16 | refs/heads/master | 2020-03-26T22:43:20.938094 | 2018-08-21T00:08:21 | 2018-08-21T00:08:21 | 145,482,259 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # Generated by Django 2.0.4 on 2018-06-05 23:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('controle', '0002_auto_20180605_2228'),
]
operations = [
migrations.RenameField(
model_name='cliente',
old_name='CPF_cliente'... | [
"welttonsantos2009@gmail.com"
] | welttonsantos2009@gmail.com |
ce71225f3eda6053f680a0c9e7c4f22bac2e8596 | 4a532f64adb8d1ebc8a529a5d56c47f61a3fd680 | /cgi-bin/example | 47984e11d78db501772eb810bfe4826d13e13b6c | [] | no_license | HuangXiaohan/Server_projet | 05c34373d7827ec8c03b9a15e8ef9a6e663ff9d9 | b3b9a3510072ae71faa78bf066b76a921819598b | refs/heads/master | 2020-09-11T07:12:07.591698 | 2016-09-01T21:39:48 | 2016-09-01T21:39:48 | 67,076,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | #!/usr/bin/env python
import os
header = 'Content-Type:text/html\n\n'
form = os.environ["QUERY_STRING"]
username = form.split("&")[0].split("=")[1]
whattodo = form.split("&")[1].split("=")[1]
print "<html>"
print "<head>"
print "<title>Doc. Produit par un CGI</title>"
print "</head>"
print "<body>"
print "<h2>CGI Sc... | [
"stephanie1028han@gmail.com"
] | stephanie1028han@gmail.com | |
fff729bb9d54ea5cfc094327904b3a288a0d004e | da2e582a2ce3b25d6102d891050550f90cd1c255 | /web_service/CentralVisualizerService.py | ebe23327c551894e6e8dbefff84cbd073ecf67e1 | [
"MIT"
] | permissive | harshalpatil199529/Network-Visualizer | 9e4432bda196a04ca3aa1f8ccd1c3439c558a8f4 | fc9d14c3c829eb3b645e05bf7c1a81d6d81188a3 | refs/heads/master | 2020-03-27T04:08:02.488901 | 2018-04-09T15:14:52 | 2018-04-09T15:14:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,894 | py | #!/usr/bin/env python
import time, json, sys, logging
from datetime import datetime
from flask import Flask, make_response, render_template, request
from pymongo import MongoClient
class CentralVisualizerService(object):
def __init__(self,config_dict):
_mc = MongoClient()
_ipopdb = _mc[config_dict... | [
"kcratie@users.noreply.github.com"
] | kcratie@users.noreply.github.com |
3603674231af86631210a837cbefa841d37ed8b0 | 95050b0846038887fb632b95300d439ccbd3f96e | /Martinez_1D_Euler/Runge_Kutta_Third_Order_np3.py | 91438a89608a09602f4d303430b811bf7d620384 | [] | no_license | lgmartinez/AeroPython-studentprojects | 3d53407042a0f0cd69903ae1bb5f0826dc6642bb | 6469189565605264e53653db501097b846056539 | refs/heads/master | 2021-01-18T08:25:44.244554 | 2015-05-08T15:37:13 | 2015-05-08T15:37:13 | 35,285,807 | 0 | 0 | null | 2015-05-08T15:07:34 | 2015-05-08T15:07:34 | null | UTF-8 | Python | false | false | 1,615 | py | import numpy
#---------------------------------------------------
# ----------------Stage 1 Runge Kutta---------------
def get_Qrk_stage1(Q_rk, ncell, rk3, np, dt, residual):
Qrk1 = numpy.zeros((rk3,np, ncell), dtype=float)
for i in range(ncell):
for iv in range(rk3):
for k in range(np):
Qrk1[... | [
"lgmartinez1@gwu.edu"
] | lgmartinez1@gwu.edu |
3d11271b7ad12e1c3aa9d06aef923626c99c4af8 | 9b62f23a0542077c16d9d283eaeefb69a84fd0e5 | /easy_print/__init__.py | 49d1eeabf415f2ce8a0a03b7f608ecfca6c6a5af | [
"MIT"
] | permissive | dsaiztc/easy_print | fdce9b9dd1832457cb606968c2f870eebb254f6e | a484028814a892f859092c3a0c43966dbb4aca44 | refs/heads/master | 2021-01-20T22:11:51.921302 | 2016-08-01T11:10:25 | 2016-08-01T11:10:25 | 64,545,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | # -*- coding: utf-8 -*-
from sys import stdout
# http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
colors = {
'header': '\033[95m',
'okblue': '\033[94m',
'okgreen': '\033[92m',
'warning': '\033[93m',
'fail': '\033[91m',
'endc': '\033[0m',
'bold': '\033[1m... | [
"dsaiztc@gmail.com"
] | dsaiztc@gmail.com |
c67c1b23adff4a4fd98d3e0e6847d448831f2288 | 00c9a648f7c41ed321dee21d00f202068f2855a7 | /conlang_data.py | 0d4f969fd9b71d24b59636443fc681b744a69969 | [] | no_license | OlegKorn/conlang_generator | 9403b738effb7eb885647959e3f69ce10cf3e775 | 7da4bc46e032a071e21af9ef146f78161350840e | refs/heads/master | 2020-04-27T14:42:22.746566 | 2019-03-15T13:43:58 | 2019-03-15T13:43:58 | 174,418,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | #prepositions data
PREPOS = [
'at', 'in', 'on', 'upon', 'of',
'with', 'against','among','by'
]
#preffixes data
PREF_TYPES = ['vc', 'cv']
PVOWS = ['a','o']
PCONS = ['r','v','rr','m','ð']
#roots data
ROOT_TYPES = [
'cvvc', 'vcvvc', 'cv', 'cvv', 'vvcv',
'cvcv', 'vcvc', 'ccv', 'vvc', 'vc'
]
RVOWS = ['a','e... | [
"noreply@github.com"
] | OlegKorn.noreply@github.com |
c96d1652b6eb8ad31b695faf3530c1d85aa14f96 | a3c7888591d2851352a1a27774675153aa5363d3 | /cms/settings.py | 7b3f5ef39a1a13ffe998f074c12d0615b3547bbb | [] | no_license | GearL/pika | 7eb804b0119ad902a0a8378fc7b0ce110aca11c3 | f7a292320e12c8bc832f337803535e6d2c1b8d66 | refs/heads/master | 2020-05-23T19:00:04.124131 | 2017-03-20T09:30:44 | 2017-03-20T09:30:44 | 84,781,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #-*- coding: utf-8 -*-
# Settings for cmd
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://goldenlau:goldenlau@127.0.0.1:3306/cms'
RBAC_USE_WHITE = True
WTF_CSRF_SECRET_KEY = 'pikacms@author:goldenlau'
SECRET_KEY = 'pikacms@author:goldenlau'
UPLOAD_FOLDER = 'static/Uploads'
| [
"goldenlau@liuxiangjideMacBook-Pro.local"
] | goldenlau@liuxiangjideMacBook-Pro.local |
74d5923e8dd06b5f7423dba24d5c6582479adf2d | e9379a0184dd10d8fe67ecc019840bf3e97dc95d | /fullsite/admin.py | f2f9e22728f702367ea86bfe28466d95df2a2339 | [] | no_license | jitendraSingh03/Stock_marketing_django_ | 26db6d751711d494e3377e05d0839b9634813d5a | af906146874c986b40d0d459cc37232b313e004b | refs/heads/main | 2023-06-08T23:44:09.871711 | 2021-07-04T13:23:13 | 2021-07-04T13:23:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from .models import Country
# Register your models here.
admin.site.register(Country) | [
"jitendrasikarwar987@gmail.com"
] | jitendrasikarwar987@gmail.com |
ace7a8064fe479519e4ac5cbbe8d0d805d77a34b | c1b30e61bdf6123e64dcc2037c8e1ae86919abb8 | /myapi/myapp/apps.py | aa32124734076b0ce1a8dd151afcf14d0d60d228 | [] | no_license | davidmesquita/project_infog2 | c4fffff0d23696559aba91fedbf74ec1c12cd50b | dd628764396ab07cb353052703917b9e7369124b | refs/heads/master | 2023-02-16T05:44:11.659301 | 2021-01-08T00:50:55 | 2021-01-08T00:50:55 | 327,752,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class RestapiConfig(AppConfig):
name = 'myapp' | [
"devid.mesquita13@gmail.com"
] | devid.mesquita13@gmail.com |
6f4d1a786bd0e3f8878a41e7f66b9b6cc3fc03dc | 66590a3ce7e23ac1315db7f2e2559de315892a6f | /test.py | b0e6c213d013e03628a3f9a397190aaf19b2775b | [] | no_license | nunonamoram/webrtc_extra | d67687f6f2bebb75250c714746f8d19b0c35e68c | c433d62fce72714ad6708a8580e200112505c273 | refs/heads/master | 2023-02-08T00:06:44.293816 | 2020-12-31T02:09:26 | 2020-12-31T02:09:26 | 320,398,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | import speechEmotionRecognition as sp
sp.init()
'''
def predict(frase):
nova_frase = frase + "ola"
return nova_frase
def init():
frase = "ola"
x= predict(frase)
return x
'''
| [
"namoranuno@gmail.com"
] | namoranuno@gmail.com |
2db8a50a90731e26bb11519cc1e9672738fdc3a8 | 4145493f1054fb256cd1fc47659564505d855fa7 | /pychron/core/regression/tests/regression.py | 9e6059c1c7e82f7a0680a9710902c1150ea389b2 | [
"Apache-2.0"
] | permissive | USGSDenverPychron/pychron | 6500a4b57fb55ad056ef565ef0d732a0cec550a5 | 0fd7383631789dbe81f3218c00eb3a0aeec31f43 | refs/heads/main | 2023-04-15T04:16:06.150392 | 2022-02-12T14:19:11 | 2022-02-12T14:19:11 | 444,606,749 | 0 | 0 | Apache-2.0 | 2022-01-05T00:28:39 | 2022-01-05T00:28:38 | null | UTF-8 | Python | false | false | 14,634 | py | # ===============================================================================
# Copyright 2012 Jake Ross
#
# 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.