blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9aeabf6744ed3a9ac5a1df44c5287b764fe258ac | 114d1ca95de41c3d1ae5aabeddcd5054b327973b | /socket_programs/client-google.py | 55126e853f68d5dbd82ce80009526dc1bcdd8541 | [] | no_license | sambapython/batch28_1 | 7e134ac0166f916ece16dc81f162e5c51af2d9f8 | ccd7ba382ecd148afad8d29c09839f43e6bc8c23 | refs/heads/master | 2021-01-21T19:09:03.026169 | 2017-06-25T07:55:44 | 2017-06-25T07:55:44 | 92,122,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import socket
try:
s=socket.socket()
host="www.google.com"
port=8888#443#80
s.connect((host,port))
print "connected successfully!!!"
except Exception as err:
print err
finally:
s.close() | [
"sambapython@gmail.com"
] | sambapython@gmail.com |
255899d627252f49a4ec7107aa90f27ae13ec583 | 41c004dfda3ebc92fba598a5ff9a219455fab50f | /tests/add_dummy_vertices_test.py | 56a7c46067ed9cb20a33584b8d7f5e26d74bca94 | [] | no_license | konstantin1998/graphRendering | 738686c773c7d4bde9ca359f99542c31fbb3601e | acee2e9a10c20f0069f781496108c0d5496b859d | refs/heads/master | 2023-04-04T08:15:45.310626 | 2021-04-11T09:13:22 | 2021-04-11T09:13:22 | 356,820,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | from src.Node import Node
from src.add_dummy_vert import needs_dummy_vert, split_edge, assign_positions_for_dummy_vertices, \
add_dummy_vertices_and_edges
from src.assign_layer_positions import assign_layer_positions, group_by_levels
from src.assign_layers import assign_layers
from src.extract_nodes import extract_... | [
"galperin.15@yandex.ru"
] | galperin.15@yandex.ru |
57ebd085c128e22baf91b628599a8ce78537a5fa | 611ee093d73056012d97e8fcb9b506e8a8f40f9b | /examples/ROIExamples.py | 20c45e6b8d39f7222421d7fc2ca457bba40150f6 | [
"MIT"
] | permissive | LBeghini/GraphManipulation.py | b64978f128d2bba20f4aeb30ab7c681e35e0d5d6 | 74705eb19c241a203adb133116617287250578ca | refs/heads/master | 2023-04-22T18:46:23.710379 | 2021-05-09T23:28:01 | 2021-05-09T23:28:01 | 365,047,596 | 0 | 0 | null | 2021-05-08T03:06:26 | 2021-05-06T22:02:55 | Python | UTF-8 | Python | false | false | 4,653 | py | # -*- coding: utf-8 -*-
"""
Demonstrates a variety of uses for ROI. This class provides a user-adjustable
region of interest marker. It is possible to customize the layout and
function of the scale/rotate handles in very flexible ways.
"""
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
import numpy as ... | [
"45342038+Fabriciooml@users.noreply.github.com"
] | 45342038+Fabriciooml@users.noreply.github.com |
54f703e7aec4643c9a27e2009dd4269bbfb9a0ce | 10bbf25202548fc0bb30fb1d839f9a4177000109 | /Mixly0.998_WIN(7.9)/esp32Build/lib/workSpace/sdcard.py | 994bed6d09161d02847cbd928baaa4dbcb3d40bf | [] | no_license | sunnywirelss/sunnymaker-level1 | f4bdf0943682afbd38dd7fe7d50b5451da44a754 | 0550c8ffe268bdae26f4fdac4dfd55d375497a96 | refs/heads/master | 2020-05-23T12:56:26.619093 | 2019-05-15T07:20:59 | 2019-05-15T07:20:59 | 186,767,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,535 | py | """
MicroPython driver for SD cards using SPI bus.
Requires an SPI bus and a CS pin. Provides readblocks and writeblocks
methods so the device can be mounted as a filesystem.
Example usage on pyboard:
import pyb, sdcard, os
sd = sdcard.SDCard(pyb.SPI(1), pyb.Pin.board.X5)
pyb.mount(sd, '/sd2')
os.li... | [
"3012156@qq.com"
] | 3012156@qq.com |
490c55ad131c7bd30c398d6e7252982230da5e41 | 80e82e68b726ab5a4519302a91af59492778d7ae | /OldStory/RealWorld/GenerateCorrectData.py | e945093eb50a23b03fe1635f6bceea8b291b24c6 | [] | no_license | TramsWang/StatisticalAnomalyDetection | d740277379280cb7c74ecdfdf7415e3873069dea | eeef6419c528db8b60cf1101769bc17e199ca0ae | refs/heads/master | 2022-03-27T07:15:14.569376 | 2019-12-09T12:34:23 | 2019-12-09T12:34:23 | 99,788,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import csv
import os
input_dir = "Old"
output_dir = "Correct"
if not os.path.exists(os.path.abspath(output_dir)):
os.makedirs(os.path.abspath(output_dir))
for i in range(325):
ifile = open("%s/%d.csv" % (input_dir, i), 'r')
ofile = open("%s/%d.csv" % (output_dir, i), 'w')
reader = csv.reader(ifile)
... | [
"babyfish92@163.com"
] | babyfish92@163.com |
2a598e63a93ed833b55c338b7cacf16e8708254b | 8e019d254b80df7a547d5a5b5096d79b68a75bc5 | /API-test/util/operation_cookie.py | f46c013ec79186f318b58d7a3b59ccc74dbef41f | [] | no_license | qiujiamin/pyprotest | 31ba39430a1b51e71439454ccaa179c8fab56afe | e8018c05c7f2c6243a34dba12e860a895e110b2b | refs/heads/master | 2020-06-25T17:02:50.074517 | 2019-07-29T03:23:23 | 2019-07-29T03:23:23 | 199,372,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
import requests
url = "http://m.imooc.com/passport/user/login"
data={
"username":"15019498582",
"password":"ssbx521qjm",
"verify":"",
"referer":"https://m.imooc.com"
}
res = requests.post(url,data).json()
response_url = res['data']['url'][0]
response_url = ... | [
"jiamin721@163.com"
] | jiamin721@163.com |
ef1445c1288bf27519a6da5cb0f747e4d2d35ead | 754f7519b1c2f5313f2f4a2c219179c99451f0aa | /network/migrations/0019_remove_tweet_imageurl.py | 7583ed064ad845d1f668378bf86871d6395a98b6 | [] | no_license | idoyudha/network | 3fe79f0a923de9f63d4c698c5b6e7f4896148cb3 | bba9fe1ab1a5e8dbd9cff273949c6dfbabeefeff | refs/heads/master | 2023-03-09T11:30:59.128079 | 2021-02-28T07:02:18 | 2021-02-28T07:02:18 | 338,763,254 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # Generated by Django 3.1.5 on 2021-02-27 15:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('network', '0018_tweet_imageurl'),
]
operations = [
migrations.RemoveField(
model_name='tweet',
name='imageURL',
),
... | [
"idowidya.yudhatama@gmail.com"
] | idowidya.yudhatama@gmail.com |
47e1df725db295cd69be609dbdb43ecad4f21dce | 54aa2850f0ae5bee170e17f32ff74c46c6377e5a | /node_modules/ref/build/config.gypi | 50f93a3746dee067a7dd668a2b70e19ca52ff55a | [
"MIT"
] | permissive | yammigo/ElectronQQLogin | 034af4446398bb048f862dfd3bedb48ff2e0cb4e | d4f88e541d67c6cc651da8c728fa11e2a6e3cb31 | refs/heads/master | 2022-12-05T18:35:47.514345 | 2020-08-28T02:08:55 | 2020-08-28T02:08:55 | 290,927,622 | 0 | 0 | null | 2020-08-28T02:07:25 | 2020-08-28T02:07:24 | null | UTF-8 | Python | false | false | 2,435 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v141",
"msvs_windows_target_platform_version": "10.0.17134.0"
},
"variables"... | [
"starts_2000@qq.com"
] | starts_2000@qq.com |
44d579afa6e5e9c5333c88a3f31ec6230248c76b | b55a611912441a2cfdcfff228d1826acf4b41a1b | /Rind Ver 2.0/SE12_Visual/Creat_Line.py | f2addf5ca37d076b8242eea55265391ebe876309 | [] | no_license | AAAHQZ/2018SE_Group12 | 2439f60dc7bd6a7817f26d7bb51072664112bca2 | 07501fc4708a934a44c2d4e5fd502057322ef4b1 | refs/heads/master | 2021-06-05T18:50:22.919447 | 2020-02-27T04:52:18 | 2020-02-27T04:52:18 | 154,495,888 | 8 | 4 | null | 2019-03-07T06:29:31 | 2018-10-24T12:19:25 | Python | UTF-8 | Python | false | false | 2,820 | py | from pyecharts import Line
import sys
sys.path.append("..")
from SE12_Crawler import *
def GetData(year1, year2, year3):
year1_str=str(year1)
year2_str=str(year2)
year3_str=str(year3)
total_boxoffice1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
total_boxoffice2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
... | [
"huangquanzhe@126.com"
] | huangquanzhe@126.com |
02853a481890b16a00c4e706555ed16a9d1d4bf0 | d8f5f04ffb9e6748649cc6af47f4c02d30a6057e | /lib/fast_rcnn/train.py | bb283a41381e49e290818b012869d980b6caf8d9 | [] | no_license | taey16/faster_rcnn_online | 8b957a38ebf182ee91654e0a3bacfd86960b935d | 33a0e5208818a4c09a31bbf5c5ec5e2f18ac1d20 | refs/heads/master | 2020-04-05T14:07:41.777225 | 2016-05-20T05:26:13 | 2016-05-20T05:26:13 | 50,565,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,904 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Train a Fast R-CNN network."""
import caffe
from fast_rcnn.config i... | [
"taey1600@gmail.com"
] | taey1600@gmail.com |
7dad892ddde8e941fd9311f9a56d7fa4e01acfc6 | 29b7ffefd538dd37bd047697f51c42c3e639492e | /blog/migrations/0001_initial.py | a8a40beb0803d381aabdad9db51d8e87564da0e8 | [] | no_license | 9groove9/myblog-project | 89f2b739fd3a440b4bc689609db19e4f1c534ba0 | 6ffc6a6f93a5121fb360b6639739732471114a6d | refs/heads/main | 2023-03-07T13:37:16.026202 | 2021-02-19T20:59:13 | 2021-02-19T20:59:13 | 340,437,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # Generated by Django 3.1.6 on 2021-02-19 20:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(aut... | [
"ztmpythonlearn@gmail.com"
] | ztmpythonlearn@gmail.com |
20038231742d8091d0fee588d16f9075d9b1651a | 7e516f4871cc06d9ceef6d373717667cde46c3b9 | /stubs/uasyncio/stream.py | 2e64de44ec58dc689882bd1804e15b6cbb871c12 | [
"MIT",
"Apache-2.0"
] | permissive | esbullington/cct | 1b39fbfbade97d5ff5346f3037e824c1dc851acd | 1a89d346c76236a9710177a208730584ecb65c02 | refs/heads/master | 2023-03-08T19:15:14.228556 | 2021-02-25T18:27:00 | 2021-02-25T18:27:00 | 330,801,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | """
Module: 'uasyncio.stream' on micropython-esp32-1.13-274
"""
# MCU: {'ver': '1.13-274', 'port': 'esp32', 'arch': 'xtensawin', 'sysname': 'esp32', 'release': '1.13.0', 'name': 'micropython', 'mpy': 10757, 'version': '1.13.0', 'machine': 'ESP32 module with ESP32', 'build': '274', 'nodename': 'esp32', 'platform': 'esp3... | [
"eric.s.bullington@gmail.com"
] | eric.s.bullington@gmail.com |
4d31ad17b19df8ec73078f9c78f0d6f23f72b237 | 53ad8ad31c68536d25ceb98407d036bcf0536bec | /blog_project/venv/Scripts/easy_install-3.6-script.py | 4ed5e1089eac800ee285e12abd919d0370b42ed4 | [] | no_license | huolang1211/blog | a60c4c1fe8ac355155090aab06dbc407a4bd98bd | 2a09612e9c2d8322007fa312fb46b49f6646e9c2 | refs/heads/master | 2023-01-14T17:30:23.035174 | 2020-11-24T02:28:55 | 2020-11-24T02:28:55 | 315,465,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | #!D:\untitled\blog_project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"873049788@qq.com"
] | 873049788@qq.com |
6e933fb4c9a2ab94098a49f7970a2c8dde5794e2 | a916fc848c60de59c04ba39e6ad682ba49225c27 | /shop/settings.py | 5be881fa498f0ab29afa5dd0dd2cc0a9a2b1a723 | [] | no_license | Insake/osteriax | 881a1f7ed18d3b6f9f0073ec6092c08ed34ef27b | 31212897f1a72f9387ca5eecd2138ba1d0596435 | refs/heads/master | 2023-04-18T08:35:54.140666 | 2021-05-04T15:19:16 | 2021-05-04T15:19:16 | 364,255,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | """
Django settings for shop project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib impo... | [
"Insanbeksake@gmail.com"
] | Insanbeksake@gmail.com |
0f6d571215af68b5ffd6da4577d3a0961e7df0a3 | b6563a1c13c86d554f71389a6fe3e7fde3fc3b8a | /Wmass_direct_measurement_365GeV/Wmass2.py | 91ce9d9abc4f190cb1d85c0573b5da310b3de5f3 | [] | no_license | sofiane-lablack/Stage_M2_GitHub_test | 45092ec42153dd47d6820a64c672b6bac72aa675 | 7d4d24b251dd99b3aef24beaa5f94366277bcc97 | refs/heads/master | 2021-04-15T02:36:46.472308 | 2020-03-22T22:53:28 | 2020-03-22T22:53:28 | 249,287,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,936 | py | ''' Measurement of the W mass from the ee->WW decay from the direct reconstruction of the invariant
masses.
First step : compute the jets energy from the directions
Second step : find the jet pairs (chi2 minimization)
Third step : reconstructed invariant mass distribution and angle distribution
Save everything in ... | [
"lablack.sofiane@hotmail.fr"
] | lablack.sofiane@hotmail.fr |
c59f4764cbfb8fbf791c758771b944e89cd8880f | 93dd86c8d0eceaee8276a5cafe8c0bfee2a315d3 | /python/paddle/distributed/fleet/runtime/runtime_base.py | 2e8bacfbc3b1ded58e63e8d9e93764a0c0090b91 | [
"Apache-2.0"
] | permissive | hutuxian/Paddle | f8b7693bccc6d56887164c1de0b6f6e91cffaae8 | a1b640bc66a5cc9583de503e7406aeba67565e8d | refs/heads/develop | 2023-08-29T19:36:45.382455 | 2020-09-09T09:19:07 | 2020-09-09T09:19:07 | 164,977,763 | 8 | 27 | Apache-2.0 | 2023-06-16T09:47:39 | 2019-01-10T02:50:31 | Python | UTF-8 | Python | false | false | 1,078 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | noreply@github.com |
4bd162536807c2b7995e0d578c83d3583163fbd6 | 6dd98781c61c3e5022beeb144daec2499a8f79ac | /scraper.py | 85d76c39e3df7a3466639af26568b2683a4927cd | [] | no_license | konelson/konelson-mta-project | 9c3a3586b7568fe672b96d9ff4c9e721fa0837ee | 47f1703fa0e4ff1c89cccab17eaf14cf431a0e86 | refs/heads/master | 2020-03-22T10:28:36.344761 | 2018-07-09T20:17:17 | 2018-07-09T20:17:17 | 139,905,252 | 0 | 1 | null | 2018-07-09T13:43:45 | 2018-07-05T22:07:56 | Jupyter Notebook | UTF-8 | Python | false | false | 607 | py | from urllib.request import Request, urlopen
from bs4 import BeautifulSoup as bs4
# settings to initialize BeautifulSoup and open the website
site = 'http://startupguide.nyc/'
header = {'User-Agent': 'Mozilla/5.0'}
req = Request(site,headers = header)
page = urlopen(req)
# read the site and store all 'a' tags
soup = b... | [
"34700646+konelson@users.noreply.github.com"
] | 34700646+konelson@users.noreply.github.com |
9f150c61f67ff82f73226339ca249facc4a5b0e0 | a41a6fc6e3a48595b038b9b034ded147f4f8802a | /Python/OOP/DECORATORS/0.Even Parameters.py | 7ae7b86624c2a992cc2c2783be03054bca8374e6 | [] | no_license | SveetH/SoftUni | 329b0b6e40b9fb768b676262b89b1dcfcc908779 | fa7d2f0b1c13e9b8460b6c7137b9ee8751a76003 | refs/heads/main | 2023-07-09T19:07:02.314828 | 2021-08-23T13:30:07 | 2021-08-23T13:30:07 | 317,777,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | def even_parameters(function):
def wrapper(*args):
for el in args:
if type(el) == int and el % 2 == 0:
continue
return "Please use only even numbers!"
return function(*args)
return wrapper
@even_parameters
def add(a, b):
return a + b
... | [
"noreply@github.com"
] | noreply@github.com |
ba177bad4f52ef36d45773777f5de56fa4add723 | 99ca7d7c1124c07b02879f807137ebaae708563a | /BasicAssignemnt/PracticeExamples.py | 757eacfc215b8994f5c6eeacb140c4d7c2ed6464 | [] | no_license | SShital/PythonAssignments | 2f5706deb4b352a9ea4ea56c5d499e50d6a92375 | 4c09e0b9f9618fdcc32750cf514df7fb983fdd77 | refs/heads/master | 2020-04-19T10:36:39.492874 | 2019-02-01T12:06:33 | 2019-02-01T12:06:33 | 168,145,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | """
#Basic list
------------------------------------------------
my_list=[] #empty list
my_list1 = [1, 2, 3]
print my_list1
my_list2 = ["Hello", 1,4, "hiiii"]
print my_list2
--------------------------------
#***Nested list*****
--------------------------------------------
my_list3 = ["mouse", [8, 4, 6], ['a']]
my_list4... | [
"shital.raut@harbingergroup.com"
] | shital.raut@harbingergroup.com |
a59798cc8945d4ce49e7159d0a1b836f68f13dc0 | 381cb785bde3cd261a1b6537c9330b2c02603ace | /Code/ppo-modularized/common.py | b2e205dcfb3bd4da6b9c57617b5222b5e9eb11cd | [] | no_license | LevineZhou/Deep-Reinforcement-Learning-DRL- | 07ec0d32d9fc4fb2cffd74c2a3ff9c05250b5b65 | 2f733862f344a5f1c186b1925cdd760d8c4587df | refs/heads/master | 2021-04-03T01:51:33.876810 | 2018-10-12T22:54:54 | 2018-10-12T22:54:54 | 124,354,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,222 | py | ## common utilities for deep reinforcement learning
import numpy as np
import torch
import time
from torch.distributions import Normal
from torch import Tensor
def get_reward_to_go(rewards:list, mask_n, gamma:float):
"""
Get reward to go for each timestep. Assume the rewards given are within one trajectory.
... | [
"noreply@github.com"
] | noreply@github.com |
98e4d8bc25567926017f664b32295fec1b5026f4 | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/storage/StorageLocalDiskConfigDef.py | d35bd2a160c55172b79f7ccacdd315218f552866 | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,393 | py | """This module contains the general information for StorageLocalDiskConfigDef ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class StorageLocalDiskConfigDefConsts():
FLEX_FLASH_RAIDREPORTING_STAT... | [
"test@cisco.com"
] | test@cisco.com |
c0161c62d686a01caae3fc2484079a133e848245 | 09f0d09032d1f47fb367a40a812b8773084ea970 | /catkin_ws/devel/lib/python2.7/dist-packages/fh_desc/__init__.py | d14a41243ed12d64e0c9517b844e10d950709fef | [] | no_license | AMahrous/Shell_application_project | 7f12a6907c0e0b9111a140e3015f32236853c4f0 | dfbeef6748487bf63d0d7b29131d09ac2cdb3bbd | refs/heads/main | 2023-08-25T00:29:26.304907 | 2021-10-16T11:54:08 | 2021-10-16T11:54:08 | 417,812,421 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/mahrous/catkin_ws/src/shadow_robot_smart_... | [
"a.mahrousmahmoud@gmail.com"
] | a.mahrousmahmoud@gmail.com |
fe2082eaf406a2b33d53cfd1ef5081a117d3bee9 | af822d03681f2965a3c3a0a1d1ef5a8c5e652ef8 | /project-macquarie.py | 3e4f05c5e28dc47f3fe3e93da4342a1851e547f1 | [] | no_license | thekomx/Project-Macquarie | 45d2fc99146819c20c23be80c3c0d1cd0181bff3 | c84212a2a44e483441a81ae76ca39e21a8694dea | refs/heads/main | 2023-02-12T14:55:03.962611 | 2021-01-14T15:43:59 | 2021-01-14T15:43:59 | 323,203,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | import streamlit as st
from src import home_page, chart_page
from src.markdown_module import get_markdown
#--- Available Contents
page_home = 'HOME'
page_chart = 'Charts'
page_morningstar = 'MorningStar Dashboard'
page_about = 'About'
pages = (page_home, page_chart, page_morningstar, page_about)
def main():
#--- Ad... | [
"thekom@hotmail.com"
] | thekom@hotmail.com |
7c142a4451089570c92e22bf2bc93355742883ad | 7721ab79bd274bd2edd19888abe9bd3f24ad8722 | /Flask/loops/application.py | 749f79beca057001bb9311f99b0aa6e4c94b4977 | [] | no_license | bipinbohara/WEB | 041ad85139eddb2938a669ca298bea9b2562f183 | d774a9eac977a9ee281cbad405f6ed354ce946d7 | refs/heads/master | 2020-07-13T09:43:06.232756 | 2020-06-27T04:35:31 | 2020-06-27T04:35:31 | 205,058,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from flask import Flask, render_template
app = Flask(__name__, template_folder = '../loops')
@app.route("/")
def index():
names = ["Alice", "Bob", "Charlie","David"]
return render_template("index.html", names = names)
if __name__=="__main__":
app.run(debug = True)
| [
"bipinbohara90@gmail.com"
] | bipinbohara90@gmail.com |
d3853fcd1cd5bf521b3341243df31b4d683f81b7 | 0642334c9b3319de5bff8568de3dd8b16aef3b90 | /xpulearn/layers/activation.py | 44ed9fd929a283c76449407bbd5b6c752f3dc077 | [] | no_license | ysk24ok/xpu-learn | 85e7504383d6ad0534f57967304ebde923072217 | 48d9918b0fd20dae906937bc1d2c66bac6cd161f | refs/heads/master | 2021-06-10T23:18:36.794791 | 2018-09-04T08:44:04 | 2018-09-04T08:44:04 | 145,984,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | from .base import Layer
from .. import xp
from ..functions import clip_before_exp
class Activation(Layer):
def __init__(self, activation):
super(Activation, self).__init__()
if activation == 'linear':
self.activation = LinearActivation()
elif activation == 'sigmoid':
... | [
"yusuke.nishioka.0713@gmail.com"
] | yusuke.nishioka.0713@gmail.com |
48076f210e09c1d9b1f27ddf11c4df678540506c | 4d38108af0a6b079407fc68c468ed3e5610493b3 | /server/users/migrations/0002_auto_20200706_1505.py | d4458499f6b1347a5ef2a6c49350853d44cb44cb | [] | no_license | Zhihao-de/kh_community | b8cfa640250b1be1ff5fdf9bb29690e8e4a73cb7 | d0b7fa82f923193581c9953874696ad829ec79a3 | refs/heads/main | 2023-03-14T20:11:00.480352 | 2021-03-12T09:50:18 | 2021-03-12T09:50:18 | 341,066,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | # Generated by Django 3.0.3 on 2020-07-06 07:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='useraccountsmodel... | [
"lizhihao@iscas.ac.cn"
] | lizhihao@iscas.ac.cn |
8188cfc9148cac57fa8da8eaaa96f14f73b9c2c9 | 9bd75ca966e94f3da4d7fa47aa261e88718f749c | /rpc_server.py | fe0571a256bd9b478f58681f0aef88f2b17cae12 | [] | no_license | andys-cloud/rabbitmqexamps | 1416c162d279c763635db13a0ba92d90bac7e186 | 69af3daf16302be398b99a7a6e6622a8f6319b90 | refs/heads/master | 2020-12-24T15:40:04.095771 | 2014-11-19T15:12:39 | 2014-11-19T15:12:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | '''
Created on 2014-11-19
@author: yunling
'''
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters("localhost"))
channel=connection.channel()
channel.queue_declare(queue="rpc_queue")
def fib(n):
if n == 0:
return 0
elif n == 1 :
return 1
else :
return fib(... | [
"yunlingAndy@users.noreply.github.com"
] | yunlingAndy@users.noreply.github.com |
d24ca982c965aff4fa18928d2e74a6e984a804ca | 5e2a6c7d11481c4994e0e20f6cef3dad33969601 | /Automated_ECU_Test_Framework/Libs/com/can/xcp.py | 7abd6d771797445b2dada95cd7334b164165bdfc | [] | no_license | toolsh/PythonProjects | 5cc1401b4704d60b942a8ae2c581a6b22ad5b987 | 46477aea081d797b00187e8cb3719e7a01f9625a | refs/heads/master | 2023-03-18T15:23:01.719347 | 2019-02-13T09:19:21 | 2019-02-13T09:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,127 | py | '''
====================================================================
Library for working with XCP on CAN
(C) Copyright 2013 Lear Corporation
====================================================================
'''
__author__ = 'Jesus Fidalgo'
__version__ = '1.0.0'
__email__ = 'jfidalgo@lear.com'
'''... | [
"32851286+PradeepSingh-Git@users.noreply.github.com"
] | 32851286+PradeepSingh-Git@users.noreply.github.com |
0af8578f30a04ba90055b2d1e37bb8447efb334b | 8897e5218a5b995a1010b4f0eab38e99a71e9782 | /tekstovni_vmesnik.py | d35145b610aab348ccaf89daf45a7450cc23c2ad | [
"MIT"
] | permissive | brinaribic/projektna_naloga | 5c0cf1a2668cc264ed12b481909f12350cede2c2 | 53a3677916bce840d71d44b3ad907ad1fab4de6f | refs/heads/master | 2022-12-06T02:01:58.961830 | 2020-08-29T11:35:41 | 2020-08-29T11:35:41 | 289,217,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,395 | py | from datetime import date
from model import Slascicar
LOGO = '''
_______ ___ _______ ______ ___ _ _______ _______ __ _ _______ ______
| || | | _ || | | | | || || || | | || || |
| _____|| | | |_| || _ || |_| || _ || _____|| |_| ||... | [
"brinaribic19@gmail.com"
] | brinaribic19@gmail.com |
4351decb036d8072bdbfcd0c183b01bade4445e7 | 082c6d8f248257c8442bbef7412f9915ac4c33bd | /mlrun/api/api/endpoints/secrets.py | 875ae80681de74dfcb0fc81e1648b26c5a918c41 | [
"Apache-2.0"
] | permissive | eran-nussbaum/mlrun | 24e7db989b4eb03548f127ff26d36f77b1c82250 | 97209b27ccf3daf8f202a1a2bb1b01abd537ad70 | refs/heads/master | 2023-08-26T01:35:02.797712 | 2021-10-21T10:18:24 | 2021-10-21T10:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,928 | py | from http import HTTPStatus
from typing import List
import fastapi
from sqlalchemy.orm import Session
import mlrun.api.api.deps
import mlrun.api.crud
import mlrun.api.utils.auth.verifier
import mlrun.api.utils.singletons.project_member
import mlrun.errors
from mlrun.api import schemas
from mlrun.utils.vault import ad... | [
"noreply@github.com"
] | noreply@github.com |
70e325da3949c956458a0c372fedb2c42aa873c5 | 628574233007517f0fde0b40317a68f6065f37ca | /Python/DjangoProjects/SurveyForm/SurveyForm/settings.py | 1c2cb2f17d14cc900f7c8391c0c603f57f8b5c5e | [] | no_license | carolynyen/DojoAssignments | 5a5d2df904bc2d650f945d09369a1d0ee5a316bc | a06ee21b968357e7bda77542d6a21b664a53136e | refs/heads/master | 2021-01-11T17:54:13.006990 | 2017-04-21T19:42:46 | 2017-04-21T19:42:46 | 79,866,508 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | """
Django settings for SurveyForm project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"whitehawk6888@yahoo.com"
] | whitehawk6888@yahoo.com |
d4cbcfa95fad06e8d14954bfdccb2f13136a60d3 | f30b91db647dca1f77fffa4b7e26b6c6a68abbc6 | /6_kyu/Greatest Common Factor of an Array/python/test_solution.py | 748f17fd9c642882c5538a1f17670cd275df2e8b | [] | no_license | estraviz/codewars | 73caf95519eaac6f34962b8ade543bf4417df5b7 | 5f8685e883cb78381c528a0988f2b5cad6c129c2 | refs/heads/master | 2023-05-13T07:57:43.165290 | 2023-05-08T21:50:39 | 2023-05-08T21:50:39 | 159,744,593 | 10 | 55 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import pytest
from solution import greatest_common_factor
tests = [
([1, 8], 1),
([16, 4, 8], 4),
([46, 14, 20, 88], 2),
([468, 156, 806, 312, 442], 26),
([48, 99, 18], 3),
([32, 96, 120, 80], 8),
([91, 143, 234, 52], 13),
([171, 45, 297, 342], 9),
]
@pytest.mark.parametrize(
"s... | [
"javier.estraviz@gmail.com"
] | javier.estraviz@gmail.com |
806adbe21341eef6b01e1fe731fc872fa7cb112d | 31252d95232aacaee80b5b3d22cf8b66f05d24c6 | /8.AnomalyDetection_RecommenderSystem/machine-learning-ex8/ex8/selectThreshold.py | 49b530847bb4a727357032badf908a9836c3daba | [] | no_license | mrech/MachineLearning_AndrewNg | 54ae44824d5ae53c8faf3f4adeff76935d4f479a | 748a49ece69dae413b78f9de95b3fb483848ee59 | refs/heads/master | 2020-04-24T10:37:57.072292 | 2019-08-20T13:16:50 | 2019-08-20T13:16:50 | 171,899,951 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | # SELECTTHRESHOLD Find the best threshold (epsilon) to use for selecting
# outliers
def selectThreshold(yval, pval):
'''
[bestEpsilon bestF1] = SELECTTHRESHOLD(yval, pval) finds the best
threshold to use for selecting outliers based on the results from a
validation set (pval) and the ground trut... | [
"rivato.morena@gmail.com"
] | rivato.morena@gmail.com |
62c0c6d97ebf6469c69d1e7bc3d48d6490f1495a | 19a2f2091832866592a8a4a79c4648ba7c112776 | /collection/admin.py | a2f9f215b5813c8b956143efdeddd557ab27ac7e | [] | no_license | pierrepas/monSiteDjango | c7d58b2c1ad6c3b25822a53fabc16f3cdb493906 | 9f0530338340e63e57f4ae70cd5ef2cc30004373 | refs/heads/master | 2021-01-11T15:27:08.806379 | 2017-01-29T20:23:48 | 2017-01-29T20:23:48 | 80,346,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py |
from django.contrib import admin
# import your model
from collection.models import Chose
# set up automated slug creation
class ChoseAdmin(admin.ModelAdmin):
model = Chose
list_display = ('nom', 'description',)
prepopulated_fields = {'slug': ('nom',)}
# and register it
admin.site.register(Chose, ChoseAd... | [
"pierrepas@yahoo.fr"
] | pierrepas@yahoo.fr |
da5a3d88ca31dcbf5ec1c210969b0c38fed32ecd | ed648425111d03f45de6d0354b0b2c80085dce6a | /PYCV/chapter7/car_sliding_windows.py | ced05e02891ce1f4cf20e559b5c6612490c0f09c | [] | no_license | CHINAPANDAGZX/PyProject | 71eb65d81ed4cb59aea7f0f96380c050229cedd3 | 640ab5d578973c76b02e46b669fa260335baf8eb | refs/heads/master | 2023-07-08T11:25:49.984658 | 2023-06-29T07:19:28 | 2023-06-29T07:19:28 | 142,262,907 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | import cv2
import numpy as np
from car_detector.detector import car_detector, bow_features
from car_detector.pyramid import pyramid
from car_detector.non_maximum import non_max_suppression_fast as nms
from car_detector.sliding_window import sliding_window
import urllib
def in_range(number, test, thresh=0.2):
return ... | [
"493004728@qq.com"
] | 493004728@qq.com |
4e0849b75a3548a5b1bf0a796423db5b35b4cb11 | 226b82ee851e643a0d1235ac5991c19a8f4cb15a | /tesseract/show_grey.py | d9c78927783708d53c850926e4450a2239efc24e | [] | no_license | liuweier123/BrailleTab | 0b7ee831a2ec3055dd480d5cae8a63374891e2f1 | 8c8d4e6c84f9606a2164e52514fc4772d6539dcf | refs/heads/master | 2020-03-21T08:48:12.373336 | 2016-09-26T17:01:40 | 2016-09-26T17:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import matplotlib.pyplot as plt
import matplotlib.cm as cm
plt.imshow(image_gray, cmap=cm.gray) # 指明 cmap=cm.gray
plt.axis("off") # 去掉坐标轴
plt.show() # 显示图像 | [
"icaiyu0618@gmail.com"
] | icaiyu0618@gmail.com |
436b1d40d931864183e4790ee0b3374e829502cb | be24b5f37823125b2b901c0029175bfb2f25fb0e | /src/homework/homework12/win.py | 7f851ec0cfc578951966aaf3ea0a12716f2bc633 | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-spring-2018-Miguelh1997 | 1bd75c51e72431037a46a1b3079d7695c41920ce | ac4b0405c4070758d0fc07458d4dca8a8a0313de | refs/heads/master | 2021-05-11T09:11:41.887630 | 2018-05-12T03:11:38 | 2018-05-12T03:11:38 | 118,070,058 | 0 | 1 | MIT | 2018-05-12T03:16:17 | 2018-01-19T03:13:02 | Python | UTF-8 | Python | false | false | 874 | py | from tkinter import Tk, Label, Button
from src.homework.homework12.converter import Converter
class Win(Tk):
def __init__(self):
self.miles = Converter()
Tk.__init__(self, None, None)
self.wm_title('Miles to Kilometers converter')
self.button_quit = Button(self,text='Quit', ... | [
"noreply@github.com"
] | noreply@github.com |
583a94b618b96e5744d38335bbb758f418ae1723 | 7dffca52253cbc5bf6f8d1dd2061d1fc233f4ced | /create_mongo_srv_dply.py | a0060298e0750f8a32a1b384fe6cf8df9839fb40 | [] | no_license | Rahees9983/Create_mongo_db_srv_deploy | 8c38117502567f9573452c22c01960ca9dee052e | c8828ea214a2e36dab1372ff664d86753d55ec37 | refs/heads/master | 2020-10-01T18:20:53.954434 | 2019-12-12T12:06:40 | 2019-12-12T12:06:40 | 227,597,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | from os import path
import os
import yaml
import subprocess
from kubernetes import client, config
import time
# creating mongo-namespace namespace
os.system("kubectl create namespace mongo-namespace")
def create_mongo_delploy():
config.load_kube_config()
with open(path.join(path.dirname(__file__), "mydb_de... | [
"noreply@github.com"
] | noreply@github.com |
6fcdafef41b6d2ebcbd63cca3e0e3e887ec4adc4 | 5956bc0159e2c6501c4116f86d8527a3ca8c1bb8 | /gensimAssignment.py | b9ed59fb731f3bbcb72e2ded654b011362289c75 | [] | no_license | hanscjo/Gensim-assignment | 0f47648d65a331383ab8bd58f1244433e2af9d25 | f1f37daaf6c8c40b2813b32a5b79a4f526a2cb2e | refs/heads/main | 2023-04-04T13:47:06.270862 | 2021-04-24T10:39:01 | 2021-04-24T10:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,526 | py | import random
random.seed(123) #Step 1.0
import codecs
import re
from nltk.stem.porter import PorterStemmer
import gensim
f = codecs.open("pg3300.txt", "r", "utf-8") #Step 1.1
#!READ! I have documented the program, my problem-solving and my interpretations in the comments next to each line. Also, I have orga... | [
"noreply@github.com"
] | noreply@github.com |
b5856a92fb5f08c6cc16acb148094a51ccad7109 | 87143713666ccb28a5b5b72ac046ef003835fb02 | /whats_your_name.py | 5e97e60269320133fd20e2336c60849fd56a467f | [] | no_license | zodiacR/hackerrank_python | 3c76f457b697ee0a1bae7e1816f1ec0359f78c9e | 0104c96bf2eb8498981bc384cb87b2035523a4e7 | refs/heads/master | 2021-01-01T18:11:59.500877 | 2015-03-19T01:20:57 | 2015-03-19T01:20:57 | 32,257,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | firstname = raw_input()
lastname = raw_input()
print "Hello %s %s! You just delved into python." % (firstname, lastname)
| [
"eminemhe@163.com"
] | eminemhe@163.com |
6b9d9cb08643c389b3521d474805c579b9985e06 | d6a152b8662af82ec604fa63c5c415dc6b59699b | /aeshin/settings.py | 70a75e24b58f9aa5ff4c1165e6113aeb7a401c45 | [] | no_license | rybesh/aeshin | 7cf433ba93309f49e2ff676c2d4568244f81ee52 | 292867a8b80031cacfce70c67387c656c3cb191b | refs/heads/master | 2023-08-19T00:17:40.042842 | 2023-08-17T17:47:55 | 2023-08-17T17:47:55 | 22,109,808 | 0 | 0 | null | 2023-09-05T14:05:34 | 2014-07-22T15:40:33 | Python | UTF-8 | Python | false | false | 5,121 | py | import os
import environ
from pathlib import Path
from django.db.models.query import QuerySet
# environment variables -------------------------------------------------------
BASE_DIR = Path(__file__).resolve().parent.parent
environ.Env.read_env(BASE_DIR / ".env")
env = environ.Env(DEBUG=(bool, False))
# typing -----... | [
"ryanshaw@unc.edu"
] | ryanshaw@unc.edu |
f98fe3da7f86c17e31a52248b05b0bc2347779f1 | 8bc80c74bcabbf2de18c90d084d55734815ebf23 | /env/lib/python2.7/site-packages/kaa/metadata/games/core.py | 34e9c537eb3f0e420c08512735fabd963b2edda6 | [] | no_license | jpmunz/smartplayer | 18c8397ac8f822f67111608255d029d3594cc7b5 | 1a75e48dae55876f04718cfd594cfc6e43e5c966 | refs/heads/master | 2020-05-30T10:08:25.670517 | 2013-11-24T00:26:39 | 2013-11-24T00:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | # -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------------
# core.py - basic glames class
# -----------------------------------------------------------------------------
# $Id: core.py 2578 2007-03-21 19:49:31Z tack $
#
# ------------------------------------------------... | [
"jp_137@hotmail.com"
] | jp_137@hotmail.com |
81057bf178af29a10d63013774898c5776e40e36 | f74495329b901b7e6db01c40484e9ca80ab3f98a | /torpedo/dialects/torpedo-vertica/run_test.py | dd67e5125e705853df24337b26e3c1ccf24174b2 | [
"MIT"
] | permissive | darKoram/torpedo | 38c82a2e0740d959753b849489d9953af9caff58 | fbda29225044e946465bae3782a3071d0d1a2fe3 | refs/heads/master | 2021-01-19T08:36:03.461984 | 2015-01-14T01:49:04 | 2015-01-14T01:49:04 | 28,483,957 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | __author__ = 'kbroughton'
from sqlalchemy.dialects import registry
registry.register("vertica", "torpedo_vertica.pyodbc", "Vertica_pyodbc")
registry.register("vertica.pyodbc", "torpedo_vertica.pyodbc", "Vertica_pyodbc")
from torpedo.testing import runner
# use this in setup.py 'test_suite':
# test_suite="run_tests.... | [
"kesten.broughton@gmail.com"
] | kesten.broughton@gmail.com |
dec6855f23e4486a908005bdc9639176cf10c7b6 | 44020d9ad6598034be48fc21ee257d6b23064731 | /2.fact.py | 2f1b2461287a1e86c910f8f3f768d5d3fafc8559 | [] | no_license | Prasanth4u/Code-kata-BEGINNER | ddd3d45a6e07f6657c8224535649afe1b4178fa9 | 755270e04903df53526fe651bc438fb1be233a00 | refs/heads/master | 2021-10-06T11:19:50.788992 | 2021-09-28T05:12:33 | 2021-09-28T05:12:33 | 194,237,057 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | num=int(input())
fu=1
for k in range(1,num+1):
fu=fu*k
print(fu)
| [
"noreply@github.com"
] | noreply@github.com |
f18064f11e7ff280cd49df7a883da12f57c367d4 | 1672ce2f69d73d071d76ca435dcfb0249a5b91ac | /packageML01/Practical21.py | 08edf0c6e64cdc081df35c0fad72867751013578 | [] | no_license | rishabhostwal7/Python | 661b2055bf67fc2691f1c45bca54179dd2b12a85 | 7af0088af271b55913cf58a582f5cb2c78100090 | refs/heads/master | 2020-06-08T12:36:47.752957 | 2019-06-24T08:41:26 | 2019-06-24T08:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #List
'''
a = list() #Used to make empty Array
print(a)
b = [] #Used to make empty Array
print(b)
#although the array is empty but all the functions related to it will be available like append(), index() etc..
a.append("Hello")
a.append(43)
print(a)
b.insert(1,33)
b.insert(4,45)
print(b)
'... | [
"noreply@github.com"
] | noreply@github.com |
a0c19df6701d9732f9a48f1f63fd52276f762f5d | d9493d0be13bd699529311e0f7a5e043ac0b9209 | /emojifier/settings.py | 98d2a71e218a1b2224c89158c18fc821e80c7a58 | [] | no_license | Aakashmangla2000/EmojiPredictor | fc9b50c1d850fa878edcb4229da587e589fdd4ab | 40a48cefdc96843e97e428d6fe658d209399b043 | refs/heads/master | 2022-12-16T02:05:11.653350 | 2020-09-15T19:58:36 | 2020-09-15T19:58:36 | 295,759,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | """
Django settings for emojifier project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"akkibaby90@yahoo.com"
] | akkibaby90@yahoo.com |
b5144f06cc3713139c312970808a6cb808893548 | 4b8649a76866f01f56600ed92990a3dab72fda88 | /migrations/versions/e6c127d4a2f8_posts_table.py | a25f4534ca1c5ee5420bdc123a953ff0009980d0 | [] | no_license | kakamband/Course-update-for-Heroku | b8127a1df79f8243ba00e111a53e1fa453c08bf1 | ca8728e44da24e72ca1b5b1328942b184a4548bb | refs/heads/main | 2023-02-06T03:55:20.378627 | 2020-12-30T10:41:26 | 2020-12-30T10:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | """posts table
Revision ID: e6c127d4a2f8
Revises: 8c6ba432428e
Create Date: 2020-07-12 01:50:32.704470
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e6c127d4a2f8'
down_revision = '8c6ba432428e'
branch_labels = None
depends_on = None
def upgrade():
# ##... | [
"64434778+Tu1026@users.noreply.github.com"
] | 64434778+Tu1026@users.noreply.github.com |
10acf3a449106406e736fd14d47a73863d04c8a5 | b16e1c10de55b34bb0216a01cd39dceb2e31cf93 | /ASNE.py | 0ac4dac7cfbc73f59948b98fd86fa3df70f9de57 | [] | no_license | wanggx1997/test | 5746b9b8069baecfe3bfcbbe92efa85f1a984385 | 99ee3c5efb18f148419917bd278adff697d4a893 | refs/heads/main | 2022-12-27T18:30:17.087049 | 2020-10-12T11:49:29 | 2020-10-12T11:49:29 | 303,265,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | import torch
file numpy
hhhh
niubibuniubiaaaahdso
| [
"noreply@github.com"
] | noreply@github.com |
60a40d9fedcd8012982559b55dd2ba906414b7cf | 65d563496bdd0b83c63faeb8a7852664277a3e95 | /hot_cold.py | 1d24351c902f6cc74a17aa744220f9c14dd4452c | [] | no_license | Ziem0/RogueGame | b56fd5439bc9624ca0cb546f942728c85a98fdd0 | 061e1dad288765261a03a9ebaae691ead0ae9722 | refs/heads/master | 2021-05-14T07:48:33.938352 | 2018-01-04T15:39:30 | 2018-01-04T15:39:30 | 116,276,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,878 | py | import random
import os
import sys
import time
from update_inventory import inventory
from screens import *
def run_game():
random_digit = draw_digits()
print(random_digit)
random_digit_list = list(random_digit)
tries = 1
while True:
count_hot = 0
count_warm = 0
count... | [
"andrzejewski.ziemo@gmail.com"
] | andrzejewski.ziemo@gmail.com |
19f6e67861ab134248e41bbd401e02c34aa98d27 | db6abec863b9d668388b2a731be3dcd5bb04d00e | /Automate the Boring Stuff/feelingLucky.py | dd52be91219855f0aed8d7bf1923b628633ec8fc | [] | no_license | mikitsuba/Python_Study | d65de5e2737798c36922416d42e1de23607d5be9 | 15e7bea56ec75228b6176f6880c40bd9d8c7be8b | refs/heads/master | 2021-04-13T04:27:01.058482 | 2020-05-05T05:26:20 | 2020-05-05T05:26:20 | 249,136,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | #! /usr/bin/env python3
import sys
import requests
import webbrowser
import bs4
# 検索ワード
query = ' '.join(sys.argv[1:])
print('Googling "{}"...'.format(query))
query = '+'.join(sys.argv[1:])
# コマンドラインに入力した引数をjoinしてgoogle検索
res = requests.get('https://www.google.com/search?q=' + query)
# urlを正しく読み込めているかチェック
res.raise... | [
"mikitsuba@Tsubasas-iMac.local"
] | mikitsuba@Tsubasas-iMac.local |
6b481b75639a36ee3c439a151988f25c85d6cadd | 71b3766d0641361a52f62af263fe8efa90fccbab | /blog/views.py | 592ccebccef4e17cd3162123c7aec7c0189fc55e | [] | no_license | firchatn/Blog-Website | bd4859774fda9cccc60f4eaa4c322cbc0d80d487 | 04663501b442f51f14e0b5fdc1f188488172c455 | refs/heads/master | 2021-05-05T15:10:29.114072 | 2018-11-02T09:45:32 | 2018-11-02T09:45:32 | 103,161,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | from django.shortcuts import render
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .models import Article, Catecory
# Create your views here.
def index(request):
articless = Article.objects.all()
catecory = Catecory.objects.all()
page = request.GET.get('page')
cat = request.GET.ge... | [
"firaschaabencss@gmail.com"
] | firaschaabencss@gmail.com |
950a8fb5d1a3d7d8c0d157c492ea4e6fe1b4e665 | 31b8cc3ed4e694f1c507d52750d2da9afc7ebb3b | /hw2/client.py | f0ae8f687f22394a3a2e8233aff93e33e5124a5c | [] | no_license | frap129/CS351 | 6c3b247fbf113cc10d25ff6e8425a00f681f518d | b9f3b0d647b837fc90c728400eb7d92251aea0a5 | refs/heads/master | 2022-09-29T02:24:57.877978 | 2020-06-02T21:18:26 | 2020-06-02T21:18:26 | 255,609,517 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | #!/usr/bin/python3
import sys
import socket
# Configurables
filePath = "example.txt"
serverIP = "54.235.47.119"
# Argument Parsing
if (len(sys.argv) >= 2):
filePath = sys.argv[1]
if (len(sys.argv) == 3):
serverIP = sys.argv[2]
# Constants
serverPort = 351 # CS-351, to be exact
fileSizeLimit = 1024
clientSoc... | [
"joe@maples.dev"
] | joe@maples.dev |
efe34cb92a79af37bb8543e60c8e2e2406f2d995 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts_tests/tests/google/gnss/FlpTtffTest.py | 59b19b52f02ad880d66a9f081f34023770f3b823 | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,611 | py | #!/usr/bin/env python3.5
#
# Copyright 2019 - The Android Open Source Project
#
# 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
#
# ... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
03dd4d1ddaa82f1ed39556e626b5323b72cb8e7b | eac69a9709042f66a5a6a26992d05ddc9fe2508b | /python/sample/extension_usage.py | 6f1d70fae0146281dc9e14a8db704a928dcebe56 | [] | no_license | koalanlp/sample | 395aa557b674c5595aa072522178d8db2a4929f7 | 9fc9aceb7ec569d6ffa9dbea2e50ded9a081ae6e | refs/heads/master | 2022-12-20T05:32:45.695775 | 2019-12-13T06:43:45 | 2019-12-13T06:43:45 | 147,672,350 | 2 | 4 | null | 2022-12-08T20:53:30 | 2018-09-06T12:45:27 | Scala | UTF-8 | Python | false | false | 5,140 | py | from koalanlp.Util import initialize, finalize
from koalanlp import ExtUtil
initialize(CORE="LATEST")
# 한글 여부 확인
print("ExtUtil.isHangul('가') = %s" % (str(ExtUtil.isHangul('가')))) #: [True]
print("ExtUtil.isHangul('ㄱ') = %s" % (str(ExtUtil.isHangul('ㄱ')))) #: [True]
print("ExtUtil.isHangul('a') = %s" % (str(ExtUtil... | [
"cd4209@gmail.com"
] | cd4209@gmail.com |
47ac38c48ab6a0ffe276aa299b2b85a3c9afe994 | 1eba03a3a7b5f6133dfcbc7a0ab9c73f950a79d8 | /algorithms/137. Single Number II/main.py | 966d1c3f0ce2f52164f788ad395c5ee7fc2c6042 | [] | no_license | GTxx/leetcode | ab640cad726111a5fd78ecfbc02f75a61112bc2c | b7f85afe1c69f34f8c6025881224ae79042850d3 | refs/heads/master | 2021-06-15T18:43:41.358275 | 2021-05-08T08:15:05 | 2021-05-08T08:15:05 | 70,294,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | class Solution(object):
def singleNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
x1 = 0
x2 = 0
for num in nums:
x2 ^= x1 & num
x1 ^= num
mask = ~(x1 & x2)
x2 &= mask
x1 &= mask
... | [
"xiongxiong1986@gmail.com"
] | xiongxiong1986@gmail.com |
af1990a9438f13257658b34ed98588888aa874d4 | 562d0885caee5682e32336c31ee0cb30cf29086e | /cogs/space.py | 82e0f4b8a8dcb034a8edc15ca0c6acf3147d0949 | [
"BSD-3-Clause"
] | permissive | Sgewux/discord_bot | 8e3e26b0d867fe267c568df0f55eccb296c48684 | bde7c587fc38f4eb0e80128519ffe57bdde84194 | refs/heads/master | 2023-06-14T14:07:07.841455 | 2021-07-13T23:00:50 | 2021-07-13T23:00:50 | 360,324,676 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | import re
from discord.ext import commands
from cogs.bot_utilities.nasa_api import NasaApi
from cogs.bot_utilities.checks import CustomChecks
class SpaceCommands(commands.Cog):
def __init__(self, bot):
self.bot = bot
self._api = NasaApi()
@commands.command(pass_context=True, aliases=('APOD', 'apod'))
async d... | [
"sebasandroide05@gmail.com"
] | sebasandroide05@gmail.com |
675fabd4547dc5325753e8ebc150f81feeb3d8e0 | 474462e7f658ebf59033c170ef753eb96653622f | /Python/django/TimeDisplay/random_word/urls.py | d3ea6682a78a0886894b35a77d607262dde910b0 | [] | no_license | dathanwong/Dojo_Assignments | 33374e0c250293b39f92240ada3a5649892ce527 | 8347adf2d9606ae095be306c90c294303ef5574b | refs/heads/master | 2022-08-21T23:04:17.759342 | 2020-05-21T21:14:52 | 2020-05-21T21:14:52 | 259,776,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.random, name='home'),
path('/reset', views.reset, name='reset'),
path('/submit', views.submit, name='submit')
]
| [
"dathwo@outlook.com"
] | dathwo@outlook.com |
b453a974a15c7607874dfac71aada44e35b70b25 | da186f39159acc08346192f93b02d44fcf0cc20c | /scraper.py | 0edd80f78877992839476fa983d1f6f149f5cd64 | [] | no_license | bkurdasov/cened.it | 2f5eef1a75becf3b938772781d513139805ea5d4 | 44aa23f19c7dd6b2772e3df69959ea66aa10215a | refs/heads/master | 2020-05-20T07:16:10.410534 | 2015-04-13T11:16:53 | 2015-04-13T11:16:53 | 33,863,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,860 | py | import requests
from copy import copy
import re
import csv
from lxml.html import fromstring
def parse_doc(doc):
for item in doc.xpath('//tr[td[2][@valign and br]]'):
nome_cognome,titolo=item.xpath('td[2]/text()')
nome_cognome=nome_cognome.strip()
nome=nome_cognome.split(' ')[:-1]
no... | [
"bkurdasov@gmail.com"
] | bkurdasov@gmail.com |
acf2f19b60551fb41b336692c118666604dfc749 | 06257eac9ad651fad7f7351843f369e54d415b05 | /AlphaBot.py | 2a499607b3da6ba16d1ee3f2ff4bdef1e77f98ec | [] | no_license | mtc-20/Alphabot | db6ccdee1ca14f2921cb2e10ed2e1f7f6e662ad3 | 6e56d46a193e492dfe118655ee419c94ad8acec5 | refs/heads/master | 2021-01-08T07:26:39.588944 | 2020-03-02T15:54:18 | 2020-03-02T15:54:18 | 241,955,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,397 | py | """
modified by mtc-20
"""
import RPi.GPIO as GPIO
import time
class AlphaBot(object):
def __init__(self,in1=12,in2=13,ena=6,in3=20,in4=21,enb=26,s1=27,s2=22):
self.IN1 = in1
self.IN2 = in2
self.IN3 = in3
self.IN4 = in4
self.ENA = ena
self.ENB = en... | [
"mamenthomas.c@gmail.com"
] | mamenthomas.c@gmail.com |
4ca2f6e5a50c697732e41ef7847d7a9e32d0c8ef | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/surface/bigtable/clusters/list.py | 22a4d818ffea8110f2f7395f31ce3f059c5b9a3d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 2,944 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"me@gareth.codes"
] | me@gareth.codes |
a109f4af2496f8cf2193422014e3bebe1bfb2884 | efd81a5e287a398aaa5333e949d6ca40b1544053 | /config/52_niak_centrality/00_gen_group_mask.py | 0070a89bd229cbbe1bfd58a95fbcfb6571a9160d | [] | no_license | fitrialif/abide-1 | 82d80bf52cd9b36072985a1ddeacfb325791566e | 9ccc45f612a58dbc3cf5fa3b70c41bcfeabd8ddc | refs/heads/master | 2020-04-25T15:13:22.974634 | 2014-03-10T18:18:42 | 2014-03-10T18:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | #!/usr/bin/env python
from __future__ import print_function
import os, yaml
from os import path as op
def run(cmd):
print(cmd)
os.system(cmd)
# First read in a quick pack file with all the paths
fn = "/home2/data/Projects/ABIDE_Initiative/CPAC/abide/config/50_niak/quick_pack_run1_nofilt_noglobal.yml"
s... | [
"czarrar@gmail.com"
] | czarrar@gmail.com |
b5ab7ed1038dfa35dcccb15d875e28493f05dd3e | effe857fcf2ffeda5f0a8ff04d808ec2aa8d238e | /cs285/critics/bootstrapped_continuous_critic.py | 9a9d1b17aa9085a42a553813681bfbeb16b135e4 | [] | no_license | HuangYiduo14/cs285_project_ubereats | 740733d553fb86e4e05af9b6dc66adb9c39760c5 | 90d08f8d2c233f4fbdbd1647f1e74bc5aeaa5fb6 | refs/heads/master | 2023-02-07T13:47:28.996520 | 2020-12-25T18:35:23 | 2020-12-25T18:35:23 | 306,470,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,574 | py | #from .base_critic import BaseCritic
import torch
from torch import nn
from torch import optim
from cs285.envs.city import MAX_CAP, MAX_CAND_NUM
from cs285.infrastructure import pytorch_util as ptu
import numpy as np
class BootstrappedContinuousCritic(nn.Module):
"""
Notes on notation:
Prefixes an... | [
"yiduo_huang@berkeley.edu"
] | yiduo_huang@berkeley.edu |
ac117659c866b8df2494d503bb8dadda0f9522a9 | 0740cb643e20d8765f0fb3fca335d4b7f69e5f13 | /blogapp/Blog_api/apps.py | 97b40e4102ae62d5ec99f51241a97cb57979b935 | [] | no_license | dannysax/blogapp | 7a079a1ed2d77fec25f797e75ee92274070fdfd6 | 6c61a200c3b4a228b013e8795ec792b1e9abb6cf | refs/heads/main | 2023-07-02T17:50:18.613548 | 2021-08-01T22:48:16 | 2021-08-01T22:48:16 | 391,302,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django.apps import AppConfig
class BlogApiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Blog_api'
| [
"ugahdaniel1997@gmail.com"
] | ugahdaniel1997@gmail.com |
defc4662ad24bac7f0c94489f4d8762a7b00ea29 | be7bb6d0cbdb27d3ff72830dc9cce41b170b27fe | /0x08-python-more_classes/7-rectangle.py | 07b740b4b98861329278958ae69a395ba2671045 | [] | no_license | camagar/holbertonschool-higher_level_programming | 21a8e7c2a2ad07c694c5443e174bb70502f910c2 | 97dd2fade6fb64ac7d9c52e412c0b8c1b8dfc3de | refs/heads/master | 2023-04-07T21:38:00.071687 | 2021-04-14T02:11:42 | 2021-04-14T02:11:42 | 291,889,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | #!/usr/bin/python3
"""create a class"""
class Rectangle(object):
"""define the rectangle class"""
number_of_instances = 0
print_symbol = "#"
def __init__(self, width=0, height=0):
self.width = width
self.height = height
Rectangle.number_of_instances += 1
@property
de... | [
"mauriciogrestrepo@gmail.com"
] | mauriciogrestrepo@gmail.com |
13076cc89f145d403f16a2d4d64ea4e2d8b0a500 | 7a7c16973012f687b178b7a5332f59c02f3b1b47 | /Semestr 2/Cwiczenia 8/przyklad.py | 51091e984f16e133140fc0f0c63254d1c7ef5a07 | [] | no_license | BVGdragon1025/-wiczenia | 7808c4765ae6aa932654fd1cf07e055f21df1a00 | 058bb9bc8930c58013e53f6c801c77a904ac32ad | refs/heads/main | 2023-05-06T17:06:05.185327 | 2021-06-06T13:38:30 | 2021-06-06T13:38:30 | 317,488,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import os
import heapq
from timeit import default_timer as timer
# Sortowanie szybkie:
sort_list_1 = [4, 10, 11, 5, 73, 5, 1]
print(sort_list_1)
print("Sortowanie szybkie: ")
start = timer()
sort_list_1.sort()
end = timer()
print(sort_list_1)
print("Czas: ", end-start)
# Sortowanie Heap:
sort_list_2 = [4, 10, 11, 5, ... | [
"72506695+BVGdragon1025@users.noreply.github.com"
] | 72506695+BVGdragon1025@users.noreply.github.com |
fc0f6eca62b787d0668d65da7d5f19e0a381172b | b049a4b0305300d61a5608fdbc16281d1370b4ad | /neethupython/identifiers/introd.py | d99c0918dcbcce9433f48f4f283a1e8f89f7651e | [] | no_license | sickgirl1999/project-python | 9f32814b0da0cf494f7058f1bb027437c26793ab | 01753cc2678fb6c18d4008209f870778a028ed8c | refs/heads/master | 2023-04-26T07:37:50.240868 | 2021-05-19T08:05:48 | 2021-05-19T08:05:48 | 368,791,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #identifiers=name
#eg=var name,fun name,class name
#variable=memory allocate
#variable name= value
#name="neethu"
#age=21 #name and age are the identifiers
#set of rules
#1num=10#1=follow alphabets or underscore to initilize
#_num=10
# num=10#2=remove unwanted space
#nummmmmmmmmmmmmmmm=10
#3= case sensitive
#Num=10
#... | [
"gokul.neethu.31@gmail.com"
] | gokul.neethu.31@gmail.com |
60b9dd1666104ae3c2f4834c6daf99a7a32e8e4f | 8dd47e8dac6e1dda4774c21bfd15abda744db7ef | /learn/generators.py | 290d000de6dd3ea9a0ed4e1a612c47b814726048 | [] | no_license | domero2/Python | ef1d4bb89ea5bbeeb3e1492a6da12a04e1a97487 | 45780255764bb4ff09fd9a214503bbc63566fe24 | refs/heads/master | 2020-09-21T03:33:56.413525 | 2020-06-22T14:15:22 | 2020-06-22T14:15:22 | 224,666,659 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | class Gen:
def __init__(self,n):
self.n = n
self.last = 0
def __next__(self):
return self.next()
def next(self):
rv = self.last **2 | [
"albi@MacBook-Pro-Apple.local"
] | albi@MacBook-Pro-Apple.local |
b5fe0daa284a32655bbfe2009edd17c1e08a32b0 | 8a585bbdc2194cd27967dc8ccb1b0d4106a0f440 | /enlaces/apps.py | 8f2a613f4010853f9cd8cf46e40d3ed2f6b90c66 | [] | no_license | dusanov/milienlaces | 4b93dd9329c1f3c37279810f3fcbcd2ab71e67a1 | 54174ad8dbb0c1f01695a010a89b6b9dd87c7ab3 | refs/heads/master | 2020-09-22T14:01:00.648290 | 2019-12-08T16:33:39 | 2019-12-08T16:33:39 | 225,230,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class EnlacesConfig(AppConfig):
name = 'enlaces'
| [
"hrandus@yahoo.com"
] | hrandus@yahoo.com |
590b0c9bf14cd522b7b8f7924a4d62083c4fc3e1 | b2f326a788d297eca1e372d99a1f44aad65cba99 | /DockerAnsibleCourse/02.Django-RestApi/src/todobackend/settings/release.py | 02a41a07bc060c6aaead5ec641ae5974c1115959 | [
"Unlicense"
] | permissive | vijayvepa/AnsibleExamples | fd06d24f88fd49f124a8f628b6dc7924df9d43af | 23a7ddc1c7e932b79cef3cc6ce9338207dbd6031 | refs/heads/master | 2022-12-23T14:55:43.458906 | 2019-10-16T13:54:09 | 2019-10-16T13:54:09 | 156,077,984 | 2 | 1 | null | 2022-12-10T06:43:23 | 2018-11-04T12:06:26 | JavaScript | UTF-8 | Python | false | false | 855 | py | from todobackend.settings.base import *
import os
# Disable debug
if os.environ.get('DEBUG'):
DEBUG = True
else:
DEBUG = False
# Must specify allowed-hosts when debug is disabled
ALLOWED_HOSTS = [os.environ.get('ALLOWED_HOSTS', '*')]
# Use mySQL
DATABASES = {
'default': {
'ENGINE': 'django.db.bac... | [
"vijay.vepakomma@philips.com"
] | vijay.vepakomma@philips.com |
4f9de2a06443a3664ac9505f6a14bd6e48781fc3 | 6c5a3a429e6f6ad03ad936064f61f1bb842f9d65 | /tifresi/pipelines/LJparams.py | 2d777386c6d91fdea4ac3cbbb0aa71f135883c40 | [
"MIT"
] | permissive | andimarafioti/tifresi | a3fc00eedf1fe6d48fc050b06e496fb48fbc1a53 | 245e4d76cb6ecebd3acc4e742fd152bf99493ce4 | refs/heads/master | 2023-04-13T00:40:14.317876 | 2023-04-05T12:27:54 | 2023-04-05T12:27:54 | 233,073,088 | 12 | 1 | MIT | 2023-04-05T12:27:55 | 2020-01-10T15:14:53 | Python | UTF-8 | Python | false | false | 1,044 | py | from tifresi.hparams import HParams
from tifresi.utils import downsample_tf_time
import librosa
import numpy as np
class LJParams(HParams):
# Signal parameters
sr = 22050 # Sampling frequency of the signal
M = 2*1024 # Ensure that the signal will be a multiple of M
# STFT parameters
stft_... | [
"nperraud@users.noreply.github.com"
] | nperraud@users.noreply.github.com |
867eff0baf87adb40f05a69d0bcd8d449f0eda43 | d850f05e2f5cc5708cfc00470e7d5eedebff959e | /tasker/migrations/0011_auto_20200313_1627.py | eccba84544e54751a37cabfedc43f1cc30127a4c | [] | no_license | prauscher/troodle | 84e25549b26492359b2b35542db4ecd5d9bc1306 | f490f92cf6425a640836388281ce62937aa72ca5 | refs/heads/master | 2021-08-28T04:30:43.842934 | 2021-08-24T08:35:56 | 2021-08-24T08:35:56 | 218,851,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | # Generated by Django 3.0.4 on 2020-03-13 16:27
from django.db import migrations, models
import django.db.models.deletion
def fill_participants(apps, schema_editor):
Participant = apps.get_model('tasker', 'Participant')
participants = {}
def _assure_nick(nick, board):
if nick not in participants... | [
"prauscher@prauscher.de"
] | prauscher@prauscher.de |
d0b739f2ff92a0d422aedbce7a2853ed409badb3 | 25e3e355af50ca416277c0b96a81bba01de777db | /authentication/views.py | 0eec30d82bea34ff6bf94860892d616de38fb7b0 | [] | no_license | JANATI-IDRISSI-Imad/logs | 1395462ce3b8e1d550d268fe20b543397ab8238a | f201b69cc681afcf07d27107944b117654948743 | refs/heads/master | 2022-10-19T06:57:20.485025 | 2020-06-14T11:24:51 | 2020-06-14T11:24:51 | 267,449,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,196 | py | from django.shortcuts import render, HttpResponse, redirect
from .models import User , Server , syslog
from django.contrib import messages
from scp import SCPClient
import paramiko
from mainapp.views import indextest
from django.contrib.sessions.backends.base import SessionBase
from django.core import serializers
fro... | [
"imad.janati.idrissi@gmail.com"
] | imad.janati.idrissi@gmail.com |
947161cf9798787394cc329e5587c631591b37f9 | 0400507b04faf930dd5f289419d26cbde4881264 | /PrincipalComponentAnalysis/exercise01/com/bigblue/pca/exercise/2d/reduce1d.py | 1e3a5c17661ebc3e23eed167daebec2b0c9d53d5 | [] | no_license | mbbigblue/met-in-the-lake | 12ba53880fe334bee297d7a45f976ad9f4d7a6de | 7848fc460b41dec67c81f3321922b67a300b7b29 | refs/heads/master | 2020-04-12T02:46:14.375955 | 2019-04-22T18:34:02 | 2019-04-22T18:34:02 | 162,252,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
sns.set()
##1. Generate random data
rng = np.random.RandomState(1)
X = np.dot(rng.rand(2, 2), rng.randn(2, 200)).T
# Plot generated data
colors = list(np.random.choice(range(5), size=200))
plt.scatter(X[:, 0], X[:, 1], c=colors, alpha=0.8)
plt.... | [
"mbukowski@guidewire.com"
] | mbukowski@guidewire.com |
293e6bd66072132a12cedd42400a57c10f7c17eb | e4ce9037f02523eadcabec5e02f930aa0747c43c | /AccountsApp/migrations/0007_auto_20200414_1937.py | e5da2a73c0abfcd891fbcc445366d1fbb3a21ea2 | [] | no_license | gauravjiitb/InsaneApp | 92ce7c6dfa747e04f36c3a2a6b69acdfd0001feb | 3a8b66bf2e9b81bd5c868cb7224d581a1d1bac8a | refs/heads/master | 2021-05-18T01:03:38.078545 | 2020-04-18T10:58:43 | 2020-04-18T10:58:43 | 251,037,843 | 0 | 0 | null | 2020-03-29T13:35:54 | 2020-03-29T13:24:56 | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 3.0.4 on 2020-04-14 14:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AccountsApp', '0006_auto_20200414_1521'),
]
operations = [
migrations.AlterField(
model_name='transaction',
name='re... | [
"gauravj.iitb@gmail.com"
] | gauravj.iitb@gmail.com |
a79e1144d9b58cfb11c8cf3bf7921f8bef2b2df3 | a0a3ecfaec5d02e9a1465faaf3d3ae19fdff1759 | /mandrill_inbound/mandrill_open.py | 5271e1f29e3b5bb815761baf1d7abd316b8c5ff4 | [
"MIT"
] | permissive | jongabriel/mandrill-inbound-python | 67269dfc314bf80784f6110f14c9b42c917afc1d | 23dd73adc964e38ba4996bdb3a2fd82ce380c765 | refs/heads/master | 2021-01-15T09:50:58.735189 | 2015-01-16T00:35:31 | 2015-01-16T00:35:31 | 29,317,939 | 0 | 0 | null | 2015-01-15T20:58:52 | 2015-01-15T20:58:52 | null | UTF-8 | Python | false | false | 4,247 | py | '''
Created on Jan 15, 2015
'''
from datetime import datetime
import json
class MandrillOpen(object):
'''
'source' is already json while 'json' is formatted as json.
'''
def __init__(self, *args, **kwargs):
if not kwargs.get('json') and not kwargs.get('source'):
raise Exception('M... | [
"jgabriel.atx@gmail.com"
] | jgabriel.atx@gmail.com |
a92694bc85a9658e9906a9943a41b8b554e6f3f7 | c5e411b38751340ac0e47cf7bdde9ff7f635f339 | /user/migrations/0001_initial.py | f4f9f4eb722d64ffa1f3abd21660c86d798571ba | [] | no_license | shiny132/mysite | b88c311d76856b21077cd92bb122ff76c551e0c4 | 3b2e1c407dd3981dda3302f330f944158c3b63d7 | refs/heads/master | 2020-03-22T02:53:42.104287 | 2018-07-09T23:04:37 | 2018-07-09T23:04:37 | 139,398,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # Generated by Django 2.0.6 on 2018-06-29 05:28
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"shiny132@naver.com"
] | shiny132@naver.com |
1a084933a4396b2d4ac47a77e5b0c1463ab35b6f | 286a49d0360ee2eb718dd9a496be88555cef3227 | /229. 求众数 II.py | feeac888d4a69cfbebe04caeb6b8e78a73040e78 | [] | no_license | NaiveteYaYa/data-structrue | 0618ab6bb7accc99c40e39a3ca60bbc0a9723c2f | a376863c1a8e007efafd5c1ed84929a80321b1b9 | refs/heads/master | 2023-07-02T03:15:33.523855 | 2021-08-14T02:02:07 | 2021-08-14T02:02:07 | 395,857,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,043 | py | # -*- coding: utf-8 -*-
# @Time : 2020/4/2 14:20
# @Author : WuxieYaYa
"""
给定一个大小为 n 的数组,找出其中所有出现超过 ⌊ n/3 ⌋ 次的元素。
说明: 要求算法的时间复杂度为 O(n),空间复杂度为 O(1)。
示例 1:
输入: [3,2,3]
输出: [3]
示例 2:
输入: [1,1,1,3,3,2,2,2]
输出: [1,2]
链接:https://leetcode-cn.com/problems/majority-element-ii
摩尔投票法的简单理解
与169. 多数元素的两点区别:
“多数”是指超过n... | [
"jgm247878528@.qq.com"
] | jgm247878528@.qq.com |
7a646e4ff9c4fbdfc86df4f374dc2c597cbac655 | f7caa651c21a9c6eee03e5bb74967880481fbe5f | /app/apps/notes/tests/tests_urls.py | d912c77fb778f420dd562f3d57cd0f5f1ccdfa19 | [
"MIT"
] | permissive | Capwell/practicum-app-profiles | f33bdaf575f97794c47eb1c6892d735c1257a9f5 | c3dbc4565f83300ec5e4cc25b434002690185e56 | refs/heads/main | 2023-03-01T19:56:47.689354 | 2021-02-02T05:25:45 | 2021-02-02T05:25:45 | 335,021,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | from django.test import Client
from .fixtures import Settings
class ArticleURLTests(Settings):
def setUp(self):
self.authorized_client = Client()
self.authorized_client.force_login(ArticleURLTests.user_one)
# Common page
def test_home_url_exists_at_desired_location(self):
... | [
"proninc@yandex.ru"
] | proninc@yandex.ru |
9b4bfa3a8c824efe83f17773632977134e891853 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/68/18502/submittedfiles/main.py | 9b3141f2cb1df838fab5b35110951b9ec577eca6 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | # -*- coding: utf-8 -*-
from __future__ import division
import funcoes
#COMECE AQUI
def fatorial (m):
m_fat=1
for i in range (2,m+1,1):
m_fat=m_fat * i
return m_fat
m=int(input('Digite m:'))
e=input('Digite o epsilon para o cosseno:')
#DOUBLE CALCULA_VALOR_ABSOLUTO:
if m<0:
m... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
37ceecc85d8bba20cdf64787fb4b0bb85cdcc5c8 | 9cfcfbd73d0f5f0c98bc6704e4faf93253b505d5 | /blogadmin/asgi.py | 87847bf0bf09d840633059f24dcdf9c93da6b90c | [] | no_license | Yashbontala/blogapp | 358943ac8a3350467b66211820666a14dae25c5b | 0edffb1f39cbcdd81350530fc0d7b308ea14b9a7 | refs/heads/main | 2023-04-19T08:20:14.151123 | 2021-05-08T17:52:02 | 2021-05-08T17:52:02 | 338,141,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for blogadmin project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"cse190001067@iiti.ac.in"
] | cse190001067@iiti.ac.in |
722c27df7fd700611dec028a8c6572f01c548438 | 6f23a5ba2426f456c8b17621f5a5d5b60b21cc67 | /app/core/migrations/0001_initial.py | 101a6e51baa12f8cc7c51615bec81cfc52f149fe | [
"MIT"
] | permissive | FernandoI7/recipe-app-api | fbde6a6b5633eebdaf5fe8983c4faf95d0819058 | 352b4fe811c19d083a71d7b45818ad360b08011e | refs/heads/master | 2021-09-26T22:46:09.717877 | 2021-06-14T13:43:07 | 2021-06-14T13:43:07 | 236,102,355 | 0 | 0 | null | 2021-09-22T18:28:06 | 2020-01-24T23:44:39 | Python | UTF-8 | Python | false | false | 1,700 | py | # Generated by Django 3.0.2 on 2020-01-25 01:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
name='User',
f... | [
"fernando.analista.si@gmail.com"
] | fernando.analista.si@gmail.com |
45f4f583d74140c6e4f7245c5c80667b711f9ede | 05cbe0cc96883ff1aa91a43d2c4e800040c09b83 | /Lesson 3/test/test_task_2.py | f1c52a77d0a7c41c18be815c345a0dac6dfb16bd | [] | no_license | volodin89/Artezio | 14740258dc2ed9adb5a614649ee43564d5d046e1 | 550520b846d6f532c804388f1a6d6bdac3796df6 | refs/heads/master | 2022-12-09T08:07:45.331375 | 2020-02-25T19:29:13 | 2020-02-25T19:29:13 | 236,572,594 | 0 | 0 | null | 2022-12-08T03:33:25 | 2020-01-27T19:17:51 | Python | UTF-8 | Python | false | false | 486 | py | import unittest
from task.task_2 import mul_and_sum
ARR = [15, 16, 17]
ARR.append(ARR)
class MyTestCase(unittest.TestCase):
def test_1(self):
self.assertEqual(mul_and_sum(1, 2, [3, 4, (5, 6, 0)], a=(10, 11), b=(3, 4, [5, 6, [7, 8], []])),
(75, 1596672000))
def test_2(self):... | [
"noreply@github.com"
] | noreply@github.com |
4ae63069c9db168ed2b353c07ca4be1860bdbf27 | a5bc1e504f39648b328d3a6ce957ca46fd3d890b | /PythonModulo1/ex031.py | 60689a63b9af3d3ef153ddccaf1121f5f03413ea | [
"MIT"
] | permissive | BossNX/ExerciciosDePython | 1b65e9da9f6dc3fcfc0a5495d9190934502ec868 | 27c79d284794f65f94d3a07de11429d665ec92da | refs/heads/main | 2023-02-13T10:39:34.072727 | 2021-01-16T01:15:26 | 2021-01-16T01:15:26 | 330,055,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import emoji
dis = float(input('Qual é a distância da sua viagem? '))
if dis <= 200:
print('Você está prestes a começar uma viagem de {:.1f}Km.'.format(dis))
print('E o preço da sua passagem vai será de R${:.2f}'.format(dis * 0.50))
else:
print('Você está prestes a começar uma viagem de {:.1f}Km.'.format(di... | [
"alcarvalho@nexusnx.com"
] | alcarvalho@nexusnx.com |
27a08eb30d71e7e87402e007bd2e80f8a737e78f | f745f3a48f17ca24080c37bc5aea4adb5f56a3d8 | /tubespbo/asgi.py | ad5760c2392267321114066c48e20bf51175609f | [] | no_license | andhikapp28/InventarisBarang | 36d659da1bd3e0fa5993528f55cf3c4dec119787 | 19181f230b411a3f3d79ad2a47c2113259eb9575 | refs/heads/main | 2023-07-25T14:33:01.110261 | 2021-09-09T01:48:22 | 2021-09-09T01:48:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for tubespbo project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"andhikapp28@gmail.com"
] | andhikapp28@gmail.com |
662c4c9164d7e51cdf66a14cd777870da9376bc0 | 76d7930fb7eed5ebcfb6e4e0ecd5887ad6d662bb | /LR9/LR9_1_Migranova.py | 396e001e471154ebf333d8464e7d68289f0dfa39 | [] | no_license | gulyash/AsyaPy | a486a26c166ede4c683228d1f72c4dd8e365d276 | 7d37726ddb2a7d9c91de091ec2a2ffe04a269231 | refs/heads/master | 2021-05-05T14:30:34.332839 | 2018-05-11T19:25:01 | 2018-05-11T19:25:01 | 105,151,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import sqlite3
import sys
db_file_path = sys.argv[1]
n = int(sys.argv[2])
conn = sqlite3.connect(db_file_path)
cursor = conn.cursor()
queries = [
"select model, speed, hdd from pc where price<50000;",
"select maker from product where type=\"printer\"",
"select model, ram, screen from laptop where price>2... | [
"rigdillinger@yandex.ru"
] | rigdillinger@yandex.ru |
2e4093e4080d4843f1d42bbaf61979a5c0a72d05 | 6349770545a11f6a06c2bbd1b1ed1852451f2a69 | /svm-training.py | f1306c0207bdb9bcadf62c8f3847372823f1232c | [] | no_license | satyamagni/Classification-of-steel-defects | f2e83a99048f6d30b43511dc1bd36723b3bdac88 | e16fd886c20a13dc8c60bd709d32445d09e28281 | refs/heads/master | 2023-06-25T17:59:57.823100 | 2021-07-19T18:08:35 | 2021-07-19T18:08:35 | 387,553,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | #import timeit
#setup = '''
import numpy as np
from numpy.core.fromnumeric import argmin
import pandas as pd
from sklearn.svm import SVC
from sklearn import metrics
#'''
#my_code = '''
X = pd.read_csv("training-steel.csv", header = None)
Y = pd.read_csv("testing-steel.csv", header = None)
E = np.zeros(... | [
"satyamagnihotri97@gmail.com"
] | satyamagnihotri97@gmail.com |
891597ffbd86bd41f06525c3e177e644d99d3490 | dc2f5110c7620bb36465cc3d061a770a90f7bc36 | /EditHex/file.py | 3bda888ff9da80bdf5a97510eda19f7371b4522a | [] | no_license | 10121044100/HexEdit_test | e21ec9cf2b3c10dabe1980ad2b118f8d907fe0b7 | 1f150b62616e8177c7eda4c98ad9ef64344eec8e | refs/heads/master | 2020-03-19T07:11:33.788444 | 2018-06-13T07:33:13 | 2018-06-13T07:33:13 | 136,094,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | def read_file(file_name):
fd = open(file_name, "r")
data = fd.read()
fd.close()
return data
def write_file(file_name, data, isrewrite):
if isrewrite:
#unlink(file_name)
pass
with open(file_name, "w") as fd:
fd.write(data) | [
"ttm3246@gmail.com"
] | ttm3246@gmail.com |
912d1cc8bfd900d2efb1333cf76904f99bd70ae4 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day42_sqlalchemy/4.0.scoped_session.py | b723853a14b95b576bc03df5c3d1d10b7857df60 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 1,295 | py | #!/usr/bin/env python
# -*-coding:utf8-*-
# date: 2018/2/23 上午11:45
__author__ = "willian"
import time
import threading
import datetime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, ForeignKey, UniqueConstraint, Index
from sqlalchemy.orm import sessionmaker, r... | [
"284607860@qq.com"
] | 284607860@qq.com |
915df08aef6b014649a2cfdf77fbeafcf063dc13 | ae76ec99494e64dc0ccced41063cd355d33b76fb | /InfrastructureLibs/CreateDeviceSession.py | 4316bbdcf14a9daf0f097acce45455b9432b2b0f | [] | no_license | tarunjain1986/Plivo | 242ea6fcbd0e54b96d4a36a1c3b467706a71471a | a12e1c907b44c578c4cfd12e08661ac9a4a6caa0 | refs/heads/master | 2021-01-12T15:19:10.332770 | 2016-10-24T09:49:45 | 2016-10-24T09:49:45 | 71,756,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py |
from appium import webdriver
from robot.libraries.BuiltIn import BuiltIn
import copy
from os.path import os
from selenium import webdriver
from selenium.webdriver.support.events import EventFiringWebDriver
from selenium.webdriver.support.events import AbstractEventListener
from robot.api import logger
from time import... | [
"tarun.jain@urbanladder.com"
] | tarun.jain@urbanladder.com |
ff70c41058fbc39781806bc0112f697ccb29be21 | 9a4eb443ebb1ed7b2175bf9c8a9979009fbaa494 | /ops.py | 0baac7060e4065d4d50a4d2c21ea6d9624fa2567 | [] | no_license | jerrywiston/ExplorationRL | 96d774c243d908d171dc70b2383228ed9a0765eb | baa9a2881fb48ffed3300cfdb5c1d2fa00e5fb6f | refs/heads/master | 2020-05-10T00:24:09.856318 | 2019-04-16T12:26:07 | 2019-04-16T12:26:07 | 181,530,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | import tensorflow as tf
import numpy as np
w_init = tf.contrib.layers.xavier_initializer()
b_init = tf.constant_initializer(0.1)
def bideconv2d(x, filters, kernel_size, strides, padding, activation, name):
shape_list = x.get_shape()
x_up = tf.image.resize_images(x, [shape_list[1]*strides[0], shape_list[2]*str... | [
"dreamfantasy0@gmail.com"
] | dreamfantasy0@gmail.com |
59d6c24f2152d8345051f7f14a88cdfb6d9f8b71 | b221b5001fd086e8dc6ed7215c50ac642ebf7d87 | /transcribe.py | 2605e0fa8a9a44a9181673bc381f869b788cfd9a | [] | no_license | annitak/iot-journal | 14657d5f83f903ffa1863c3d15ecdedfaf6a08fc | d678b539d6440a98ec95e83e29c77e9d643a2efa | refs/heads/master | 2021-01-18T23:59:47.902820 | 2017-04-07T23:11:46 | 2017-04-07T23:11:46 | 72,824,943 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | #!/usr/bin/env python
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"noreply@github.com"
] | noreply@github.com |
5e8e3c2e021324492b3bddcc3682d341a0a778d6 | 4946fa19e840aafb7b3ed4ae159764af44c0ff34 | /pages/urls.py | fd2b01a536ecda7eb1db9d3615cd50bf4701a964 | [] | no_license | palmman/pedshop | c804be2fa8d1a7ce49c86c433a9bb00731146811 | 74aa002272e286e220e1e66fb701209ce9a055a6 | refs/heads/main | 2023-04-18T00:10:59.525763 | 2021-04-28T05:51:38 | 2021-04-28T05:51:38 | 362,352,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('shop', views.shop, name='shop'),
path('about', views.about, name='about'),
path('contact', views.contact, name='contact'),
path('<int:id>', views.product, name='product'),
path('category/<s... | [
"palm454555@hotmail.com"
] | palm454555@hotmail.com |
cc23ce4e71e80a4d08e3686b945fbebc6445f7c7 | 5bda2d41ba5e26af8e8df29d8965e19279106b24 | /deep_dss/__init__.py | e952939ca3975e87442cb72a3dc3392baf5bfd4b | [
"MIT"
] | permissive | adiraju21s/deep_dss | db1cf379c4a0ae6b05db58855a958cbb991e36fb | 360a08f5da38fdb7af9a8534702cc711b66a4343 | refs/heads/master | 2023-03-21T02:15:35.085429 | 2021-03-18T18:22:24 | 2021-03-18T18:22:24 | 278,965,591 | 0 | 0 | MIT | 2020-07-12T03:51:44 | 2020-07-12T00:44:24 | Python | UTF-8 | Python | false | false | 87 | py | __author__ = 'Sreyas Adiraju'
__email__ = 'adiraju21s@ncssm.edu'
__version__ = '0.1.0'
| [
"adiraju21s@ncssm.edu"
] | adiraju21s@ncssm.edu |
0d1dbedc820c68572b5dd505298b12664be1cb05 | f90b5735b5a3d04569a963586cc668ad5bae5ed0 | /scripts/strings/slicing.py | c580d3be5466cdaa1159ded279263176d5fa97b2 | [] | no_license | thaisvergani/arquivos_curso | 2c113b1656bbf7d774260ecbb7063060559b9233 | a3fa066a20d69c016a71dc5ffedc131ee3914a3c | refs/heads/master | 2021-09-10T04:40:48.572391 | 2018-03-21T02:25:27 | 2018-03-21T02:25:27 | 126,066,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | s = 'hello world'
# fatiando (incluindo inicio, excluindo o final)
s[1:4] # -> 'ell'
# a partir do início do índice
s[:4] # -> 'hell'
# a partir do final do índice
s[3:] # -> 'lo world'
# pode usar índice negativo também
s[2:-2] # -> 'llo wor'
# saltos
s[::2] # -> 'hlowrd'
s[1::2] # -> 'el ol'
# saltos nega... | [
"thais.vergani1@gmail.com"
] | thais.vergani1@gmail.com |
ce7ea7ecafd00ae2635bc42169d0e0bc985cc884 | 1228b521ca4d82f8277112da42394ce49511c12d | /PVTX/PVStudy/python/TrackSplitterProducer_cff.py | 0a09bd058ad3b90d37d83d9d8160295d30739fdc | [] | no_license | sergojin/usercode | d9b0f8b6a31a9f127a4e3b8846fa50cfbfd6d6ff | d4ea548b03460ca49ca7ecf6a205bd705f8d624e | refs/heads/master | 2020-05-30T22:04:17.643972 | 2013-06-21T16:30:56 | 2013-06-21T16:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import FWCore.ParameterSet.Config as cms
from UserCode.PVStudy.TrackSplitterProducer_cfi import *
| [
""
] | |
36347c72287f1e86a3606556cf59a811c506c22d | 12be9a01f1231e5cc6ecbaabef965d8fbadbc171 | /Random_Files/animalsPy/main.py | b0fa9debd48074d436bd627757c8deebc881f156 | [] | no_license | SharanSMenon/Programming | f74b7d61ba64c9fb45f63d85b42454817a4ffd85 | fb262b0f3d5deffc8504023aa7d870d209953123 | refs/heads/master | 2020-03-18T00:45:05.214552 | 2018-08-09T21:34:44 | 2018-08-09T21:34:44 | 134,110,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from species import *
l = Lion("Matsumi", 12)
l.whoami();
l.eat()
l.getMType()
print("----")
t = Tiger("Puli", 13)
t.whoami();
t.eat()
t.getMType()
print("----")
e = Elephant("Ana", 47)
e.whoami();
e.eat()
e.getMType()
print("----")
h = Human("Mandan", 30)
h.whoami();
h.eat()
h.getMType()
print("----")
cr = Crocodile("... | [
"sharansajivmenon@gmail.com"
] | sharansajivmenon@gmail.com |
fc5ba79ec6e95db83e771602a19129f81c081955 | 141c90d762260337eaccf1ce633351c56942d2ed | /gametest-master_tar/zoombie.py | b347e61e3ec6db532258a0e4073e27f5e2eb2899 | [] | no_license | silago/gametest | f8499875848d13bae662dfb2d8787b0d009ba589 | dc2620805f1708463268133512a9c4292f919f28 | refs/heads/master | 2021-01-10T19:43:50.250715 | 2014-01-13T04:26:42 | 2014-01-13T04:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | import cocos
from math import sin,cos,radians, atan2, pi
import pyglet
from cocos.actions import *
from time import sleep
import threading
from classchar import *
from classman import *
from random import randint
def Zombiing(scene,victim):
if not getattr(scene,'zoombies',False):
scene.zoombies = []
z = Zoombie()
... | [
"silago.nevermind@gmail.com"
] | silago.nevermind@gmail.com |
2a29dc528d6fecc104cb427a3bf075c0acb82089 | c2df9e04adec78e789d1fbdb0711c45e5b9263a7 | /venv/Lib/site-packages/matplotlib/patches.py | 9cbba65bbb9b007fbf470b1681f317385db6d8e6 | [
"MIT",
"BSD-3-Clause"
] | permissive | AdarshSai/Final_Project | 433009a2f416e894ee3be85cd9317cb8e8df5516 | f966834ca72dd232102ed500ef47ef2b3bdbed5b | refs/heads/main | 2023-01-23T12:21:41.342074 | 2020-11-19T22:24:15 | 2020-11-19T22:24:15 | 308,898,012 | 0 | 1 | MIT | 2020-11-19T22:24:17 | 2020-10-31T14:19:58 | Python | UTF-8 | Python | false | false | 153,320 | py | import contextlib
import functools
import inspect
import math
from numbers import Number
import textwrap
import numpy as np
import matplotlib as mpl
from . import artist, cbook, colors, docstring, lines as mlines, transforms
from .bezier import (
NonIntersectingPathException, get_cos_sin, get_intersec... | [
"adarshsaig@gmail.com"
] | adarshsaig@gmail.com |
96667febbdf8cf838139b3279b7909b587613445 | 806b22ddf02f3cb0dfbbb31d7c214f9d12f667fe | /testimonials/migrations/0004_auto_20180508_2155.py | 0d74be387a5ace84d117c2ac259f2f1154e6b102 | [] | no_license | vieiraa360/full_stack_project | 2adc81478963ca091d9f02ae2ecd34992f291657 | 2f6fc5bdd490302aa83ec6c896da390a06075fd9 | refs/heads/master | 2021-06-04T15:58:06.913176 | 2021-03-29T21:48:16 | 2021-03-29T21:48:16 | 130,612,621 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | # Generated by Django 2.0.4 on 2018-05-08 21:55
from django.db import migrations, models
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('testimonials', '0003_auto_20180508_2148'),
]
operations = [
migrations.AddField(
model_name='testimonial',... | [
"vieiraa360@gmail.com"
] | vieiraa360@gmail.com |
e64cd491a7d101d10bda592a71e75d2c92d17b50 | 2cb1df9c728d15d88a01242c1c59774b71ba8c3b | /Bill Splitter/task/billsplitter.py | 1f809d188469b72a5f8c371c3e1595740fe4fccf | [] | no_license | okornoe/Bill_Splitter | 1bd198028a32c9ef7c23e115dcf6d6113e1c49c1 | d488a7291c630e66bfb94ff841ac67d8721ef3d0 | refs/heads/master | 2023-08-03T18:38:02.666120 | 2021-09-08T08:10:39 | 2021-09-08T08:10:39 | 404,264,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # write your code here
import random
guest_list = {}
guest_names = []
bill_amount = 0
print("Enter the number of friends joining (including you):")
num_of_friends = input()
if num_of_friends.isalpha() or int(num_of_friends) <= 0:
print("No one is joining for the party")
else:
print("Enter the name of every fr... | [
"kelvin.okornoe@gmail.com"
] | kelvin.okornoe@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.