blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e7d47db890c32a2a7b6e2ce7c1bd4b6ec4efc3e | d27af9d58b91b8cd998ac0eb87d980d304ff0670 | /Beginner-Contest/ABC062/ABC062_C.py | 408030c20543fd844d788cb075bcf7bcbfdedd3a | [] | no_license | mongesan/Atcoder-m0_ngesan-py | 29dd79daab149003ffc8b6b6bad5fa2e7daa9646 | 6654af034d4ff4cece1be04c2c8b756976d99a4b | refs/heads/master | 2023-08-20T19:50:04.547025 | 2021-10-27T12:24:51 | 2021-10-27T12:24:51 | 258,486,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9 | py | #ABC062_C | [
"syun1.mongesan@gmail.com"
] | syun1.mongesan@gmail.com |
327cd28b0ff7bc2dedbef657d3ce8aa4a36df2d1 | 46e271e27afe50b8b62be0651d78164490911bb3 | /ws_moveit/build/pkg_task3/catkin_generated/pkg.installspace.context.pc.py | 1dbd1856d0efdf709c435065104ca69023c144a0 | [] | no_license | Nidhiks2000/Vargi-bot | 8a43af1e470b6fc84d468003f67471a1e1f47aad | 3e2e7be310ed7372cb6960eea8faabec75d9fbcf | refs/heads/master | 2023-07-24T01:05:10.049800 | 2021-09-08T16:31:08 | 2021-09-08T16:31:08 | 403,935,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "pkg_task3"
PROJECT_SPACE_DIR = "/home... | [
"Happysunshine.disroot.org"
] | Happysunshine.disroot.org |
1de41b8a0cc8966f8140e3c2ae8ac4f9c6461766 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/cdn/v20191231/get_profile_supported_optimization_types.py | 0f2e8de75ecb9c1023098b2c141431bea6c31228 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,519 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
7bae6ec8779e48f7eb568623df499c8ef80f68ae | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/pandas/io/formats/csvs.py | 6d14d6172aa6c9d097be0033c4cb65e47f875582 | [
"MIT"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 9,942 | py | """
Module for formatting output data into CSV files.
"""
import csv as csvlib
import os
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, Sequence, Union
import numpy as np
from pandas._libs import writers as libwriters
from pandas._typing import (
CompressionOptions,
FilePathOrBuffer,
... | [
"tpike3@gmu.edu"
] | tpike3@gmu.edu |
0ed67060f0e16c4ef98ab8980ee8f50b33cf678d | ef86e826557cdcc851072a8cec46f79a1dd3e41b | /filestore/__init__.py | 4023efe57bfee9886c2da0dcfa8903a74dc4a752 | [] | no_license | CJ-Wright/filestore | 6b3d427134f155405ccd98dd18a758b1dacf14cc | 155c5713f4835fba8b0c4b9d498e93c9b7ca7bac | refs/heads/master | 2021-01-15T10:06:51.481739 | 2016-09-19T16:38:02 | 2016-09-19T16:38:02 | 37,155,710 | 0 | 0 | null | 2015-06-09T20:12:18 | 2015-06-09T20:12:17 | null | UTF-8 | Python | false | false | 88 | py | from __future__ import absolute_import
from . import conf
__version__ = 'v0.0.5.post0'
| [
"tcaswell@bnl.gov"
] | tcaswell@bnl.gov |
0e6d608720327b7c81f985676613ab92dd7577cc | 68ea05d0d276441cb2d1e39c620d5991e0211b94 | /natal2018/c.py | 9df21c576d29e748936ec17bf2dba525c8d871dd | [] | no_license | mcavalca/uri-python | 286bc43aa157d3a6880dc222e0136c80cf079565 | e22875d2609fe7e215f9f3ed3ca73a1bc2cf67be | refs/heads/master | 2021-11-23T08:35:17.614443 | 2021-10-05T13:26:03 | 2021-10-05T13:26:03 | 131,339,175 | 50 | 27 | null | 2021-11-22T12:21:59 | 2018-04-27T19:54:09 | Python | UTF-8 | Python | false | false | 355 | py | n = int(input())
pulos = 0
gelo = []
while n:
n -= 1
gelo.append(input())
espaco = 0
for i in gelo:
if i[0] == '.':
espaco += 1
if espaco > 2:
pulos = 'N'
espaco = 0
break
elif i[0] == '-' and espaco > 0:
espaco = 0
pulos += 1
if espac... | [
"m.cavalca@hotmail.com"
] | m.cavalca@hotmail.com |
44b807bb6a79674dd6ff402e0909cf9a0fa54969 | ddb5e989f6ede26ece931af750757bc3ef48aada | /script/LowMutationalStepPlot_hist.py | 5e493b774cec6d33aeb7300426c857a7867cb713 | [
"MIT"
] | permissive | mmore500/tag-olympics | 5d64344a8ce29f8d1244ec08cb873a895e305b40 | a0f00aa534bfd7811ebc94a10749ecbbbcaeb007 | refs/heads/master | 2022-09-27T21:02:56.259757 | 2022-09-22T04:58:57 | 2022-09-22T04:58:57 | 194,933,684 | 0 | 0 | MIT | 2020-09-03T11:14:18 | 2019-07-02T20:55:02 | Python | UTF-8 | Python | false | false | 5,510 | py | import matplotlib
from matplotlib import ticker as mpl_ticker
matplotlib.use('Agg')
import pandas as pd
import seaborn as sns
import sys
from matplotlib import pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
from keyname import keyname as kn
from fileshash import fileshash as fsh
from pylib ... | [
"mmore500.login+gpg@gmail.com"
] | mmore500.login+gpg@gmail.com |
4721acb8803cc5ba33b6e2fb1316588ff3b778eb | 91b80ef798cbcdaab7f6ae0be994f5a3b12f1515 | /116.py | 0c59461366c6dff331b9e118b32b4eb8eeaedf3d | [] | no_license | luckkyzhou/leetcode | 13377565a1cc2c7861601ca5d55f6b83c63d490e | 43bcf65d31f1b729ac8ca293635f46ffbe03c80b | refs/heads/master | 2021-06-21T11:26:06.114096 | 2021-03-24T21:06:15 | 2021-03-24T21:06:15 | 205,568,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # -*- coding: utf-8 -*-
class Node:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
self.next = None
class Solution:
def connect(self, root: Node) -> Node:
if not root or not root.left:
return root
root.left.next = root.rig... | [
"luckky_zhou@163.com"
] | luckky_zhou@163.com |
764dd108e332f33dd969b31f92f89d17b6574e08 | 7cb626363bbce2f66c09e509e562ff3d371c10c6 | /multimodel_inference/py3_v1/olds/IMiscsm.py | 887e34b3ac58c6a3f3d937f300d16f73f5b88219 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | z0on/AFS-analysis-with-moments | 76bfd6b0361ab7e9173144dbd21b6fa2c7bf1795 | eea4735b3b6fbe31c4e396da3d798387884a1500 | refs/heads/master | 2023-07-31T20:49:20.865161 | 2023-07-19T06:57:32 | 2023-07-19T06:57:32 | 96,915,117 | 4 | 5 | null | 2020-09-02T17:39:08 | 2017-07-11T16:38:03 | Python | UTF-8 | Python | false | false | 3,843 | py | #!/usr/bin/env python
# split with growth starting after some time, SYMMETRIC migration upon secondary contact, "genomic islands" of two different migration regimes
# n(para): 10
import matplotlib
matplotlib.use('PDF')
import moments
import random
import pylab
import matplotlib.pyplot as plt
import numpy as np
from ... | [
"matz@utexas.edu"
] | matz@utexas.edu |
49609f3b9008c298a550b0257b05776da22481fb | 6021f75a9c6baac12b7b8b8c07401b7c8e1f173a | /bin/createfontdatachunk.py | 7e7ec2d840097b7b6cc361639be70a2e728f5258 | [] | no_license | srakrnxKU/204215-vimguard | 272e609a7ff6243f7ff42d17dd518b2ff356e332 | 2084bd9e4e26d6a235251d63e7305c6cbb7129af | refs/heads/master | 2021-07-23T19:06:44.791679 | 2017-10-31T15:08:18 | 2017-10-31T15:08:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | #!/home/srakrn/Works/VimGuard/bin/python3.6
from __future__ import print_function
import base64
import os
import sys
if __name__ == "__main__":
# create font data chunk for embedding
font = "Tests/images/courB08"
print(" f._load_pilfont_data(")
print(" # %s" % os.path.basename(font))
pri... | [
"tanersirakorn@gmail.com"
] | tanersirakorn@gmail.com |
b1aea3e6669b5878f03964a6d2468658a98c125c | 440c2f17a64b718227bbc9ac1f799630d0f3233d | /考试/xiecheng3.py | 1f4d756f918e7de0467f29b4a58007015fabcc0e | [] | no_license | HuichuanLI/alogritme-interview | 6fc84fdbfe1123c1e587eaf2df6b6e9fb2ca7dda | 0ac672a1582707fcaa6b6ad1f2a1d927034447df | refs/heads/master | 2023-02-05T03:29:14.458783 | 2020-12-25T14:04:17 | 2020-12-25T14:04:17 | 206,583,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | import sys
line = sys.stdin.readline().strip()
result = []
res = ""
index = 1
def check_number(res):
if len(res) < 6:
res = "0" * (6 - len(res)) + res
return res
for elem in line:
if index % 5 == 1:
res += " "
if ord(elem) >= ord('A') and ord(elem) <= ord('Z'):
res += check... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
e52b781dc5b5945adde9bec0ca3267ca4e2805b2 | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/views_20190914161751.py | 310eec28df4db57cd22d5aaac8a62ba6f3a77ac0 | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 9,933 | py | from django.shortcuts import render
from .models import DVD, Transaction, Customer
from django.core.paginator import EmptyPage,PageNotAnInteger, Paginator
from django.db.models import Q
from django.contrib.auth.models import User, auth
from django.shortcuts import render, redirect
from django.contrib import messages
fr... | [
"uzairjoneswolf@gmail.com"
] | uzairjoneswolf@gmail.com |
064c3af127f602d6894ed5569b6dd3235ac8217f | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /nlp/3rdParty/orange/orange/OrangeWidgets/Associate/OWItemsetsExplorer.py | 81a4ad7b2522df8fb252e485409e1136315c22e0 | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,814 | py | """
<name>Itemsets Explorer</name>
<description>Itemsets explorer.</description>
<icon>icons/ItemsetsExplorer.png</icon>
<contact>Janez Demsar (janez.demsar(@at@)fri.uni-lj.si)</contact>
<priority>1100</priority>
"""
from OWWidget import *
import OWGUI, OWTools, orngMisc
import sys, re
from OWItemsets import ... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
bb191fc9d14faeb637ee1ab173e3f82ebce3398c | d6f6d2648dd5328ab6f50e5d3cec81a53b8aee51 | /deploy_tools/fabfile.py | 7564a8ba4f9268368ed6f09dd3161cdc4c5b22a0 | [] | no_license | eReuse/grd-sandbox | dce69d2ee9df57dd995eb75f520b804b052ca411 | fab0855b19599455a980317a0602fb118c7c9f37 | refs/heads/master | 2020-12-26T01:18:24.312727 | 2015-10-26T10:10:33 | 2015-10-26T10:10:33 | 35,091,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 3,951 | py | from fabric.contrib.files import append, exists, sed
from fabric.api import env, local, run
import random
REPO_URL = 'https://github.com/ereuse/grd-sandbox.git'
def _create_directory_structure_if_necessary(site_folder):
for subfolder in ('media', 'static', 'virtualenv', 'source'):
run('mkdir -p %s/%s' %... | [
"santiago@pangea.org"
] | santiago@pangea.org |
46ed090c95ccd8dff295b9dbb5fcfcdd83714db9 | 3a860310dcc7d68026e86d94c94db11e00e71f49 | /Algorithms/tf2algos/pg.py | e81730585265636feb091c15e0425ad087efc541 | [
"Apache-2.0"
] | permissive | Abluceli/RLs | d3dfc8ef1c9d994f871157b6a87808a7e83c3350 | 00f762558bf106c076c813bfbe38b6685d77c363 | refs/heads/master | 2020-12-04T01:34:42.893371 | 2020-02-02T13:11:48 | 2020-02-02T13:11:48 | 206,453,549 | 1 | 0 | Apache-2.0 | 2019-09-09T15:01:56 | 2019-09-05T02:02:35 | Python | UTF-8 | Python | false | false | 6,422 | py | import numpy as np
import tensorflow as tf
import tensorflow_probability as tfp
import Nn
from utils.sth import sth
from utils.tf2_utils import get_TensorSpecs, gaussian_clip_rsample, gaussian_likelihood_sum, gaussian_entropy
from Algorithms.tf2algos.base.on_policy import On_Policy
class PG(On_Policy):
def __init... | [
"271668153@qq.com"
] | 271668153@qq.com |
4db041155fb32afe1b6d6c28ff3c5320cb9cb558 | 9438b792cc2ce12d77c32551874de7b0d81f6109 | /Machine_learning/Second_comp/Collab/cifar10.py | 349e34f70b40a93995b1db3bd88bb4a4125f21c2 | [] | no_license | Mondiegus/Python_learning | cfd90672b412cddb28acdf609ee7be1992a9b13e | 32ab963a905973beeee4050e922ab861e3f904d8 | refs/heads/master | 2021-07-25T04:40:18.891139 | 2020-09-27T14:52:12 | 2020-09-27T14:52:12 | 220,710,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | # -*- coding: utf-8 -*-
"""cifar10.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1j_7sgkrEoAc9VNl9Qo69j-Ub7iGkP4LE
"""
# Commented out IPython magic to ensure Python compatibility.
import tensorflow as tf
import os
from tensorflow.python.keras... | [
"Mondiegus9@gmail.com"
] | Mondiegus9@gmail.com |
e77f214c513979aef895ff1db1d6e7fac111f15f | 4a1273f72e7d8a07a3fa67ac9f2709b64ec6bc18 | /execution/account_groups/account_allocations.py | 8e911e942facc882e03c732ff212a55c67eccf0a | [] | no_license | WealthCity/django-project | 6668b92806d8c61ef9e20bd42daec99993cd25b2 | fa31fa82505c3d0fbc54bd8436cfc0e49c896f3e | refs/heads/dev | 2021-01-19T14:10:52.115301 | 2017-04-12T11:23:32 | 2017-04-12T11:23:32 | 88,132,284 | 0 | 1 | null | 2017-04-13T06:26:30 | 2017-04-13T06:26:29 | null | UTF-8 | Python | false | false | 1,218 | py | class Execution(object):
def __init__(self, price, ib_account, shares, time, order_id):
self.price = price
self.ib_account = ib_account
self.shares = shares
self.order_id = order_id
self.time = [time]
class AccountAllocations(object):
'''
Allocation holder - allocat... | [
"peterroth0612@gmail.com"
] | peterroth0612@gmail.com |
4aef37d20b8fe97bee163d80e392f74553aaba1d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03317/s514920650.py | 599cf0c37a4e2c0627b8ef31c92d9a3ddf9e9570 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
in_n = lambda: int(readline())
in_nn = lambda: map(int, readline().split())
in_nl = lambda: list(map(int, readline().split()))
in_na = lambda: map(int, read().split())
in_s = lambda: readline().rstrip().decode('utf-8')
def main():
N, ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8fdcbfab4219b3cfe16b44d80199e6294641a8b2 | b1b08ffae24bfae23b1c2f4781f3b1f08b2550e1 | /filmweb/migrations/0001_initial.py | 94732651f8f1863f7bd09c137259e89dda972b28 | [] | no_license | ofemofem/my-filmweb | 622b125dcad8f643536fdde427f341ab37f32b4f | f4a43c9cc4b61db8e74cae4fcd12563942d4ccfc | refs/heads/master | 2020-04-29T08:27:01.340626 | 2019-03-19T15:06:35 | 2019-03-19T15:06:35 | 175,987,060 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # Generated by Django 2.1.7 on 2019-03-17 11:35
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Film',
fields=[
('id', models.AutoField(aut... | [
"you@example.com"
] | you@example.com |
b20a3e2df01830fe8de229a3721c3991cf99b37c | 78520f19165b33909364299aaaea2283b8aa2367 | /libs/jinja/dicts.py | 71a624bb3d229d2b8e77657dc343eafc764c755f | [
"BSD-2-Clause"
] | permissive | s3n0/Python-Course | 3d3618b97c7d4d9bbe7c3987d2c329203251029b | d48568d096e9a78e397eefd83b2588ddd27aa481 | refs/heads/master | 2020-09-09T00:51:28.874296 | 2019-09-29T17:50:48 | 2019-09-29T17:50:48 | 221,294,533 | 0 | 1 | null | 2019-11-12T19:23:11 | 2019-11-12T19:23:10 | null | UTF-8 | Python | false | false | 201 | py | #!/usr/bin/env python3
from jinja2 import Template
person = { 'name': 'Person', 'age': 34 }
tm = Template("My name is {{ per.name }} and I am {{ per.age }}")
msg = tm.render(per=person)
print(msg)
| [
"noreply@github.com"
] | s3n0.noreply@github.com |
fb44c3969a828f3129f990e7e8e6e28c480e14d7 | f476cdf5a27e7768238854c5e7f24e3650ffeebc | /Concepts/abstract.py | e900e850c7555de08c622ef7bea80eecc5b24abb | [] | no_license | masudurHimel/Problematic_Adventure | 0d1a8b0d3cc6339d3d9a4f8ed9be9c1635ab290f | 3f32f5195c497e1c44d1a37c80ea644c31a53688 | refs/heads/master | 2023-05-01T23:34:15.697852 | 2023-04-28T09:30:00 | 2023-04-29T09:22:33 | 226,885,967 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from abc import ABC, abstractmethod
class M(ABC):
@abstractmethod
def spd(self):
print('spd')
@abstractmethod
def pdb(self):
print('pdb')
class Temp(M):
def spd(self):
pass
def pdb(self):
pass
def __init__(self):
pass
@staticmethod
def... | [
"masudurhimel@gmail.com"
] | masudurhimel@gmail.com |
901118b7d5798a9ae4e3ecee9f5184a78219d956 | 314cf05e7acdfb2b83bf4a56de4ee65310bd28f2 | /tests/outcomes/plot/bar/universal_tests/data_two_pics_no_x/pandas_dataframe_plot_kind.py | 3508cbf5f1fdda41d253972ff6a25e8440d593b3 | [] | no_license | hyperskill/hs-test-python | 9f0201904cb68f3eb35275bb0c3b9bb70164a1e7 | 260313395d0534d148738e031753eb8f60de2e13 | refs/heads/master | 2023-05-10T17:49:26.400853 | 2023-04-26T11:49:52 | 2023-04-26T11:49:52 | 214,279,373 | 20 | 7 | null | 2023-04-26T11:49:53 | 2019-10-10T20:28:03 | Python | UTF-8 | Python | false | false | 334 | py | def plot():
try:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
except ModuleNotFoundError:
return
df = pd.DataFrame(np.array([[1, 2], [2, 3], [3, 4], [4, 5], [5, 6]]),
columns=['one', 'two'])
df.plot(kind='bar')
plt.sh... | [
"aaaaaa2493@yandex.ru"
] | aaaaaa2493@yandex.ru |
1634ea3d3e8fdd06d387d0f4dd6dfc55df03849c | 00d591e247159e3f0278a27d1ff041da91b475e1 | /strings_for_testing.py | 9779be6d857df38ccd56ee42985aefb9bab2312f | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | zachwill/amazon-reviewers | 94d6b3db6c7c009778abea19e5d25f8bdb50bad8 | ab9fc1d272f2d631b1329c731f60f3840342e6a1 | refs/heads/master | 2016-08-06T13:59:29.789894 | 2011-05-14T08:51:28 | 2011-05-14T08:51:28 | 1,746,325 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | eleven_pages = """
<span class="paging">
<span class="on">1</span>
<a href="http://second-page">2</a>
<a href="http://last-page">11</a>
</span>
<span class="paging">
<span>This Is Not</span>
<a href="http://false">The Data</a>
<a href="http://false">You're Loo... | [
"hey@zachwill.com"
] | hey@zachwill.com |
c86702fea52479ec7efe1b1df32278e072c10d3c | 8bd6ab7b47dc046344f1cf7aec822a940e6a3a4d | /publishconf.py | 873f359ea4386d9cf72767fb27e20162cd049a01 | [] | no_license | matthew-brett/linuxiste-blog | 52cfd3af463ed9d9950df24ce5b5da287b5395be | 358d3f05413451c74e732e1a764edcfd7f003353 | refs/heads/master | 2016-09-05T11:17:40.058624 | 2013-05-13T03:01:56 | 2013-05-13T03:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
SITEURL = 'http://linuxiste.dynevor.org'
RELATIVE_URLS =... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
434be183742464d42abb00c98d39cf453928c058 | 5d96d7c1c928c812076302c3fdc62919573265fd | /libs/transliterate/base.py | 6a1b296beb028969b3fb5fd8d6209c6d55145f35 | [
"MIT"
] | permissive | tosher/StGitlab | 6b8b1965c0a4498559407779d79d0a4575d15850 | 720c382c4045678307bb64dbe5ad89e778d2ad37 | refs/heads/master | 2022-08-26T01:38:46.001892 | 2020-05-23T18:21:05 | 2020-05-23T18:21:05 | 104,391,041 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,856 | py | # -*- coding: utf-8 -*-
import re
import unicodedata
import six
from .exceptions import (
ImproperlyConfigured,
InvalidRegistryItemType
)
__title__ = 'transliterate.base'
__author__ = 'Artur Barseghyan'
__copyright__ = '2013-2017 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'registry',... | [
"to.tosher@gmail.com"
] | to.tosher@gmail.com |
aeba527eb13936a0316c5e61d9571454901b95b6 | 0d1862ebf38405e4b4a1630a35ed97ee2129d64d | /fgsm-image-attacks/pyimagesearch/datagen.py | bf735d55bd0e05a9a7e2d8b3c997b93ef4a20b11 | [] | no_license | Mustafa744/pyimagesearch | 7521c86135da3109ae0ec805b8004700f523f21a | 637e5dc8860960a362bc4bfafa0e7ce5ef9280f4 | refs/heads/master | 2023-07-03T15:04:00.149972 | 2021-08-02T14:34:22 | 2021-08-02T14:34:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,027 | py | # -----------------------------
# IMPORTS
# -----------------------------
# Import the necessary packages
from .fgsm import generate_image_adversary
from sklearn.utils import shuffle
import numpy as np
# -----------------------------
# FUNCTIONS
# -----------------------------
def generate_adversarial_batch(model... | [
"silva.mfpedro@gmail.com"
] | silva.mfpedro@gmail.com |
49ed09bb5a95960c1f557b42683f1e37d5d279a5 | 3e5ecad4d2f681f2f4f749109cc99deea1209ea4 | /ggulzam/add_sound.py | 3199becc56d5f0b14073551dd0c3df9a2c959605 | [] | no_license | SunghoonSeok/Study | f41ede390079037b2090e6df20e5fb38f2e59b8f | 50f02b9c9bac904cd4f6923b41efabe524ff3d8a | refs/heads/master | 2023-06-18T06:47:55.545323 | 2021-07-05T00:47:55 | 2021-07-05T00:47:55 | 324,866,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from moviepy.editor import *
videoclip = VideoFileClip("c:/video/eight_acoustic_sketch_compress.mp4")
audioclip = AudioFileClip("c:/video/eight_acoustic_sound.mp3")
new_audioclip = CompositeAudioClip([audioclip])
videoclip.audio = new_audioclip
videoclip.write_videofile("c:/video/eight_acoustic_with_sound.mp4") | [
"76455292+SunghoonSeok@users.noreply.github.com"
] | 76455292+SunghoonSeok@users.noreply.github.com |
163e5ceb26e2596c7d50cb3f5589d7758da9827a | 5c1746c4ae9f5eb4c94c9b3a70a4d3feb966ceda | /pcapkit/foundation/reassembly/data/__init__.py | bb300761367dc3a99ad82b2171cdc249402e9bf3 | [
"BSD-3-Clause"
] | permissive | JarryShaw/PyPCAPKit | 8b53c76cf54f2ef1a9e4d0a7aeb3d52605dc1d5a | a6fe49ec58f09e105bec5a00fb66d9b3f22730d9 | refs/heads/main | 2023-08-29T12:49:58.611378 | 2023-08-28T14:05:43 | 2023-08-28T14:05:43 | 109,791,841 | 204 | 29 | BSD-3-Clause | 2023-09-11T17:09:06 | 2017-11-07T05:41:56 | Python | UTF-8 | Python | false | false | 1,924 | py | # -*- coding: utf-8 -*-
"""data models for reassembly"""
# IP reassembly
from pcapkit.foundation.reassembly.data.ip import Buffer as IP_Buffer
from pcapkit.foundation.reassembly.data.ip import BufferID as IP_BufferID
from pcapkit.foundation.reassembly.data.ip import Datagram as IP_Datagram
from pcapkit.foundation.reas... | [
"jarryshaw@icloud.com"
] | jarryshaw@icloud.com |
69108b4f125fee17b379a52f589b69fafbe45507 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/telemetry/filterpolicy.py | 4bf9617717c2a588236342e3767bf5b82dc8e71c | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,591 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
ac1f4b126010ac1cd4d62f274ea8d0de6f5521f4 | 706bc9414a7b27a3c26dbc4445ff5b1b6eb2a669 | /python_learning/for_advanced/for_enumerate.py | 584bddd82627b17fa65504a067446cdc395855c9 | [] | no_license | suiup/pythonProject | 4ae548cf8d42d75c508fb0e48f0e23eb76d8c938 | 8b52e2d4c66859f759b97680e2ab000f3af8af0d | refs/heads/master | 2023-06-24T20:47:02.544557 | 2021-07-21T16:15:39 | 2021-07-21T16:15:39 | 381,437,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | count = 0
l = [11,22,33,44]
for data in l:
if count == 2:
data += 11
l[count] = data
count += 1
print(l)
m = [11,22,33,44]
for index, num in enumerate(m):
if index == 2:
num += 11
m[index] = num
print(m)
n = [11,22,33,44]
d = {}
for index, num in enumerate(n, start=5):
d[index... | [
"931857499@qq.com"
] | 931857499@qq.com |
28e7aa624976d6b51f74a5db46e4a633ff426243 | c361f1be1d6d2507c5e2453d6f4d3afea4327798 | /web/config.py | ae089a33812e13d7220b47d3ee152dd1f2bc723e | [
"Apache-2.0"
] | permissive | flaneuse/biothings.crawler | 936ed16892f292ec23592861576113bb8576a4fc | 70e4eec45e44fb7300643b1fb64b0824ed6e7df2 | refs/heads/master | 2020-12-20T11:44:07.057270 | 2020-01-24T18:56:05 | 2020-01-24T18:56:05 | 236,063,857 | 0 | 0 | Apache-2.0 | 2020-01-24T18:55:33 | 2020-01-24T18:55:33 | null | UTF-8 | Python | false | false | 1,077 | py | ''' Biothings API Web Config '''
import os
from biothings.web.api.es.handlers import QueryHandler
from biothings.web.settings.default import *
from web.query_builder import MPQueryBuilder
from web.query_transformer import MPResultTransformer
# ************************************************************************... | [
"xzhou@scripps.edu"
] | xzhou@scripps.edu |
64491e00be4f0f1a87c8f3d688a6cf364d057278 | 7682d3f0efd7bd8acbf0caa0548e3fd8a863421b | /bot/commands/admn_channels.py | 672436804fe145d8fbbcdbbb0ecc83017a01cd06 | [
"MIT"
] | permissive | UCDPA-charlesomoarebun/GOF2BountyBot | 54abc3e7f972baa9005fd203d275cb4eb7976943 | 613ea19847b76dd433da11aab7cdd0ec140b8602 | refs/heads/master | 2023-04-13T05:32:56.307127 | 2021-03-16T17:30:10 | 2021-03-16T17:30:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,618 | py | import discord
from . import commandsDB as botCommands
from .. import botState
from ..cfg import bbData
botCommands.addHelpSection(1, "channels")
async def admin_cmd_set_announce_channel(message : discord.Message, args : str, isDM : bool):
"""admin command for setting the current guild's announcements channel
... | [
"1jasperlaw@gmail.com"
] | 1jasperlaw@gmail.com |
42deb5afd0ffb6659ebbe7033a95da2325053f9b | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/eventgrid/v20180501preview/list_topic_shared_access_keys.py | 0d75ad634a6dbefb4d312b6386a3f01d44d87749 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
b5d2331dc075f4e795f1b94e96799f865a5ec6ad | ecad2803537295a24fe8274f99dfb85ead3a7191 | /debian/python-nova/usr/lib/python2.7/dist-packages/nova/tests/image/fake.py | fb54c6a7440bea707e3e38d296468735d954ed21 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/stacklab-nova | 98400585ec3b4e3e94269dcb41578fffe7e2c8c1 | 4ab1698659b663ef222255610d1a5c042706dd65 | refs/heads/master | 2022-11-20T12:07:18.250829 | 2012-12-13T04:43:00 | 2012-12-13T04:43:00 | 282,166,345 | 0 | 0 | Apache-2.0 | 2020-07-24T08:31:57 | 2020-07-24T08:31:56 | null | UTF-8 | Python | false | false | 57 | py | ../../../../../../share/pyshared/nova/tests/image/fake.py | [
"yuanotes@gmail.com"
] | yuanotes@gmail.com |
7599f08acd48cf0a371cd6bafa6c39c5c64755cd | 35c76bf72d77ec05cc9699bb2c06718a612f1cbe | /behavioral/Observer/observer_1.py | 01f2d376329d3bc064c9197f11761379f94471f0 | [] | no_license | kimsehwan96/Design-Pattern | ba0faee40f994b2d51dc15a65e8317023a10f644 | f3576ab30b66fef9af73e8feaf1fd7bd8f87deea | refs/heads/master | 2023-02-26T23:38:34.548282 | 2021-02-12T11:09:24 | 2021-02-12T11:09:24 | 328,360,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | class Observer:
def __init__(self):
self.subscriber = []
self.msg = ""
def notify(self):
for sub in self.subscriber:
sub.msg = self.msg
# 등록된 옵저버들에 노티를 할 메서드, 순회하면서 노티 메시지를 전송한다,
def register(self, observer):
self.subscriber.append(observer)
# 옵저버를 등록하... | [
"sktpghks138@gmail.com"
] | sktpghks138@gmail.com |
2372ce796073be3352245a68200e0731906fbe94 | 71a28d4bc1c0f32dc9185332ba2142ba823d3e53 | /geo1/urls.py | 8c813ec05ff752dc71c96e5fb98a7cb164f28262 | [] | no_license | ekeydar/train_stops_map | 51b1e3a86967851ea16f2e822867f881b91d24fe | acbc1a1a250ca6c3e7f5dde8932301bd4b67c96d | refs/heads/master | 2016-09-12T21:17:13.771035 | 2016-05-27T12:54:46 | 2016-05-27T12:54:46 | 59,438,833 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | """geo1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"ekeydar@gmail.com"
] | ekeydar@gmail.com |
a09f28dfef1196cbb7b45cd54800a3d2235405d7 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy2579.py | 4b05f57b12b472b68a38ee3c3ccdd68129624f96 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | # qubit number=4
# total number=36
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
51f51043b276cbecf9a27c7981a9d66c93335a26 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /backend/sa_modules/components.py | ebd52899e592348d0a081e3f9155e8c1765a1996 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 2,080 | py | import numpy as np
import pandas as pd
import time
import decimal
import seaborn as sns
import csv
import scipy
import statsmodels.stats.weightstats as st
def integrated_ttest(result_path, test_variables, group_variables):
feature_list = test_variables.columns
ttest_results = pd.DataFrame({'Feature Name': [],'... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
d4203df7a7298b28db84ee6811b35b00d6470274 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_148/ch46_2020_04_13_15_17_50_209074.py | 3dc16dcc53bd56457a55c750f2876e45e6e8c84b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | def numero_no_indice(lista):
lista = []
lista2 = []
i = 0
while i<len(lista):
lista[i] == i
lista2 = lista[i]
i += 1
return lista2 | [
"you@example.com"
] | you@example.com |
ab9940bd5e95c123e687be28bb8ea45a2fd251c8 | 7c3c33f27ebe4026cc57efc488ee40fcb8951453 | /auto_tile_size.py | 9c2dd93a7843f74e499ef0cdac1cb60f9194342f | [] | no_license | gregzaal/Auto-Render-Tile-Size | 07541b163ccb0e6708a289bf58a31702cc1203a8 | 017d45751ad6bf8f098159d9b216a339a39a2888 | refs/heads/master | 2022-01-27T12:39:50.204801 | 2022-01-21T10:18:49 | 2022-01-21T10:18:49 | 22,920,829 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,701 | py | # BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distributed i... | [
"gregzzmail@gmail.com"
] | gregzzmail@gmail.com |
eac37b10a870cc613d9555a01bcd9151e46c50ce | d07834620562760dda49a03bbd2da88d7b2b8b6a | /Eric/lazyrunme4.py | e2cbaf5e9e4dfbf1a4353b55d0582837b9bc6cf3 | [] | no_license | ebylaska/ML_Potentials | d2eb888ed94fa9a36aeabd00fb721a5653e89bda | fd1b8fd5bd18763b000a121d60da5fd920926875 | refs/heads/master | 2022-04-30T09:44:41.269965 | 2022-04-11T16:22:20 | 2022-04-11T16:22:20 | 159,248,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | from __future__ import print_function
import fastatomfm as atomfm
#xyzfilename = "small.xyz"
#xyzfilename = "../eatomstructure.xyz"
feifilename = "h2-aimd.fei"
def isFloat(string):
try:
float(string)
return True
except ValueError:
return False
def read_in_lines(filename,nlines):
... | [
"bylaska@gmail.com"
] | bylaska@gmail.com |
b896d7d4be7375b1f2e60b2d389f4cb8bb295b52 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_170/ch14_2020_03_03_16_36_47_529189.py | 4d05681ada9a9d7517794a56fac2b3b8e2491e7a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py |
import math
g = 9.8
def calcula_distancia_do_projetil(v,a,y):
d = (v**2/2*g)*(1+(1+(2*g*y)/(v**2*(math.sin(a))**2)**(1/2)))*math.sin(2*a)
return d
b = calcula_distancia_do_projetil(2,3,4)
print(b) | [
"you@example.com"
] | you@example.com |
937d3d281a085b55b49ce3926c1bb8ade4b146e7 | d0eec1c5d0a3b6fca14b3d39cebfa34954457d2f | /nio/log.py | 6b4f8d36eb2b8da09638ddcd7aa0e05cf5a53c1a | [
"ISC",
"Apache-2.0"
] | permissive | djotaku/matrix-nio | 3edf49dd993eb7b593cc8d3fa964a02610fcec3c | fa5d887c76e51034c81197523cd505d3b2df1b3e | refs/heads/master | 2021-05-18T21:46:00.418646 | 2020-04-21T22:31:04 | 2020-04-21T22:31:04 | 251,437,177 | 1 | 1 | NOASSERTION | 2020-03-30T21:54:41 | 2020-03-30T21:54:40 | null | UTF-8 | Python | false | false | 894 | py | # -*- coding: utf-8 -*-
# Copyright © 2018 Damir Jelić <poljar@termina.org.uk>
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PR... | [
"poljar@termina.org.uk"
] | poljar@termina.org.uk |
aa6cc0969d78c01cbbb6d6b5e946d65ae759be88 | f7adda6c5ad3f8ab2ed05e1b0cb44ad36ba1e7a5 | /Django/class_views/class_view_demo/class_view_demo/urls.py | 5798bd5b2e0dcffd16aa79b5782f0ed60cf6334d | [] | no_license | wmm98/python333 | 20e864107ed3c6b9c2e0dedf82412c238f1d6059 | 57ecec2e349e4cf028cb208902c8c63bab323557 | refs/heads/master | 2020-04-28T16:13:09.791550 | 2019-10-09T03:51:58 | 2019-10-09T03:51:58 | 175,402,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | """class_view_demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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')
Cla... | [
"792545884@qq.com"
] | 792545884@qq.com |
40b9de5961b15ed764ef92d86e99fe7a0277bef7 | cd0ad0e18fafc66bc39ac30adf30fc137178d859 | /12常用第三方模块/生成验证码.py | 01f9b6db6a59391f9db0e122a9eaa6777298aaf7 | [] | no_license | KlausQIU/liao.xuefeng2.7python-course | 938b23f905c71fd7b0d3a5f330d79e15a00dd1fc | 9d1f9921e4f769320f4f7ce897c2f2b39a6bacff | refs/heads/master | 2021-01-17T06:07:14.676813 | 2016-07-03T12:10:28 | 2016-07-03T12:10:28 | 52,960,541 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | # -*- coding:utf-8 -*-
from PIL import Image,ImageDraw,ImageFilter,ImageFont
import random
__author__ = 'Klaus.Qiu'
#随机字母
def rndChar():
return chr(random.randint(65,90))
#随机颜色1:
def rndColor1():
return (random.randint(64,255),random.randint(64,255),random.randint(64,255))
#随机颜色2:
def rndColor2():
return (random... | [
"moon.qiu198909@hotmail.com"
] | moon.qiu198909@hotmail.com |
d7686155582c1e04d781c16072b959844280169e | 7bc8807c261adccb2e71c97e01ce48b8c13d529d | /a.py | 064be1382a93f082e3ef18135d98fd70d697b1de | [] | no_license | yunhui21/CB_AI_3_NLP | 4e090f028123621978164ad29d9789767c1ec0b0 | 20485ce5bae472d1b63b58adf69207a2837bb96a | refs/heads/main | 2023-01-30T11:10:41.385293 | 2020-12-17T03:56:53 | 2020-12-17T03:56:53 | 309,216,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | print(int('10'))
print(int(10))
print(int(3.3))
print(int(5/2))
print(True and True)
print(True and False)
print(True or True)
print(True or False) | [
"yunhui21@gmail.com"
] | yunhui21@gmail.com |
7c59da7117d5d4fc606e5cefca8a1faac2308f97 | d75dbf0d7f7c3b07be54aebff33d63715dc5bcb9 | /google-cloud-sdk/lib/tests/unit/surface/compute/forwarding_rules/create_tests/backend_services_test.py | 9f41c0620303bc6c886139e027de27e8433dc447 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/gcloud_cli | 53280ad565bde4094e05a13dd20eac461273c58c | 6f7c41ca39081568b7e0fb06e14feadf556543f7 | refs/heads/master | 2022-11-22T15:23:05.772995 | 2020-06-07T20:10:39 | 2020-06-07T20:10:39 | 282,445,017 | 0 | 0 | null | 2020-07-25T13:02:05 | 2020-07-25T13:02:04 | null | UTF-8 | Python | false | false | 13,786 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. 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 requir... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
f906cb975d9e4cfc821d90811a8d6799bfafefe7 | b3b39a553ec4f92d5631090090094348deddec3e | /python/practice/ml/start/gaussian naive bayes.py | e88a2988c7fa31769f507c56574cde908cfcb7e9 | [] | no_license | halloTheCoder/Algorithm | 1015dfcfecd97234d6984aad1126ce6dfee8af06 | 6b0ade9a4432e5dd96ab846fc42fdaa426cf207b | refs/heads/master | 2021-05-15T09:44:48.161700 | 2017-11-03T08:02:16 | 2017-11-03T08:02:16 | 108,151,138 | 1 | 0 | null | 2017-11-03T08:02:17 | 2017-10-24T16:03:15 | C++ | UTF-8 | Python | false | false | 315 | py | import numpy as np
from sklearn.naive_bayes import GaussianNB
x = np.array([[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]])
y = np.array([1, 1, 1, 2, 2, 2])
clf = GaussianNB()
print(clf.predict([[-0.8, -1]]))
clf_pf = GaussianNB()
clf_pf.partial_fit(x, y, np.unique(y))
print(clf_pf.predict([[-0.8, -1]]))
| [
"akash.chandra8d@gmail.com"
] | akash.chandra8d@gmail.com |
f819579a9afe061110c713b7158d18adb6104732 | 92dfcce04efd5fb3254180bf7b0e24c010c7a637 | /src/punx/finding.py | 9921ee597b0f69af13c4e2d317540b4fb7bc3b43 | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gitter-badger/punx | 5fd42b9ce9d39d5dba382e51571e635cce982463 | dd0f00d582e39097d7e28d5aadfd05e68836ff77 | refs/heads/master | 2021-01-22T19:40:42.615097 | 2017-03-12T07:21:39 | 2017-03-12T07:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py |
#-----------------------------------------------------------------------------
# :author: Pete R. Jemian
# :email: prjemian@gmail.com
# :copyright: (c) 2016, Pete R. Jemian
#
# Distributed under the terms of the Creative Commons Attribution 4.0 International Public License.
#
# The full license is in th... | [
"prjemian@gmail.com"
] | prjemian@gmail.com |
6c467bf9e7b50a0da433f4cabf04795e6cd79926 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day09/jiangyi/day09/code/keyword_give_args.py | 8d45f688ea58d668f2dd40f74b87695a2bdb5cfa | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py |
# 此示例示意 关键字传参
def myfun1(a, b, c):
"""这是一个有三个参数的函数"""
print("a =", a)
print("b =", b)
print("c =", c)
myfun1(c=3, b=2, a=1) # 关键字传参
myfun1(b=200, c=300, a=100)
myfun1(a=10, c=30, b=20)
| [
"442315617@qq.com"
] | 442315617@qq.com |
1479d52f7e7181dc1214afa911541b5994973f89 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ZZsnGAjYLyosG9zmH_21.py | 5398774a494953a8a8e34c7fdcd71e9a9c0ae398 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py |
def flash(flashcard):
if flashcard[2] == 0 and flashcard[1] == "/":
return None
elif flashcard[1] == "+":
return flashcard[0] + flashcard[2]
elif flashcard[1] == "-":
return flashcard[0] - flashcard[2]
elif flashcard[1] == "/":
return round(flashcard[0] / flashcard[2],2)
elif flashcard[1] == ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
70c4e9f3ba56ae5a88a1ada8a2568583fc49cd71 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/constant.py | 989c7f12317607b835a427bc325dc784ad4b81dd | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 2,811 | py | ii = [('BentJDO2.py', 3), ('EmerRN.py', 3), ('CookGHP3.py', 17), ('LyelCPG2.py', 10), ('MarrFDI.py', 6), ('RogePAV2.py', 25), ('CoolWHM2.py', 2), ('GodwWSL2.py', 5), ('ChanWS.py', 1), ('RogePAV.py', 25), ('SadlMLP.py', 70), ('FerrSDO3.py', 6), ('WilbRLW.py', 25), ('WilbRLW4.py', 14), ('RennJIT.py', 9), ('ProuWCM.py', 2... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
67f8c05824545e1f5251080c9502ded1ee6d2b55 | eb33ebb7c144cce5a6a1b039a2cb5dd331bd7863 | /asl/util/torch.py | 30378b38e7b0602c6738e38ab090bf1a50b51b16 | [] | no_license | zenna/asl | aeaa2c3cb0f204cf42e03528765d660bd3799ea8 | 6753eb29f3b1826c40df2eae1dff0dad34629423 | refs/heads/master | 2021-09-10T12:11:22.304508 | 2018-02-08T16:02:10 | 2018-02-08T16:02:10 | 59,302,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import torch
def onehot(i, onehot_len, batch_size):
"Create a one hot vector from integer i"
# Dummy input that HAS to be 2D for the scatter (you can use view(-1,1) if needed)
y = torch.LongTensor(batch_size, 1).fill_(i)
# One hot encoding buffer that you create out of the loop and just keep reusing
y_onehot... | [
"zennatavares@gmail.com"
] | zennatavares@gmail.com |
42eb6681609012073eaf6e17dff1068788b1e5d9 | ae0f8ffce9b41d4833aec3f91dab74dbf28e0db9 | /app_aeronaves_light/grupos_modulos/migrations/0004_grupomodulo_slug.py | 70074eb28f0fe1fa334460b5782c065ad141cc04 | [] | no_license | gfcarbonell/app_aeronave_light | 19db35eb5b42657aab67b7895d3e50146f3df786 | 2730f88f0d5bf5603585dce705bb098e0fbd3f40 | refs/heads/master | 2020-06-10T23:52:09.479200 | 2016-12-21T15:32:52 | 2016-12-21T15:32:52 | 75,839,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-30 02:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grupos_modulos', '0003_auto_20161129_2106'),
]
operations = [
migrations.Ad... | [
"r.gian.f.carbonell.s@gmail.com"
] | r.gian.f.carbonell.s@gmail.com |
fcb1ed8dec625f8b6b630fd4c3318b22ccf59ca4 | 5054c805be8bf94d660b806dc7ee5a9f426d49bc | /posthog/models/team/util.py | 9c86b724b404e8105e582df47f94e696d37d5820 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BElluu/posthog | 31a121ee1e690ee5d88cb268a3cd922031dcbee4 | 1e207230ba285c64ea8e7f58fd1f78ef7d7c160a | refs/heads/master | 2022-11-29T09:37:13.072632 | 2022-07-06T16:38:37 | 2022-07-06T16:38:37 | 254,587,554 | 0 | 0 | null | 2020-04-10T08:48:41 | 2020-04-10T08:48:41 | null | UTF-8 | Python | false | false | 2,298 | py | from typing import Any, List
import structlog
from posthog.client import sync_execute
from posthog.models.event.sql import EVENTS_DATA_TABLE
from posthog.models.person import Person, PersonDistinctId
from posthog.models.team import Team
from posthog.settings import CLEAR_CLICKHOUSE_REMOVED_DATA_SCHEDULE_CRON, CLICKHO... | [
"noreply@github.com"
] | BElluu.noreply@github.com |
14e96147d00cbeee3290e302779f2c3f068553be | d813d2fd748f534f75c55f0a174bb72bf872e47d | /tests/test_chrome_gdoc_update_undoredo_100.py | 8a7c1d7ba7bed53a33d181df37b3661367ff5615 | [] | no_license | MikeLien/Hasal | 7889bf50f8b80281607f20723ca9baa75e67f26f | 8049a67ee514bc49809326c7d1d2e6da1f9dac52 | refs/heads/master | 2020-12-25T22:58:25.064393 | 2016-04-21T06:35:40 | 2016-04-21T06:35:40 | 55,055,080 | 0 | 0 | null | 2016-03-30T10:43:33 | 2016-03-30T10:43:33 | null | UTF-8 | Python | false | false | 1,321 | py | import time
import lib.helper.captureHelper as captureHelper
from lib.perfBaseTest import PerfBaseTest
class TestSikuli(PerfBaseTest):
def setUp(self):
super(TestSikuli, self).setUp()
self.test_url, self.test_url_id = self.target_helper.clone_target(
self.env.TEST_TARGET_ID_100_PAGE_C... | [
"sho@mozilla.com"
] | sho@mozilla.com |
55f45aba554ef46de740741ecdfd9d740f8bf2b1 | e65a428ca7ee11d2f62d702842d4afbd493f08a4 | /list_advanced/electron_distribution.py | 4ef9fdcbdfafbcb334aca1e40427fe5bba9cec39 | [] | no_license | NikiDimov/SoftUni-Python-Fundamentals | d8ba24a06c4366e76bdc69f1c5225dca29fe955e | 5bb1bf5928e40f2bac867d33566c8b9dac13f566 | refs/heads/main | 2023-07-15T05:57:57.085880 | 2021-08-19T10:27:45 | 2021-08-19T10:27:45 | 323,631,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | sum_list = int(input())
new_list = []
index = 0
while sum(new_list) <= sum_list:
index += 1
new_list.append(2 * (index ** 2))
new_list.pop()
if not sum(new_list) == sum_list:
new_list.append(sum_list-sum(new_list))
print(new_list)
| [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
afd180b9a563f74f88362ddf28fac6eeac7b32ab | 89f4c66c4d3d40fdb843729403a3d44199a0fad2 | /utils/xmlWriter.py | 2d3cea12c585cabac3f0b93a648da067604dd5ef | [] | no_license | yangjiandong/mysite | 80911f08bc2f94c32b0de46f8b7a0c3eb96b2fca | 2db0444d9fac7b9bbf2da38ae03211c6cf0bba4a | refs/heads/master | 2021-01-15T17:29:29.396568 | 2012-01-04T08:33:08 | 2012-01-04T08:33:08 | 3,047,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py |
from xml.dom.minidom import Document
from xml.sax.saxutils import unescape
class XmlWriter:
def __init__(self):
self.doc = Document()
def createNode(self, nodeName, parentNode = '', withAttribs = {}):
node = self.doc.createElement(nodeName)
if parentNode == '': # create a parent node
... | [
"young.jiandong@gmail.com"
] | young.jiandong@gmail.com |
250b2e1e8b4474fd23b0803fbd34acc807d022ca | 3c099a78896ca4b775d28fccf38c2bfdf6a1a555 | /FileHandling/mode_r_reading.py | 4cf765a74230f48d134f93e65bf81d375d7f3d33 | [] | no_license | anmolparida/selenium_python | db21215837592dbafca5cced7aecb1421395ed41 | 78aec8bf34d53b19fb723a124ad13342c6ce641c | refs/heads/master | 2022-12-03T23:52:32.848674 | 2020-08-30T19:26:30 | 2020-08-30T19:26:30 | 282,207,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py |
with open("test.txt", mode='r', encoding='utf-8') as f:
# reads the first 5 chars of Second Line
print(f.read(5))
# reads the next 5 chars of First Line
print(f.read(5))
# read the rest of first line till end
print(f.read())
# f.read() returns a newline when end of the line is reached
... | [
"anmolparida@gmail.com"
] | anmolparida@gmail.com |
86210b98867861ad551c79f5437245b387b5adb5 | f97522e71f8d9f71f22bc3af72e5e257200c89f0 | /pyEX/marketdata/sse.py | d42e52c62872d95b1ce7cdc6bcb8f0876c770fbb | [
"Apache-2.0"
] | permissive | peterfabakker/pyEX | 8c60de1d48784cd2c04733dee2b4cbafacc07533 | bd8fc41602663b3d4024cc600621ecfb41f8932f | refs/heads/master | 2020-06-08T09:35:23.791002 | 2019-06-22T07:43:05 | 2019-06-22T07:43:05 | 193,206,494 | 0 | 0 | Apache-2.0 | 2019-06-22T07:42:37 | 2019-06-22T07:42:37 | null | UTF-8 | Python | false | false | 11,818 | py | from enum import Enum
from ..common import _strCommaSeparatedString, _streamSSE, _SSE_URL_PREFIX, _SSE_URL_PREFIX_ALL, _SSE_DEEP_URL_PREFIX, PyEXception
class DeepChannelsSSE(Enum):
TRADINGSTATUS = 'tradingstatus'
AUCTION = 'auction'
OPHALTSTATUS = 'op-halt-status'
SSR = 'ssr-status'
SECURITYEVENT... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
a75bd1d42031d214c8039b553b29e5df4907c64e | 3fe361cb8999b9efa39be9f474a43ae3717c38fc | /Leecode/leetcode83.py | aea0a1650ee2a232832e7dfac2f7c2f573ddb50d | [] | no_license | sjhhh3/Leetcode | bbacd124dcd165ae20f61ec165dce634ca75264d | 85b88da4aad86f86bff5c13de12e13069cda604f | refs/heads/master | 2021-01-02T04:13:35.914889 | 2019-03-12T17:31:18 | 2019-03-12T17:31:18 | 98,950,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def deleteDuplicates(self, head):
cur = head
while cur:
print(cur.val)
while cur.next and cur.next.val == cur.val:
cur.next = cur.next.nex... | [
"sjhhh33@gmail.com"
] | sjhhh33@gmail.com |
db21e5980443d214a3f00419927c75bed60ee819 | 8380b5eb12e24692e97480bfa8939a199d067bce | /Fuzzbunch/Resources/Pc2.2/PyScripts/Lib/pc2_2/__init__.py | 7a6f950358103d368b2c3dbfc16fbc1ce550843e | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | RamadhanAmizudin/malware | 788ee745b5bb23b980005c2af08f6cb8763981c2 | 62d0035db6bc9aa279b7c60250d439825ae65e41 | refs/heads/master | 2023-02-05T13:37:18.909646 | 2023-01-26T08:43:18 | 2023-01-26T08:43:18 | 53,407,812 | 873 | 291 | null | 2023-01-26T08:43:19 | 2016-03-08T11:44:21 | C++ | UTF-8 | Python | false | false | 2,449 | py |
# package pc2_2
import dsz
import pc2_2.payload
import re
#--------------------------------------------------------------------------------------
def IsValidIpAddress(addr):
# This is a rather inefficient way to find IPv6 addresses in particular...
if ((re.match("^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}... | [
"rui@deniable.org"
] | rui@deniable.org |
f7af7a31c5ad0016af2a0cd3432a557bbb5d7cce | 933ed73cdf117fc6c88c1ebba7a17b82807a16e8 | /docs/02.AI_ML/code-1905/day04/demo05_car.py | 048e94096fb88be5ddc27ec6703b32d5a1d42282 | [
"Apache-2.0"
] | permissive | wan230114/PythonNote | c4fff80f6f3849ed0b0346526d3c6197a4867d2c | f4989a44c03efdcea3f7aa3484e3470e7fd983eb | refs/heads/master | 2023-01-28T14:51:07.304066 | 2023-01-12T18:38:16 | 2023-01-12T18:38:16 | 242,367,069 | 5 | 6 | Apache-2.0 | 2021-01-05T23:35:10 | 2020-02-22T15:45:01 | JavaScript | UTF-8 | Python | false | false | 596 | py | """
demo05_car.py
"""
import numpy as np
import sklearn.preprocessing as sp
import sklearn.ensemble as se
import sklearn.model_selection as ms
# 读取文件
data = np.loadtxt('../ml_data/car.txt',
delimiter=',', dtype='U20')
# 整理训练集的输入与输出
data = data.T
train_x, train_y = [], []
for col in range(len(data)):
if col < len(da... | [
"1170101471@qq.com"
] | 1170101471@qq.com |
2c3c84762ef664b3e365e5ccb5e81f6e49e15f85 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/eve/client/script/ui/shared/fleet/fleetfinder.py | edcc673065cd7f0d65e9ab46c16a78be05f3a6c4 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,564 | py | #Embedded file name: eve/client/script/ui/shared/fleet\fleetfinder.py
"""
Fleet Finder window. Here you can get a list of the open fleets you have access to.
"""
from eve.client.script.ui.control.eveWindowUnderlay import FrameUnderlay
from eve.client.script.ui.shared.stateFlag import AddAndSetFlagIconFromData
import ui... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
00a4bd25e4dddaedb1f91104585dd9990c6fb2b0 | ba1e90ae6ea9f8f74d9b542e159825341c717712 | /2014/cf48A.py | 7b2db70ff0fbc4da241f52d72f91263d40887ef7 | [] | no_license | sailesh2/CompetitiveCode | b384687a7caa8980ab9b9c9deef2488b0bfe9cd9 | 5671dac08216f4ce75d5992e6af8208fa2324d12 | refs/heads/master | 2021-06-24T22:39:11.396049 | 2020-11-27T05:22:17 | 2020-11-27T05:22:17 | 161,877,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | f=raw_input()
m=raw_input()
s=raw_input()
a=0
b=0
c=0
if f=="rock" and m=="scissors" and s=="scissors":
a=1
if f=="paper" and m=="rock" and s=="rock":
a=1
if f=="scissors" and m=="paper" and s=="paper":
a=1
if m=="rock" and f=="scissors" and s=="scissors":
b=1
if m=="paper" and f=="rock"... | [
"sailesh.ku.upadhyaya@gmail.com"
] | sailesh.ku.upadhyaya@gmail.com |
dc552108317ab78d3e98649a29f8a5c4cc13f79a | 729ee5bcb31708a82b08509775786597dac02263 | /coding-challenges/week08/day04/ccQ1.py | 172414ad618b5fffe34bad0d45a98e6eeb9f4e88 | [] | no_license | pandey-ankur-au17/Python | 67c2478316df30c2ac8ceffa6704cf5701161c27 | 287007646a694a0dd6221d02b47923935a66fcf4 | refs/heads/master | 2023-08-30T05:29:24.440447 | 2021-09-25T16:07:23 | 2021-09-25T16:07:23 | 358,367,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # - 1) Write a program to print sum of right diagonal of a matrix: (5 marks)
# Right diagonal is shown below:
# 1 2 3
# 4 5 6
# 7 8 9
def Right_diagonal(a,m,n):
sum_right=0
for i in range(m):
for j in range(n):
if i+j==n-1:
sum_right=sum_right+a[i][j]
return sum_rig... | [
"ankurpandey131@gmail.com"
] | ankurpandey131@gmail.com |
4a646f64c89b8ddebfaa75a096f2bf972a97d2f9 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22058.py | 09ece6776ffa5d1bf7a1f4e890e4cb05d40b068c | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # What should be the URL of my Django Application
WSGIScriptAlias /bias_experiment/ /var/www/bias_experiment/src/bias_experiment/index.wsgi
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
8a9925b214fa56be4b4d91d0419444bb58674977 | f5fbdb4080a38e20e7a165e07b8328cbb37270cb | /swimercamp0/questions/filters.py | cba7817809508c522b98514dcaaa443f4bc18425 | [] | no_license | ayoub-smayen/socialswimerv2 | 390d3742d0282c3ff7eee405f4fffd6adf8e69dc | 536b6c1b7f51e2f6ac449657a38a89cf49be7094 | refs/heads/master | 2023-06-29T16:42:07.153060 | 2021-08-01T20:05:48 | 2021-08-01T20:05:48 | 391,725,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from django.core.exceptions import ObjectDoesNotExist
from django.db.models import Count, Q
from django.shortcuts import get_list_or_404
def questions_filter(request, model):
request = request.GET
if 'q' in request:
query = request['q']
return model.objects.filter(
Q(ti... | [
"ayoubjobs.2019@gmail.com"
] | ayoubjobs.2019@gmail.com |
5395b5a2581151f6ead277cdc127ec59bbc5c228 | 6c79619f03732d4c1433ae6bea0e8e82549b16c9 | /0x0F-python-object_relational_mapping/5-filter_cities.py | b767d4622c15aa80bca2ccb75f573cc9e23fc67d | [] | no_license | wondus36/holbertonschool-higher_level_programming | 9a094556ef9cbfa907838dc279f78af881b73c4d | 78ad6501bc61c018b105dea229265a267ac6cde4 | refs/heads/master | 2023-04-08T01:13:24.988702 | 2019-10-01T08:01:30 | 2019-10-01T08:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #!/usr/bin/python3
"""5-filter_cities
Takes in the name of a state as an argument and lists all cities of that state,
using the database hbtn_0e_4_usa
"""
if __name__ == "__main__":
import MySQLdb
from sys import argv
with MySQLdb.connect(host="localhost", user=argv[1], passwd=argv[2],
... | [
"tassavarat@gmail.com"
] | tassavarat@gmail.com |
0be7de1e7bbf0e65b30efb3c121c170a752e73a7 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/solutions/v20180601/_inputs.py | cf41a109e3a1cb52b0fe1a1e1c250200979179e5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 10,363 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
6a755e2c36cf53897dd5d505673344fe688d02b9 | f13f336c42313b9e45a9a497d5737ecff8652731 | /Python/338.Counting Bits.py | 3e15ef696b03558da3e4036595d4cae7810bf251 | [] | no_license | whguo/LeetCode | 9b58bfbad07d9c3bfe8c48c74cd52fa6e019c2be | 74cc5aa3743d387213a36c7dcfd37e82ca60473a | refs/heads/master | 2020-02-26T16:02:39.172627 | 2017-07-28T01:59:20 | 2017-07-28T01:59:20 | 57,174,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #给一个正整数num,对于每一个i满足0<=i<=num,计算每一个i的二进制位共有多少个1,并按数组返回。
#如num=5,返回[0,1,1,2,1,2]
class Solution(object):
def countBits(self, num):
result = []
for i in range(num+1):
tmp = 0
while i!=0:
tmp += i & 1
i = i>>1
result += [tmp]
re... | [
"490216194@qq.com"
] | 490216194@qq.com |
cc4ecdfd746004815e3f123e9c0519f7023534c3 | a8499deff2fa4abde885891d655c3f53ab741d37 | /rotkehlchen/tests/fixtures/rotkehlchen.py | 0a6e91241b45eac1d9f28cd37b6ee5f9a795293e | [
"BSD-3-Clause"
] | permissive | georgerobescu/rotkehlchen | 4c6d2cadcf8b1a8a20f33bb7352b3924a492af54 | 817c880b771b8daf5635b02642861dd9949689e2 | refs/heads/master | 2020-06-25T00:22:20.442607 | 2019-07-26T11:42:13 | 2019-07-26T11:42:13 | 199,137,746 | 0 | 0 | BSD-3-Clause | 2019-07-27T08:25:06 | 2019-07-27T08:24:59 | Python | UTF-8 | Python | false | false | 5,343 | py | import argparse
import base64
from collections import namedtuple
from unittest.mock import patch
import pytest
from rotkehlchen.premium.premium import Premium
from rotkehlchen.premium.sync import PremiumSyncManager
from rotkehlchen.rotkehlchen import Rotkehlchen
from rotkehlchen.server import RotkehlchenServer
from r... | [
"lefteris@refu.co"
] | lefteris@refu.co |
0ba1b5b057f4c4f4960dcf05521b103c12df39bb | 6019a02e7010199b2a0e8045f1cb39b99ea15e4b | /main/apps/random_word_generator/urls.py | f17264f0431c1a7c9c43a2818fd40cb1164e8139 | [] | no_license | MovinTarg/random-word-generator | 16fc128b1fed4e3fe25160e798aa6e4c3fe17de3 | f0a4bfa4e0114a8b8164949409dff261e2c1bbc0 | refs/heads/master | 2021-04-06T19:09:13.850527 | 2018-03-14T13:39:34 | 2018-03-14T13:39:34 | 125,218,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^random_word$', views.random_word),
url(r'^reset$', views.reset)
] | [
"pbianchi192@gmail.com"
] | pbianchi192@gmail.com |
9049c04aec5cae934c076641de8a79ae32d24955 | aa853a9094fff4b6e9b0ddc7469be29ad5f0f811 | /poi_export_transport/models/res_partner.py | 86defc1a2fc3ec7ae86d3d620c6523450537dd67 | [] | no_license | blue-connect/illuminati | 40a13e1ebeaceee39f17caa360f79e8deeaebf58 | 6682e60630064641474ddb2d8cbc520e30f64832 | refs/heads/master | 2022-01-06T00:55:58.465611 | 2018-11-24T04:30:03 | 2018-11-24T04:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py |
from odoo import api, fields, models, _
class ResPartner(models.Model):
_inherit = 'res.partner'
ruex = fields.Char('RUEX')
code_export = fields.Char('Codigo de Exportacion')
| [
"yori.quisbert@poiesisconsulting.com"
] | yori.quisbert@poiesisconsulting.com |
8c874bc4e80a96c94435631b01a518fe02252bd3 | 735418852bde5766a1b2847c5c9700ffb1d16d67 | /client.py | e2cb27299e0d67a707e8c951fb31b4d57699edda | [] | no_license | firchatn/systeme-reparti | 653b8fc255b4d87197ba3bb9c3ab224e22dfd682 | 491be2f80043a7f96dc4ec011a75e7b62314121c | refs/heads/master | 2021-05-06T19:15:08.287272 | 2017-12-28T21:42:44 | 2017-12-28T21:42:44 | 112,101,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import socket
server_conx = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_conx.connect(('10.30.252.225', 8008))
msg = server_conx.recv(1024)
msg = msg.decode()
print(msg)
server_conx.close()
| [
"firaschaabencss@gmail.com"
] | firaschaabencss@gmail.com |
b900d9f09174173a40a8152e3b64b8e3797cd324 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4155/codes/1585_2905.py | f4c78d0c6ce4de65c0fdfb0db255ff9ccf0e8b93 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from math import *
lado1 = float(input("valor: "))
lado2 = float(input("valor: "))
lado3 = float(input("valor: "))
s = (lado1 + lado2 + lado3) / 2
A = sqrt(s * (s - lado1) * (s - lado2) * (s - lado3))
r = round(A, 5)
print(r) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
a2665c988434d1f6d8dbaa0ccb8cf923e333282e | e4d4f41a8eb3c399cb5c074c7f61d29e7a214557 | /has_unique_chars.py | 7b0d74503cedf96ab7f9837464199706223b870f | [] | no_license | akankshanayak2111/coding_practice | 5934b738e736f7069844443e11ee61969d88d398 | 0ead91a8b25cf37644cd0f9a5b664016a21f1b00 | refs/heads/master | 2021-07-06T04:08:17.425315 | 2017-09-28T21:49:20 | 2017-09-28T21:49:20 | 105,186,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | def has_unique_chars(word):
"""Does word contains unique set of characters?"""
count = {}
for letter in word:
if letter not in count:
count[letter] = 1
else:
count[letter] += 1
for value in count.values():
if value > 1:
return False
ret... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
0bc7a3a5c169c2c210406116949d53a217ffd90e | dce7ca1ebab403bf7c23b77368ee26a2dd4475b6 | /app/auth/views.py | 4b5da3ce142890d6aba17e9d1ce74f2dcc6f7df2 | [] | no_license | qcymkxyc/Graduate | 3b7e89b3f44141d9fd011c15690f902674a9e979 | 2afedacaaa3a0f4d9bbc13596d967ec8808d43d6 | refs/heads/master | 2022-12-10T12:32:37.326653 | 2018-11-10T07:49:13 | 2018-11-10T07:49:16 | 148,103,320 | 0 | 0 | null | 2022-12-08T01:14:09 | 2018-09-10T05:25:40 | Python | UTF-8 | Python | false | false | 2,529 | py | #!/usr/bin/python3
# coding=utf-8
"""
@Time : 18-8-30 下午7:38
@Author : qcymkxyc
@Email : qcymkxyc@163.com
@File : views.py
@Software: PyCharm
"""
from . import auth
from flask import render_template, redirect, request, url_for, flash, current_app
from flask_login import login_user, logout_user, logi... | [
"qcymkxyc@163.com"
] | qcymkxyc@163.com |
82a674aea6170f523715da4d996bc734f3997df9 | bf4f5e90fff95800f3ab944efcdb9aace29be71d | /banshee-master/api/act/act_.py | e4a280d86a4dd4dd73eebdb5c29a4c011ad9efa7 | [] | no_license | tanlu01/testfan | c77c833d4e164a4786f20d7f28ffbb99cd6dcb2e | de8cf936dc7e80a9e2847fa47ae5c909729675b1 | refs/heads/master | 2023-04-20T17:12:57.515484 | 2021-05-10T15:53:15 | 2021-05-10T15:53:15 | 365,418,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import os
from api.request import Request
from jsonschema import validate
class Act(Request):
host = os.getenv('API_GATEWAY_ACT_HOST')
headers = {'X-Token': 'mengtuisso'}
cookies = {'X-Token': 'mengtuisso'}
mock_status = 200
mock_data = {
'code': 60000,
'message': 'from mock'
... | [
"tanlu01@100.me"
] | tanlu01@100.me |
f4c4b6fc89ea4119c97bf6aea5f9a7efe527f43c | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WW/FullRunII/Full2016_v7/samples.py | c7704d441f1f6b72712d861980caa6b0efb053f1 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 10,135 | py | import os
import inspect
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # Full2016_v6
configurations = os.path.dirname(configurations) # FullRunII
configurations = os.path.dirname(configurations) # WW
configurations = os.path.dirn... | [
"arun.kumar@cern.ch"
] | arun.kumar@cern.ch |
43b490908674aafdf304f6b935984e9cd2b59e16 | 50e2012ecea8307e278d1132ca0094adb940aff2 | /lib/review/my_process/process_options.py | 549d32229a4504ceded864b8df5f0d9594f49f11 | [] | no_license | Lewescaiyong/my_library | 6689cae2db4aaa980b4bd5ed9f21691eefbff2fe | 35d0d29097823ccef74fa29ca8756a7f59ceeb78 | refs/heads/master | 2020-11-25T09:20:56.484275 | 2019-12-17T10:58:20 | 2019-12-17T10:58:20 | 228,593,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
# process = os.popen('run.py')
# print process.read()
os.spawn | [
"1351153527@qq.com"
] | 1351153527@qq.com |
04a2ed6c380f77ad12cca588e7c29e5f4b7d2c25 | 94b3d196c8d9c5463505ac3e8b831d8e7f27a695 | /dayu_widgets_mvc/column.py | 983f00cef4393fac1065f644aaf73bd81cb4c781 | [
"MIT"
] | permissive | YanruMu-sunding/dayu_widgets_mvc | 88b52c7b0dd0be7c52c3f1e553ddc4a3e6a38b45 | 902766359caf6b5f9d0becf5e346569a26d5674d | refs/heads/master | 2022-02-18T01:18:06.800925 | 2019-09-06T11:40:27 | 2019-09-06T11:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,506 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################
# Author: Mu yanru
# Date : 2019.9
# Email : muyanru345@163.com
###################################################################
import collections
from dayu_widgets.qt import *
import utils
Cell = col... | [
"muyanru345@163.com"
] | muyanru345@163.com |
be4cfabf9d457f4ea0912df9ef9587fab2ab78e6 | 5fc66d4693064bd9100e9b8ebc18d268e43a5ea4 | /agent.py | de89a89c913353f8a61ae58c1f58593297490482 | [] | no_license | kiminh/Optimal-bidding-policy-using-Policy-Gradient-in-a-Multi-agent-Contextual-Bandit-setting | 9b499f40460ad73e7bd6414dc0a2c7c9969745fb | af305faa55673df9c7eda669da7426f2d4e4552e | refs/heads/master | 2020-12-27T07:50:15.376561 | 2018-03-09T03:10:57 | 2018-03-09T03:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | import numpy as np
import tensorflow as tf
from utilities import *
class Agent(object):
def __init__(self,env,n_layers,size,lr,name):
self.ob_dim=env.state_dim
self.ac_dim=env.action_dim
self.name=name
self.n_layers=n_layers
self.size=s... | [
"noreply@github.com"
] | kiminh.noreply@github.com |
8c1b797f92a7fd3ac7168e0b3888857e7091e38e | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /apimatic/python_generic_lib/Samsara+API-Python/samsaraapi/models/drivers_summary_param.py | 0bdf7fca22d789af5b963ef05632766964768285 | [
"MIT"
] | permissive | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | # -*- coding: utf-8 -*-
"""
samsaraapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class DriversSummaryParam(object):
"""Implementation of the 'driversSummaryParam' model.
TODO: type model description here.
Attributes:
end_ms (lo... | [
"greg@samsara.com"
] | greg@samsara.com |
cbff194f97c90ff899c697d5ccce8e5db91bf345 | d225ec04301d8abd681d68ad8d7316befc404bc1 | /ZShape/Paper/root/confSystSigBE.py | 99d6f2b9d1181239c4869f6e3f99275eb9764ec0 | [] | no_license | UMN-CMS/ZShape_Analysis | 372ea0083d6c0bda2dbba30322ef01269501afa8 | 83bff158b21210b048afbcff0af1e803780ad4bd | refs/heads/master | 2020-06-07T10:34:40.227684 | 2013-12-11T16:59:25 | 2013-12-11T16:59:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | # -*- coding: utf-8 -*-
#file = open('nothing2.txt')
import sys
B0=['TH1F','EffSystEE-EB','FinalEffSystEE-EB']
#B0=['TH1F','ZFromData/ECAL95EB-ECAL95EE/C08-m(70,110)/e1_P_t','EB_ET_Shape_Changes_EB-EE']
#B0=['TH1F','ZFromData/ECAL95EB-ECAL95EE/C07-HLT-GSF/e2_P_t','EE_ET_Shape_Changes_EB-EE']
B1={'RedCirc':['kRed','kF... | [
"klapoetke@physics.umn.edu"
] | klapoetke@physics.umn.edu |
876d82a4f1bdd50ee7430d39adb45ff79c2b4aac | 1dca948e273d94383e09c8c69a77d462d54db3d6 | /lastmile/leetcode/weekly/205/MinimumDeletionCostToAvoidRepeatingLetters.py | 44e985dcac349d7a5e99d6c251ad1d6fc8443525 | [] | no_license | m-sathya-reddy/DataStructuresAlgorithmsPython | b61c7495b98d7df9edc57c84a58ec914fcaee901 | 3be5236c98c87f6ec6b6a305c4ef514059271c76 | refs/heads/master | 2023-01-04T19:24:26.589663 | 2020-11-02T15:59:43 | 2020-11-02T15:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | import itertools
from typing import List
class MinimumDeletionCostToAvoidRepeatingLetters:
# def minCost(self, s: str, cost: List[int]) -> int:
# if not s:
# return 0
# dp = [0] * len(s)
#
# for i in range(1, len(s)):
# if s[i]==s[i-1]:
# dp[i]=d... | [
"arun@arunma.com"
] | arun@arunma.com |
440fea24732199fa1b6612b4cf989121222f964f | d1637ff8a434e665b4a93f11233d445b6568c09f | /algorithms/89_GrayCode.py | c146580db429871a79f6a53ed5a294a503d02c23 | [] | no_license | yunkaiwang/LeetCodeSol | a395570a9b3e8312fd121264c7a726c2b7fe7e44 | 5c722710a1e0a23e105abd22b91c96a4fa4f4b3a | refs/heads/master | 2021-06-07T19:37:55.710471 | 2021-05-10T17:24:53 | 2021-05-10T17:24:53 | 163,915,409 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | class Solution:
def grayCode(self, n):
sol = []
for i in range(1 << n):
sol.append((i >> 1) ^ i)
return sol | [
"yunkaiwang1996@gmail.com"
] | yunkaiwang1996@gmail.com |
7913d7206005348214b82d61b7af7f54e79c25ac | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_072/ch28_2019_12_05_04_47_10_073734.py | 30cc15450936f0325ac8c6ef9e89e86a96719736 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | a=int(input('Qual a velocidade do carro? '))
if a<=80:
print ('Não foi multado')
else:
print ('Voce foi multado em R$ {0:.2f}'.format((a-80)*5))
| [
"you@example.com"
] | you@example.com |
25e18d28b61dfbf5140ee8988bb9b1a55be1a8af | 34f277cf1926fe09b163b135039f438f35362fce | /mwcommands/mw_configurator.py | 003ecb023b61bf7c8bdfb27ffe55c84522a032c3 | [
"MIT"
] | permissive | ngertrudiz/Mediawiker | a97b8d3e733409e91981bee1cfc02c5d91a4a36b | d281183d5a7cfe25a46b4e7dbc8e75709b934f72 | refs/heads/master | 2020-03-29T00:54:40.687629 | 2018-07-28T12:35:26 | 2018-07-28T12:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,825 | py | #!/usr/bin/env python\n
# -*- coding: utf-8 -*-
import sys
try:
import json
except ImportError:
import simplejson as json
import sublime
import sublime_plugin
pythonver = sys.version_info[0]
if pythonver >= 3:
from . import mw_utils as utils
from . import mw_html
else:
import mw_utils as utils
... | [
"to.tosher@gmail.com"
] | to.tosher@gmail.com |
6d47a2dcc1f77fbbf98b3e9ec88b817153106338 | 58959ee3e92cfb4dee217df94a1eb5d0fb4a238e | /qiskit/primitives/sampler.py | 5a833572f19c8a58182c44613ba01d81c8b49230 | [
"Apache-2.0"
] | permissive | AGaliciaMartinez/qiskit-terra | e5d143393ee31af28e7fefddc52219c375d54066 | e70ce504149b40287cfb8bff3ac525159dd46a40 | refs/heads/master | 2023-03-16T09:50:59.840070 | 2022-12-11T14:25:14 | 2022-12-11T14:25:14 | 219,828,601 | 0 | 0 | Apache-2.0 | 2023-03-06T13:15:22 | 2019-11-05T18:59:22 | Python | UTF-8 | Python | false | false | 6,174 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | AGaliciaMartinez.noreply@github.com |
a312f17878ced7624ae2ead27cd68268b26ca82e | 78a20d2ceac95d3afb55b215305a8c40670e873f | /QsimMaster/scripts/pulse_sequences/sub_sequences/single_qubit_gates/clifford_X.py | 808202dd700c4bcec30066a158821e1003258f10 | [] | no_license | johnpalsberg/John-Palsberg | 9957dd2fb2a6da62e5118c4e2a9a471d5e2f4c9b | 91aa6476bc319524c6f6a4bfc5561ca6aa95e6c4 | refs/heads/master | 2023-01-13T07:26:04.250541 | 2023-01-05T08:48:17 | 2023-01-05T08:48:17 | 206,402,363 | 0 | 0 | null | 2022-06-20T16:29:42 | 2019-09-04T19:57:25 | Python | UTF-8 | Python | false | false | 2,205 | py | from common.lib.servers.Pulser2.pulse_sequences.pulse_sequence import pulse_sequence
from labrad.units import WithUnit as U
class clifford_X(pulse_sequence):
required_parameters = [
('MicrowaveInterrogation', 'power'),
('MicrowaveInterrogation', 'ttl_switch_delay'),
('MicrowaveInterrogati... | [
"jpalsberg2023@chadwickschool.org"
] | jpalsberg2023@chadwickschool.org |
9007f43952159f625eceff55718da6bd3ffa509d | 79baf4404e51bdc0f33038b3b16bea86ff09e82f | /azext_iot/central/models/v2022_06_30_preview/template.py | 5e2c5c97d02bdc7792159bd618e5734e046bc5c3 | [
"MIT"
] | permissive | Azure/azure-iot-cli-extension | 80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e | bdbe65c3874ff632c2eba25c762e9ea8e9175b5f | refs/heads/dev | 2023-09-04T10:57:16.118442 | 2023-08-28T17:12:05 | 2023-08-28T17:12:05 | 103,456,760 | 95 | 80 | NOASSERTION | 2023-09-13T00:02:54 | 2017-09-13T22:04:36 | Python | UTF-8 | Python | false | false | 4,307 | py | # coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ef31ab1e8118804e95c75c96ba5654d5a7acc7e4 | 43f78a4d51f441b4dbbc1a84537804123201a246 | /dataaccess/vixdao.py | 47b0e5074036faaabc49495fafd2b5536228cd14 | [] | no_license | shmyhero/data-process | 28d5bfb27999cb0d462453d4663f01f43a649386 | 63dac65b41333d6e81bf32ecaa6533b28975c985 | refs/heads/master | 2021-03-22T00:11:51.373193 | 2019-10-22T06:27:28 | 2019-10-22T06:27:28 | 98,510,392 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,763 | py | import math
import datetime
import pandas as pd
from utils.listhelper import list_to_hash
from common.tradetime import TradeTime
from entities.vix import VIX
from dataaccess.basedao import BaseDAO
class VIXDAO(BaseDAO):
def __init__(self):
BaseDAO.__init__(self)
def insert(self, records):
qu... | [
"elwin.luo@tradehero.mobi"
] | elwin.luo@tradehero.mobi |
af13f47ddc400bd324edc3d3cccf8f2a23a5dd1e | e11b2493f55c60685c3ea76f900be73e6a454b2f | /core_python_programming/2/2-15.py | 8ad5b9e8cc93680357501e0cf410e2523e16422c | [] | no_license | zpoint/Reading-Exercises-Notes | 29e566dd86d97eadb84d7bb6f8f640b85486557c | 31b38fe927232ba8e6f6a0e7ab9c58026eefcffb | refs/heads/master | 2021-06-04T08:12:42.777309 | 2021-04-19T02:12:22 | 2021-04-19T02:12:22 | 70,507,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | SortList = [1,2,3]
for i in range(3):
print 'Please enter num %d\n' %(i+1)
SortList[i] = raw_input()
print 'Before sort'
for i in range(3):
print 'SortList [%d] is'%(i), SortList[i]
#Sort
if SortList[0] < SortList[1]:
temp = SortList[0]
SortList[0] = SortList[1]
SortList[1] = temp
if... | [
"zp0int@qq.com"
] | zp0int@qq.com |
a581d601ff4038bab5e55df98adceddb150c491f | a8b311f6c579a70cdca12cdff73aca18ddf5e1f4 | /Nonconventional-algs/mandelbrot.py | 98325f3683afff296528e64837806b92f85a41f4 | [] | no_license | MarekUlip/CollegePythonScripts | ec09c7730752b7bd6b85fe523470acf9d124df53 | 9133a864ab301d9076394ce9345faa5c2c878adf | refs/heads/master | 2022-11-13T12:15:56.198341 | 2020-07-06T22:26:26 | 2020-07-06T22:26:26 | 277,658,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
def mandelbrot(c, num_of_iterations):
z = c
for i in range(num_of_iterations):
if abs(z) > 2:
return i
z = z * z + c
return 0
def generate_mand_colors(num_of_iters, x_bounds, y_bounds, width, height):
... | [
"marek.ulip@gmail.com"
] | marek.ulip@gmail.com |
c883fb8426a6aeb702eb8b6239f6c60fc5e91d69 | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/plugin/wx_manual_authorization/controllers/__init__.py | a897583e0f8483af32aee56c8e9bca492fac52b2 | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | # -*- coding: utf-8 -*-
import index
import controllers
import main
import qy_main
| [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
ee180e3d519725a8d9d64f65cbf39e11beea33d9 | 05973b7cf07eb03099e516f21f06a6e295086862 | /phoenix/settings/__init__.py | c454be7b14eaa37020e7e108341088c47910b100 | [
"Apache-2.0"
] | permissive | bird-house/pyramid-phoenix | 302a0a4339dfea0318cf4b2545f4005b940155b0 | 36737f95f0991661856f182ba35b850829ca401c | refs/heads/master | 2023-09-01T14:00:20.087987 | 2023-05-11T16:56:14 | 2023-05-11T16:56:14 | 23,655,239 | 7 | 18 | Apache-2.0 | 2023-05-04T12:20:44 | 2014-09-04T08:52:32 | JavaScript | UTF-8 | Python | false | false | 512 | py | from pyramid.events import NewRequest
from phoenix.events import SettingsChanged
import logging
LOGGER = logging.getLogger("PHOENIX")
def includeme(config):
# settings = config.registry.settings
config.add_route('settings', '/settings')
config.add_route('settings_processes', '/settings/processes')
... | [
"ehbrecht@dkrz.de"
] | ehbrecht@dkrz.de |
36d12d8062668c6b426def06275bda96aa6d041b | b142ea12326230204caeea6226df37e90be6b15c | /Scripts/level.py | 269a037f337ce88992bc0c6bc1142e2f38a7a13c | [] | no_license | ShantanuBal/Code | 5312409b80526e67b324f4aa6fca575e9b39a9b0 | 2524f90593f19260ee4a6293ecfde4fae9b5290d | refs/heads/master | 2021-01-25T10:43:48.163570 | 2015-08-22T01:19:19 | 2015-08-22T01:19:19 | 41,180,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | class BinaryTree:
def __init__(self, node_value):
self.left = None
self.right = None
self.value = node_value
def display(root):
print root.value
if root.left:
display(root.left)
if root.right:
display(root.right)
root = BinaryTree(1)
main_root = root
root.left = BinaryTree(2)
root.right = BinaryTree(3)
... | [
"shantanu.r.bal@gmail.com"
] | shantanu.r.bal@gmail.com |
6db62679d70dcdfc903f489a0c7d3f406f82cbd3 | 270ab1f1040cd4f24751a81e4816d3bbcbd472c0 | /algorithms/096.Unique_Binary_Search_Trees/Unique_Binary_Search_Trees.py | 2cebac42ba1c81d0f9c0638abc3ba2a4fe8db0ae | [] | no_license | svcgv/leetcode | dd61add37eac451559d92e5a5f3bb7ab7f93a09e | 5c2910e1f73b1ab8a63980f60ce8287a7fe86c96 | refs/heads/master | 2021-05-16T09:01:34.870483 | 2017-03-04T12:59:37 | 2017-03-04T12:59:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | <<<<<<< HEAD
# Time: O(n^2)
# Space: O(n)
class Solution:
# @return an integer
def numTrees(self, n):
counts = [1, 1]
for i in xrange(2, n + 1):
count = 0
for j in xrange(i):
count += counts[j] * counts[i - j - 1]
counts.append(count)
... | [
"1012351692@qq.com"
] | 1012351692@qq.com |
8e74c5115adfaed96c065744ddbfabf05ecd3347 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2154/60795/264232.py | bb8cb7719cce408cb1561f7cbd19f2d791409b4b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | num=int(input())
result=0
th,hu,de,fa=0,0,0,0
mark=0
if num<0:
num=0-num
mark=1
if num==10 or num==100 or num==1000 or num==10000:
result=1
elif num<10:
result=num
elif num>10 and num<100:
fa=num%10
de=num//10
result=fa*10+de
elif num>100 and num<1000:
hu=num//100
de=num%100//10
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.