blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad3c6e6becb9b5646766ed2063c8d949313bda56 | aee573c81dc297a97772b99cd90e05d494b25f77 | /learnpython/matplotlib/demo_plot_2.py | e5879a3c9928961f2b12810475ab9a793f96f56e | [] | no_license | YuxuanSu-Sean/learning | 6df9d7b348e3f6c8cad0347e222c1ed244c92332 | 1356b85c2b673925f1fc89ff45f54fb499d342d0 | refs/heads/master | 2022-11-13T14:08:17.808037 | 2022-11-10T05:15:16 | 2022-11-10T05:15:16 | 204,625,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | import matplotlib.pyplot as plt
fig = plt.figure()
ax1 = fig.add_subplot(111)
| [
"497572121@qq.com"
] | 497572121@qq.com |
7ca71e74e605112ef507f107584f872545a68564 | 499efac953f9f0ed3ef1876b3a470250c75f7ac1 | /mnist_sklearn.py | 7f778519c5dc8279f17a25ce634530272f3881e0 | [] | no_license | ravi911sharma44/MNIST- | b7ffe5c2b9492e7997590a618c8a483f72709e95 | 15fb747ce7e928f963d4bd61d28a5411e98878c8 | refs/heads/main | 2023-07-17T03:04:02.138426 | 2021-08-14T15:31:24 | 2021-08-14T15:31:24 | 396,047,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import pandas as pd
df = pd.read_csv (r'E:\chat bot intern\week 3\mnist_train.csv\mnist_train.csv')
df = pd.DataFrame(df)
from sklearn.model_selection import train_test_split
X = df.drop('label', axis = 1)
Y = df.label
x_train, x_test, y_train, y_test = train_test_split(X, Y, test_size = 0.2)
from sklear... | [
"noreply@github.com"
] | ravi911sharma44.noreply@github.com |
2bcd1788de6e9a593abedae6ed61b48c43c67654 | 06d6c9346331e392f6d8067eb9ee52d38ae5fab8 | /carver/pe/setup.py | 299b8bff264703b5031d4a1ddd6b11e7c4e69e92 | [
"Apache-2.0"
] | permissive | maydewd/stoq-plugins-public | 5d5e824dda0c78acab4ff9aef72f567e6b85e555 | 8b2877b5091ae731437ef35a95d4debdbf0a19f3 | refs/heads/master | 2020-03-22T18:57:41.061748 | 2018-06-12T14:36:42 | 2018-06-12T14:36:42 | 140,494,475 | 0 | 0 | Apache-2.0 | 2018-07-10T22:39:08 | 2018-07-10T22:39:08 | null | UTF-8 | Python | false | false | 371 | py | from setuptools import setup, find_packages
setup(
name="pe",
version="0.10",
author="Jeff Ito, Marcus LaFerrera (@mlaferrera)",
url="https://github.com/PUNCH-Cyber/stoq-plugins-public",
license="Apache License 2.0",
description="Carve portable executable files from a data stream",
packages... | [
"marcus@randomhack.org"
] | marcus@randomhack.org |
6e366b23ce962f4acf818615c993eb9f30b28562 | d8f44692c9f9f0a9a391a49db0f4f659a2ef6fe8 | /jsBuilds/jsSupport.py | 4817320de831b302adb53f3eddacb01f0fbe8e4b | [
"MIT"
] | permissive | skylarkgit/sql2phpclass | 045e71963574b719313fc98882f5c710435f101f | a79e7f3cfda8cb41ba00e8cbba0de33e9be759d6 | refs/heads/master | 2020-03-19T02:34:34.229287 | 2018-07-04T18:58:28 | 2018-07-04T18:58:28 | 135,640,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import sys
sys.path.append('..')
from jsBuilds.jsTemplates import *
def args(varList):
return ','.join(varList)
def reqData(varList):
return '+"&"+'.join('"'+x+'="obj.'+x for x in varList)
def objFormation(varlist):
return ','.join(x+':'+SCOPE(x) for x in varList)
def varsToAliasArr(varList):
arr={}... | [
"abhay199658@gmail.com"
] | abhay199658@gmail.com |
a2db15dc70256c5ac16e2d712ccd8393faf996ac | c820e028be4239bc20e76af41574e561ba8d8e02 | /gsw/version.py | 2f5fd65dfc4d9ab9ae7c7b3df560f34efabacd78 | [
"MIT"
] | permissive | lukecampbell/python-gsw | 7657c2e3a0dbadad00ff17557f4ca45f971f3964 | c555921b5f1fcbc1c1a3565172b946f782d15db4 | refs/heads/master | 2016-09-06T16:54:47.074484 | 2013-02-20T20:00:03 | 2013-02-20T20:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | #!/usr/bin/env python
version = '3.0.1a1'
| [
"luke.s.campbell@gmail.com"
] | luke.s.campbell@gmail.com |
550abb7570d8b8943d140a815dfcc92c727bbc0b | fbb1494be3ff7b6a5dfa3b9204cc927af4103b59 | /api/urls.py | 242b792a393d67ac9d39ff798fc079072c76b9ff | [] | no_license | james-work-account/raml_loader_api | a3380faf6f07ae82b1b113e7019fbb5f6840df31 | 4483b13de5d74c20f7c3696ba6180332b36fdc2b | refs/heads/master | 2021-07-24T07:32:28.507993 | 2020-10-06T08:38:23 | 2020-10-06T08:38:23 | 222,752,033 | 0 | 0 | null | 2020-10-06T08:25:55 | 2019-11-19T17:29:11 | Python | UTF-8 | Python | false | false | 802 | py | """api 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... | [
"31282758+james-work-account@users.noreply.github.com"
] | 31282758+james-work-account@users.noreply.github.com |
b301691a347e993eeb0904ec4da555a684042612 | caf39133030e9e9d9240769fbfe72287009c6b51 | /math/0x02-calculus/17-integrate.py | 70e1a9c8db0993bc659e0d727a1f9eab6e7a5be6 | [] | no_license | sazad44/holbertonschool-machine_learning | d08facbc24582ebcedf9a8607c82b18909fe7867 | b92e89b980a8f1360a24f4ed5654a2ab0dfac679 | refs/heads/master | 2022-11-30T22:32:21.264942 | 2020-08-12T05:25:06 | 2020-08-12T05:25:06 | 280,286,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #!/usr/bin/env python3
"""task 17 py function to integrate a polynomial"""
def poly_integral(poly, C=0):
"""py function to calculate integral of poly"""
if not isinstance(
poly,
list
) or len(
poly
) == 0 or not isinstance(
C,
int
):
return N... | [
"36613205+sazad44@users.noreply.github.com"
] | 36613205+sazad44@users.noreply.github.com |
f6feb1566f4a0b2b2e1860b1005500bb45004b68 | 79429bd1c124044572bef9d1062d145c01e20b24 | /ex026.py | d7d2e948a9f0c2b06d59b7d78ecec3325b3eb7ee | [] | no_license | xxweell/exerciciosPython | b6fe00d67a39391bb8794953832f07f7f75eb504 | 93c1ac25dc1d1875c4102e1126fa54a537bb0973 | refs/heads/master | 2022-11-14T20:30:13.587004 | 2020-06-17T21:06:59 | 2020-06-17T21:06:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | frase = str(input('Digite uma frase: ')).strip().upper()
print('A letra A aparece {} vezes na frase.'.format(frase.count('A')))
print('A primeira letra A apareceu na posição {}.'.format(frase.find('A')+1)) # find retorna a posição em que foi encontrado a primeira vez
print('A última letra A apareceu na posição {}.'.for... | [
"wellingtoncw7@gmail.com"
] | wellingtoncw7@gmail.com |
60c083d45755c5c8515e991f42f96dd819d6e4d5 | fbbbcfa050612a6242c095060bad774b60fc914d | /archive_project/old_version.py | 184a635253393fb5e1f993b883ce043eb4385aee | [] | no_license | MitjaNemec/Kicad_action_plugins | 79b4fa0fb8fdcb0aba3770f871f0c25bd982bea6 | f7f2eaa567a7354459e17f108427584fa6a6a8a4 | refs/heads/master | 2023-08-29T12:09:48.978854 | 2023-06-15T18:41:08 | 2023-06-15T18:41:08 | 110,839,994 | 406 | 79 | null | 2022-03-31T06:31:07 | 2017-11-15T13:55:47 | Python | UTF-8 | Python | false | false | 1,473 | py | # -*- coding: utf-8 -*-
# action_replicate_layout.py
#
# Copyright (C) 2018 Mitja Nemec
#
# 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 opti... | [
"mitja.nemec@fe.uni-lj.si"
] | mitja.nemec@fe.uni-lj.si |
ab523c3751accac0cb2820f8f76621d3ca5474ab | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_172/ch88_2020_05_06_12_07_01_120079.py | 65c8bdbe203ac21abf9a6631e62483803e27d184 | [] | 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 | 344 | py | class Retangulo:
def _init_(self,coord1, coord2):
coord1 = Ponto(x1, y1)
coord2 = Ponto(x2, y2)
def calcula_perimetro(self):
base = x2 - x1
altura = y2 - y1
p = 2*base + 2*altura
def calcula_area(self):
base = x2 - x1
altura = y2 - y1... | [
"you@example.com"
] | you@example.com |
bdd9f479c4b2fdd3901be2b45127d857c7560c00 | 60b1c5ab904a773e81d3f817279f9f2f72e15ac6 | /individual.py | be8c4cc2e02443bef755cf708e9a8b67834da694 | [
"MIT"
] | permissive | n0lley/polycube | 1dede161444c9f50220e8683742d95468290bdee | bc97b81b7455a8682fcd83f198fad437bb3dc4cb | refs/heads/master | 2021-08-07T01:09:05.584330 | 2020-07-28T23:18:28 | 2020-07-28T23:18:28 | 180,885,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | class INDIVIDUAL:
def __init__(self, *args, **kwargs):
raise NotImplementedError
def mutate(self, *args, **kwargs):
raise NotImplementedError
def evaluate(self, *args, **kwargs):
raise NotImplementedError | [
"david.matthews.1@uvm.edu"
] | david.matthews.1@uvm.edu |
2b6516b8357caff161af954e665fc30dd6a1ad1e | 8bb6e8535c12c541866ad87fbd221750c7dac127 | /lib/kb_irep/kb_irepImpl.py | 0794129841b97942c4a676c5bd19fb284a692a7c | [
"MIT"
] | permissive | jungbluth/kb_irep | 1a0caa793133ec587a0cf8b8de4154c2bb5c82aa | 55c8f2bfb3ccba74d3418dec31acf6d9630b1ac5 | refs/heads/master | 2021-07-18T06:00:00.508236 | 2020-12-30T20:26:15 | 2020-12-30T20:26:15 | 227,967,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | py | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import logging
import os
from installed_clients.KBaseReportClient import KBaseReport
#END_HEADER
class kb_irep:
'''
Module Name:
kb_irep
Module Description:
A KBase module: kb_irep
'''
######## WARNING FOR GEVENT USERS ####### noqa
# Since async... | [
"jungbluth.sean@gmail.com"
] | jungbluth.sean@gmail.com |
f06e6cd20ffd0594a254af576292149542c248bf | 7d57247e1cefc7dfdd4c12a745366fae5e413a11 | /tests/conftest.py | 9731d89f424cc00aa2b48745e73b0a2e2a1149b7 | [
"BSD-2-Clause"
] | permissive | chintal/sphinxcontrib-collations | 6920314dddba4eea7b059028a9cb2c7dba9e3121 | dd2b7f449bf025695fb25a4c685fd3ab9b1c6c53 | refs/heads/master | 2020-06-21T09:12:09.492796 | 2019-07-17T13:14:03 | 2019-07-17T14:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | """
pytest config for sphinxcontrib/collations/tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2017 by Chintalagiri Shashank <shashank.chintalagiri@gmail.com>
:license: BSD, see LICENSE for details.
"""
pytest_plugins = 'sphinx.testing.fixtures'
| [
"shashank.chintalagiri@gmail.com"
] | shashank.chintalagiri@gmail.com |
d7d2b1821665e6ce2fba837251c3f8cc1a3c770e | fff4663f296e081d4aa3ca4b36c301afb95aee88 | /lib_translate/term_protection.py | b5dab0be375d36ef3d46bc9c0450aa52067b961f | [] | no_license | sammichenVV/translateserver-py | 84d7787c0b4e42542be433b909ed243f65e4ed38 | b4c6900281b2219097d6f1f86a71311180a60c1e | refs/heads/main | 2023-03-19T14:20:00.579830 | 2021-03-17T06:54:01 | 2021-03-17T06:54:01 | 348,186,221 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,773 | py | """
对输入文本的专业术语进行保护,目前仅支持一句话中对一个术语进行保护
>>> src_word, tgt_word = "Hello world", "你好世界"
>>> add_words([[src_word, tgt_word]])
>>> src_word.lower() in show_words(return_dict=True)
True
>>> add_words([["I'm", "我是"]])
>>> sent, term = mask_term("hello world! I'm.")
>>> de_mask_term(sent, term)
'你好世界! 我是.'
>>> delete_words(["... | [
"00025@yu.lan-bridge.com"
] | 00025@yu.lan-bridge.com |
0da9380cc1898690b9c39d5b4b7ff4392ed376b1 | 753a03d58940847b76203e39b8cb60d775bc8370 | /test/test_systems_generators_dockerignore.py | d95c632c27a1cd1a45a647dd3008e979abe95f4c | [
"MIT"
] | permissive | SanthoshBala18/skelebot | 912d84abef113f86eeb6b05f50ae9c2bd6115d45 | 13055dba1399b56a76a392699aa0aa259ca916a9 | refs/heads/master | 2020-08-03T15:24:11.105137 | 2019-09-27T15:12:25 | 2019-09-27T15:12:25 | 211,799,653 | 0 | 0 | MIT | 2019-09-30T07:19:27 | 2019-09-30T07:19:27 | null | UTF-8 | Python | false | false | 1,284 | py | from unittest import TestCase
from unittest import mock
import skelebot as sb
import os
class TestDockerignore(TestCase):
path = ""
config = None
# Get the path to the current working directory before we mock the function to do so
def setUp(self):
self.path = os.getcwd()
@mock.patch('os.... | [
"noreply@github.com"
] | SanthoshBala18.noreply@github.com |
973f38ed0345cb23c877e3d788c07856de7093ea | aa97a1a30d3f4cc65b80cfbb76ff88f55e96f67b | /A-Star-Search/search/searchAgents.py | bf0c1649b6b366a5fb4c716f1af59a0f9fa5d13a | [] | no_license | yorhaha/AI-Tasks | a0df0728ef013fd8053d3ef699b04baa38b931ce | 6197b9990f997bcf9f3f5ccb6773513670b35ea0 | refs/heads/main | 2023-09-03T16:50:48.365762 | 2021-10-30T02:04:13 | 2021-10-30T02:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,856 | py | """
This file contains all of the agents that can be selected to control Pacman. To
select an agent, use the '-p' option when running pacman.py. Arguments can be
passed to your agent using '-a'. For example, to load a SearchAgent that uses
depth first search (dfs), run the following command:
> python pacman.py -p S... | [
"blueice-thu@outlook.com"
] | blueice-thu@outlook.com |
998e74d73408d3c5bf3bf99ce5df17a7a52ee3f8 | 0a40a0d63c8fce17f4a686e69073a4b18657b160 | /test/functional/rpc_bip38.py | b70349a25ed83fb3fc00d631b1bc8dcd9eb3f3e4 | [
"MIT"
] | permissive | MotoAcidic/Cerebellum | 23f1b8bd4f2170c1ed930eafb3f2dfff07df1c24 | 6aec42007c5b59069048b27db5a8ea1a31ae4085 | refs/heads/main | 2023-05-13T06:31:23.481786 | 2021-06-09T15:28:28 | 2021-06-09T15:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2019 The CEREBELLUM developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC commands for BIP38 encrypting and decrypting addresses."""
from test_framework.test_framework i... | [
"travisfinch01@gmail.com"
] | travisfinch01@gmail.com |
89a610ca7cd1c5022c19cb112a2eab06b5bf334a | e9b06f7b8b210c550879c1e8c484b42719ccd633 | /custom_components/samsungtv_smart/api/samsungws.py | be8b20e1dd6ee7b4498cd6934fd4be4cf43f6dcf | [] | no_license | eplantequebec/Home-Assistant-Config | a5b69d3e2fa21068dc15b20a8988a24440140300 | ed05566ee476ec4490efa9b9d5bfdf55fca9a808 | refs/heads/master | 2021-08-17T00:11:15.805600 | 2021-07-18T23:40:23 | 2021-07-18T23:40:23 | 201,519,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,202 | py | """
SamsungTVWS - Samsung Smart TV WS API wrapper
Copyright (C) 2019 Xchwarze
Copyright (C) 2020 Ollo69
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of t... | [
"eric@plante.ca"
] | eric@plante.ca |
b08dd544b2f32a4764ba76171b76226e77090569 | 2628f51ef7ab5aae691dc72556ab312cc5b2a876 | /venv/lib/python3.8/site-packages/unyt/_version.py | c41cbda0701c4538c26555538502bd76e89985b4 | [
"BSD-3-Clause"
] | permissive | Jack-kelly-22/ps-4 | f933a8bb7bf5c865d846a30a5e0c8352c448a18d | fbbf327f1717bbd1902f437147640dfdf6aa118c | refs/heads/master | 2023-02-10T23:56:48.499720 | 2021-01-05T21:43:59 | 2021-01-05T21:43:59 | 327,124,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py |
# This file was generated by 'versioneer.py' (0.18) from
# revision-control system data, or from the parent directory name of an
# unpacked source archive. Distribution tarballs contain a pre-generated copy
# of this file.
import json
version_json = '''
{
"date": "2020-10-05T14:17:00-0600",
"dirty": false,
"error... | [
"Jacklaxjk@gmail.com"
] | Jacklaxjk@gmail.com |
b768abfeda8056001f6bd64fe0e1e40d66c85e89 | c7bb49430a2651955e545c3ae4907e870a7f2568 | /patterns/Observer/observer.py | 504ceae4e97e41bceceda740bb0b9bffbce54681 | [] | no_license | jvrcavalcanti/Algorithms | 133dd29d985c41560b212ed1b204d8220bd89bc9 | d83f8e61d959e9da970d6270b373eaea39701927 | refs/heads/master | 2020-12-31T22:34:25.696750 | 2020-06-16T18:25:58 | 2020-06-16T18:25:58 | 239,056,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from abc import ABC, abstractmethod
class Observer():
@abstractmethod
def handle(self, state):
pass | [
"jonnyvictor01@gmail.com"
] | jonnyvictor01@gmail.com |
a564fadbeb8da66f7e99e8a1c5af6eec0923b3f2 | 5160cd2cf1ff8aa1d48935a783ba39e59f8d9ca7 | /src/py.py | bbfff52bf7a351f5fc2d85e6364080af152fd517 | [] | no_license | harry-uglow/BananaBeats | eb9df6f9458e1d12a406f0d96dbe9980f278af6e | 2e0eb211f5646be5675237c5c1c70d2feed8c57f | refs/heads/master | 2021-01-19T12:47:57.520881 | 2017-08-29T20:36:19 | 2017-08-29T20:36:19 | 100,810,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import subprocess
import threading
import sys
import time
import pygame
import os
import signal
import python.adafruit_libraries.Adafruit_MPR121.MPR121 as MPR121
print('strt')
p = subprocess.Popen(['./main'], stdin = subprocess.PIPE, close_fds=True, shell=True)
# Maybe add shell=True if it doesn't work
print('mon')
m... | [
"mauriceyap@hotmail.co.uk"
] | mauriceyap@hotmail.co.uk |
a1e59a682c3d21feebcf29921ab2ec3829992fd1 | de3a062138d3fbdfcf76e09915be553aea450e61 | /Tests.py | 2b1454136905d54427a60069f63bcf68cbcf68c4 | [] | no_license | AlyonaMon/autotests | be9d0793ad36f917d7315325c3071042b592207f | 4457f7f3f5ef65b1b67b08221e43693bf7c742f3 | refs/heads/master | 2021-01-11T18:54:34.717373 | 2016-11-14T21:35:02 | 2016-11-14T21:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,032 | py | # coding=utf-8
import json
import logging
logger = logging.getLogger(__name__)
logging.basicConfig(datefmt='%m/%d/%Y %I:%M:%S %p', filename="msg.log",
format='%(asctime)s %(name)-20s %(levelname)-8s %(message)s', filemode='w')
from xml.etree import ElementTree
import xml.etree.ElementTree as... | [
"evmon@ex.ua"
] | evmon@ex.ua |
392d504d2b4be2f95ee073ec8a8beccce1d6bd49 | d1a111119ec7aed797d1487b9a5740217d43effc | /students/templatetags/tags.py | 28e1e2ea85fd52a4ce90660cb5ee127a9c1a29cf | [] | no_license | shurique/student_task | 3f693f20691971f9e7fee03e8cc4cffd130aa53b | 2cf873adbc8657ac31e6efc4c12805c0387a67d7 | refs/heads/master | 2021-01-10T22:20:51.941404 | 2012-02-03T08:31:30 | 2012-02-03T08:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | #-*-coding: utf-8 -*-
from django import template
from django.core import urlresolvers
from django.contrib.contenttypes.models import ContentType
register = template.Library()
class EditListNode(template.Node):
def __init__(self, value):
self.var = template.Variable(value)
def render(self, context):
... | [
"godetskiy@ya.ru"
] | godetskiy@ya.ru |
fe57a510beaf39e45c60b51b452a5c31026ab28d | 3ecce3646d66033d214db3749be63e78d4f663e9 | /Assignment 4/load_utils.py | 9b4f3fc6a5fb3ab71f6dc4b5ce5cbba2fb817a22 | [
"Apache-2.0"
] | permissive | pradyumnakr/EIP-3.0 | f36aaed042d65beef163b08dbb0de05139e3fee7 | 67bc5168b169406d7567f3d1d3b9b35fc7dd61af | refs/heads/master | 2022-01-27T15:23:00.013031 | 2019-07-28T17:25:35 | 2019-07-28T17:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,699 | py | def load_tiny_imagenet(path, dtype=np.float32, subtract_mean=True):
# First load wnids
with open(os.path.join(path, 'wnids.txt'), 'r') as f:
wnids = [x.strip() for x in f]
# Map wnids to integer labels
wnid_to_label = {wnid: i for i, wnid in enumerate(wnids)}
# Use words.txt to get names for each class... | [
"vishal114186@gmail.com"
] | vishal114186@gmail.com |
90ab9fd8dbaf028130901ea8dc146e64dc36e060 | 8270ee8435d2c95dcc9f0e8f9f2119a45cafdf34 | /authentication/authentication/urls.py | 62d83125245dc2239a6a24bc1a945d75afe0e38f | [] | no_license | venkatapriya2020/Django_Hands_On | d8fa20124181f8ed59aaea91f2c3ebfec45495b6 | 28bd9d6fd95730c8f85c40c0d284d2d7cb3fe462 | refs/heads/master | 2023-02-04T05:19:42.708484 | 2020-12-20T22:32:28 | 2020-12-20T22:32:28 | 323,177,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """authentication URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Clas... | [
"venkatapriya@live.com"
] | venkatapriya@live.com |
ce2ce7dc2c0f952870f86143e1a519cfa7a22b93 | 2825a2d056db418a3bf04d8d2ffc7133cd552d0f | /jsondiff/mountpoint.py | b2b2f60d5cdfca5d072f5297f75289d5d311cb15 | [] | no_license | trendsnet/jsondiff | eabba41a2c9111d2a2aefdb460564fcc7f1743b8 | dce2af96542cb986dd1bd927972faf8c505364d9 | refs/heads/master | 2020-05-30T04:57:37.713001 | 2017-05-08T07:41:22 | 2017-05-08T07:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | #coding:utf-8
__author__ = 'Feng Lu'
from .views.diff import diff
MOUNT_POINTS = ((diff, "/diff"),
(diff, "/"),
) | [
"liyanjie8@wanda.cn"
] | liyanjie8@wanda.cn |
b215c554ca3a503adec1ad978c11a8f6d483768c | 2d71efd7d8eecd057ba1705ae61bef03358b7605 | /heating/common.py | 4fa33355fe10a9902743eddfea3219bcf3a5bd75 | [] | no_license | graememorgan/smart-thermostat | 9a35765b32b324e907eab76ee36e645ac77d2711 | 7b2294de8d0752f9518f50541a1f2b42610bcb26 | refs/heads/master | 2021-01-10T10:52:36.556316 | 2016-02-04T13:30:02 | 2016-02-04T13:30:02 | 50,459,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | import datetime
def epoch(date):
return (date - datetime.datetime(1970, 1, 1)).total_seconds()
| [
"mail@graeme.io"
] | mail@graeme.io |
e41f7a4ee3dff131d8b4f169176cf7ead839fc16 | 8af82d8482761aa99f6db95527a20c8854c00fdb | /PT_Approve.py | e951714fc9aff612626a16950f2f94ad0101e9a3 | [] | no_license | vandy1992/SCM-Automation | 62c02f665dcf42e79459f7aec575f07e35720c81 | 38c4266b943ece80df66ea32ba22f774a46df6c6 | refs/heads/master | 2022-11-20T13:15:56.572776 | 2020-07-10T09:05:47 | 2020-07-10T09:05:47 | 278,587,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,805 | py | import unittest
# import HtmlTestRunner
import time
import allure
from allure_commons.types import AttachmentType
from selenium import webdriver
import sys
sys.path.append("C://Users/Vandana Mallaiah/PycharmProjects/loginpage") #run through cmd and to generate report we need this or else no need
from pages... | [
"noreply@github.com"
] | vandy1992.noreply@github.com |
bdf356f1b24561547e82750dcf298ac1a820f9f4 | f53ebcc05ccc8892c32fc2b5c121ba0d78451adb | /classify_images.py | a0f79e4a9fbf09917707b7f53e0b97d22a0ea8eb | [] | no_license | XDUNZC/TBtianchi_submit | 4a45e1096fa389ea9123647e7caaa7cb52a9c322 | e6b1497c0063379f34f9e8cab4926fb160944fdd | refs/heads/master | 2023-08-15T19:45:07.112471 | 2020-04-12T06:56:57 | 2020-04-12T06:56:57 | 249,676,498 | 0 | 0 | null | 2023-07-23T09:42:19 | 2020-03-24T10:20:56 | Jupyter Notebook | UTF-8 | Python | false | false | 4,010 | py | from read_dataset import Reader
from save import Saver
from model.Resnet50.run import Worker as MatchWorker
from model.mmdetection_coco import run as DetectionWorker
import utils
import os
import mmcv
import random
class Classifier():
def __init__(self,classify_model,reader):
self.classify_model = classify... | [
"903244773@qq.com"
] | 903244773@qq.com |
db5c965f2a0a9a8eca0e23b6beaa853f2fa82cff | 14d7dbf445a5fde2a6611c41cd55bc17978afec4 | /flask_app/application.py | bfdd92df2989f1ed4b3c63654868c835612a6b6b | [] | no_license | Happollyon/Class2 | a7ef72caefebf5e23209b06ecf84560d3b73394f | 8136fd0c70cf1cc4e82361d5a2ca54c282e5066c | refs/heads/master | 2022-09-17T07:14:09.356631 | 2020-05-28T14:23:37 | 2020-05-28T14:23:37 | 257,603,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from flask import Flask, render_template,request, session
#from flask_session import Session
app=Flask(__name__)
@app.route('/')
def index():
return "Hello world"
@app.route('/fagner')
def fagner():
return"hello fagner"
@app.route("/<string:name>") # you can set a rout name
def hello(name):
return f"hel... | [
"36013973+Happollyon@users.noreply.github.com"
] | 36013973+Happollyon@users.noreply.github.com |
6346038aeef107d5a4c7721f2a780ff4708abbcc | f5b2ee7b630385a8173326aede9b3c43794c4b3e | /server/world/item.py | 5720951d7a49726ebb51efe2d3f6063c6f5e02af | [] | no_license | dslice25/tinymmo-server | 3a324c38475b64220cf6a6bde6ee1277a9bf259b | 2d01212a8ce6ba9ecc87e2fcf2a3c4979255e926 | refs/heads/master | 2021-01-23T10:07:33.355822 | 2017-12-08T21:02:06 | 2017-12-08T21:02:06 | 102,606,582 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | import ConfigParser
import uuid
class Item:
index = 0
config = ConfigParser.RawConfigParser()
config.read('server_data/items.ini')
def getid(self):
Item.index += 1
return Item.index
def __init__(self, name, player, container, equipped, world):
#self.name = "%s-%s" % (name, self.geti... | [
"dablum@mit.edu"
] | dablum@mit.edu |
09c006664cf108d6ae9fc0f41fcb8e22fcea4877 | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/i21-config/scripts/functions/sample_vessel_vacuum_control.py | 055be6350f0c567e280cfe42194b79f557165ef8 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | '''
define function to control the sample vessel vacuum valves for sample changes
Created on 18 Jul 2023
@author: fy65
'''
import installation
from gda.device.scannable import ScannableMotionBase
from gda.epics import CAClient
# control PV = BL21I-EA-SMPL-01:SEQ:CTRL
# state PV = BL21I-EA-SMPL-01:SEQ:CTRL:STATE_RBV
... | [
"fajin.yuan@diamond.ac.uk"
] | fajin.yuan@diamond.ac.uk |
2f9db9f890c9233e5af1669088468a7683d1af35 | 0fb3b73f8e6bb9e931afe4dcfd5cdf4ba888d664 | /awssam/fullfeblog/blog/migrations/0002_auto_20201208_1414.py | b61387acb7dcbe792fb0d7d8887e97d528f46789 | [] | no_license | mrpal39/ev_code | 6c56b1a4412503604260b3346a04ef53a2ba8bf2 | ffa0cf482fa8604b2121957b7b1d68ba63b89522 | refs/heads/master | 2023-03-24T03:43:56.778039 | 2021-03-08T17:48:39 | 2021-03-08T17:48:39 | 345,743,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | # Generated by Django 3.1.4 on 2020-12-08 14:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"rp9545416@gmail.com"
] | rp9545416@gmail.com |
5d911f4022457d7e47942adf723047dc59cefa2f | 4a5f3b26fca176a80ca8eca796bc646bb225b017 | /attentive-reader-2/sgu.py | 8ddc21a3a0732b54672764fcd0003dcc2dec4e7a | [] | no_license | musyoku/NLP | 9a63dc882b07b017f7cfc72d863c4d9e5cbeff5e | 9b040bb960b65fb2a1c330adafa6c52e3284a0c1 | refs/heads/master | 2021-01-21T04:53:57.029200 | 2016-07-10T17:08:03 | 2016-07-10T17:08:03 | 55,848,677 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | import numpy
import chainer
from chainer import cuda
from chainer.functions.activation import sigmoid
from chainer.functions.activation import softplus
from chainer.functions.activation import tanh
from chainer.functions.math import clip
from chainer import link
from chainer.links.connection import linear
from chainer... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
b393a423256aa0f889b3a2d9a5f23682e1c3053d | 31136f3b2aa9ff7166f771a7f4e1da8dd1764b2e | /website/events/migrations/0005_auto_20190715_1440.py | ec4ca8cd745c5758545e2f31f6086ffdfe7a64c0 | [
"MIT"
] | permissive | PyAr/asoc_members | 202bb05f6c58644f5edb19c80a7276b493d3c76b | ed3944acadd7d08e53acd6edb5961a4248ea4782 | refs/heads/master | 2023-04-15T07:41:45.725797 | 2023-04-11T15:13:24 | 2023-04-11T15:13:24 | 131,543,379 | 10 | 26 | MIT | 2023-08-22T22:41:12 | 2018-04-30T01:10:30 | Python | UTF-8 | Python | false | false | 7,405 | py | # Generated by Django 2.0.4 on 2019-07-15 14:40
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
import events.helpers.models
import events.models
class Migration(migrations.Migration):
dep... | [
"andres.ramirez.miori@gmail.com"
] | andres.ramirez.miori@gmail.com |
25511219866cbb40fbd6b80bfdc1df6200549f29 | db46e847a9e382bcc7e062cfbac52fbac0cea490 | /Bolum1/otsu1.py | ef7e7265b90e4fec9241caa5466f6d9d53430f01 | [] | no_license | pnarbedir/ImageProcessing | 137ecb3a027afbb41573466415e570055ac00ad5 | 94f4778e773c1ffdda398e6da3824267b7c68651 | refs/heads/master | 2023-05-02T13:10:15.254882 | 2021-05-16T00:28:42 | 2021-05-16T00:28:42 | 363,901,232 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('original.jfif',0)
ret,th1 = cv2.threshold(img,127,255,cv2.THRESH_BINARY)
ret,th2 = cv2.threshold(img,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
blur = cv2.GaussianBlur(img,(5,5),0)
ret,th3 = cv2.threshold(blur,0,255,cv2.THRESH_BINARY+c... | [
"pnarbedir98@gmail.com"
] | pnarbedir98@gmail.com |
1ca54c25efd9250bdc727477130bd4e28d32ef07 | c6f063e2f6ab9aed7743255b8c4b131a3638dd30 | /env1/lib/python3.9/site-packages/webpush/migrations/0003_auto_20211108_1056.py | 22febc2a8208476cc38e6b2d934e7872117439d3 | [] | no_license | Muthoniyahya/agricoope | 31d94ee02e0e5cc650afc251104c6fe4a91cb1b9 | c1ef91866b4646a19825a6d833f78868663d61d1 | refs/heads/master | 2023-09-02T21:33:41.991628 | 2021-11-18T23:22:27 | 2021-11-18T23:22:27 | 429,600,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # Generated by Django 3.2.8 on 2021-11-08 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webpush', '0002_auto_20190603_0005'),
]
operations = [
migrations.AlterField(
model_name='group',
name='id',
... | [
"Muthoniyahya@gmail.com"
] | Muthoniyahya@gmail.com |
d8ded25ef10e93c72605b89d85452c69e80636d6 | 9fdc3443090052d31089f8181cfce4d62ca97616 | /exception_handling_advanced_example61.py | aaca7a2d555cedf68e1fb60cee48b451d3e7b846 | [] | no_license | ahmedyoko/python-course-Elzero | 9d82b08e81d597292ee85c0d517d8116d0be0905 | bc11dca9b7ccbccb7c66d6a5b34ded0e6dedc9f8 | refs/heads/master | 2023-07-25T19:44:22.073679 | 2021-09-07T19:35:30 | 2021-09-07T19:35:30 | 399,866,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | #...........................................
# exception_handling_advanced_examples
# try | except | else | finally
#....................................................
the_file = None
the_tries = 5
while the_tries > 0 :
print(f'{the_tries} tries left')
the_tries -= 1
else :
print('All tri... | [
"aos438479@gmail.com"
] | aos438479@gmail.com |
9138de1148cd345ac2d731ad25502eed850fa264 | 2d83d627c446fa84e301f27196f893902066a8a3 | /smartcity/dbview/migrations/0008_auto_20171030_1950.py | 8a2f889d476a5e7077de8a008cc9e650156ad104 | [] | no_license | PoeticIron/ifb299-57lines | 1e71a79c97a05c0ff7e6c1651469dbd0904385a7 | 837d49437c674daafec805c8f4b1a6c7f595eedf | refs/heads/master | 2021-01-01T18:36:47.580779 | 2017-11-03T05:42:05 | 2017-11-03T05:42:05 | 98,384,561 | 0 | 2 | null | 2017-09-19T07:34:37 | 2017-07-26T05:51:16 | Python | UTF-8 | Python | false | false | 639 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-10-30 09:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dbview', '0007_auto_20171030_1947'),
]
operations = [
migrations.AlterField... | [
"nmestone@gmail.com"
] | nmestone@gmail.com |
840f45903a811282a9e7105496d723fef512547a | 743778017a0e775832e45fc05d9a056604f608ad | /km71/Guro_Dmytro/4/Task7.py | e6d342044e39db64385b0d1b3e66988e2430196c | [] | no_license | Kalinia/amis_python71 | fed5ff37a5909c090a53962daa689141498755b1 | 0123af48b1eaa6d752409b1b643f548c6b0e4ab8 | refs/heads/master | 2021-05-07T17:24:21.974699 | 2017-12-21T22:13:00 | 2017-12-21T22:13:00 | 108,726,150 | 0 | 0 | null | 2017-10-29T10:54:14 | 2017-10-29T10:54:14 | null | UTF-8 | Python | false | false | 590 | py | while True:
try:
x1 = int(input())
break
except:
print("Please enter number")
while True:
try:
y1=int(input())
break
except:
print("Please enter number")
while True:
try:
x2=int(input())
break
except:
print(... | [
"noreply@github.com"
] | Kalinia.noreply@github.com |
2908f0e3db2a300277114b39d46d25d3ea5e1012 | 2d3976964d8923a1e91e31af702bd68fbf37d474 | /runTask/server.py | 1bd36c0754e0d042ad090870e35b568521b7c88d | [] | no_license | barry800414/master_thesis | 2f6900fb2964891849dadef9283ed6e7f11cc696 | 01a0cac30ab63fcf818f1f43959634094b624af5 | refs/heads/master | 2020-05-29T08:53:32.810702 | 2016-06-04T02:03:52 | 2016-06-04T02:03:52 | 38,382,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | #!/usr/bin/env python3
from multiprocessing.managers import BaseManager
import queue
import sys
if __name__ == '__main__':
port = 3333
if len(sys.argv) == 2:
port = int(sys.argv[1])
q = queue.Queue()
# a QueueManager hold a queue q, which automatically handle race condition
class QueueMana... | [
"barry800414@gmail.com"
] | barry800414@gmail.com |
11e7feb68dc8e7c7d92ddb397418250a2ca1228e | eb3cd8723752e34e46728d02d5f95f3e8e7a864d | /Django/myvenv/bin/chardetect-3.8 | d426c822917bb3d16d6de63f05b1eeafdc98791e | [] | no_license | AbhisarSaraswat/Projects | bdf5b455e6f2480401d646c1115be1a79de6b83d | 59fe23b803a3d7617b26ecec4259c418704d4cc7 | refs/heads/master | 2021-11-17T09:51:32.410418 | 2021-05-21T10:42:31 | 2021-05-21T10:42:31 | 168,728,445 | 0 | 0 | null | 2021-09-22T19:50:09 | 2019-02-01T16:40:42 | Python | UTF-8 | Python | false | false | 245 | 8 | #!/home/lucifer/Projects/myvenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"abhisarsaraswat@gmail.com"
] | abhisarsaraswat@gmail.com |
de075cc155d45012e62fee4fd10dbfd477ea0b69 | 5e0ef0a177306aa205493259cc274be7bb72b9eb | /login_and_registration/apps/log_regs_app/urls.py | 0167a0fd2c5be22b28dbfc5dee64462961a66956 | [] | no_license | reinib/PythonDjangoCD | 07654f45e6e339cb3091d66d7bfccb04a46111d1 | 5fef1906a90c997c13a17ef9aec0df30733d5ea8 | refs/heads/master | 2020-04-11T10:31:42.034181 | 2018-12-14T01:55:06 | 2018-12-14T01:55:06 | 161,717,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^validate_register$', views.validate_register),
url(r'^users/(?P<id>\d+)$', views.success),
url(r'^validate_login$', views.validate_login),
]
| [
"brent.reininger89@gmail.com"
] | brent.reininger89@gmail.com |
9ba996ef80069b6979c8495ddbf3ffbab87f533c | d0af71157005190c6421b640b0e6cee2f237aace | /examples/bamboo/bamboo_plan_directory_info.py | 9706338f0eb798ba9532324312cadf808092d542 | [
"Apache-2.0"
] | permissive | atlassian-api/atlassian-python-api | d8adeb43ea4c92c10a03f1b53b53b87820f1841d | bb1c0f2d4187ba8efa1a838cd0041b54c944fee8 | refs/heads/master | 2023-08-29T06:57:22.136461 | 2023-08-27T18:53:00 | 2023-08-27T18:53:00 | 19,530,263 | 1,130 | 679 | Apache-2.0 | 2023-09-13T19:27:44 | 2014-05-07T10:26:26 | Python | UTF-8 | Python | false | false | 433 | py | # coding=utf-8
import os
from atlassian import Bamboo
BAMBOO_URL = os.environ.get("BAMBOO_URL", "http://localhost:8085")
ATLASSIAN_USER = os.environ.get("ATLASSIAN_USER", "admin")
ATLASSIAN_PASSWORD = os.environ.get("ATLASSIAN_PASSWORD", "admin")
bamboo = Bamboo(url=BAMBOO_URL, username=ATLASSIAN_USER, password=ATLA... | [
"noreply@github.com"
] | atlassian-api.noreply@github.com |
f50f22f4257ef2bd4b135c4c4b543869c019f8b8 | 4eeb40dcc265caf4a2b84bc90a28d481930d6a8a | /cssproject/cssproject/wsgi.py | e87cec6d202682e65310c1cd76e7ac0245d43209 | [] | no_license | mprasu/Sample-Projects | eb7fc46e81b09d7c97c238047e3c93b6fff3fb8d | 7363baf630900ab2babb4af2afe77911d8a548b2 | refs/heads/master | 2020-04-16T06:43:16.345750 | 2019-01-12T07:07:34 | 2019-01-12T07:07:34 | 165,358,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for cssproject 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"muppuriprasanna5@gmail.com"
] | muppuriprasanna5@gmail.com |
58cbe82bcc8bd6afeed52101fca9d77621105eef | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/1399.页面推荐.py | 5a140da6d4ab9fa5c70e7d7e978fdf740737d005 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 1399.页面推荐.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
ddbeff68f2104fbd657620867d9acc172c5adecb | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0190_Reverse_Bits/__init__.py | 13d13496fce71652ff8239e68ab130a72e9cc66e | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 656 | py | ID = '190'
TITLE = 'Reverse Bits'
DIFFICULTY = 'Easy'
URL = 'https://oj.leetcode.com/problems/reverse-bits/'
BOOK = False
PROBLEM = r"""Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as
**00000010100101000001111010011100**), return 964176192 (represented in b... | [
"romain_li@163.com"
] | romain_li@163.com |
45278734804df48db80172a886fbefcd6bf1b64f | dd1462c6dd2aacf13113834854be92b119315722 | /commands.py | ff1f0b7e79f927c5cdb5fd2a885a25572c1fbd0c | [] | no_license | voiceassistant-SEDA/Voice-Asistant | 8d9298f2b5e41c0f14c9d8f31de58df1deca0a93 | 7995875fccde96f4745f4c87fc370d81ac7f61ef | refs/heads/main | 2023-05-05T11:45:07.850369 | 2021-05-21T15:45:33 | 2021-05-21T15:45:33 | 369,581,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,342 | py | import os
import json
import function
import backend
import random
from fuzzywuzzy import process
import Levenshtein as lev
class Commands :
def __init__ (self,function,module,neuralNetwork) :
self.function = function
self.module = module
self.neuralNetwork = neuralNetwork
with open... | [
"73945726+sirmakalender@users.noreply.github.com"
] | 73945726+sirmakalender@users.noreply.github.com |
fd5b3d07a2a0a980e3a2da89214375a9c7a9d6ec | 1cfb61bb6cee6c8978ad50956d5af36edeb7ee6f | /menu/migrations/0007_auto_20161007_1750.py | 21534b135687d6b66964406bad09b712e06dffb0 | [] | no_license | greenmails2001/analytics | 221a2264e8a9db63df9ab57fa6393b1e0df62052 | cfde53d5402f302e904b96991d67a0c9a210a6c9 | refs/heads/master | 2021-01-11T05:43:43.666368 | 2016-10-31T14:45:11 | 2016-10-31T14:45:11 | 71,340,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menu', '0006_auto_20161005_1327'),
]
operations = [
migrations.RenameField(
model_name='file',
old_n... | [
"greenmails2001@gmail.com"
] | greenmails2001@gmail.com |
92ec94b88e74f9385c3753e035a3676a25f2ecc7 | 6e5c2ba6cd380af56d7714cd6b3ec31b0e0d947e | /src/error_single.py | 082454e4f3df909b97bfed7a7eed20a83a2d8748 | [] | no_license | luedu/Bokeh-Effect | 74a0d2b2800a458da9983d377418542bf40d409c | f985dd366918f35de92ec118ca0b4783812ad4d6 | refs/heads/master | 2022-04-17T12:32:54.975888 | 2020-04-19T14:10:54 | 2020-04-19T14:10:54 | 257,001,932 | 0 | 0 | null | 2020-04-19T13:08:40 | 2020-04-19T13:08:40 | null | UTF-8 | Python | false | false | 1,794 | py | import torch
import cv2
import sys
from utils import dice_coeff,dice_loss,normalization,denormalize,ab_rel_diff,sq_rel_diff,rms_linear
import numpy as np
def set_requires_grad(nets, requires_grad=False):
if not isinstance(nets, list):
nets = [nets]
for net in nets:
if net is not None:
... | [
"yashkhem1@gmail.com"
] | yashkhem1@gmail.com |
f28ba09e107306b65b13e2ac8683488c3fbf89a0 | 13152e95d8f0fa7c9b9bcb0be368b869b8c34b0f | /apps/diary/migrations/0003_auto_20180929_1857.py | 869839b1cbe31778bbda7881611ab44efa2b9530 | [] | no_license | Emiyaaaaa/personalweb | 75872239a963ce59665735a2c9bfff46dc2a671a | a4d47dc9a3a5fdf1c3d24d587a177e19b878b661 | refs/heads/master | 2021-06-03T09:22:31.201318 | 2020-09-02T07:16:49 | 2020-09-02T07:16:49 | 148,086,883 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.1.1 on 2018-09-29 18:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('diary', '0002_diary_diarycomment'),
]
operations = [
migrations.AlterModelOptions(
name='diarycomment',
options={'verbose_na... | [
"2914034404@qq.com"
] | 2914034404@qq.com |
e886796a357ded12e7a87bd69fcd9177507e8a8b | 348d736636ddc3490df1b47fafbe26d10124148e | /camera_pi.py | d502e24cc78b9b0ae47ee12cd1dd097b5bc64041 | [] | no_license | HensonZl/hackrfpibot | 2636fbf19627913ddc754f5acc89d866612cb672 | 4eb730f5add931d0d26f2ec1177994dee5417012 | refs/heads/master | 2020-05-18T13:11:47.446115 | 2019-05-01T21:57:28 | 2019-05-01T21:57:28 | 184,431,429 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# camera_pi.py
#
# NOT MY SCRIPT this was used from https://www.hackster.io/ruchir1674/video-streaming-on-flask-server-using-rpi-ef3d75
# Look at the above link to get the documentation for the following script.
import time
import io
import threading
import... | [
"noreply@github.com"
] | HensonZl.noreply@github.com |
4c87054e4f6b517be8dae9e5d95da62f3c6a37aa | 47884bb53ffb293ccfff5e4c808915e00f6cc0d3 | /archive/timeDelta.py | d80a440ffeeba2400e92fbacc59bb5a9a95990b1 | [] | no_license | andyschultz/Scripts | f0b75b537b825fa7ff89efec63299e2a697790f7 | 7d3b57e292ce8f48ac40553a51c052bbc1c975f8 | refs/heads/master | 2021-01-13T01:29:40.853048 | 2015-04-30T17:17:08 | 2015-04-30T17:17:08 | 26,029,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | #!/usr/local/bin/python3
import pandas as pd, numpy as np,sys
file = sys.argv[1]
def buildDelta(file):
df = pd.read_csv(file,sep="\t",index_col=False,skiprows=1)
df.iloc[:,0]= pd.to_datetime(df.iloc[:,0])
df.insert(1,"Cumulative Time","NaN")
df["Cumulative Time"] = (df.iloc[:,0]-df.i... | [
"andy.schultz1@gmail.com"
] | andy.schultz1@gmail.com |
5991aa7286b2e0849710359d66a0645c362da72d | 3b3be533e7fd90a84c54693975dd1809a8814e92 | /terrains.py | 4dffc6e4808ac39e3c204805f9124af000578d2e | [] | no_license | Fenrir127/advance_wars | ed9e91013fb7972d39557551b0a7964a255115a1 | 736eecde986111fa15f452f292201d2abb483a4e | refs/heads/main | 2023-03-27T13:21:32.349864 | 2021-03-26T03:14:57 | 2021-03-26T03:14:57 | 304,418,098 | 0 | 0 | null | 2021-02-20T00:02:20 | 2020-10-15T18:41:44 | Python | UTF-8 | Python | false | false | 9,912 | py | from os import path
from sprites import *
from setting import *
"""
This contains all the information for the different terrain in the game
Nothing should change in there unless there's a way to change terrain in the game which I don't think there is (except building hp)
"""
# This is the master class Terr... | [
"noreply@github.com"
] | Fenrir127.noreply@github.com |
c2ae54754ea651fb4d0e578fe907000e3bf0da28 | f1efbd5d8039e95809ad8d313bd1a9c96d51cbf9 | /sql_queries.py | 0bbbb3f48c5d256f37eb83270cec170d4660c9b2 | [] | no_license | WittmannF/data-engineering-projects-postgres | 48a7c889133c6d17af825ef4ce1d59e5b6b41e50 | 5b3200c8977d6162d56f40247e8390d028c0ad8c | refs/heads/main | 2023-02-15T18:11:39.796621 | 2021-01-05T21:44:14 | 2021-01-05T21:44:14 | 326,008,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP TABLE IF EXISTS users;"
song_table_drop = "DROP TABLE IF EXISTS songs;"
artist_table_drop = "DROP TABLE IF EXISTS artists;"
time_table_drop = "DROP TABLE IF EXISTS time;"
# CREATE TABLES
songplay_table_create = ("""
CREATE T... | [
"fernando.wittmann@gmail.com"
] | fernando.wittmann@gmail.com |
0da90c73bc71313602b59d4b1cce999930cd4017 | 637669abf38aa06d786458bcb552d0d5dc188302 | /claripy/ast/__init__.py | 2da826a5b43d467502f3d34eadb856d283ede3f4 | [
"BSD-2-Clause"
] | permissive | angr/claripy | c5603b52f829a9b29630ed6665ab7ec294cb8157 | b35449fecd129dc46a0cabdd6499354e89b38a68 | refs/heads/master | 2023-09-05T18:48:19.736126 | 2023-09-05T17:17:45 | 2023-09-05T17:17:45 | 40,328,505 | 260 | 115 | BSD-2-Clause | 2023-09-11T22:09:06 | 2015-08-06T21:50:19 | Python | UTF-8 | Python | false | false | 1,376 | py | # pylint:disable=redefined-outer-name
from typing import TYPE_CHECKING
# Mypy is severely confused by this delayed import trickery, but works if we just pretend that the import
# happens here already
if TYPE_CHECKING:
from .bits import Bits
from .bv import BV
from .vs import VS
from .fp import FP
f... | [
"noreply@github.com"
] | angr.noreply@github.com |
64cba2c2b0ca9bb48817b6596678847d35379587 | 2428f771974183f86dd76a5ab9621097bba85d4e | /solve.py | 28c74e44d34b35b2770e55b9d057a465143ad34e | [] | no_license | Oripy/nonogram-solver | 3bdcffd282e49b117a10e475b65734e6ae23fa09 | d81b79caac04f8666bc39cba2a8fe95e592ab9e3 | refs/heads/master | 2021-01-15T16:00:47.186485 | 2011-07-18T08:40:48 | 2011-07-18T08:40:48 | 3,313,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,922 | py | #!/usr/bin/env python
import sys
import string
import copy
import types
from data_diff import data_diff
def get_permutations(counts, length):
"""
>>> get_permutations([], 1)
[[False]]
>>> get_permutations([1], 1)
[[True]]
>>> get_permutations([2], 3)
[[True, True, False], [False, ... | [
"repalviglator@yahoo.com"
] | repalviglator@yahoo.com |
5d8cfdb679b337f26330b1c109a88a1680180caf | d569476dd95496339c34b231621ff1f5dfd7fe49 | /PyTest/SteamSender/tests/test_send_cards.py | 996577a1586476bfeec33e7f74f1ba41cfd2b17e | [] | no_license | monteua/Tests | 10f21f9bae027ce1763c73e2ea7edaf436140eae | 553e5f644466683046ea180422727ccb37967b98 | refs/heads/master | 2021-01-23T10:28:49.654273 | 2018-05-09T09:11:30 | 2018-05-09T09:11:30 | 93,061,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from PageObject.SteamActions import SteamHome
from accounts import accounts
accounts_list = accounts()
def test_send_trade(driver):
for login in accounts_list:
if login == 'monte_ua13':
password = ""
else:
password = ""
SteamHome(driver).open_browser()
Ste... | [
"arximed.monte@gmail.com"
] | arximed.monte@gmail.com |
4770757cc653f027b500d6f75168f8318a702d86 | 7f2612e5132e1583e5ba9758f299a8f301f0dc70 | /FB/5-longest-palindromic-substring.py | fb44ee0f8a6db9b0e87b7abf9cf4a48bd884a73a | [] | no_license | taeheechoi/coding-practice | 380e263a26ed4de9e542c51e3baa54315127ae4f | 9528b5e85b0ea2960c994ffea62b5be86481dc38 | refs/heads/main | 2022-07-09T11:22:18.619712 | 2022-06-28T14:55:51 | 2022-06-28T14:55:51 | 447,082,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class Solution:
# Time O(N^2) Space O(1)
def longestPalindrome(self, s):
res = ''
for i in range(len(s)):
odd = self.is_pal(s, i, i)
even = self.is_pal(s, i, i+1)
res = max(odd, even, res, key=len)
return res
def is_pal(self, s, l, r):
wh... | [
"dadac76@hotmail.com"
] | dadac76@hotmail.com |
d3b5e095fa1dab8e9c98895fa11a48312d856b56 | 874f46f4510b321ec3110ac8d5d5e572175c5544 | /Generator_Tests/TestFrec/scripts/generator.py | 94df7463f40e16990b3f6614572ff87accc2eb5a | [] | no_license | JordiEspinozaMendoza/Simulacion | bb271aee0908693ff0e36470dae98216096d9066 | fac1cdf5010a34a853a8b13d93209bcbde616e64 | refs/heads/main | 2023-05-31T14:06:21.329271 | 2021-06-14T02:52:06 | 2021-06-14T02:52:06 | 367,148,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import sys
import os
import pandas as pd
sys.setrecursionlimit(5000)
# X = Semilla
# a = Multiplicador
# c = Constante aditiva
# m = Modulo
def Operacion(X, a, c, m):
Resi = ((a*X)+c) % m
return Resi
def createDataFrame(data):
df = pd.DataFrame(data, columns=["n","Xn","Xn+1","Rn"])
cols = list(d... | [
"jordi8101@gmail.com"
] | jordi8101@gmail.com |
cb4ceece3e859d4af57c7b4bc35b7c12546e1c09 | b329784883875fea0d655f4371549c400ab876a7 | /news.py | 5cc3035a0d6bf571d225ffb8a12fb412c8575b22 | [] | no_license | veekaybee/markovhn | 9ce8b4159c483bbc0629bf9cc51d0eba591bd553 | 99f5eefc292fc511d1f89b1acbf1ba0199245b16 | refs/heads/master | 2021-01-23T18:50:48.906754 | 2015-08-24T11:46:41 | 2015-08-24T11:46:41 | 41,229,413 | 15 | 4 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | import urllib2
import json
#HackerNews API documentation: https://github.com/HackerNews/API
api_url='https://hacker-news.firebaseio.com/v0/topstories.json'
item_url='https://hacker-news.firebaseio.com/v0/item/'
#Pull all story numbers into a Python data dictionary
response = urllib2.urlopen(api_url)
data=json.load(r... | [
"vicki.boykis@gmail.com"
] | vicki.boykis@gmail.com |
ce65095ee46c58e871cd6b80c4cfe769ace6e7a1 | f5f7f8d12956e4bff6e1c5f6fab10b006690f195 | /luffy/settings.py | fe7c34ae1af2839496be8ef590c0c49e0a16121b | [] | no_license | chenrun666/luffy | 1fbee911d1d7f86e5c7b1ed7f47e84f6f1ee9846 | 59f6229e16978ab9c40ef948807c717c2cddaea9 | refs/heads/master | 2020-04-07T16:09:20.306754 | 2018-11-21T08:45:29 | 2018-11-21T08:45:29 | 158,517,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | """
Django settings for luffy project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"17610780919@163.com"
] | 17610780919@163.com |
593c5efa70cba81b2a1c8e74a4bd3a4e8bf6c73c | 1bf512659c750eba27896ad5d1a5ad61fe08c0e4 | /musicrest/apps/api/models.py | 79348bd25ffd3e745eb1e479628b244e86f1bfc0 | [] | no_license | jeremyhilado/python-django-mini-project | fc80976e8576aa1eab9269521131107936bf8502 | 492e301e80266f1a44ba8ba3e5649af4992c836e | refs/heads/master | 2023-08-17T19:43:03.052514 | 2020-06-06T18:13:33 | 2020-06-06T18:13:33 | 261,493,243 | 0 | 0 | null | 2021-09-22T18:58:26 | 2020-05-05T14:22:20 | Python | UTF-8 | Python | false | false | 535 | py | from django.db import models
from apps.authentication.models import User
# Create your models here.
class Artist(models.Model):
name = models.CharField(max_length=255)
genre = models.CharField(max_length=255)
biography = models.TextField(blank=True)
created_at = models.DateTimeField(auto_now_add=True)... | [
"jhilado89@gmail.com"
] | jhilado89@gmail.com |
23fbea60c2bea452a414dcf5f255cd4eabdab38a | 437e905d8c214dc25c559b1dc03eaf9f0c85326f | /is28/vyacheslavleva28/lab6/function.py | 1522faa137dc1fcb8f84d4cc4b96a551fd47870d | [] | no_license | AnatolyDomrachev/karantin | 542ca22c275e39ef3491b1c0d9838e922423b5a9 | 0d9f60207e80305eb713fd43774e911fdbb9fbad | refs/heads/master | 2021-03-29T03:42:43.954727 | 2020-05-27T13:24:36 | 2020-05-27T13:24:36 | 247,916,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | def vvod():
a = []
for i in range(10):
x = float(input())
a.append(x)
return a
def rachet(a):
res = True
for i in range(0,len(a)-1):
if a[i]> a[i+1]:
res = False
return res
def vyvod(data):
print(result)
data = vvod()
print(data)
result = rachet(da... | [
"you@example.com"
] | you@example.com |
7e595d3e782adea8924f7a1dd1432bd467b968e7 | 6ede75099fc38a682e030d70051389ea182d6cc2 | /ともき本番/incomeexpensesapi/menu/migrations/0028_foodstuff_myrecipe_usereat.py | b1c52866aa49cd76e4c04d5b33843c23ec472259 | [] | no_license | hangtran93tk/team06 | 0d86e59be866d7f6bda1b6c81f725ca1f80eba0f | 89000be20c18d3b9610c240b25c7c1944fc68d6d | refs/heads/master | 2023-03-12T11:58:03.802711 | 2021-02-26T03:51:36 | 2021-02-26T03:51:36 | 279,473,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | # Generated by Django 3.0.5 on 2020-12-20 06:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('menu', '0027_menuinfo'),... | [
"18jz0129@jec.ac.jp"
] | 18jz0129@jec.ac.jp |
6d99627b90704b1feee0b966f1164aaffdfc291c | ad0e6decddcbd6bafce08075c04fcc5d1824513e | /abs_try.py | 50b59bf80a1f14f6df5525812e0a4ffb13972103 | [] | no_license | sihanj/nlp_test2 | dc95cf087dfd9a799e83a7fb4d8b543e51153dcc | 4cd10b90ebe19724fa17f254be62574bb069987a | refs/heads/master | 2020-03-25T20:54:16.004753 | 2019-04-22T04:46:05 | 2019-04-22T04:46:05 | 144,150,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | import re
import jieba
import networkx as nx
from sklearn import feature_extraction
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
#分句
def cut_sentence(sentence):
if not isinstance(... | [
"noreply@github.com"
] | sihanj.noreply@github.com |
11c23983d7ab4baebc227f5160e0120c3f42e04c | c0397a0617f2603dc5dbd0af44462e561a52ea18 | /views.py | 1b14f569ef0fd7a8ea1427db41bf9e8082f69ff5 | [] | no_license | PujariSrinivas/Django | c865dddfaef3e7221597cf9f5e911241300d2825 | e94333926daef4a478ffa83c0f6c997700427696 | refs/heads/master | 2023-06-05T19:14:55.633274 | 2021-06-25T04:50:41 | 2021-06-25T04:50:41 | 378,155,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request):
return HttpResponse("Hi Good Evening to All...")
def htmltag(y):
return HttpResponse("<h2>Hi Welcome to APSSDC</h2>")
def usernameprint(request,uname):
return HttpResponse("<h2>Hi Welco... | [
"noreply@github.com"
] | PujariSrinivas.noreply@github.com |
e2450988f82302bcbaff58abb9d993b553804b16 | 0adbbf6092f5444b623ccbf3b81206d027c96b68 | /23.py | ed2e63159145735c587c65da81d422e54ba334cf | [] | no_license | c1c51/python-crap | bc3fe076e42aa0f5843879b7af56314b09e5f931 | f16782fca27ac616e043b5e1c71da8fddef0f848 | refs/heads/master | 2021-05-10T09:55:38.465484 | 2018-01-25T17:19:57 | 2018-01-25T17:19:57 | 118,942,213 | 0 | 0 | null | 2018-01-25T17:20:37 | 2018-01-25T17:02:40 | Python | UTF-8 | Python | false | false | 125 | py | w=int(input("width?"))
l=int(input("length?"))
r=int(input("radius?"))
print((w*l)-((r*r)*3.14159265358979323846264338))
| [
"noreply@github.com"
] | c1c51.noreply@github.com |
3263908d9d30879e4febda3d96c3f7a74b399214 | 9a21850ff752b6bd148a9dfbadd210419c2d4a6e | /posts/posts.py | 39bb7bcbfa0e3cbcd84aaeef44c77b06619a2603 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | importcjj/Posts | 7d3a9a04f829e92027c310f0daf8be259d4a91a9 | fc2abe1c48fa09af820a25c4cc00520253a6b7f1 | refs/heads/master | 2021-01-10T09:43:07.401682 | 2016-04-20T05:24:36 | 2016-04-20T05:24:36 | 49,366,691 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,705 | py | # -*- coding: utf-8 -*-
import smtplib
import socket
from contextlib import contextmanager
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEApplication
class PostSMTP(smtplib.SMTP):
def __init__(self, sender, alias=None, host='', port=0,
... | [
"importcjj@gmail.com"
] | importcjj@gmail.com |
06aae58ab947c90ed7bc942a02ffa420afd0287b | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_6/models/network_interface_trace_get_response.py | 711d740178ee303c6379e1c1ec389c67bd15cca7 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,335 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.6, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
e50d54beea6551c36fdd72ef808ecc04b47ee774 | 1445a2e276630a3ba30522a7efd8bd35387ac525 | /sheets/getPointData.py | e5065f4d3382872d7b3f212385503e5bf9432af4 | [] | no_license | Wu-jiaming/score | 7cbc071fc28b2c909c477abe319277f0ccd4e7f4 | e8b679ad8e88164de2070e1d08e92ab24f440aa8 | refs/heads/master | 2020-03-22T15:57:10.492895 | 2018-09-02T15:00:48 | 2018-09-02T15:00:48 | 140,291,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | """
获取结点信息,保存为【(),()】格式,
对数据进行排序
格式转换为[{key:value}]格式,目的是分组
分组之后,自个组的key,value保存成[[key],[key]],[[value],[value]]
"""
import re
from operator import itemgetter
from itertools import groupby
"""
获取相关节点
"""
def get_point(sourcePath):
print("sourcepath:", sourcePath)
fR = open(sourcePath, 'r+' , enc... | [
"754205661@qq.com"
] | 754205661@qq.com |
8e1342c5a5fb325ae9a8dd315f48ea850dd6e3fb | 9f9fa056d9f9a9a1671fd76009aaabeef9ce58d6 | /output/wwinp_plot.py | a64392e3395afc046326b7dcf81e4ff7429f873d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | py1sl/pyne_based_tools | 8a6f9172125bcf24698d2c3d0a3ef5b493eaea1c | 92bd8865b9e9de78d24a2e635e0f2e826bad5e61 | refs/heads/master | 2021-01-19T03:13:11.600946 | 2017-09-12T09:49:35 | 2017-09-12T09:49:35 | 55,595,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from pyne import mcnp
from itaps import iBase, iMesh
import h5py
import sys
from subprocess import call
def convert_wwinp(argv):
"""simple conversion of wwinp to vtk via h5m """
in_path = argv[0]
out_path = argv[1]
wwinp_mesh = mcnp.Wwinp()
wwinp_mesh.read_wwinp(in_path)
wwinp_mesh.mesh.save(... | [
"steven.lilley@stfc.ac.uk"
] | steven.lilley@stfc.ac.uk |
b9b22ed2ac4565940e04c8fac0f36e72bf88ef75 | eb61d62ca1f6f0123e3771105f5dfbbd6115138d | /.history/23-08-21_20210912011408.py | d242edf35564cc66ff35c5dd66a540fa6f9fc0b8 | [] | no_license | Alopezm5/CORRECTO-2 | e0f14bcc3a88c0e222d10e3261e68532008bc42e | 223613f1fb04dce3fac9f82f243cb2f22fe100f3 | refs/heads/main | 2023-07-29T06:52:48.147424 | 2021-09-12T20:33:27 | 2021-09-12T20:33:27 | 388,995,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | class Empresa:
def __init__(self,nom="El mas barato",ruc="0999999999",tel="042971234",dir="Juan Montalvo"):
self.nombre=nom
self.ruc=ruc
self.telefono=tel
self.direccion=dir
def mostrarEmpresa(self):
print("Empresa: {:17}, RUC: {}".format(self.nombre,self.ruc))
clas... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
b6075930272e040694012e964f04ec7d4bd71de8 | 7b314c39de4851891f334017f10698b30edbf610 | /main.py | 527531e35463c73e1899b1f65945dd95519f8a2a | [] | no_license | angelolihas/testapp1api | 8720d6e0b4bbdeb4f048583f64ad3fd33eb9e371 | dfa12a8c83d00eaa6d060997dd759580a7956bf6 | refs/heads/master | 2023-01-07T03:10:22.156623 | 2020-11-12T23:49:40 | 2020-11-12T23:49:40 | 312,423,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import requests
def get_request():
response = requests.get('URL')
json_response = response.json()
print(json_response)
return json_response
if __name__ == '__main__':
get_request()
| [
"angelo.lihas@gmail.com"
] | angelo.lihas@gmail.com |
e4a7172c8a987feebc4e08c448cc4dc8bfc40b73 | 913334a96677deb9a199d4a7244a4fa56e989fa7 | /5flask_demo/modles.py | b90abf5bc7e9a32e86e2ee62ce28a818258daaff | [] | no_license | KangZhengweiGH/flask_demos | 7bd4b64f252055017f512f6fb348c885c377f241 | 1a0c621c8f0bd44fd583b026ef575990b5dda706 | refs/heads/master | 2020-05-16T07:28:24.055118 | 2019-05-08T01:00:30 | 2019-05-08T01:00:30 | 182,879,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | # coding=utf-8
from extend import db
class User(db.Model):
__tablename__ = 'user'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String(12), nullable=True, unique=True)
telnumber = db.Column(db.Integer, nullable=False, unique=True)
password = db.Colum... | [
"email@1101186901.com"
] | email@1101186901.com |
e7a3ca9fa15a77897aa6fde5e7b69ee9bb2f853d | ac350894488b34318c11a65d35a0f8fdf69b7d50 | /products/migrations/0001_initial.py | 545343aa9abd1f1393c114e71c6c8e1aed73463f | [] | no_license | phrac/onemgin | 508f052304ddbc03f45e994ebe33769ae30d9336 | 7a029dbca1bd2725ceabc0741c7cfb47290aadb7 | refs/heads/master | 2021-01-16T19:31:10.929508 | 2015-09-08T23:53:43 | 2015-09-08T23:53:43 | 12,391,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Barcode',
fields=[
('id', models.AutoField(verb... | [
"derek@disflux.com"
] | derek@disflux.com |
f9783dda5c1663e07679d767cb045a425f767f67 | 4d5adf020161db482e24ebe353c70567bb14a1a1 | /propulsion/thrust_force.py | d428164ff1452e54121c2c0d3d3b5d6b1f3b8a11 | [] | no_license | leamichel97/prop-solid | 1403b9abd6a73fda6906dfe5de5543e59d2508ad | c81bf700ee07b304d550c47a5afa85e476ecb38d | refs/heads/master | 2022-12-18T12:50:54.042165 | 2020-09-03T10:16:46 | 2020-09-03T10:16:46 | 253,484,751 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | # -*- coding: utf-8 -*-
"""
thrust_force.py generated by WhatsOpt 1.10.1
"""
import numpy as np
from propulsion.thrust_force_base import ThrustForceBase
class ThrustForce(ThrustForceBase):
""" An OpenMDAO component to encapsulate ThrustForce discipline """
def compute(self, inputs, outputs):
""" T... | [
"leamichel1497@gmail.com"
] | leamichel1497@gmail.com |
862a41c8dfac8339006c6b0313a9a71788c0ef52 | 1fcb40f1f2a2c6b4f5ab6c612b900c7eb9517502 | /tf-tutorials/multigpu/multi_gpu_cnn.py | 1954bcca56e4a3d6e52d3c5b5927bba9e28deb39 | [] | no_license | prativa/ai-artist | 3466b7b160180d207c94429fbec2bd33b0da53c8 | ee98af787233889ed92cc84ce66104e3f7f6e84a | refs/heads/master | 2020-04-15T19:11:45.467297 | 2018-11-29T20:22:48 | 2018-11-29T20:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,137 | py | import tensorflow as tf
import os
import numpy as np
import math
from classification.skin import data_loader
import time
import random
from sklearn import metrics
_IMAGE_SIZE = 224
_IMAGE_CHANNELS = 3
_NUM_CLASSES = 2
_BATCH_SIZE = 50 # this batch size will be for each gpu, if multi gpu setup used it will consume batc... | [
"milton.2002@yahoo.com"
] | milton.2002@yahoo.com |
6b7bcedc92889fdfac3fae2f3865e4e431ac3a06 | c381e484986b08022be508f285cc142017680319 | /mycats.py | 6c7f2ff8b22648624d73da15fc6a121f54af7a82 | [] | no_license | kasalak/automate-the-boring-stuff | 1060d4919f23b25c6653fd55ef09c436bb7ea2bd | e205bac5cd629f52af11e5ace6475e764612498e | refs/heads/master | 2021-01-21T13:53:14.332726 | 2016-05-10T17:24:04 | 2016-05-10T17:24:04 | 51,721,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | mypets = ['Zophie', 'Pooka', 'Fat-tail']
print('Enter a pet name: ')
name = input()
if name not in mypets:
print('I do not have a pet named ' + name)
else:
print(name + ' is my pet.x`')
| [
"karthik.kasala@gmail.com"
] | karthik.kasala@gmail.com |
72dc217f031f0e0fe7fb784bc8ac8024f1dc926e | 340d83cbefd7a9c88b18ff25f6f5dd90e1131ad6 | /setup.py | 54baf8251ca1cb7f55ed33f6ffb2465951c6bfb5 | [
"MIT"
] | permissive | PTC-CMC/calculator | 50304326acfd501a6503d59ad81cc3502b21d934 | e89ab40336ebe57e3a2c272281f9160a212e7055 | refs/heads/master | 2022-10-03T19:21:48.502774 | 2020-06-04T19:54:30 | 2020-06-04T19:54:30 | 269,222,035 | 0 | 5 | MIT | 2020-06-04T19:54:31 | 2020-06-04T00:17:00 | Python | UTF-8 | Python | false | false | 232 | py | from setuptools import setup
# Originally an idea and implementation by Matt Thompson
# https://github.com/mattwthompson/calculator
setup(
name='Calculator',
version='0.0',
packages=['calculator',],
license='MIT',
)
| [
"justin.b.gilmer@vanderbilt.edu"
] | justin.b.gilmer@vanderbilt.edu |
d195b352ac21be2ab82b0a6a1eedc768c5b2782d | 7abdff02d94848c1d5a5f1926596b7e72e47b5c5 | /.ipynb_checkpoints/mission_to_mars-checkpoint.ipynb | 76356d246a3c06428cd519746747a599ad49b2f1 | [] | no_license | rsimon5/Mission-to-Mars | 4edab055471d2cdff35874fd4fb75d86549064ac | bb21596ddb5db94e6872af41db9b40dfa0599bef | refs/heads/master | 2020-06-01T06:34:02.836899 | 2019-06-22T14:53:03 | 2019-06-22T14:53:03 | 190,680,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789,309 | ipynb | {
"cells": [
{
"cell_type": "code",
"execution_count": 64,
"metadata": {},
"outputs": [],
"source": [
"from bs4 import BeautifulSoup\n",
"from splinter import Browser\n",
"import requests\n",
"import pymongo\n",
"import pandas as pd \n",
"import time\n",
"import datetime"
... | [
"rsimon5@gmu.edu"
] | rsimon5@gmu.edu |
491dc44ae36dbbbd2a8115d6c4c80ac79186d685 | 5ec09f479c7a680f77d2b8e5da675e24daf82da7 | /callback_plugins/fix_ssl.py | 330fc989837e7a72fe813929f80bb61a65438884 | [] | no_license | tbuchi888/vagrant-yaml-ansible | 1f2d3bcb5d35d3d1e72c1cda2730bc761d33e812 | 0837e62a3a835d94cb9200160548034f26e3a991 | refs/heads/master | 2021-01-10T02:52:51.389484 | 2016-03-19T16:05:58 | 2016-03-19T16:05:58 | 54,269,456 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | import ssl
if hasattr(ssl, '_create_default_https_context') and hasattr(ssl, '_create_unverified_context'):
ssl._create_default_https_context = ssl._create_unverified_context
class CallbackModule(object):
pass
| [
"tbuchi888@users.noreplay.github.com"
] | tbuchi888@users.noreplay.github.com |
de7e14bb4a48b4fa23f12d9b6ee34dd226ad6ecb | 843af55f35c54d85bf6006ccf16c79d9a5451285 | /25 - more_lists.py | 8af52312523c5eb4245f871af28a73e7de55b267 | [] | no_license | estebantoso/curso_python_udemy | 2a5989351921d54394b61df1e8089c58088a01cc | 0f4deba3b0efbc59159aaeb49ffd95c6724c2dd2 | refs/heads/master | 2020-05-22T19:00:36.599701 | 2019-05-23T14:49:31 | 2019-05-23T14:49:31 | 186,485,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | friends = ["A", "B", "C"]
print(friends[0])
print(friends[-1])
print("A" in friends) | [
"estebantoso@gmail.com"
] | estebantoso@gmail.com |
ddc87bfca79fabe3d914696f58497118d2d0d193 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_cq_wcm_mobile_qrcode_servlet_qr_code_image_generator_info.py | d51b3347b77c7b18680b18281fcd2bb012c5ead3 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,359 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
06a103582032ffff0d67b7ec6ac252dc5b255a8d | 91d48932143ced234aa13b35a597b809c757e928 | /cyclegan/load_data.py | ca9b07ce1717e3fe5c4769447ec1845be6ef5d6b | [] | no_license | starbucksdolcelatte/FittingroomAnywhere2 | 9b86e76b592960c1350f54ace84a2e0cc64ab7e7 | 147e04eb8f326f25bafdb917e1b1d4974798d230 | refs/heads/master | 2020-07-11T17:16:38.331533 | 2019-10-11T03:18:34 | 2019-10-11T03:18:34 | 204,602,862 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,698 | py | import os
import numpy as np
from PIL import Image
from keras.utils import Sequence
#from skimage.io import imread
def load_data(nr_of_channels, batch_size=1, nr_A_train_imgs=None, nr_B_train_imgs=None,
nr_A_test_imgs=None, nr_B_test_imgs=None, project_dir = '', subfolder='',
generator=Fals... | [
"seoyoon9535@gmail.com"
] | seoyoon9535@gmail.com |
a96d952d1a399291f4734fc2da61c0f1807e72c0 | 72624033973a14ccf943e7a4cbfb51b88e8db3f0 | /lesson/json_parsing.py | 1959ad43c05cae4bf9b1846d40cf2762a65cd017 | [] | no_license | brskasimova/LearnQA_PythonAPI | 4441690bc92f98899e1958755734877ee3f264f8 | 98bdf01c782ce7d3fc6c88a183001b956d87b2b8 | refs/heads/master | 2023-06-23T20:20:15.340836 | 2021-07-31T19:24:22 | 2021-07-31T19:24:22 | 385,873,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import json
json_text = '{"messages":[{"message":"This is the first message","timestamp":"2021-06-04 16:40:53"},{"message":"And this is a second message","timestamp":"2021-06-04 16:41:01"}]}'
obj = json.loads(json_text)
key = "messages"
if key in obj:
value = obj[key][1]
print(value["message"])
else:
pri... | [
"brskasimova@gmail.com"
] | brskasimova@gmail.com |
e179478d80e77a3260a018b7c4f15a9b826bef9c | 3f364166a2e89c57c8f823d68568eea84920817e | /comment/migrations/0001_initial.py | b76d98a708b72b9dcf6c574f34888243be4413ef | [] | no_license | damondengxin/forum | 84f66b90c8660e43c5f6fccd89d267c083c0a77f | 8fd4337cb63a63f7aaf108cfeba90c7043d02e83 | refs/heads/master | 2020-04-12T05:37:48.748073 | 2016-10-13T07:27:44 | 2016-10-13T07:27:44 | 64,310,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-01 01:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('article', '0003_auto_20160901_0948'),
... | [
"air@MacbookdeMacBook-Air.local"
] | air@MacbookdeMacBook-Air.local |
94e3faddb581f06f82806b5938d8e3a57f3f58da | 4c1360643fa444e6c96e4cd1af709662b79f632c | /api/tests/test_settings.py | 0efab65543bc96c3e3d612389cae227212181854 | [] | no_license | pascalchevrel/shipit | aa02e8fbdf96ece798a8d1e323e014b7c1b4b8a8 | 273c14a2631a2e7166ae654c4a8a7cdf57286018 | refs/heads/master | 2023-03-16T08:15:52.319768 | 2021-04-20T10:29:25 | 2021-04-20T10:29:25 | 216,795,185 | 0 | 0 | null | 2023-03-07T13:02:19 | 2019-10-22T11:18:02 | Python | UTF-8 | Python | false | false | 3,380 | py | import os
def flatten(lst):
return [item for sublist in lst for item in sublist]
def test_scopes(monkeypatch):
FAKE_ENV = dict(
APP_CHANNEL="development",
TASKCLUSTER_ROOT_URL="fake",
TASKCLUSTER_CLIENT_ID="fake",
TASKCLUSTER_ACCESS_TOKEN="fake",
AUTH_DOMAIN="fake",
... | [
"noreply@github.com"
] | pascalchevrel.noreply@github.com |
ee4b23bbf32042a37a0d791f5b2ca1db58e8570e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2741/60666/264322.py | a8362f4be09e9d763b52af7aceca5c10738a7630 | [] | 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 | 257 | py | nums=eval(input())
if len(nums)<2:
print(nums)
else:
count=1
temp=1
for i in range(len(nums)-1):
if nums[i]<nums[i+1]:
count+=1
else:
temp=max(count,temp)
count=1
print(max(count,temp)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
17e6f75ed18e0677f37465f1e06fd694ac1f207c | 7790e3a3f2de068fef343585ec856983591997a2 | /employee/templatetags/custom_math.py | f84010231a266d25ecf80f4bd85b0e1e5c8705ff | [] | no_license | mehdi1361/tadbir | ce702a9a02672826f0bf06e8d5cf0644efe31949 | c0a67710099f713cf96930e25df708625de89a6f | refs/heads/master | 2021-06-04T07:35:37.624372 | 2018-07-23T05:25:04 | 2018-07-23T05:25:04 | 148,870,028 | 0 | 0 | null | 2019-10-22T21:40:28 | 2018-09-15T04:40:26 | HTML | UTF-8 | Python | false | false | 484 | py | from django import template
from django.db.models import Sum
from bank.models import File
register = template.Library()
@register.simple_tag
def add(a, b):
return a + b
@register.simple_tag
def count_files(user):
files = File.objects.filter(employees__employee=user)
return files.count()
@register.simp... | [
"mhd.mosavi@gmail.com"
] | mhd.mosavi@gmail.com |
3402c06780d9b02619086786a13c693ba57cb730 | 8e936ff1b7b1dfe5cce859691cd45037552c1568 | /kiasa.py | 37025b2540366f07b2cdd80a600f1d55c1a8b217 | [] | no_license | mortimervonchappuis/Kiasa | be0db9950ea5ffa536d3f28baba72a35f5855a9d | b79743066bdbb159ef3d9a9fce1b505fd2c3c000 | refs/heads/master | 2020-12-21T00:44:09.135543 | 2020-02-02T22:45:25 | 2020-02-02T22:45:25 | 236,256,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,062 | py | import pathos.pools as p
import chess.polyglot as opening
from random import shuffle
from copy import deepcopy as copy
from board import *
from time import time, sleep
from math import exp
class Kiasa:
def __init__(self, opening_book=True, variation=True, depth=3, offset=3):
self.chess = Board()
self.opening_boo... | [
"mortimervonchappuis@protonmail.com"
] | mortimervonchappuis@protonmail.com |
86cbdae109b4c825963487d37ab3fd54f673eda2 | 0ec9e67e3d11982e1c6eb23375490217f9960dd3 | /UCB_Python/Week3_Python1/week03 day3 python1/07-Ins_Conditionals/conditionals.py | ac2d92ce67378b997e17a0524bbf2d5d383dba0e | [] | no_license | yamscha/repo_class | 53fb317394b3a469c1b8f1d5dfbcf89982b4f0c4 | d8080ea15c2387789f89292412a7a7a047df1a21 | refs/heads/master | 2020-05-02T10:59:29.839497 | 2019-03-27T03:54:50 | 2019-03-27T03:54:50 | 177,914,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py |
x = 1
y = 10
# Checks if one value is equal to another
if(x == 1):
print("x is equal to 1")
# Checks if one value is NOT equal to another
if(y != 1):
print("y is not equal to 1")
# Checks if one value is less than another
if(x < y):
print("x is less than y")
# Checks if one value is greater than another
if(... | [
"yamini@github.com"
] | yamini@github.com |
bb07eb8c3aa2bc5fe116eb4b06c0d8860091b772 | 5175cba1f24acd31db04bdf130d2da69eee31336 | /tag_OG_text_with_XML_enit.py | 0d42bb9e4b12848ea3ca2d4bbbedc3ea6f60fe9d | [] | no_license | magpie1984/gv_info_extractor | f5ceb6a04368f5f918ed16749420afda866162f9 | 6fff8b4ac144a1feca57f310f0dbfcaaafc8cfbf | refs/heads/master | 2021-08-23T13:02:56.567244 | 2017-12-05T00:49:18 | 2017-12-05T00:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,935 | py | import xml.etree.ElementTree
import sys, json, re
import traceback
import os
from time import sleep
from unidecode import unidecode
reload(sys)
sys.setdefaultencoding('utf8')
def load_xml(input_filename):
xmldoc = xml.etree.ElementTree.parse(input_filename).getroot()
return xmldoc
def gather_entites(xmldoc):
... | [
"mike.partin@gmail.com"
] | mike.partin@gmail.com |
f8829530e57c7661aff17909cf2af499c0580ec3 | 40f82a8341c7912540644fe5b51dc6e455ea8cb2 | /shares/admin.py | 6a9f67d06537c324008251fffef486777ce9b521 | [] | no_license | persionalWeb/persionalWeb | 3765a3329ba34b4866774dc8167613e4a452043f | e80b1b92a1c55369d1f121d609b90f7edf47d588 | refs/heads/master | 2022-07-07T02:54:19.517215 | 2020-05-17T04:07:02 | 2020-05-17T04:07:02 | 258,783,764 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from django.contrib import admin
from .models import Klins,Stocks
class KlinsAdmin(admin.ModelAdmin):
list_display = ['id','fid', 'code', 'name', 'short_data', 'flag', 'addtime']
search_fields = ['name']
list_filter = ['flag']
list_per_page = 10
ordering = ['id']
class StocksAdmin(admin.ModelAdmin)... | [
"63894777+niexingang123@users.noreply.github.com"
] | 63894777+niexingang123@users.noreply.github.com |
616cf3654526e0f3ecb4547651c5536bb2e4bc82 | 9c5116ab446a0fba4dfaaa1685cbd3a1042dc054 | /kubernetes/test/test_v1_image_stream.py | 3129b06ad6d6ea315c9b6d88a781b4978cc33449 | [
"Apache-2.0"
] | permissive | caruccio/client-python | fc11a354ce15507c94308e35b6790b6776e01e6e | cb65186027ce68beedcd7752c488b8e3b5c0968e | refs/heads/master | 2021-01-25T08:18:45.601502 | 2017-06-08T13:14:06 | 2017-06-08T13:14:06 | 93,747,698 | 0 | 0 | null | 2017-06-08T12:37:32 | 2017-06-08T12:37:32 | null | UTF-8 | Python | false | false | 4,144 | py | # coding: utf-8
"""
OpenShift API (with Kubernetes)
OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is... | [
"mateus.caruccio@getupcloud.com"
] | mateus.caruccio@getupcloud.com |
9057ed04cf369d4a838d9fe112ebf8c99e9ee024 | 572b5639ceccd7d5b0551af2376283c126663d45 | /account/forms.py | 47c4a988e56e3c2a0f7ed0ec88900f6cf615d4c9 | [] | no_license | luoying1105/myblog | 348cb363413f917312d8507fb04ae8fb235bce59 | 9f13d228772027797c1b915c1a19b5b5841bd97b | refs/heads/master | 2020-07-02T22:08:32.771781 | 2016-11-29T02:09:45 | 2016-11-29T02:09:45 | 74,278,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | from django import forms
from django.contrib.auth.models import User
from blog.models import Profile
class UserEditForm(forms.ModelForm):
class Meta:
model = User
fields = ('first_name', 'last_name', 'email',)
class ProfileEditForm(forms.ModelForm):
class Meta:
model = Profile
... | [
"411426150@qq.com"
] | 411426150@qq.com |
50aa9ec1e8375790464d80b6b8c2427b866fb928 | 5e9d846c15a736f6ffdbeb567184c51267af76f7 | /create_sql_engine.py | 786e44345cb7b48045e5fe5488456649804ebba5 | [] | no_license | soffenberger/resistor | 82f5e6bf47bbca123a6985d8165fbf894ae50255 | b9146c30488a16d19f82196afc7f9669fad7b001 | refs/heads/master | 2016-09-12T16:29:12.243786 | 2016-05-16T05:55:12 | 2016-05-16T05:55:12 | 58,840,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | import os
import sys
import sqlite3 as sql
import numpy as np
import io
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
from sqlalchemy import *
Base = declarative_base()
class img(Base):
__tablename__ = 'img'
id = Column(Integer, ... | [
"soffenbe@asu.edu"
] | soffenbe@asu.edu |
74e35392f5c4e36cd4980a15661af109baa74410 | 516b2b403bf9033fe4fedbab014b09710b21efd8 | /mdts/mdts.py | 276c7c6a84fff8ebb04f5ac5bc9d6d9c772bbdba | [] | no_license | usccolumbia/MDTS | 77f4960a975b1b4f0ff2425e1dee5c23deafaba5 | 56c97a56eb3a9d48541998b60af43f385377fdbe | refs/heads/master | 2020-03-31T11:36:55.420586 | 2018-02-21T08:12:15 | 2018-02-21T08:12:15 | 152,183,835 | 1 | 0 | null | 2018-10-09T03:44:07 | 2018-10-09T03:44:07 | null | UTF-8 | Python | false | false | 14,498 | py | from __future__ import division
from node import Node
from result import Result
import collections
import random
import numpy as np
import sys
import combo
import math
import ast
class Tree:
def __init__(self, get_reward, positions_order="reverse", max_flag=True, expand_children=1,
space=None, ca... | [
"thaer.dieb@gmail.com"
] | thaer.dieb@gmail.com |
33c679ef31d8a55ff6125c693fa10ac8d9f24460 | 795df757ef84073c3adaf552d5f4b79fcb111bad | /hypercube/hypercube_integrals.py | d41fbf8b960343823c0f1eb202c112bb2e36bffd | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,020 | py | #! /usr/bin/env python3
#
def hypercube01_monomial_integral ( m, e ):
#*****************************************************************************80
#
## HYPERCUBE01_MONOMIAL_INTEGRAL: integrals over the unit hypercube in M dimensions.
#
# Discussion:
#
# The integration region is
#
# 0 <= X(1:M) <= 1,
#
#... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
5efdcd21a7640545a98bab365bbcc45294f53786 | bafb1d32f798e69b2d811495f615f36a8761d776 | /simplemooc/core/urls.py | 7b54cb2c9250c416d5a19b1a41e4de9da8f5d8da | [] | no_license | andreylucasantosss/TCC-Evolution | 8c02eadd798ba8f7d773c8adcd5417efb0734f22 | 94a9fb15ba4ff0c6c4ecc92444840e0d8365ba39 | refs/heads/master | 2022-12-10T00:47:00.385427 | 2019-12-06T18:12:57 | 2019-12-06T18:12:57 | 216,825,473 | 0 | 0 | null | 2022-11-22T04:17:51 | 2019-10-22T13:49:43 | HTML | UTF-8 | Python | false | false | 190 | py | from django.conf.urls import include, url
from simplemooc.core import views
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^contato/$', views.contact, name='contact')
] | [
"andrey.santos.as1@votorantim.com"
] | andrey.santos.as1@votorantim.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.