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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
323f6a66e5501fb6a36af08ef723195e4d93569d | 21c79affcae0e943d1aaeb3edbaae21dfce6130c | /src/main.py | 72733963af9a9d2a216d87356f414c2c872844b5 | [] | no_license | RobertLeePrice/docker_flask_mssql | eee0f89e19615267f81c6a7b7d7aeb1cc4d1a003 | b5dffd2caa28b2978b5f43af83c1c57d6638024c | refs/heads/main | 2023-08-24T01:03:35.807889 | 2021-09-15T03:13:49 | 2021-09-15T03:13:49 | 406,597,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from flask import Flask
from app import create_app
if __name__ == "__main__":
app = create_app()
app.run(host='0.0.0.0') | [
"rlprice410@gmail.com"
] | rlprice410@gmail.com |
9826d20f94114b70231c069733d161a605c7bafb | 15dd460de4a5545ffc8d30b6b3c812b566eb09ab | /swan1/urls.py | 0479c8cc1c0dee554be21b6bb1ef55cef0179b30 | [] | no_license | darji321/swan | 904f551f9234cd672f50617bf232efbaf1f36fb2 | ccf9ecbb5a8dc58dff0b8bd986e31928d1506363 | refs/heads/master | 2022-12-15T07:13:21.309175 | 2020-09-16T10:21:19 | 2020-09-16T10:21:19 | 295,369,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | """swan1 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 v... | [
"65672242+darji321@users.noreply.github.com"
] | 65672242+darji321@users.noreply.github.com |
fdc9805093bb2cb9a0ca5de1d519a04c84ad7026 | 61c048ee02c759a659e6f9cdd04fc6a4aa16f506 | /wdbc-small.py | 89aec7f31aaa9a27ec658bcf9d114b933b88c28f | [] | no_license | GayathriR0014/MachineLearning | 20beb030aaa35e37c7fed992bacdea38d46e33b5 | 60d888f3e3b8913bd6d6de92119774697fe45d0a | refs/heads/master | 2020-03-27T22:48:50.684657 | 2018-09-03T23:31:50 | 2018-09-03T23:31:50 | 147,263,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,558 | py | import tensorflow as tf
import numpy as np
tf.enable_eager_execution()
VERBOSE = 2
# specify path to training data and testing data
train_dataset_location = "wdbc_train_small.csv"
test_dataset_location = "wdbc.csv"
# csv format: feature_0, feature_1, .., feature_{n-1}, label
# n features followed by o... | [
"noreply@github.com"
] | noreply@github.com |
bceff132e2360a55930a5c20285ff03c213d45cb | 0a950e4ca899ee0f76f590d1dd7eb70fd8576111 | /usda_mespe.py | 163bac1969e1e2aa6d85e0c5c94d8feb02cf6e68 | [] | no_license | mespe/Intro-to-Python-2015 | 56085949ac3e2fbce37f397d27fe53a33017aeb9 | 8fd7e9ec7ebfd8ba8b55e00a905849322edba23e | refs/heads/master | 2016-08-03T08:29:50.004490 | 2015-01-20T20:24:26 | 2015-01-20T20:24:26 | 29,324,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,031 | py | '''
A simple client for USDA statistics
http://quickstats.nass.usda.gov/api
Found the data set in the data.gov catalog:
http://catalog.data.gov/dataset/quick-stats-agricultural-database-api
Fun fact: This actually queries a database with 31 million records
'''
import requests
# You'll need to change this t... | [
"mespe@ucdavis.edu"
] | mespe@ucdavis.edu |
ac725be804118071e93d65cfe070174d556c8388 | bcc7011cb121e653d831e77206e541675e348337 | /Global_and_Local_Inversions.py | 17fc67eb30ac3008140d41569fefa9ea03994983 | [] | no_license | Built00/Leetcode | 2115c20bf91e9f9226ce952293132bc7a852fe86 | ec3c0d4bd368dd1039f0fed2a07bf89e645a89c3 | refs/heads/master | 2020-11-24T09:12:08.172973 | 2018-03-27T01:23:08 | 2018-03-27T01:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | # -*- encoding:utf-8 -*-
# __author__=='Gan'
# We have some permutation A of [0, 1, ..., N - 1], where N is the length of A.
# The number of (global) inversions is the number of i < j with 0 <= i < j < N and A[i] > A[j].
# The number of local inversions is the number of i with 0 <= i < N and A[i] > A[i+1].
# Return tr... | [
"binwengan@gmail.com"
] | binwengan@gmail.com |
3d61aa821efe57392045a68d3bbb65f649f801ab | 3816ebb91637cfe26cae848f5468016ae68ea936 | /setup.py | 96570a647fc173f3c39cac4e371cc0ded500c704 | [] | no_license | level96/imagewarrior-py | 4bad0285119eb22232b2bf2d74c3cb9ecf8a688d | 19452996ef860842eb7c7513fda6c408983434fe | refs/heads/master | 2020-05-14T10:36:22.915408 | 2019-05-16T19:39:02 | 2019-05-16T19:39:02 | 181,764,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | #!/usr/bin/env python
# encoding: utf-8
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
setup(
name='imagewarrior',
version='0.1.0',
description='Django/Jinja2 Templatetags Imagewarrior.',
url='https://developer.imagewarrior.de/',
autho... | [
"trung.phan@level96.de"
] | trung.phan@level96.de |
e32d3b244424543e03bc35c901ab25106b547de9 | b44b2d78a1e9114364cd1b2578afefbde6c021b3 | /server/api/migrations/0006_contactform.py | 406fbd0fd8cab943ca67764b02e7f7e487fd593f | [] | no_license | Rinshin-Jalal/Fasalu-Rahman-Cheekode-Portfolio | 4d5c6d5da141aa5cc79cb207174f1800baeb2e17 | 6656a115d6c86e9be4aa980ffa64712a4bdfc074 | refs/heads/main | 2023-08-25T02:08:31.617121 | 2021-10-08T11:03:39 | 2021-10-08T11:03:39 | 396,309,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | # Generated by Django 3.2.5 on 2021-08-14 14:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0005_auto_20210814_0834'),
]
operations = [
migrations.CreateModel(
name='ContactForm',
fields=[
... | [
"rinzhinjalal@gmail.com"
] | rinzhinjalal@gmail.com |
f1585623443f7ec42f32fddf1b27b2354e75a163 | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/python/aiohttp/aiohttp/payload.py | eb38c7cdbc403922eef2eec74dd4c0d01c3bdbb3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 12,804 | py | import asyncio
import enum
import io
import json
import mimetypes
import os
import warnings
from abc import ABC, abstractmethod
from itertools import chain
from typing import (
IO,
TYPE_CHECKING,
Any,
ByteString,
Dict,
Iterable,
Optional,
Text,
TextIO,
Tuple,
Type,
Union,... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
b96659b43236488a596df37f093566edc55e5346 | 4db29cd5aac60df2cef478cf25c7508880c12cbc | /Simulated_dice_roll/die.py | c3babf38a3f9653ec58846554abd167d92c1fde2 | [] | no_license | zyhang8/python_crash_course | a1cab892203135d52bd7995be4dc697b964a4bb5 | f968c7974bdb9348008f8bf1e9530dc083d3e809 | refs/heads/master | 2020-04-26T17:29:47.416532 | 2019-03-16T13:39:25 | 2019-03-16T13:39:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from random import randint
class Die():
"""表示一个骰子的类"""
def __init__(self, num_sides=6):
"""骰子默认为6面"""
self.num_sides = num_sides
def roll(selfs):
"""返回一个位于1和骰子面数之间的随机值"""
return randint(1, selfs.num_sides) | [
"1023708557@qq.com"
] | 1023708557@qq.com |
18b7044e434e0878ff4a74e4acebf367bfd3596e | 1ea36bc61aed79d9ae198350e221c8d6a7073b08 | /venv/Lib/site-packages/pip/_internal/resolution/resolvelib/requirements.py | 813792d12ff37cacd53a4186dfedd722b748684d | [] | no_license | RicardoAltamiranoSanchez/Proyecto_Tienda_virtual_API_7-Sunburts | f3f0b7f166520d3d91832ac13aa0686d7b5211d8 | 4c95220415277f8561740a8da78ef68ff576f1d6 | refs/heads/master | 2023-04-25T23:40:43.804848 | 2021-05-15T16:50:44 | 2021-05-15T16:50:44 | 324,892,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,180 | py | from pip._vendor.packaging.utils import canonicalize_name
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
from .base import Requirement, format_name
if MYPY_CHECK_RUNNING:
from pip._vendor.packaging.specifiers import SpecifierSet
from pip._internal.req.req_install import InstallRequiremen... | [
"hacker@hacker.home"
] | hacker@hacker.home |
9a56fffda6aaa5c2c7e38a7c1237ee9f28e80483 | 05b4090ffe273915107d471c635c266e0eedc205 | /genres/forms.py | 42cdd48dae6b108fb95a885998b5332a6b32b2ea | [] | no_license | kashsingh/greedygame | e7b35c0594c3855ee580d7a068d56ce077559268 | 94dab6bfe487f9db71d6b21e27d3280fa2c1ed7c | refs/heads/master | 2020-04-06T06:58:52.042690 | 2016-09-18T06:21:33 | 2016-09-18T06:21:33 | 63,059,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | from django import forms
from genres.models import Genre
from django.template.defaultfilters import slugify
class GenreForm(forms.ModelForm):
name = forms.CharField(max_length=128, help_text="Please enter the genre name.")
views = forms.IntegerField(widget=forms.HiddenInput(), initial=0)
slug = forms.Char... | [
"max.payne61@gmail.com"
] | max.payne61@gmail.com |
b1b195ac92b04dd2d041ac35a65909ac65a0efcc | fd7dc71468cc9e93317fc056782abf8a96b6f8e2 | /Blocks.py | 03e8458ddaccabfc4b44775f144c31020a8512be | [] | no_license | Axicer/Blocks | a4a00ffc2df7e9c7ad3accc6b8b7ce1d994ee47b | b27b1e9aec5e6551fe93c573da6e63020bb1fb71 | refs/heads/master | 2021-01-23T04:09:06.144940 | 2017-05-18T18:21:50 | 2017-05-18T18:21:50 | 86,159,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | import Settings
import pygame
import Data
import Grid
from copy import copy as cp
class Main:
def __init__(self, title):
self.title = title
self.clock = pygame.time.Clock()
self.screen = pygame.display.set_mode((Settings.WIDTH, Settings.HEIGHT))
self.grid = Grid.Grid(Settings.WIDTH... | [
"julienrabez@gmail.com"
] | julienrabez@gmail.com |
54a008ec6f6fc4fcd11984a6970366a36a1b055b | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/oz.py | 6e46cf0a68992802596650c2ce6e38fe9a41e517 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
2d04af8d46934784c435d2e745f866eb5816357c | 643123f8e3f7009ee0a0a00117e968b1ad79cc21 | /teste_estagio/settings.py | cf900b8f8eb25b082cb3ed8d9496faa08fdacfe7 | [] | no_license | moacyrsalim/estagio_cep | cb066d6b142920bc366377aeba25f02e5d0ae59f | 4059788fbaa1f201f262d6e98641538d17caf5b8 | refs/heads/master | 2022-11-10T19:53:24.254995 | 2020-07-01T00:24:24 | 2020-07-01T00:24:24 | 276,139,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | """
Django settings for teste_estagio project.
Generated by 'django-admin startproject' using Django 3.0.7.
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... | [
"54470702+moacyrsalim@users.noreply.github.com"
] | 54470702+moacyrsalim@users.noreply.github.com |
800e01d96d0377b922a3b2148405d4d37c964fa3 | 531caac957596fc623e534bce734ef6b45be0b07 | /tests/operators/vector/test_floor_001.py | 350c04c90cd1257905c6cfa67ca849dde2b97a12 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | wxyhv/akg | 02e64d81bbb84472e0bf1c57a691b688ea743d6e | fc9b6f5b6fa024da89bf90466a815359ca54015d | refs/heads/master | 2023-03-11T02:59:18.472826 | 2021-02-23T07:44:16 | 2021-02-23T07:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# 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 agreed to... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
db827df0e6a51c37b9b881aab0bc67e8a98a53fc | 8d7ae72c97c97b8a0c9175624afcc60b65fd3304 | /players/player_result.py | 5ddc39b7938485b0f3704d89a7ff4302c609fe8d | [] | no_license | ndurette/pga-tour-parser | a9c5c2a883e91d6dc85a1de45f04541122346d2d | ed1de1457f879e98fd44a9c29fa5a28c2b46147b | refs/heads/master | 2020-03-23T03:36:18.020066 | 2018-09-23T04:22:20 | 2018-09-23T04:22:20 | 141,039,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | import requests
class PlayerResult:
def __init__(self, tournament_id, position):
self.tournament_id = tournament_id
self.position = position
def __str__(self):
d = dict({})
d['tournament_id'] = self.tournament_id
d['position'] = self.position
return str(d)
... | [
"nikolasdurette@gmail.com"
] | nikolasdurette@gmail.com |
c0e0ba14f5b0d6553e0ab8ea2c7ab3c584612b90 | b65c1f6000af4ddeb7280e7d93bf861fbf1964bc | /docs/conf.py | f738f1816dbe005da47a911e42eba2c58f773d96 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | EricSchles/calc | ef00aaddfec010321867a8287db0a565dbb7985e | eaa1ab227a5a07f5f4f7d2c64a278977cd43cb18 | refs/heads/develop | 2021-01-25T14:33:58.124300 | 2017-10-11T19:29:20 | 2017-10-11T19:29:20 | 72,668,485 | 1 | 0 | null | 2016-11-02T18:17:57 | 2016-11-02T18:17:57 | null | UTF-8 | Python | false | false | 5,864 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# CALC documentation build configuration file, created by
# sphinx-quickstart on Fri Feb 10 12:27:23 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... | [
"varmaa@gmail.com"
] | varmaa@gmail.com |
fadc77c7549de3d2eee4a4343e2f9d1d1c73a6b8 | 1bba82345900327ed1c128e8046dc91f90a0ccb5 | /tax_debts/apps.py | 0f0af72642fe3c3364064a1e06acab7be13c0dc7 | [
"MIT"
] | permissive | dchaplinsky/ragoogle | 40bd093682e41d1ee2a77f446c69d09e82bb3948 | dccb3d29334c3220ea12c46c725c443c8bd725c0 | refs/heads/master | 2021-06-11T10:07:41.142843 | 2020-10-12T10:30:39 | 2020-10-12T10:30:39 | 136,800,715 | 3 | 3 | MIT | 2021-03-19T23:20:02 | 2018-06-10T10:51:30 | CSS | UTF-8 | Python | false | false | 682 | py | from abstract.apps import AbstractConfig
from .loader import TaxDebtsLoader
from .elastic_models import ElasticTaxDebtsModel, tax_debts_idx
class TaxDebtsConfig(AbstractConfig):
name = "tax_debts"
verbose_name = "Податковий борг"
short_name = "ДФС"
loader_class = TaxDebtsLoader
@property
def... | [
"dchaplinsky@conversionscience.co.uk"
] | dchaplinsky@conversionscience.co.uk |
288718d201c7e17431f0b425a842fe4d5b3e14e5 | 3afd6f0098a981f85330c589320a5552e38f5cf3 | /ansible_collection/hpe/nimble/plugins/doc_fragments/hpe_nimble.py | a8c4f1639cbdc69cbdd5259cb069a7f7a58fbcef | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | datamattsson/nimble-ansible-modules | 6af9933ca92a38396080636ec5de26d40af5365c | ba306153f98db093a9af47c99bdfce1381660880 | refs/heads/master | 2023-04-02T12:57:12.695395 | 2020-09-25T19:31:44 | 2020-09-25T19:31:44 | 286,526,559 | 0 | 0 | Apache-2.0 | 2020-08-10T16:32:39 | 2020-08-10T16:32:38 | null | UTF-8 | Python | false | false | 1,332 | py | #!/usr/bin/env python
# Copyright 2020 Hewlett Packard Enterprise Development LP
#
# 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 requi... | [
"noreply@github.com"
] | noreply@github.com |
84e37ca82405d9435b0a64bdc32f81f785b186e4 | 5f9e0c226c6f99f04446d60cd21282e7e6b05d2c | /sequence.py | 4def0862fac63ace7d5d9b90c17358bee744d122 | [] | no_license | JONNY-ME/my-kattis-solution | 867ac267dbb5faa6f7c2af35b435498a22ae269d | 51c70e0fd25f1f369cdcd2ce49a54d5d0df2358e | refs/heads/main | 2023-06-17T20:04:04.701038 | 2021-07-16T09:35:35 | 2021-07-16T09:35:35 | 386,583,581 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from math import log, ceil
k = log(int(input()), 2)
if k == int(k):
k = int(k)+1
else:
k = ceil(k)
print(k)
for i in range(k):
print(2**i, end=' ')
print() | [
"yohannesmelese4@gmail.com"
] | yohannesmelese4@gmail.com |
68e38a6fac9cc3be0b02cf026f1cb6aa434de11b | 7e9864f07a6823556c1fea8a5ebbf0bc87497b69 | /courses/apps/courselist/urls.py | 29fa8d57a9811944de20f531d57dd9470417f3c5 | [] | no_license | marmegh/friendly-robot | a3113b7fb63dd0425d9bee93988dd6e6d4b5f079 | 13ef390ae6acd88946a47e7c7f6b3ba20266bad3 | refs/heads/master | 2021-07-08T11:34:39.351739 | 2017-10-02T03:31:06 | 2017-10-02T03:31:06 | 104,270,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from django.conf.urls import url
from . import views
urlpatterns=[
url(r'destroy/(?P<entry_id>[0-9])', views.destroy),
url(r'deletion/(?P<entry_id>[0-9])', views.deletion),
url(r'addition', views.create),
url(r'^', views.index),
] | [
"martinmm@outlook.com"
] | martinmm@outlook.com |
9e0289f8b6460db8d26761434c007b01c1d73800 | 5996d63b50562a922b465f597f1b91b873513bb2 | /h5tool.py | 203de7dc24ff25b2561555be7b6f22bb18dd87ab | [] | no_license | lefiniti/celebA_hq-images | 5a5b3fb8372057aeaf450b40a1b02ffd8f3c644f | 8eb87b45bb34d05f4b881e99ac68329c06c9f44b | refs/heads/master | 2020-05-15T11:05:04.753860 | 2019-04-19T11:45:27 | 2019-04-19T11:45:27 | 182,211,962 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 33,470 | py | # Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
#
# This work is licensed under the Creative Commons Attribution-NonCommercial
# 4.0 International License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to
# Creative Commons, PO Box 1866, Mountain ... | [
"noreply@github.com"
] | noreply@github.com |
db802391bcd03b8b2e12e805475b0d5c95ca0008 | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /blend4_pdep/pdep/network269_1.py | d12a2a0c2cbdc47b265da5b522cbfd7932b3bb86 | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 24,141 | py | species(
label = '[CH2]CO[CH2](3406)',
structure = SMILES('[CH2]CO[CH2]'),
E0 = (163.919,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([2750,2850,1437.5,1250,1305,750,350,3000,3033.33,3066.67,3100,415,465,780,850,1435,1475,900,1100,415.335,2171.22],'cm^-1')),
HinderedRotor(inertia... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
ed227b6f139fb16509a441efad9226d5d507479b | e523d8b152230d9a81d6725ca67bf345309b587a | /bazel/pytest_bin/test/test_logger.py | b3da4b92e55f0a1a414f78992e381071359e6a65 | [] | no_license | yhoazk/cpp | c3902be6c04431b469b7533ebaf49d41613899d7 | b1a8a222fa225b13fbee2ca5a4c88f9970de1a18 | refs/heads/master | 2023-04-08T04:29:28.704338 | 2023-03-29T17:21:01 | 2023-03-29T17:21:01 | 79,056,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | import pytest
import subprocess
import psutil
import sys, os
import re
import logging
def test_logger(capsys, tmpdir):
logging.error(os.listdir("."))
bin_dir = str(os.path.dirname(os.readlink("logger_generator")))
print(os.readlink("logger_generator"))
#with open("log_gen") as log:
app = "logger_g... | [
"yhoazk@gmail.com"
] | yhoazk@gmail.com |
b6de73e96b3bf0654a79c39e05ae5f0e07a3f610 | fe5f07719581d40a635993a8dd5691af627993ee | /pset6/vigenere/vigenere.py | 907e15613e482ec68d061dd9462dcf5048421699 | [] | no_license | mosaabbas/CS50-harvardx | 87c61ddf3bd59efe535194b1045cd2dea1746de5 | f8ac3825e1b99496511a7dc7c9703ccafc176a1e | refs/heads/master | 2020-04-13T13:16:25.932112 | 2018-12-27T01:26:38 | 2018-12-27T01:26:38 | 163,225,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import sys
from cs50 import get_string
def is_valid(k):
for ch in k:
if not ch.isalpha():
return False
return True
def main():
if len(sys.argv) != 2 or not is_valid(sys.argv[1]):
print("Usage: ./vigenere k")
sys.exit(1)
k = sys.argv[1]
plaintext = get_string(... | [
"noreply@github.com"
] | noreply@github.com |
1f544d3dc6077c66054dcd350578e06c47fa7024 | 040021a2578ccbc0c7c75152a5ef9429d54c4a3d | /scripts/per_pos.py | 81f65eb13a61c0aed9fb072fa9532bbac18e37c1 | [] | no_license | obegik/anna_oz | 0497253b50b3f9a67039a529eec0c3b6fe110fdb | ea3e221339364e052cb64d6d322881ae42996fa5 | refs/heads/master | 2022-12-16T15:41:05.762409 | 2020-09-17T15:09:45 | 2020-09-17T15:09:45 | 255,950,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import sys
import pandas as pd
infile = sys.argv[1]
inp=pd.read_csv(infile,sep='\t') #this step will take ages if the file is huge!
#For the simple figure of (per median/position)
grouped_multiple_mean_inp = inp.groupby(['contig', 'position','reference_kmer']).agg({'event_level_mean':['mean']})
grouped_multiple_mean_i... | [
"oguzhanbegik@gmail.com"
] | oguzhanbegik@gmail.com |
efb3ee2163fd2a2b1ed800332753ac47910a50e5 | ee922ddd7eb1e635d4f94e3a239ff69cf64e91ac | /Weather_Forecast.py | 5299b2955082c67e1be325ae065bc535133e8506 | [] | no_license | tjksiazek/WeatherForecast | 7c9889c3413aa8eb3ea4bbd1b313352eae43fd76 | a6200a45e46a8fe41cdbe6c6d8a1936d65e25235 | refs/heads/master | 2020-12-27T19:08:43.618122 | 2020-02-03T17:28:50 | 2020-02-03T17:28:50 | 238,016,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | import re
import urllib.request
condition=1
braces="<"
while(condition):
end=0
start=0
city=input("Enter your city to check it's weather fore-cast: ")
try:
url="http://www.weather-forecast.com/locations/" + city + "/forecasts/latest"
rawData = urllib.request.urlopen(url).read()
data = rawData.d... | [
"noreply@github.com"
] | noreply@github.com |
5cf2011cbdfec706c876a2c3a208e20b472a49e3 | 639c5a5d5ec61612d60befb8fd9b7dd1864d33c6 | /manager.py | e52cb1da7b47e96137d5c0c74e98d7cb3acfb658 | [
"MIT"
] | permissive | abinsun/news-flask | 62a69caa291c3d89ea21e0f81aacdde48de92f03 | 00ce16b693be8bc217c5c02d57b7a26246937981 | refs/heads/master | 2021-10-27T05:12:12.404864 | 2019-04-16T04:29:48 | 2019-04-16T04:29:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | <<<<<<< HEAD
"""
配置信息:
1.数据库配置
2.redis配置
3.session配置: 主要是用来保存用户登陆信息(登陆的时候再来看)
4.csrf配置: 当修改服务器资源的时候保护(post,put,delete,dispatch)
5.日志文件: 记录程序运行的过程,如果使用print来记录,控制台没有保存数据,线上上线print不需要打印了.
6.迁移配置
"""""
import logging #库文件
from info import create_app,db,models
# from info import create_app,db,models
from flask import cu... | [
"yuanluemail2@163.com"
] | yuanluemail2@163.com |
3ca0a1c2081ef44a2b388f383dc0565d23f53c6f | 2501d2e7ec94d6d4165e02e3e58b325cbcdc3c5a | /github_user_data_app/utils.py | 0d69814855a6de1b800d4e07b80a08b964c91c3e | [] | no_license | Karm0s/GitHub-User-Data | 9435d5a1453728c84e6553b8f2143b3d757ec592 | 6be1fd2aa8991c997baa67b636ec9771302a11f5 | refs/heads/master | 2022-12-14T20:54:17.866960 | 2019-10-23T22:34:18 | 2019-10-23T22:34:18 | 204,217,717 | 0 | 0 | null | 2022-11-22T04:33:18 | 2019-08-24T22:04:24 | HTML | UTF-8 | Python | false | false | 548 | py | from io import BytesIO
from django.http import HttpResponse
from django.template.loader import get_template
from xhtml2pdf import pisa
def render_to_pdf(template_src, context_dict={}):
template = get_template(template_src)
html = template.render(context_dict)
result = BytesIO()
#pdf = pisa.pisaDocume... | [
"bouchenna.yanis@protonmail.com"
] | bouchenna.yanis@protonmail.com |
d35ccecc0a86c0ceefe4273f92469b78695965b3 | 212ed58f18a92a5ffd9ee85525f01fb51bb0cff4 | /data_trans/consumers.py | 53d2a0ffd963c03c75b5384e2537964797d6885e | [] | no_license | psambit9791/channels_test | 4577b385084b487208478c252f8caae1c76a36ce | 75a0dbca06fee832da8277e0d4e2f5bf16423e5c | refs/heads/master | 2022-12-13T09:46:39.094100 | 2019-02-26T11:07:07 | 2019-02-26T11:07:07 | 172,534,408 | 0 | 0 | null | 2022-12-08T01:38:33 | 2019-02-25T15:42:22 | Python | UTF-8 | Python | false | false | 1,862 | py | import asyncio
import json
from django.contrib.auth import get_user_model
from channels.generic.websocket import AsyncWebsocketConsumer
from channels.generic.websocket import AsyncJsonWebsocketConsumer
from asgiref.sync import async_to_sync
class DataConsumer(AsyncJsonWebsocketConsumer):
async def connect(self)... | [
"sambitpaul1992@gmail.com"
] | sambitpaul1992@gmail.com |
e2d32f6b39546207205af95a7da81078fcf8457c | 8537a28c556689883e6ce549642b7dd1013d0fba | /linux_math_review/octal_math.py | dba98995d4c8e0e9d3212d9be81ce9e48ae075e1 | [] | no_license | mlworle/Akamai-Academy | 5e64e9e1b2fb5170440240864b3773db4d0756df | 9e5e7a21a82e0de7bad82a846a7eea14b29c63db | refs/heads/master | 2021-01-21T13:40:59.864866 | 2016-05-10T22:55:44 | 2016-05-10T22:55:44 | 50,674,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # Akamai Academy Technical School
# Linux Command Line Review
# Review: octal math
import random
# Getting lazy. One RTFM for all.
def rtfm():
print "Bummer. Check your notes and try again. I don\'t mean to be mean, but there are a lot of commands and I have limited attention span to write thes, so I\'m not going... | [
"mlworle@gmail.com"
] | mlworle@gmail.com |
2e71f22d3529c99d3e864116d3c3f42650b8cb33 | 5d7cb6219c491d4eedc4a34765cf2ddea288f06b | /tests/analytics/test_tables.py | 19629f437445a176390cf0d6ae940f88e5aa94ff | [
"Apache-2.0"
] | permissive | sjvkishore/vectorai | 322c84428ec43ee54a3b661f2e696f28bb150620 | 752bc24aaa02bf06b796e485f22d71f9643154f2 | refs/heads/master | 2022-12-31T02:34:02.279776 | 2020-10-18T02:31:18 | 2020-10-18T02:31:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | import time
import pytest
class TestCompare:
@pytest.mark.use_client
def test_setup(self, test_client, test_collection_name):
"""
Test Setup.
"""
num_of_docs = 10
if test_collection_name in test_client.list_collections():
test_client.delete_collection(tes... | [
"jacky2wong@gmail.com"
] | jacky2wong@gmail.com |
230586f9d6953a471e7d734543104ead21c8cefe | 41bea39563c74621924d79723f8ba84889958365 | /nkamg_pcap/server/pcap/pcapanalysis.py | f35fbc521427fc37b36571488b62756327ed850d | [
"MIT"
] | permissive | NKQiuKF/pcap_update | abee0c13cb583fddb89eb9e86a487279bdc18f1d | 679e3f116367394a5f58eb4f95b5318e80fee331 | refs/heads/master | 2022-10-21T17:49:30.706480 | 2019-09-02T09:22:06 | 2019-09-02T09:22:06 | 205,816,421 | 1 | 0 | null | 2022-10-06T18:33:32 | 2019-09-02T08:55:55 | JavaScript | UTF-8 | Python | false | false | 22,425 | py | #coding:utf-8
#from superset.data import *
"""conn.log中每一条代表一次完整的连接,包含多个包"""
import sys
#sys.path.append("../../")
import os
import pandas as pd
from superset.data import *
from geoip import geolite2
import hashlib
from get_province import get_province_code
FilePath = os.path.join('/'.join(os.path.dirname(os.path.absp... | [
"453341288@qq.com"
] | 453341288@qq.com |
a82fe11ab0ec9c60ce41552cf7f8770f52dddf5e | 5d4d9f30443442d3a205fb49d4ff2a2fcc6f412d | /algorithm/logistic.py | d6848e5f7c682d98b52789d00015aa0e5c8c3aac | [] | no_license | hexinuser/Machine-learning-study | d41aaa761ad676492bc76c1bfc2df15951b46036 | 356c5dc413852110ffbb74f880170af8feddb799 | refs/heads/master | 2020-04-06T13:59:37.859266 | 2018-11-14T12:10:08 | 2018-11-14T12:10:08 | 157,523,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,909 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 1 10:35:21 2018
@author: hexin
"""
import numpy as np
import matplotlib.pyplot as plt
def loadTestSet():
#返回数据集数组,标签列表,数据集最后一列增加了一列单位向量,对应的w最后的一个元素为b
dataSet = []; dataLabel = []
fr = open('testSet.txt')
for line in fr.readlines():
... | [
"noreply@github.com"
] | noreply@github.com |
653ca533eb3f53b29e27b7eb8e5b17df34a8b2eb | 6203105c774913bbb3dc7e2d9bb99f739d9d24fa | /discrete_autoencoder/layers/activation.py | 249418a2662f3838a89576ab80e8e36e9d2b2c95 | [] | no_license | bstriner/discrete_autoencoder | f5eae31e155b2c4c440c9fe89b060c3be61de888 | baca5d23964b08ff7e3062c07d74b0ff9a631e98 | refs/heads/master | 2021-07-23T02:12:36.405089 | 2017-11-03T09:37:02 | 2017-11-03T09:37:02 | 108,048,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from .layer import Layer
class ActivationLayer(Layer):
def __init__(self, activation=None):
self.activation = activation
params = []
non_trainable_weights = []
super(ActivationLayer, self).__init__(params=params, non_trainable_weights=non_trainable_weights)
def call(self, x):
... | [
"bstriner@gmail.com"
] | bstriner@gmail.com |
0e9276794901672ca75a3aaf24c21d32881ba8d5 | 6ab0b754395a3db3fda0c9c223a29bbe0220a63d | /salsafuego/merch/migrations/0005_remove_merchcollection_description.py | a12db536ac0d1fc304ae2b0d80ace5e336407cb6 | [] | no_license | SalsaFuego/coeus | c221fee5bff3ac7fe9669ff6f1352a07091f3168 | 9782b0cf6f5d539011201527b0b1305a8c0001e4 | refs/heads/master | 2020-04-24T21:24:34.938989 | 2019-03-10T19:47:32 | 2019-03-10T19:47:32 | 172,276,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # Generated by Django 2.1.5 on 2019-03-04 01:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('merch', '0004_merchcollection_description'),
]
operations = [
migrations.RemoveField(
model_name='merchcollection',
name='de... | [
"nwc@nicchappell.com"
] | nwc@nicchappell.com |
9a88e91fff8742a02c9dee1e3a56b81fe1d419bd | 60b48e73cf5e0b85c125475b906a0b04ffa86d09 | /mysite/mysite/urls.py | 2a635fd4e0e762d0ffa9608961a783ac5c6bcaf1 | [
"MIT"
] | permissive | radish0416/python_django | 713ef0ab43718249ccc41fbfee05779142636dd3 | d351ca3203e96c6fec3a99a6e346d29c7ae94e57 | refs/heads/master | 2020-05-17T17:41:16.121334 | 2019-04-30T07:11:49 | 2019-04-30T07:11:49 | 183,859,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"gingersl@qq.com"
] | gingersl@qq.com |
f4baa08316d480ab480ebbdcf2b2a071a92525e9 | da7de5e15ca6b8076649c4197a6fdbbaf19e020f | /BellmanFord.py | 8bf5052eb91d723ba1b2c455b7dcd577102c6789 | [] | no_license | amdel2020/Algorithms | 36ad53bc5d5ece95e368438634531d325cc37c05 | 43358c931836a807e1d5383faa6412bc11015fda | refs/heads/master | 2020-03-09T03:05:16.545207 | 2019-10-28T14:46:54 | 2019-10-28T14:46:54 | 128,556,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | from collections import defaultdict
class Graph:
def __init__(self, vertices):
self.vertices = vertices
self.graph = []
self.parent = defaultdict()
self.dist = defaultdict()
def addEdge(self, u, v, w):
self.graph.append([u, v, w])
def initializeSingleSource(self, s... | [
"amdel2020@gmail.com"
] | amdel2020@gmail.com |
a968856062d20e9ecf44d43f64d9140a20a3f7df | 12179f6235e2228f3fe1d6d4d0389940feecb9b1 | /model.py | 47a2d483f6c2e3353eac6f6ff6495a2e25b6eff0 | [] | no_license | WJie12/2019_DREAM_Sub1 | 640b7e7929f542b43b5f44ee5dd80d1100c4fb09 | 3ab46d14f8b65ce04e387bb50a6f57fc3ed89cab | refs/heads/master | 2020-12-14T22:20:28.221186 | 2020-01-19T11:49:54 | 2020-01-19T11:49:54 | 234,890,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,963 | py | import tensorflow as tf
import numpy as np
import math
from tensorflow.python import debug as tf_debug
import tqdm
import copy
# def latent_combine(genes,kernel=5):
def feature_slice(input,gene_num,batch_size):
feature_list=[]
for gene_id in range(gene_num):
tmp_input_1 = input[:,0:gene_id]
tm... | [
"summerwangjie@outlook.com"
] | summerwangjie@outlook.com |
dde6662f0bb8e6e4a8ce6430ac3e290a26e14ca3 | b03121e88c7c7b4738d6ab873cf030e7db140e32 | /e_27.py | 98656fb570d85272f4f84f848dad5a843443a105 | [] | no_license | priestd09/project_euler | 0889a2038ee4ff17008169abea73f8a3bc74f713 | d6a04fbe42947ef0f9d9e26077c2b9b99069f4d1 | refs/heads/master | 2021-01-18T19:42:00.135047 | 2014-05-25T09:39:57 | 2014-05-25T09:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | #!/usr/bin/env python
"""
##---
# Julien Lengrand-Lambert
#Created on : Thu Jan 19 10:12:06 CET 2012
#
# DESCRIPTION : Solves problem 27 of Project Euler
A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given:
Euler published the remarka... | [
"julien@lengrand.fr"
] | julien@lengrand.fr |
926a491547dd67d80a5670c4f0c69088abc3b850 | 70b478ef32bf4c0c43db4230346ad6340c6007d2 | /Transformer_vanilla_torch.py | 7961b905ce995a3811b7b75a3cbd67f0d035db74 | [] | no_license | Vbansal21/Transformer-X | 6f6a053d1f63bc1754b701dd7297aca8da00575c | d4b1b6eaf0596c4c1ed08b40d6d3f4828dce5893 | refs/heads/main | 2023-05-26T21:08:06.209474 | 2021-06-11T06:52:06 | 2021-06-11T06:52:06 | 375,335,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,518 | py | import io, os
import random,wandb
from torch import nn
from torch import Tensor
from einops import rearrange
import math, time, torch #,copy
#from performer_torch import PerformerLM
#from pytorch_model_summary import summary
from torchnlp.encoders.text import SubwordEncoder
from torchtext.utils import download_from_url... | [
"wasbansal@gmail.com"
] | wasbansal@gmail.com |
7b2513811367abfed7e605a4f933c9aafd6aeed4 | 3122fef1e5d12497957976e02aed1b0df1355f7e | /examples/cam.py | 644a6e90e70f80d070efe2354d591b0c1a634228 | [] | no_license | cau-team-projects/pano-maker | 60c811ce8cfdfe8a77d030d2f1e76e5b68358ffc | 077bf529acd2284eaac1deb0e74d5d442eb1c7fd | refs/heads/main | 2023-01-19T00:19:04.852733 | 2020-11-13T15:50:23 | 2020-11-13T15:50:23 | 312,468,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
ret, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow('frame', gray)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
| [
"gonny952@gmail.com"
] | gonny952@gmail.com |
55698efc8448f9bc9717feee7a3e3f146a1b420f | c3eed2f4052c034f9c7f1777c0d2534d6daf50f1 | /vismet/migrations/old_migrations/0001_initial.py | 8da21a2dccae3204f60d18a41a48290a9068c8e0 | [] | no_license | Mr-Saxobeat/iec-site | 6f5c35aae2c4264afed5ee2bd176b9a2e7628204 | 28d8c973dedefd17d8a808e798e5b1fbd1a4d63d | refs/heads/master | 2023-06-28T02:07:07.890122 | 2021-08-05T16:53:08 | 2021-08-05T16:53:08 | 275,665,933 | 1 | 2 | null | 2021-04-28T15:06:16 | 2020-06-28T20:50:18 | CSS | UTF-8 | Python | false | false | 2,031 | py | # Generated by Django 3.0.8 on 2020-08-06 17:47
import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"weiglasribeiro@gmail.com"
] | weiglasribeiro@gmail.com |
e635cd80bf65c0991f953f7a8053040b26e3ab5a | 4af87e700fa9b07c27ba6390bf425fbf29019b07 | /libs/myMQTT.py | 1d0ea904b5f3652e4c8210a1cf2a428da59f71fe | [] | no_license | Olexander1111/myhome | dfe7fa2983ca44f50806544918e95bb3f1d0f863 | 7d62ccac63f47b54df0a507d847df1f2a804ed69 | refs/heads/master | 2023-03-30T23:30:37.244716 | 2021-04-04T06:12:10 | 2021-04-04T06:12:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,845 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# WARNING! This script runs under virtualenv (/home/python-openzwave/)
# it has it's own libriries
import sys
import subprocess
import string
import datetime
import json
import time
#from pprint import pprint
sys.path.append('/home/scripts/libs')
from myLogs import myLogs
fro... | [
"mirage@izbushka.kiev.ua"
] | mirage@izbushka.kiev.ua |
dbbe77247e37360902915eec63fc9e379d8f0786 | 802de8d23dcbc9de9b1a654575a85f95011940ba | /resources/useful.py | 73671a127bb9758c666a5752942a3aeede441ab7 | [] | no_license | garyjoy/pyswing | aa81f7254837160f840569c99f68c21a40a2207c | 08b07b50ead69decd381cf5f866f4d8ffb80fa54 | refs/heads/master | 2021-01-17T09:39:57.951318 | 2016-04-17T15:31:48 | 2016-04-17T15:31:48 | 41,733,320 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py |
from pyswing.objects.equity import Equity
cbaEquity = Equity("CBA.AX")
cbaEquity.dataFrame().query("Date > '2015-01-01 00:00:00'").plot(y=['Close'], title='CBA Close 2015')
import pyswing.database
import sqlite3
from pandas.io.sql import read_sql_query
pyswing.database.initialiseDatabase("ftse")
connection = sqlite3.... | [
"gary.joy@gmail.com"
] | gary.joy@gmail.com |
a650c852d7b4d92f589825a9477b9a7059ad9c69 | e58f06d4e1a01014d3001072a3513070c7eacdd7 | /univerchain/univerchain/apps/store/admin.py | 94c3b7203a4a4cf3949b4b35fe51f103b2c8874f | [] | no_license | sammiee5311/univerChain | 3f83d4e064148635d55e8ce0ff6bda5ea38661f5 | c0c908d624af2b6e3d744933d6e554084a97b7d8 | refs/heads/main | 2023-07-07T12:15:22.491126 | 2021-08-05T12:33:55 | 2021-08-05T12:33:55 | 373,683,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from django import forms
from django.contrib import admin
from mptt.admin import MPTTModelAdmin
from .models import *
admin.site.register(Category, MPTTModelAdmin)
class ProductSpecificationInline(admin.TabularInline):
model = ProductSpecification
@admin.register(ProductType)
class ProductTypeAdmin(admin.Mode... | [
"56215891+sammiee5311@users.noreply.github.com"
] | 56215891+sammiee5311@users.noreply.github.com |
11a78d6cbb1fc4d8f6de5fe23dca9914d1208f2c | ce2b21cf6f4e36703bd24f9c3a5ab3358aa59bf6 | /Final Project/learning_app/user_managment/views.py | d10f58c4f11c0087a298ceea6b4c15523d6f35ab | [] | no_license | irinaignatenok/Dev-Inst | ed29b69fe14e77b9798a9f8297e0b08542f50ecf | 5f7753b2ddb283fe3e36f67f4a4c4eeb42eff48d | refs/heads/master | 2022-12-11T00:17:48.254328 | 2020-09-02T13:55:41 | 2020-09-02T13:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,641 | py | import flask, flask_login
from .. import db
from flask import request, flash, redirect, session, url_for, current_app, render_template
from . import user_blueprint
from . import forms, models
from ..static.enums import UserType
from ..static import constant_functions as const_func
from ..learning_hub import models as h... | [
"arthurr.ie@gmail.com"
] | arthurr.ie@gmail.com |
117fe77bcf37a11b807b04697cc3c1e59a99d9b0 | 542e77cb19da870a4ba0be22e6fe6ca8405937d7 | /lab_4.4.py | 8d9e4799037d700add5f9078f8312d90e0445e8b | [] | no_license | GlushenkovaT/Prometheus | 477e04ac22ec09bba72a5ab4e747e5e437916622 | 0a9c0abcb909b0bf28e9cfb682e15e6c8e95d227 | refs/heads/main | 2023-08-31T09:31:26.489880 | 2021-10-14T17:50:17 | 2021-10-14T17:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import sys
a1 = int(sys.argv[1])
a2 = int(sys.argv[2])
count = 0
for num in range(a1, a2+1):
num = list(str(num))
num0 = [0 for i in range(6 - len(num))]
num = num0 + num
if (int(num[0]) + int(num[1]) + int(num [2])) == (int(num[3]) + int(num[4]) + int(num[5])):
count += 1
print count | [
"noreply@github.com"
] | noreply@github.com |
bcaa54101d4f3dd13e69e631ddbd02012166f37d | c4577ad659ebd397a76cbadbeec08324708125d7 | /MyWatchList/forms/Comments.py | 9604d0d15ee0a6c6fde6d0da2cb6f1aec539a627 | [
"MIT"
] | permissive | nikminer/MyWatchList | d22e8284112410994a5c4219d65c21a296ff08d1 | 17bf065336f52f7f6ef423f85b6aa5315b1d685f | refs/heads/master | 2023-08-22T01:48:56.871756 | 2021-10-04T07:20:37 | 2021-10-04T07:20:37 | 218,856,019 | 0 | 0 | MIT | 2021-09-03T19:08:32 | 2019-10-31T20:28:52 | CSS | UTF-8 | Python | false | false | 677 | py | from django import forms
from MyWatchList.models import CommentModel, ReplyModel
class CommentForm(forms.ModelForm):
text = forms.CharField(widget=forms.Textarea(attrs={"placeholder":"Ваш комментарий","class":"text"}), label="", )
spoiler = forms.BooleanField(required=False)
class Meta:
model = Co... | [
"nikminerfeed@gmail.com"
] | nikminerfeed@gmail.com |
9dea9b1c929465069a63ad148ada76019ba2bd5e | b56a2c41445cbdbb654f2956713ccf66e428b06a | /QT5/face_detection.py | ba8dbf85971a45ec6e1963ab06fcb6b743dee78d | [] | no_license | Marcos001/GUI-py-3.5 | 43179598f5648cf4318cf56e4a72c5bf603b60f4 | e007140a0221310a62a91a825f04227d2e1e8b9e | refs/heads/master | 2021-09-14T19:37:16.784566 | 2018-05-18T05:18:13 | 2018-05-18T05:18:13 | 100,505,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,595 | py |
import sys, cv2
from PyQt5 import QtCore, QtWidgets, QtGui
class ShowVideo(QtCore.QObject):
# initiating the built in camera
camera_port = 0
camera = cv2.VideoCapture(camera_port)
VideoSignal = QtCore.pyqtSignal(QtGui.QImage)
def __init__(self, parent=None):
super(ShowVideo, self).__init... | [
"ferreiraviniciussdi@gmail.com"
] | ferreiraviniciussdi@gmail.com |
33dc19551e17cf62af701072d565608f52790710 | 4546cc069a036e2a597dfc91d9a3bc01c96ea4cb | /Desktop/bootcamp/week2/practice/task3.py | b3b6b0c060b0e27f89aa86e479acec0da64a81e4 | [] | no_license | ibek01/tasks_all_weeks | 6e755139068fdd7d7acea29d763ac9405af8b12c | aa684998b0a4210e325e1f900763c620c96bc380 | refs/heads/master | 2022-12-07T22:32:36.957911 | 2020-08-23T17:43:48 | 2020-08-23T17:43:48 | 289,730,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # 3. Список гостей: если бы вы могли пригласить кого угодно (из живых или умерших)
# на обед, то кого бы вы пригласили? Создайте список, включающий минимум трех людей,
# которых вам хотелось бы пригласить на обед. Затем используйте этот список для вывода
# пригласительного сообщения каждому участнику.
guest = ['Azat', ... | [
"iromankulov99@gmail.com"
] | iromankulov99@gmail.com |
9a7b6a06714203eb97bb00565973822afc5c3f5f | b1266c64309446fec7789b420393ce352de5958e | /cpalgo-0.1.91/cpalgo/minimum_window_substring.py | f13fb366766322795ab5c2f07c4917d52d5fc558 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | srnarayanaa/cpalgo | 3458be7ae2c3b8dc3927cacae87f79c042dfe97d | bf12870ef3521c92564122a826ac0b4caeaea115 | refs/heads/main | 2023-09-03T18:47:58.500580 | 2021-10-22T02:35:24 | 2021-10-22T02:35:24 | 373,668,709 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | def minimum_window_substring(s, t):
ln_s = len(s)
ln_t = len(t)
if ln_s == 0 or ln_t == 0 or ln_t > ln_s:
return ""
dct = {}
for ch in t:
dct[ch] = dct.get(ch, 0) + 1
i = j = 0
minWindow = ln_s + 1
output = ""
while i < ln_s:
if s[i] in dct... | [
"noreply@github.com"
] | noreply@github.com |
c03a75610d9c6359e5b0034a66cbf001dc6401f2 | 2c94c322b5e1f53e131f7d680bcd4413ff11a10b | /bubble_s_ascending.py | dd23b2b99c326a2660e536c4be43b9aee8db5ab4 | [] | no_license | Nehanavgurukul/list | 66996ad6f30183f8d6c758ab824fd5a7840ba4dd | e4aa2686c0f007477e147c733ac98708773570cb | refs/heads/main | 2023-01-11T23:38:15.450749 | 2020-10-29T16:10:29 | 2020-10-29T16:10:29 | 308,381,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | num=[23,50,56,20,11,70]
index=0
while(index<len(num)):
j=0
while(j<len(num)):
if(num[index]<num[j]):
tamp=num[index]
num[index]=num[j]
num[j]=tamp
j=j+1
index=index+1
print(num) | [
"nehay19@navgurukul.org"
] | nehay19@navgurukul.org |
60dc406348d64cbc86adbb7a69add3f22fb5355d | 73a2685cc50ffba69da9d4739ce4fa1fa2f14e2a | /Day9/Dictionary.py | 485b0b333673233799a3755e0f68ac5ab81fd3f1 | [] | no_license | MohdFazalm99/My-100DaysOfPython | 3f1793109c4a0b21341d11010f85a50dc172a145 | bbd119517f95b23c35b08189d118cff6f4031a66 | refs/heads/main | 2023-05-31T21:59:01.750926 | 2021-06-27T11:37:14 | 2021-06-27T11:37:14 | 372,773,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | # Dictionary
"""Dictionaries are used to store data values in key:value pairs.
A dictionary is a collection which is ordered*, changeable and does not allow duplicates.
Dictionaries are written with curly brackets, and have keys and values:
"""
# Crearting List
programming_dictionary = {
"Bug": "An error in a pr... | [
"mohammadfazalm@gmail.com.com"
] | mohammadfazalm@gmail.com.com |
06c2b599f5ab26ddb03f496fd474cca2aba374f1 | 810e11f9a42f1159f79aae081f8fb0213deaabec | /0040 Calculator/calculator.py | 87ca7d5467281d596b3ead671acb66ead83a3bf0 | [] | no_license | vanshikasanghi/dv.pset | 3c5f778fdd78a2a2e1927ff04d12926dc7da7d20 | 9cc56a69577cdf0ea0235096340b1e78be750454 | refs/heads/master | 2020-03-26T22:58:41.896220 | 2019-03-16T08:21:26 | 2019-03-16T08:21:26 | 145,500,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | def add(x,y):
a = x + y
return a
def subtract(x,y):
s = x - y
return s
def multiply(x,y):
m = x * y
return m
def divide(x,y):
d = x / y
return d
x = int(input("Number 1 : "))
y = int(input("Number 2 : "))
print("\nCalculator : ")
add = add(x,y)
print("\nAddition : "+str(add))
s... | [
"vanshika.sanghi@gmail.com"
] | vanshika.sanghi@gmail.com |
8f218897820fd53d60e51cd96ad662b0911be164 | 4ca92931c5ca0ea707a9cf901344f92fda026913 | /config.template.py | 6fbe4c92bd7ffc89232db02a7eb38846638f3142 | [] | no_license | daqing15/tinydb | bcbd548913a43e538b7edc47e2a5901979eac722 | e5291511e5bc1a61baefc51a53142d72e0217182 | refs/heads/master | 2020-12-25T08:43:05.153522 | 2012-01-24T17:45:35 | 2012-01-24T17:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | databases = {
'default': {
'host': '',
'user': '',
'password': '',
'dbname': ''
},
'other': {
'host': '',
'user': '',
'password': '',
'dbname': ''
}
}
| [
"omarkhd@linux-p1lu.(none)"
] | omarkhd@linux-p1lu.(none) |
2cb1b08ed78ba1f7af4b2d62d28e84f0291436db | b8498a35832f5d14bd15332a3dd2b93d64351448 | /fluent-python/15-context-mngr/else_block.py | adac5f3d0a2da378b4e488ca68369bc802379035 | [] | no_license | luzzyzhang/my-python-cookbook | 8b3daf4c4354a98ff305375c8a3a35551eee67e7 | 8d160f6d6d18b7a9801d433f6e3868d054432bde | refs/heads/master | 2021-09-06T20:25:39.026278 | 2018-02-11T04:22:13 | 2018-02-11T04:22:13 | 46,793,714 | 2 | 1 | null | 2017-06-17T13:57:26 | 2015-11-24T13:35:26 | Python | UTF-8 | Python | false | false | 527 | py | # -*- coding: utf-8 -*-
"""This is just demo code
"""
# for ... else ...
for item in my_list:
if item.flavor == 'bananas':
break
else:
raise ValueError('No banana flavor found')
try:
dangerous_call()
after_call()
except OSError:
log('OSError ...')
# VS
# For clarity and correctness, the... | [
"luzzyzhang@gmail.com"
] | luzzyzhang@gmail.com |
691e9e843a3dc0f78fed3f680146efe48f1f0adb | a02967fb51d201f1bba20b96af458ab54d7a8f51 | /OtherCoding/maximize_gold.py | d3e79300fb3bf356d13c7ecbb355558779812412 | [] | no_license | jinweijia/CodeSamples | 58444cae576f3910526a6db766834c3ae9ffc237 | f8cac7d3f2d8957bb0781c13f8e2879490a08f69 | refs/heads/master | 2016-09-05T12:46:23.105934 | 2015-03-23T06:29:04 | 2015-03-23T06:29:04 | 32,698,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | # Question:
# Pots of gold game: Two players A & B. There are pots of gold arranged in a line, each containing
# some gold coins (the players can see how many coins are there in each gold pot - perfect information).
# They get alternating turns in which the player can pick a pot from one of the ends of the line.
# T... | [
"jinweijia@berkeley.edu"
] | jinweijia@berkeley.edu |
5852e641e32a12464cf2411f0c45648b244a8187 | 11213be2b6402be7efa52787972daaf4589c889d | /tests/test_langdetect.py | e7fc86199d937b75f590eee4e50f41c546d9bc31 | [] | no_license | boblannon/silpa-common | cbddd2f84fd77f7bc60b76558042b31a5be3a93a | 32335f86dce3ac31b5f74123dee7f71184026e4f | refs/heads/master | 2021-01-20T17:15:00.423210 | 2014-05-03T04:03:10 | 2014-05-03T04:04:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from silpa_common.langdetect import detect_lang
from silpa_common import servicemethod
def test_langdetect():
'''TEST: Language Detection'''
assert detect_lang(u'ನಮಸ್ಕಾರ')[u'ನಮಸ್ಕಾರ'] == 'kn_IN'
assert detect_lang(u'बॆंगलूरु')[u'बॆंगलूरु'] == 'hi_IN'
assert ... | [
"kamathvasudev@gmail.com"
] | kamathvasudev@gmail.com |
deb12830455d9aa169ce111ed1a679813fc84db8 | a79e6cde337a6a56a64ca51bb149c502e4b55831 | /cwApp/forms.py | f1cdd64c8d492a2b24ee7f9fc89e01d68ab34fc6 | [] | no_license | cs-fullstack-2019-spring/django-modelform1-cw-Litterial | c97358da846e3e7efd5a64efb20e6355b795e625 | b7b9fd4b36d22a93c575c79a33dbf289d703adc6 | refs/heads/master | 2020-04-25T17:58:36.356619 | 2019-03-01T19:46:41 | 2019-03-01T19:46:41 | 172,968,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django import forms
from .models import BlogPost
class BlogForm(forms.ModelForm):
class Meta():
model=BlogPost
fields= ['title','text']
| [
"yungice12@gmail.com"
] | yungice12@gmail.com |
352ddccabf50efe979b76a3c5694b874ccdca55b | e6c2782f30b2aed60c18c1bc36b623981e60f08b | /crawlers/__main__.py | 7e6a8464f8a8d3bb014c772e0729bddfbba5f28a | [] | no_license | lmTEDug/Public-Opinion-Analysis | b765ef680cbb262439b95abb22717fe29caafb4f | 726a79ec117066381efb751d79f0cd2330b26ba7 | refs/heads/main | 2023-06-03T08:42:04.703139 | 2021-06-22T05:19:50 | 2021-06-22T05:19:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from . import dailyrun
if __name__ == "__main__":
dailyrun.run() | [
"ww-rm@qq.com"
] | ww-rm@qq.com |
d6b443fccf77179f4be526a4557dfcc0e46944a3 | 3d681bd2b1f01c50575d02952230d42bf1392cc5 | /webapp/models.py | 65d58aa912a36f79a900658bd0972842415d9825 | [] | no_license | PKStuff/GraphQL | 0435f1bfb99a4cb88b407d96e7e0fe1bb2159114 | b6c44ca99342df10670a4a93bfd0734b0ceedd34 | refs/heads/master | 2020-09-27T15:30:24.789331 | 2019-12-07T17:00:33 | 2019-12-07T17:00:33 | 226,546,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.db import models
class Employee(models.Model):
Emp_ID = models.CharField(max_length=100, primary_key=True)
fname = models.CharField(max_length=100, null=True)
lname = models.CharField(max_length=100, null=True)
salary = models.IntegerField()
dept = models.CharField(max_length=100)
... | [
"pradipkothawale99@gmail.com"
] | pradipkothawale99@gmail.com |
6b89cfbfe8fdf29c7e608eeb4323528b1aa7e4f6 | 5454e527b311858f86a38cf52d5547e37ab714f9 | /project/core/migrations/0010_collection.py | e8c3d2ad5ae4aae4b8af9eff448cd0dd0b4dad49 | [
"MIT"
] | permissive | tacitia/ThoughtFlow | 3673aa738d86923f386e74434f169da491955244 | d8402a7c434f97bc382e37890852711a7e7f161b | refs/heads/master | 2021-01-17T09:18:53.742097 | 2016-03-28T16:52:36 | 2016-03-28T16:52:36 | 42,957,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-03 02:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0009_evidence_augmentation'),
]
operations = [
migrations.CreateMode... | [
"huag@cs.brown.edu"
] | huag@cs.brown.edu |
84224a4af2f08199060dfe3378501afcecf93a4d | 1df498749837022de177105c4bd956dc3d77c5a8 | /utils/movie_api.py | 522a27297d19cc0b78a533354f6e3df6d2edddc3 | [] | no_license | MahmudulHassan5809/movie-api-task | b8fad465bbfbfab367b43f4e3ecd19cb75e19fad | b930fbdba632821e066d684b24188512db8b9b45 | refs/heads/main | 2023-07-18T14:27:53.583496 | 2021-08-27T08:26:12 | 2021-08-27T08:26:12 | 399,346,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | from rest_framework.response import Response
from django.conf import settings
import requests
def get_movie_data_by_title(title):
url = f'https://www.omdbapi.com/?t={title}&apikey={settings.OMDB_API_KEY}'
response = requests.get(url)
try:
response.raise_for_status()
except requests.exception... | [
"mahmudul@sgsoft.net"
] | mahmudul@sgsoft.net |
d2bbff851f02ac6cdc28cb648b1ee81949aeec11 | 68417bad427d0d2ed2337b9ec6930cf0b00e1183 | /python_parallel_concurrency/part1_ex_files/CH05/05_02/begin/deadlock.py | e9aa0489b4359343cdd11d24ecdfc33e9502c7d6 | [
"MIT"
] | permissive | AtmaMani/pyChakras | 28b20926e6c539ee30709fda575f3b2db0b7aefb | e58a4e244d65858049914cf98dcb454ef009362a | refs/heads/master | 2023-05-05T07:29:38.363662 | 2021-12-01T22:55:48 | 2021-12-01T22:55:48 | 75,486,132 | 0 | 3 | MIT | 2023-04-17T17:52:14 | 2016-12-03T16:40:39 | Jupyter Notebook | UTF-8 | Python | false | false | 944 | py | #!/usr/bin/env python3
""" Three philosophers, thinking and eating sushi """
import threading
chopstick_a = threading.Lock()
chopstick_b = threading.Lock()
chopstick_c = threading.Lock()
sushi_count = 5
def philosopher(name, first_chopstick, second_chopstick):
global sushi_count
while sushi_count... | [
""
] | |
b35865ce0b0c769a5ca5791b2b610ed6222d4f4c | def157d1baf9e74745170fdc4cfcd7a6b7fab380 | /src/linpde_gp/functions/linfuncops/_registry.py | 1417b1c34a18b8fbef068989745ef4d925240506 | [
"MIT"
] | permissive | marvinpfoertner/linpde-gp | 7ab21a44a429ad397ac8138e9cb4560bd3da3c0e | 5036ae949f0d435395b496bbf88ebc5157b67ba9 | refs/heads/main | 2023-07-23T12:39:37.385921 | 2023-07-12T12:34:33 | 2023-07-12T12:34:33 | 539,398,564 | 15 | 2 | MIT | 2023-07-12T12:34:34 | 2022-09-21T09:07:39 | Python | UTF-8 | Python | false | false | 527 | py | from linpde_gp import functions, linfuncops
########################################################################################
# `SelectOutput` #######################################################################
########################################################################################
@linfu... | [
"marvin.pfoertner@icloud.com"
] | marvin.pfoertner@icloud.com |
0735ffd54a9f6ac755e94b0ee7b248f694a91206 | 82346e5d840297f397c27e4db3ed01ef291245d4 | /deep_phishing_detection_on_words(plain_text).py | 112c28eb039376e06c274963351b341a5ea7cae9 | [] | no_license | AbdouEnsaj/NLP-Phish-Dissertation- | e4151443cddfc72971e0a38216a97db9c2a4adac | 51643c69b58f6065cfee67cf41967e5a1e366e66 | refs/heads/master | 2023-03-17T19:49:56.304749 | 2021-02-01T19:02:02 | 2021-02-01T19:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,053 | py | # -*- coding: utf-8 -*-
"""Copy_of_Deep_phishing_detection_On_words(plain_text).ipynb
Automatically generated by Colaboratory.
Original file is located at
"""
# Commented out IPython magic to ensure Python compatibility.
# %tensorflow_version 1.x
!pip3 install keras sklearn tqdm numpy keras_metrics scikit-plot
... | [
"noreply@github.com"
] | noreply@github.com |
246236993329d8cce868cbf8a30da454a4146c2e | cd6172e7d7fdbeaf42ecbd51c17c3deb381f663e | /enroll/admin.py | d3087ce2d49fe2a2ce6ce00f939e4344003040db | [] | no_license | krjani/CRUD-Django | 5f9ce4eab5b212691527ce587f4fefc82c32a037 | b61bd31fa04ed2d39c9ecdc9029aaa4ad02d916e | refs/heads/master | 2023-05-26T06:29:05.772424 | 2021-06-09T17:35:24 | 2021-06-09T17:35:24 | 375,439,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.contrib import admin
from enroll.models import User
# Register your models here.
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
list_display = ['id','name','email','password']
| [
"krjani1213@gmail.com"
] | krjani1213@gmail.com |
c69ecacee550d99f1b95f9f4c46cc7a735121651 | 6780cb673b7aedeadd6dedfc34afd76761fa3822 | /dp/unique_path_with_obstacles.py | bb455bed705274788a1017d7df78b0af019dd2d2 | [
"MIT"
] | permissive | lockeCucumber/DataStructure | 955f739e52fe232720842aaf85c602eca51e194b | a6c22a339deb75b2280e10664964cf1d8588732e | refs/heads/master | 2022-02-26T17:05:53.289798 | 2019-11-20T13:46:54 | 2019-11-20T13:46:54 | 125,471,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # -*- coding: utf-8 -*-
'''
长方形矩阵,左上到右下的方式数量, 每个格子为1表示是障碍,无法通过
[
[0,0,0],
[0,1,0],
[0,0,0]
]
'''
def get_unique_path_count_with_obstacles(obstacle_grid):
"""
:type obstacle_grid: List[List[int]]
:rtype: int
"""
m = len(obstacle_grid)
n = len(obstacle_grid[0])
res = [[1]*n]*m
for ... | [
"lockeCucumber@163.com"
] | lockeCucumber@163.com |
a4ca58b475e2f77af2e918eb64ac2bfac5e15044 | bf33e44145304768c1d053898800f241822cc295 | /ascii_to_cdf.py | aed58081ed220554ab36d328afbe409079324c96 | [] | no_license | tjlang/bom_mds | e5f3b5dec2e0c587da4121dbe4a03e35f29a3d14 | 2079d32198b4a56e10dd96abe5dcb47ac8444199 | refs/heads/master | 2020-04-03T11:27:12.621553 | 2016-02-12T18:27:53 | 2016-02-12T18:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | ###################################################################
#ascii_to_cdf.py:given a date and time grab ascii radar data and #
#regrid it to common co-ordinates and save 3d volume to netcdf #
###################################################################
# ... | [
"scollis.acrf@gmail.com"
] | scollis.acrf@gmail.com |
9459f7c0aa601f412b8a975d03fa86c2914ac96c | 797761aeb37a8de4288696875f1a3c6c0eff3824 | /mlfromscratch/unsupervised_learning/partitioning_around_medoids.py | 6fdab2470e836fd1065b261519fafc06d73dad7f | [
"MIT"
] | permissive | kauziishere/ML-From-Scratch | 27df8a6565e964309d25729fe373746845b57b6b | a5040b84102fc2259b925d7337e7ff87080b6e5f | refs/heads/master | 2021-05-14T17:06:48.691808 | 2017-08-30T09:27:19 | 2017-08-30T09:27:19 | 116,040,355 | 1 | 1 | null | 2018-01-02T17:38:06 | 2018-01-02T17:31:24 | Python | UTF-8 | Python | false | false | 5,357 | py | import sys
import os
import math
import random
from sklearn import datasets
import numpy as np
# Import helper functions
from mlfromscratch.utils.data_manipulation import normalize
from mlfromscratch.utils.data_operation import euclidean_distance
from mlfromscratch.unsupervised_learning import PCA
from mlfromscratch.u... | [
"eriklindernoren@live.se"
] | eriklindernoren@live.se |
83cd592eed96104a2da803692355473a1c0dadb2 | ecfc01717e834ef229b43b59757b3b4b0744f5e3 | /lesson18/beutiful_list_generator.py | c30aaa03f2d6ac4683c3f9d3aefc120df25aa4a3 | [] | no_license | mongoz/itstep | 23539ba966fdd2e2818383dbbaedddb50469dcd9 | 455b7f27f501d8944ea2f8ee5afe6a6a88d1f118 | refs/heads/master | 2023-06-05T22:23:19.066893 | 2021-06-20T11:05:03 | 2021-06-20T11:05:03 | 333,483,379 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py |
def beautiful_list_generator(lst: list, marker: str, file_name: str) -> bool:
infile = open(file_name, 'w', encoding='utf-8')
for i in lst:
infile.write(f"{marker} {i}\n")
return True
if __name__ == '__main__':
dc_heroes = ["Batman",
"Superman",
"F... | [
"makarivanov17y@gmail.com"
] | makarivanov17y@gmail.com |
11b3202bb34c564cc71ca7ff1971049e88001755 | fb91e09e2a200830f62d0ebfeb8567e8db1966bc | /apps/common/tweet_parser.py | d2c2fee43fc35dce76bea80c6fdfb06f8b118ca6 | [] | no_license | ubihinon/twitter_scrapper | 3a7068a18f0dce01e076e6153c148af17b9f8c48 | f72ba1c7f3bb9a2c6cc35f7921826cab91878daa | refs/heads/master | 2022-12-13T21:49:54.009073 | 2019-06-06T16:20:20 | 2019-06-06T16:20:20 | 189,697,976 | 0 | 0 | null | 2022-12-08T05:13:18 | 2019-06-01T06:19:16 | HTML | UTF-8 | Python | false | false | 2,407 | py | from datetime import datetime
from bs4 import BeautifulSoup
class TweetParser:
def retrieve_tweets(self, limit, html):
parser = BeautifulSoup(html, 'lxml')
tweets = []
for tweet in parser.body.find_all('div', attrs={'class': 'tweet'}, limit=limit):
tweets.append(self.get_twee... | [
"noreply@github.com"
] | noreply@github.com |
a48f7d3dfff057039d7c43dbeab244a1a2d127a6 | cb3c83ad5c85ed82caefc1f4c6224bbf7a04424b | /crab/runForestAOD_PbPb_MIX_75X.py | a3340bc74e624d5893a3b352e67c7686d0cf1163 | [] | no_license | boundino/Djetanalysis | efd7ecc25d6197986beceec541624028b6f9e4da | 3e713045f8718198713e5d177ab090f5ada07b0d | refs/heads/master | 2021-01-18T23:16:19.261958 | 2019-10-30T03:43:09 | 2019-10-30T03:43:09 | 87,100,861 | 0 | 0 | null | 2017-04-03T17:21:12 | 2017-04-03T17:21:11 | null | UTF-8 | Python | false | false | 11,565 | py | ### HiForest Configuration
# Collisions: PbPb
# Type: MonteCarlo
# Input: AOD
import FWCore.ParameterSet.Config as cms
process = cms.Process('HiForest')
process.options = cms.untracked.PSet()
#####################################################################################
# HiForest labelling info
##############... | [
"ginnocen@cern.ch"
] | ginnocen@cern.ch |
cf4ebe24f404d745b6427529e42d060639bda35f | fd40c9c0a637efdad123fbe9308f51ca37f91950 | /clickbait/wsgi.py | c1cf38b6c56c9dabeb17d7a46bed0a3dc1722933 | [
"MIT"
] | permissive | kirklennon/Clickbait | 0311c571eaf7201b138f23819d7c8536f7318d0b | 9ce97d38b3dce78ce151b285a0cc55ddbb7b58be | refs/heads/master | 2020-09-30T05:36:07.643351 | 2020-08-26T04:22:53 | 2020-08-26T04:22:53 | 227,217,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for clickbait project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"kirklennon@me.com"
] | kirklennon@me.com |
8e79cc7d035b8aa22918ad637d7ef593218c2152 | 76ccf6ac09d33feacf20b6c1b6bf08d341ad8373 | /tests/client/search.py | 64b1f514b587dbf8db30e1e38348bc755a33d020 | [
"MIT"
] | permissive | allerter/tekore | f8e1035f65507cadb90c4d15756b3528b4038323 | 20cf68280fb5b691126600a5b474ee841f7be199 | refs/heads/master | 2023-03-30T17:52:16.261524 | 2021-04-08T09:08:13 | 2021-04-08T09:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | import pytest
from tekore import HTTPError
class TestSpotifySearch:
def test_search(self, app_client):
tracks, = app_client.search('sheeran')
assert tracks.total > 0
def test_search_below_limit_succeeds(self, app_client):
app_client.search('piano', types=('playlist',), limit=1, offset... | [
"felix.hilden@gmail.com"
] | felix.hilden@gmail.com |
8d0b0274ae6cdbfef5ac9b0ec9bf0b482c5dde27 | d8c4d62b54f0367c08e3d6ace77f73a99e21f1a5 | /naowifi.py | 21c7843d742ee19998e1b17c8b859cf8921f2832 | [] | no_license | zaheerm/naowificonnector | 10686d0eb7d36018d274b8da56fbd99d8dce5fd1 | c68dcc0503b39aca4d69e2e0f209cbabe814b9ce | refs/heads/master | 2021-01-10T20:44:31.820950 | 2012-09-28T14:46:13 | 2012-09-28T14:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,547 | py | ''' NAO Wifi connector
Copyright (C) 2012 Florian Boucault, Zaheer Merali
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any ... | [
"zaheermerali@gmail.com"
] | zaheermerali@gmail.com |
3309053e9e287805435bcabc562211537c428abe | 80dcbe6f1c7b17af1636acc78ab301a7f3fc58e7 | /hwflask_less_4/staff/staff.py | 619e0ec81c4f87e8192e947469245049b87e07ac | [] | no_license | Natalia-Kurylko/common | 655156c34aad8ce57295ae891d99bd062464ddfe | ab1541889f8709cd086d00083ce27e253838db01 | refs/heads/master | 2020-07-29T14:46:21.400234 | 2019-12-12T07:29:12 | 2019-12-12T07:29:12 | 209,848,501 | 0 | 0 | null | 2019-12-12T07:29:13 | 2019-09-20T17:43:54 | HTML | UTF-8 | Python | false | false | 1,672 | py | from flask import request, session
from flask_restful import Resource, marshal_with, reqparse
from db import db
from staff.staff_structure import staff_structure
from models.model import StaffModel
import json
parser = reqparse.RequestParser()
parser.add_argument('passport_id, type=str')
class Staf_f(Resource):
... | [
"nataliahajduk27@gmail.com"
] | nataliahajduk27@gmail.com |
54f550c741a6563c3d68093db68b98836ac03374 | 86cd35dc93f5284a9b3662e8169202ae6723f8b0 | /sitebuilder/sitebuilder/urls.py | 4ba51572ff69a50d5260da721b696eaa4f7d424b | [] | no_license | hackrole/lightweight-django-demos | 88d368ca69cf86d34dd8aeaf9ca7376e00ae9412 | c92e29d82677c048fc1a7f63a9a383434aed2170 | refs/heads/master | 2021-01-25T10:07:44.017881 | 2015-05-27T02:21:10 | 2015-05-27T02:21:10 | 32,396,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.conf.urls import url
from .view import page
urlpatterns = (
url(r'^(?P<slug>[\w./-]+)/$', page, name='pge'),
url(r'^$', page, name='homepge'),
)
| [
"daipeng123456@gmail.comA"
] | daipeng123456@gmail.comA |
f89b2b317d8bf703c4f397d6f2e18c21c52547a1 | da4c7df1548975a31a9c98e87859bc2a820002b1 | /commercetester/commercetester/urls.py | 7c729c3065ff73d8de4b0404ab8d3f3645a03f5a | [] | no_license | chadwickcheney/WebDrivers | 2458f94e88f45fd0d3c093b3f7c865dfa0fa7a01 | 8060a90345887e83d5505887baccfd4ef0b344cf | refs/heads/master | 2020-04-27T08:55:04.341341 | 2019-03-09T22:15:09 | 2019-03-09T22:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('glasses/', include('glasses.urls')),
path('admin/', admin.site.urls),
]
| [
"Sd030@uark.edu"
] | Sd030@uark.edu |
bfce55234939a14e100bb118db3fb7d4ddba9508 | 9c5e09b4f048a13961c0f4a1370a7bf01a421d92 | /gym/envs/robotics/fetch_env.py | cb9f04f8d4a2bc9dfb685158d68bd8e3fcbf1435 | [
"MIT"
] | permissive | StanfordVL/Gym | daa8c780f5ace3e33c3bf0f7109f40a0a820d59e | 5e14d19e57d8ba318b97a5edda0ab2ea591dea08 | refs/heads/master | 2023-02-03T02:44:40.185713 | 2020-12-17T14:10:16 | 2020-12-17T14:10:16 | 280,579,514 | 9 | 4 | null | null | null | null | UTF-8 | Python | false | false | 8,359 | py | import numpy as np
from . import rotations, robot_env, utils
def goal_distance(goal_a, goal_b):
assert goal_a.shape == goal_b.shape
return np.linalg.norm(goal_a - goal_b, axis=-1)
class FetchEnv(robot_env.RobotEnv):
"""Superclass for all Fetch environments.
"""
def __init__(
self, mode... | [
"shawn@DNa1c068f.SUNet"
] | shawn@DNa1c068f.SUNet |
54691aec62e64eee0903528551d1bc0d23f22069 | 1b57d2f689903d9937f77e26be40784af2ff2669 | /view_helpers/home.py | f7682825ddec4cb03015fe1ee82b08065034f3d6 | [] | no_license | FMularski/passwordkeeper | b1ef31c04bcfa7f012f28852fd8ae1f33efeff98 | 5859fbef89a3f80b27d52fd124971180e12e4fef | refs/heads/main | 2023-07-16T21:09:34.938196 | 2021-09-06T21:05:01 | 2021-09-06T21:05:01 | 347,174,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | def encode_password(password, pin):
pin_sum = 0
for char in pin:
pin_sum += ord(char)
encoded = ''
for char in password:
encoded += chr(ord(char) + pin_sum)
return encoded
def decode_password(encoded, pin):
pin_sum = 0
for char in pin:
pin_sum += ord(char)
d... | [
"mularskif@gmail.com"
] | mularskif@gmail.com |
2b674c11eb5c24ff72c0f2584fe4526d1883b8c7 | c1447bf346c831b09db1ae7a2cc7dbf4dbad1d32 | /TrakEM2/show_iffy.py | cf3141267b8db8e7473c0b14bd8996f379deee43 | [] | no_license | ceesem/Fiji-TrakEM2-scripts | 97c6d7a280a5b6c9c917af5585553b0b88795a32 | 5ff778f2f72e71630882919c8b085d456b6647da | refs/heads/master | 2021-01-18T10:32:15.545887 | 2010-09-28T13:47:17 | 2010-09-28T13:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | from jarray import array
from ini.trakem2 import Project
from ini.trakem2.display import Treeline
from ini.trakem2.display import Selection
from java.awt import Color
from javax.vecmath import Color3f
from java.util.concurrent import Executors
from customnode import CustomTriangleMesh
from java.util.concurrent import C... | [
"caseysm@gmail.com"
] | caseysm@gmail.com |
36a01d911fba9a6888ae079441b259f551fe4ff3 | 6e7d9a1e821ae11f5e750023ccf8b12b1acb0582 | /server/views/UserResource.py | e50795986de0998dbeafc1281f75f9738634477d | [] | no_license | won21kr/diplomski | f6c89c2beb38d6dea240ea9a7cddfbfc496b0a0a | 87a360153c675671798cbbbb4068d6ffd6be34e7 | refs/heads/master | 2020-12-13T12:53:32.118809 | 2016-12-04T14:44:19 | 2016-12-04T14:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | from flask_restful import reqparse, Resource, fields, marshal_with, request, abort
from pony.orm import *
from models.User import User
from models.Stock import Stock
import json
parser = reqparse.RequestParser()
parser.add_argument('user', 'users', 'username', 'password')
from useful import make_error
resource_fields ... | [
"goran.bogic@infokom.hr"
] | goran.bogic@infokom.hr |
bd738de7875f7578ae4dfa4cda95f6b5e05ef70c | 4091386d2bfdab399a5901712c5982745f3f692a | /04-Subroutines/duringclass/13.py | 3c51b8e545ab97e3fa247e52e7cebbd6fdbc182b | [] | no_license | youaresoroman/pp1 | b55bf3e0effee6bc0f5c0fa1882edf2b9e68ed86 | 07fc89b3ecb4b14d218467f27665382277cf420c | refs/heads/master | 2020-08-07T07:46:08.361608 | 2020-02-04T21:43:28 | 2020-02-04T21:43:28 | 213,358,931 | 0 | 0 | null | 2019-10-07T10:52:54 | 2019-10-07T10:52:54 | null | UTF-8 | Python | false | false | 210 | py | def suma(table):
sum = 0
print('Tablica:', end=' ')
for element in table:
print(element, end=' ')
sum += element
print(f"\nSuma wartości: {sum}")
suma([4, 3, 7, 1, 3])
| [
"s-115-06@gumiforest.ae.krakow.pl"
] | s-115-06@gumiforest.ae.krakow.pl |
b01300d5ed268a6a1fe290ca657d3405c51cefec | 46d979ee083781bb900867b42e557bc88e12a899 | /A doggie poem.py | a1172d9863bdf6c601fc7a165ada02ac4002d095 | [] | no_license | DSC-BVP/OpenSourceForAll | 7f57cf217f51c0b86d8e906ba750433ce42870d1 | 09d0b47834136bcaeaaebd48459d132c6b27981c | refs/heads/master | 2023-08-03T04:58:06.346925 | 2020-09-30T14:23:13 | 2020-09-30T14:23:13 | 213,685,388 | 19 | 75 | null | 2023-07-27T03:32:38 | 2019-10-08T15:42:33 | C++ | UTF-8 | Python | false | false | 163 | py | print(
"'A dog's Poem'"
" - A dog\n",
"Roses are Grey,\n"
" Violets are a different shade of grey, \n"
" Let's go chase cars\n"
) | [
"ishan10j@gmail.com"
] | ishan10j@gmail.com |
88a845650fcaed8b1227b04a2a0a3395b8043423 | a3e9debb67dbf18a17dcc5d15cfa1a28d68c7e5e | /highprice.py | 21090691ea983a825666ecf169bc2b1f2981ad51 | [] | no_license | ildarius116/TooEasyTravelBot | a9d93a600b1decb7bee3222a522e9b470ebe0efc | a29fae7b298f577d2bcaa6b2ff961a57f1f938aa | refs/heads/main | 2023-06-26T01:52:55.275322 | 2021-07-30T11:51:11 | 2021-07-30T11:51:11 | 391,045,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,206 | py | import json
import time
import requests
from typing import Dict
from settings import API_KEY
class Hotels:
""" Класс для хранения информации о найденных отелях. """
def __init__(self) -> None:
self.__hotels_dict = {}
def get_dict(self) -> Dict:
"""
Геттер для получ... | [
"noreply@github.com"
] | noreply@github.com |
bb15c513cfc5e21b3b5881707bdff2783b1bcf2f | 46e29e7a7d016ff023236daad2259115545e1831 | /Laboratory/5/client/dbUI.py | 4ed9b9d40b7256af9d44d41ada824a885d48eb40 | [] | no_license | theRTLmaker/ASint | a7de57c5e2db9a58ac3a9f703c721f70c5bd61f0 | 8ac895ae45d02365340ae757dc3b55e86f676571 | refs/heads/master | 2022-09-14T12:27:36.041849 | 2019-12-22T00:39:38 | 2019-12-22T00:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | #!/usr/bin/env python
import Pyro4
class dbUI:
def __init__(self, db):
self.db = db
def menu(self):
exit = False
while not exit:
l = input("add show listall listauthor listyear quit?")
l = l.split()
if len(l)==1:
command = l[0].upper()
if command=='QUIT':
exit = True
elif command ==... | [
"francisco.mendes@eyeware.tech"
] | francisco.mendes@eyeware.tech |
2c973f5d2023bdc3544aba54951394eaa095b937 | ebc19f55a64a93f6f445846f0400033269bbf9ba | /Math/main.py | f453e220f6873edab11613c088b54a2c68418aef | [] | no_license | Ankhanh975/NEURAL-NETWORK | 5fae47358926a10f3cfe57ec65d49cb9c0b12768 | 4ca41970506a138d36303093ba59e53637f87607 | refs/heads/master | 2023-08-22T00:11:29.974810 | 2021-11-02T13:52:25 | 2021-11-02T13:52:25 | 419,595,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | def solve(input):
# step by step
Solution = []
next_state=""
Solution.append(next_state)
return | [
"ankhanh1566@gmail.com"
] | ankhanh1566@gmail.com |
46cf0543a882ef3e4b2c7b09712c09b81b3af8fd | cafaf9f76c3f8449e7242959b739aaaf09567201 | /mycrm/urls.py | e671766ce0461185a59fc527b48c87c55c9dfaf1 | [] | no_license | Asia9847/crm | db444319e630acf1db5c67eebade0d7128715156 | ce7c37b9211cde922d43a55dc1331c2412a6518c | refs/heads/master | 2020-05-18T01:09:06.888636 | 2019-04-29T13:55:36 | 2019-04-29T13:55:36 | 184,080,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | """crm URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"1749712767@qq.com"
] | 1749712767@qq.com |
bbc216aae4cf6b8c0794bf0dd31621466194f07b | 6c073f90646c9740821c8e1ea18000541f2b8884 | /database/models.py | a620fb48517198292b53b82d3245124b0ac2ef0f | [] | no_license | luizacintraf/marketplace-briochefood | dd5911f3bf93a59536884f5be359ac6ee4c67db3 | bbe68cf3122905df6202bb84d23aaf1c7a488bb1 | refs/heads/main | 2023-03-05T18:50:04.949298 | 2021-02-19T16:35:43 | 2021-02-19T16:35:43 | 336,691,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,339 | py |
# -*- coding: utf-8 -*-
#import libraries
from sqlalchemy import Column, Integer, String, Float, ForeignKey, Table, Sequence
from sqlalchemy.orm import relationship, backref
from sqlalchemy.ext.declarative import declarative_base
#base para os modelos
Base = declarative_base()
#criar tabela relacional
OrdersProduct... | [
"luiza@MacBook-Air-de-Luiza-3.local"
] | luiza@MacBook-Air-de-Luiza-3.local |
bd632822ba8b8e77d580e7eb3076376790246560 | a26a8a39887e2916f754526f0995f4bb1769352f | /igniteweb/igniteweb/wsgi.py | aa2fa4f2986b0f4e4076cc5461ef5c86f5204352 | [] | no_license | subhammahanta777/ignite_web | b274d9a7837d397ee571531b3218fecd6504e498 | 7e88ee6b7ebe5f9538335c154526343a087be90f | refs/heads/master | 2020-05-18T17:01:54.192632 | 2017-05-19T06:49:01 | 2017-05-19T06:49:01 | 91,774,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for igniteweb project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"subham.mahanta777@gmail.com"
] | subham.mahanta777@gmail.com |
97a3f89a8219b377de059f311121c2a9894553ab | 38c10c01007624cd2056884f25e0d6ab85442194 | /v8/tools/release/releases.py | 5b826fccba089d27afc2f0cab0fefc209ae033af | [
"BSD-3-Clause",
"bzip2-1.0.6"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 19,503 | py | #!/usr/bin/env python
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This script retrieves the history of all V8 branches and
# their corresponding Chromium revisions.
# Requires a chromium checkout ... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
025e2d96544cb3194fe7804376e5d5807cfff7db | b8af08d11ebe802920608ead5a1adb9ca2b68cc6 | /src/lecture13/linenum4.py | d3c6f3408140a25babfe49d9c5d35fd9f28437b1 | [] | no_license | FSD4Edu/ProgLang-2020 | 565d2ece361680688a571addd849cf4f620d2d4f | 85d996c1663b0cdf63f3228bf6534dd47ae29035 | refs/heads/master | 2023-02-16T22:46:12.638953 | 2021-01-08T01:00:10 | 2021-01-08T01:00:10 | 292,776,973 | 0 | 1 | null | 2020-09-08T04:03:46 | 2020-09-04T07:13:15 | Python | UTF-8 | Python | false | false | 150 | py | with open("sample2.txt", "r", encoding = "utf_8") as file:
for idx, line in enumerate(file):
print("{:4d}:{}".format(idx+1,line), end="")
| [
"noreply@github.com"
] | noreply@github.com |
462232d4dc70d3e9138336ff0e13b90a125e3156 | bdc5ba304debcac0564a0f307c446a74a93fcdb5 | /surround/tests/cli/project_cli/linter_test.py | 3acf012891cc63e6f55aebd1346eddededf3b48f | [
"BSD-3-Clause"
] | permissive | ScottyB/surround | 2c2764ff76918027f7dce1897257bcdd7804ce7a | f9a86f5b5677de7bd5763d26de4a6f18c36f2a4d | refs/heads/master | 2021-06-21T23:02:58.710216 | 2020-11-26T00:43:59 | 2020-11-26T00:45:32 | 176,862,237 | 0 | 0 | BSD-3-Clause | 2019-03-21T03:23:40 | 2019-03-21T03:23:33 | Python | UTF-8 | Python | false | false | 1,475 | py | import unittest
import shutil
import subprocess
class LinterTest(unittest.TestCase):
def setUp(self):
"""
Generate a temp project
"""
process = subprocess.Popen(['surround', 'init', '-p', 'test_proj', '-d', 'testing', '-w', 'y'], encoding='utf-8', stdout=subprocess.PIPE)
se... | [
"101668878@student.swin.edu.au"
] | 101668878@student.swin.edu.au |
c63527b2337dd59c5412cfae55661f0e5a16f341 | e64bacfb35997bdd0d9ba1578002d5a19b55e502 | /visualiztion.py | e0c4ad63d1579d2e0fec81e1f1cdf3b31a7c3e42 | [] | no_license | grauwolf32/openai-physics | aebad20152f893a61dcd45183e62e714b83446d0 | b80390bd544ff24c4da5021752661e32e795d4d6 | refs/heads/master | 2020-03-24T22:07:07.488575 | 2019-03-12T07:48:28 | 2019-03-12T07:48:28 | 143,069,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | from gym_hyrosphere.envs.visualization import *
from gym_hyrosphere.envs.physics import *
def main():
pg.init()
glutInit([])
display = (800, 600)
pg.display.set_mode(display, DOUBLEBUF|OPENGL)
gluPerspective(45, display[0]/display[1], 0.1, 30.0)
glTranslatef(0.0, 0.0, -3)
hyrosphere = Hy... | [
"grauwolf32@mail.ru"
] | grauwolf32@mail.ru |
7426c65be300074f8caa399f662227783c6e93a8 | 0008a890a5ea4443f64d34c3e3fed12662438976 | /Data_Structures/Tower_of_hanoi.py | 77575a12ef435fa6949162dd0282aaae89fbcda6 | [] | permissive | aryasoni98/Python | 7fc51fd91eb191baf2b55ba7cb104e646d25eba5 | f3b9a667d78463b0ff705ee9f97f4429cc1e8790 | refs/heads/master | 2023-07-29T17:43:23.109750 | 2021-08-22T18:23:58 | 2021-08-22T18:23:58 | 277,592,503 | 0 | 0 | MIT | 2021-04-30T00:40:11 | 2020-07-06T16:23:49 | null | UTF-8 | Python | false | false | 450 | py | # tower of hanoi
def TowerOfHanoi(n , from_rod, to_rod, aux_rod):
if n == 1:
print ("Move disk 1 from rod",from_rod,"to rod",to_rod)
return
TowerOfHanoi(n-1, from_rod, aux_rod, to_rod)
print ("Move disk",n,"from rod",from_rod,"to rod",to_rod)
TowerOfHanoi(n-1, aux_rod, to_rod, from_rod)
# main
n... | [
"noreply@github.com"
] | noreply@github.com |
655612c5cb4bfd720ce79722d13902b46883a0db | 93dd86c8d0eceaee8276a5cafe8c0bfee2a315d3 | /python/paddle/distributed/fleet/metrics/metric.py | 12a24292e5a3ad9ea838d9451fdf72e7e846a528 | [
"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 | 14,010 | 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 app... | [
"noreply@github.com"
] | noreply@github.com |
26523707a7082d8e54fe49b119202591be7485a1 | 00c323fc69ea753a76089b3e4d757fc0d053188d | /prac_02/exceptions_demo.py | c72b806d7c82136c81f69d2674695f1babf45448 | [] | no_license | ishaqueahmed/cp5632practicals | cf7e6cfc267ab39be665587469db4c1fc2163eba | eb1a205034ddcecd1ae771ca01168af7f83e4207 | refs/heads/master | 2022-12-28T01:07:03.041162 | 2020-10-14T22:35:39 | 2020-10-14T22:35:39 | 288,912,265 | 0 | 0 | null | 2020-09-09T22:48:49 | 2020-08-20T05:11:56 | Python | UTF-8 | Python | false | false | 868 | py | """
CP5632 Practical 2
1. When will a ValueError occur?
A: ValueError occurs when inputs given do not have an integer data type,
e.g. float, string, etc.
2. When will a ZeroDivisionError occur?
A: ZeroDivisionError occurs when denominator value provided is 0.
3. Could you change the code to avoid the possibility of ... | [
"ishaque.ahmed@my.jcu.edu.au"
] | ishaque.ahmed@my.jcu.edu.au |
bc7a64778898e6af9ffa232f767aec69fb14332f | 58cdf1eba1ca08d13ed4472efb2e15d8b0f688fa | /distance_function.py | 75690b18d1f833561f81ab4727831f07e052f96b | [
"MIT"
] | permissive | itamar19-meet/meet2017y1final-proj | f11d1fb53a02717763d84cb110cf030cafd67239 | 03862a55707985d879aae6a78f614dcb975aad77 | refs/heads/master | 2020-12-02T11:29:52.078500 | 2017-08-10T13:54:46 | 2017-08-10T13:54:46 | 96,644,226 | 0 | 0 | null | 2017-07-08T21:05:12 | 2017-07-08T21:05:12 | null | UTF-8 | Python | false | false | 185 | py | def distance(basket_pos,square_pos):
basket_x,basket_y = basket_pos
square_x,square_y = square_pos
d = ((basket_x-square_x)**2 + (basket_y-square_y)**2)**(1/2)
return d
| [
"itamar19@meet.mit.edu"
] | itamar19@meet.mit.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.