blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4bab7e78a678391ef6ed711951778196fbe7859f | bd21a9c855a43f2444db3f6157144bca871b0b96 | /CTF/redpwn/2020/rev/smart-solver/foo.py | 133f6f01901ae2f83e93c48952f6522b778c54a9 | [] | no_license | ImFlo/IWannaDoThePwn | 65497ebe90def3ea0a97b1f01dab14ce6779a07f | 849f2f55f0ed23151969b3c1fee6dddb723750f8 | refs/heads/master | 2022-11-14T09:06:31.828097 | 2020-06-29T16:15:10 | 2020-06-29T16:15:10 | 273,586,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py |
for i in open("./clean.txt").readlines():
print "s.add(%s)" % i.strip().replace("<=", ">")
| [
"rrld8649@EB-L-NRS000139.ad-subs.w2k.francetelecom.fr"
] | rrld8649@EB-L-NRS000139.ad-subs.w2k.francetelecom.fr |
887ee16e21b2735985d1714d54e0f8e80dcf2573 | b854be02993510805e3aa0335ad671c980d3d36d | /djangocms_bootstrap4/fields.py | 369e61f4955503517775f79bf52064ca640d6fce | [] | no_license | sebbschbo/djangocms-bootstrap4 | c8f4af03e1493f70cca776dfe41566275fa017a1 | 0978a36ba9a1a38797742e42ba3fbeb632dafa56 | refs/heads/master | 2020-03-20T04:15:44.882830 | 2018-06-12T07:08:38 | 2018-06-12T07:08:38 | 137,176,898 | 2 | 0 | null | 2018-06-13T07:11:44 | 2018-06-13T07:11:43 | null | UTF-8 | Python | false | false | 1,663 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from djangocms_attributes_field import fields
from .constants import TAG_CHOICES
class AttributesField(fields.AttributesField):
def __init__(self, *args, **kwargs... | [
"angelo.dini@divio.ch"
] | angelo.dini@divio.ch |
7b46385cb788b73f8e339e4f3a72176c99050515 | 599dbb965344c2b02b556177704a899921d2df17 | /mnist_train.py | bcd24e057ddcf7cfb9ee432c309cba971aebc151 | [] | no_license | lizhaofu/CV-Learning | 6db3d47e586f69bab80cc92fb4b1975d841a8900 | 805376955bcb933d77443debfafffbe951b682d4 | refs/heads/master | 2023-02-03T08:48:22.780818 | 2020-12-18T09:05:21 | 2020-12-18T09:05:21 | 322,217,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,503 | py | #!/usr/bin/env python3.6
# -*- coding: UTF-8 -*-
"""
# @Company : 华中科技大学
# @version : V1.0
# @Author : lizhaofu
# @contact : lizhaofu0215@163.com 2018--2022
# @Time : 2020/12/17 09:37
# @File : mnist_train.py
# @Software: PyCharm
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
import tor... | [
"lizhaofu0215@163.com"
] | lizhaofu0215@163.com |
dced296a4a4ca278a3595b72c5810030101db1d0 | 99625e47ab37c6807c1a2613b3638847a17e4652 | /12 User Registration/app.py | 127c127970fe45cb99e1fe1303734bade08ab7fe | [] | no_license | cs-classroom/Flask-course-bangla | fa3b2cc9a7c93eb234e2974ecc40612159ef7d8f | 751d8cd10b858f3596f487c3c0d745d0ef51154c | refs/heads/master | 2020-04-18T17:47:15.033389 | 2019-01-26T08:03:13 | 2019-01-26T08:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | from flask import Flask, session, render_template, request, redirect
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.csclassroom
app = Flask(__name__)
app.secret_key = "dwhdiu2h2903e"
@app.route("/")
def home():
return render_template("home.html")
@app.route("/<string:name... | [
"csclassroom89@gmail.com"
] | csclassroom89@gmail.com |
9627c26637613af6f7b49afe7c15895e78a80623 | 6254fbdc8fdc29d7f176db16df343c344b0cc367 | /titanic/gbdtlr.py | 94fb5bdca3fcd8cab6ff271c5ff02b86c4f0a97e | [] | no_license | fagan2888/kaggle-3 | 34972c7dc502cdf56b87b11d7a884ff7e35210fd | c2d991aa14c46a2648c32086d11641f434685789 | refs/heads/master | 2021-04-22T15:18:21.738173 | 2016-07-20T02:04:27 | 2016-07-20T02:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,706 | py | # coding:utf-8
import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.preprocessing import OneHotEncoder
from sklearn.cross_validation import train_test_split
from sklearn.metrics import roc... | [
"zuoyuan@meituan.com"
] | zuoyuan@meituan.com |
44562864977c76dfdc6620d99fc6f5869672dd59 | 7977b939a6093d07c00f0162d12e151b8c334737 | /client/flexx_app/widgets/game/game_canvas.py | 836b97f13454a0bf0c0c2abe3885cfec54f26fc5 | [] | no_license | aramperes/code-jam-3 | 0dc394877f44d0df7131edd5fec8a2f5ced98e90 | 9136d200a96aa0d26120122d4a633ed2d0f4df83 | refs/heads/master | 2022-02-28T07:42:36.577636 | 2022-02-08T00:41:56 | 2022-02-08T00:41:56 | 155,659,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from flexx import flx, ui
class GameCanvasWidget(ui.CanvasWidget):
client = flx.Property()
def init(self):
super().init()
self.apply_style({"width": "800px", "height": "600px"})
| [
"momothereal.mc@gmail.com"
] | momothereal.mc@gmail.com |
a5c206b927f4121b492331860023e0e648d302d6 | 7da2591be667d51ad24dae8b65cbd6ba959b1a14 | /upload-to-dropbox.py | 5168fb96291e99bc2e167e2326d8260307a5efe7 | [] | no_license | EmbeddedSystemClass/FinalProject30402 | 8268a55ee2f39d995f09db2b6ff27cfa12a6ad84 | 21c86da4106424dbe32b36b8bde6a5ad7d811e2a | refs/heads/master | 2021-05-18T13:29:47.946375 | 2016-12-31T13:13:44 | 2016-12-31T13:13:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import dropbox
import datetime
# Usage:
# python send-sms.py StringToSendAsSMSText
#
# SECURE MODIFICATION PROCEDURE
# 1. Check out the latest version of this file from the Github project
# 2. Edit this file to add the appropriate generated access token below
# 3. Save this version to disk
# 4. Send to the Yun via sc... | [
"mike@azuresults.com"
] | mike@azuresults.com |
9eddcc927a45ec3df5db2598f832d2349d270ee2 | 3992f09f9299e4153aaf5f7f623cb6bba60690df | /exercises/ex30.py | bb8b0114878eb0d1df4e9c08f96731fe606fe1f2 | [] | no_license | jeffkibuule/LPTHW | 8ab85be863cc0c694e9f29ac63ff537ff3ee20e5 | 9c4522adb8c20cacc5610cf9e8432c05c356bdbc | refs/heads/master | 2020-04-04T15:30:56.452019 | 2018-11-11T22:18:39 | 2018-11-11T22:18:39 | 156,040,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | people = 30
cars = 40
trucks = 15
if cars > people:
print("We should take the cars.")
elif cars < people:
print("We should not take the cars.")
else:
print("We can't decide.")
if trucks > cars:
print("That's too many trucks.")
elif trucks < cars:
print("Maybe we should take the trucks.")
else:
print("We still ... | [
"jkibuule@apple.com"
] | jkibuule@apple.com |
89b5f996db03809d137daf450f8d3b3117aedc9b | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/statsmodels-0.6.1-np110py27_0/lib/python2.7/site-packages/statsmodels/base/covtype.py | 4eb475ea2ceced1c55668969e5b994243294547d | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 11,953 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 04 08:00:16 2014
Author: Josef Perktold
License: BSD-3
"""
from statsmodels.compat.python import lrange, lzip, range
import numpy as np
def get_robustcov_results(self, cov_type='HC1', use_t=None, **kwds):
"""create new results instance with robust covariance as d... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
57a972cc82c8d354d6f157875853a4f3bbe38d96 | ba06a9e77752ab9cfd4ee64e8b716769712338a0 | /graph3.py | 8630ab5eb60fffbce0f0367176928459d102a02e | [] | no_license | Abhinandhan2000/Python-programs | b6ac230d3a3c5dcd3f09d553ea902478152ca456 | 0507472f02587f942363716ef2b6d8207f9d8419 | refs/heads/master | 2020-04-24T14:09:39.580603 | 2019-03-29T07:12:53 | 2019-03-29T07:12:53 | 172,010,667 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | import matplotlib.pyplot as plt
ages = [2,5,70,40,30,45,50,45,43,40,44,
60,7,13,57,18,90,77,80,32,21,20,40]
range = (0, 100)
bins = 10
plt.hist(ages, bins, range, color = 'green',
histtype = 'bar', rwidth = 0.8)
plt.xlabel('age')
plt.ylabel('No. of people')
plt.title('My h... | [
"noreply@github.com"
] | noreply@github.com |
ef21ec9acffca205c2abb67ae6398bb5ed8844f3 | 1df5c08a5649455202fd3655e8acdffc936dfbad | /homework_3/symbiotic_metrics.py | cbc239179749c68e1cfc5a25a5c45b6a799db90e | [] | no_license | jwspaeth/advanced-ml | 1901d6aca79b32ac6327b405f82df87a955c1c63 | aa4d77a3959881eefe09a5f140f2552abba81c03 | refs/heads/master | 2022-05-24T17:28:17.773191 | 2020-05-02T17:43:09 | 2020-05-02T17:43:09 | 238,042,143 | 0 | 0 | null | 2020-05-02T17:43:11 | 2020-02-03T19:17:24 | Python | UTF-8 | Python | false | false | 4,342 | py | '''
Author: Andrew H. Fagg
'''
import tensorflow as tf
from tensorflow import keras
class FractionOfVarianceAccountedFor(keras.metrics.Metric):
'''
FVAF = 1 - mse / var
Our challenge in implementing standard Metrics is that the data to compute the metrics
is provided incrementally (through multi... | [
"jwspaeth0@gmail.com"
] | jwspaeth0@gmail.com |
b70674d535723e47e231e0eda14b50049d2b0753 | 33eb8c9e0f59b0fc82ec94fc5c2764c2647dff13 | /snakify/2_conditions/6_Chess board.py | 628cc4f075a23d9d15fe20bdeba1085738ce965b | [] | no_license | petrkropotkin/python_lessons | 29b1ca32edefe40a2a6498d5184bf942913636fb | 01a7fcca01a6b915835445d153ea44fbfe89f852 | refs/heads/master | 2021-01-22T06:28:52.974908 | 2017-11-24T21:08:29 | 2017-11-24T21:08:29 | 102,295,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | # Given two cells of a chessboard. If they are painted in one color,
# print the word YES, and if in a different color - NO.
# The program receives the input of four numbers from 1 to 8,
# each specifying the column and row number, first two - for
#the first cell, and then the last two - for the second cell.
# с... | [
"kropotkinmahno@gmail.com"
] | kropotkinmahno@gmail.com |
5032205c24261703355ad0399ea9138603b23d16 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/ap/CB_AP_Download_Image.py | 9e2f694d41a392e7f7a8b96829e4fd450cb80c4b | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | # Copyright (C) 2010 Ruckus Wireless, Inc. All rights reserved.
# Please make sure the following module docstring is accurate since it will be used in report generation.
"""Description:
Prerequisite (Assumptions about the state of the testbed/DUT):
Required components:
Test parameters:
Result type: P... | [
"tan@xx.com"
] | tan@xx.com |
3ff1581baaae9e72e035ebe1032aaabfc6fcb6f7 | 8c1743183618e50ae6ca492d3377a7f82b6eaf17 | /lib/plotter.py | 202d1f97c9b372e63a01f87b3da3c8e4b404a3c5 | [] | no_license | ishmandoo/MassSpecPlot | 09d4227226587b709836f3523bd43d31cdc4c315 | 83eecfba531853fbb22f7d19502d1a27b4f49ca5 | refs/heads/master | 2022-02-07T01:59:30.250469 | 2019-06-20T03:55:32 | 2019-06-20T03:55:32 | 106,336,406 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,548 | py | from lib.data import Data, AuxPlots
import numpy as np
from scipy.ndimage.filters import gaussian_filter
from enum import Enum
import matplotlib.pyplot as plt
from matplotlib import animation
from matplotlib.patches import Rectangle
import os
from scipy import signal
class SpecNorm():
GLOBAL = 0
SCAN = 1
MANUAL = 2... | [
"ishmandoo@gmail.com"
] | ishmandoo@gmail.com |
0ce69e77a04385c435ed59ec0ad091ab1dd456bb | 1401bae6b81bda0802cc259e9a19aaaa1c43ca79 | /src/parser.py | 2daa4ce805a7f01c8ab909c70ecf292457fe3fbc | [] | no_license | EPFL-LCN/pub-bellec-wang-2021-sample-and-measure | 59aa86f8f99dc1409ac105b58965950693543646 | 48c4518c06912b74ccd9478de1e35299f2ba413c | refs/heads/main | 2023-04-07T04:08:54.391848 | 2022-08-19T13:19:41 | 2022-08-19T13:19:41 | 419,749,395 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,337 | py | import os
import argparse
def gen_parser():
parser = argparse.ArgumentParser()
saving = parser.add_argument_group('saving params')
saving.add_argument(
'--data_dir',
type=str,
default=os.path.join(os.getcwd(),'data','v1_natural'),
)
saving.add_argument(
'--save_dir',
... | [
"shuqi.wang@epfl.ch"
] | shuqi.wang@epfl.ch |
2226d8e21d5a65eb4b18bd6bf4a8b2b930d5c84f | 929a816fc299959d0f8eb0dd51d064be2abd6b78 | /LeetCode/easy - Array/1304. Find N Unique Integers Sum up to Zero/.ipynb_checkpoints/solution-checkpoint.py | 038be3063eb5258cd1e9f8bdc9d7066cfb184c3e | [
"MIT"
] | permissive | vincent507cpu/Comprehensive-Algorithm-Solution | 27940da7bc0343921930a2eafbd649da93a5395d | 04e01e49622457f09af2e1133954f043c0c92cb9 | refs/heads/master | 2023-07-20T07:12:15.590313 | 2021-08-23T23:42:17 | 2021-08-23T23:42:17 | 258,644,691 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | class Solution:
# my solution
def sumZero(self, n: int) -> List[int]:
return list(range(n-1)) + [-sum(range(n-1))] | [
"vincent507cpu@gmail.com"
] | vincent507cpu@gmail.com |
a636b8c9cb284e07fe1aded98e2ea6087fcb0b80 | f7a4fee3de9396bd7531e624eb1740efd35458ce | /datathon/nusdatathon18/scripts/select_demo_images.py | 33e07a662aecf7a0692b6b84052712d6785d07e1 | [
"Apache-2.0"
] | permissive | DuHao10086/healthcare | 4d52a68574639be432435ed9400cc502e40b5474 | dadd64b3940c5516f70fc410c5f8fe99460b72df | refs/heads/master | 2020-03-21T17:48:34.438445 | 2018-06-25T20:18:23 | 2018-06-25T20:18:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,013 | py | #!/usr/bin/python
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"lastomato@google.com"
] | lastomato@google.com |
7f9b21f4bbc04a84154841339572d9ab4b8888e9 | f4893ef657654350679a6a3c2b1b1c320426bfc8 | /mogan/common/utils.py | 365076da9425656acb570c0f521f71edaa9d4ff9 | [
"Apache-2.0"
] | permissive | GURUIFENG9139/rocky-mogan | 8370ccf3b26e7ed95d02e4ce22b4668bfb40e432 | 6008c1d12b00e70d2cc651f7bd5d47968fc3aec7 | refs/heads/master | 2023-01-29T21:18:58.898484 | 2020-12-11T08:34:22 | 2020-12-11T08:34:22 | 320,512,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,455 | py | # Copyright 2016 Huawei Technologies Co.,LTD.
# 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
#
# Unl... | [
"root@vm-console.lab"
] | root@vm-console.lab |
e54ed0025ce7f2b09610af40d66c2f5bc1de8715 | 85f55b52557a4eaf089f8a47e04db6396299cd20 | /tools/scrapeLists.py | 762667dd3bd9b63b9e0e28407c8fa818ea98d5be | [
"MIT"
] | permissive | freenuxx/ODOK | 13c23a67f5d8d12001eeccdc8035824cab00ed23 | 806996a3579de79f10e5190cc0c000023d507649 | refs/heads/master | 2021-01-18T00:52:48.735014 | 2015-04-24T16:40:48 | 2015-04-24T18:01:17 | 34,169,081 | 0 | 0 | null | 2015-04-18T14:35:08 | 2015-04-18T14:35:08 | null | UTF-8 | Python | false | false | 25,357 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Tool for scraping existing artwork lists from sv.wiki and attempting to match these to existing posts in the database.
How to use:
== Initial scraping ==
1. Identify pages with relevant lists. store pagenames as list <pages>
2. Identify municipalitynumber as <muniNo>... | [
"lokal.profil@gmail.com"
] | lokal.profil@gmail.com |
732a1aac6553304dd0938025fbd2d3a05347c268 | 9470ab071f5da64bad1fe34f86b897d045181a4a | /flaskProject_HomePage/venv/Scripts/django-admin.py | e1d42e8fb7c10001259b776b80bdab512052d1bb | [] | no_license | 042cmy/13_SOA_TeamProject | 792e76f5159d872f7afb3a69518d91613da1dac0 | 5235f48549d510283b1dff38586b6057a2c870c3 | refs/heads/main | 2023-01-29T12:48:47.111428 | 2020-12-13T04:00:10 | 2020-12-13T04:00:10 | 309,291,044 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #!c:\users\042cm\pycharmprojects\flaskproject\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-ad... | [
"042cmy@naver.com"
] | 042cmy@naver.com |
ce48e075832bfe8ad8472122d99f7481d3d2a0e4 | dfe2a52a1c36a28a8bf85af7efd42380d980b773 | /virtual/lib/python3.6/site-packages/django/db/models/sql/compiler.py | 279aa7a00fe58eb6d0feb049623f04707c8af9ec | [
"MIT"
] | permissive | virginiah894/Instagram-clone | 2c2a15d89fcdb25b22bd60428cf84a01f3bd553c | 4d8abe7bafefae06a0e462e6a47631c2f8a1d361 | refs/heads/master | 2022-12-10T06:56:21.105357 | 2020-01-07T14:14:50 | 2020-01-07T14:14:50 | 229,394,540 | 3 | 0 | MIT | 2022-12-08T03:23:40 | 2019-12-21T07:41:19 | Python | UTF-8 | Python | false | false | 66,354 | py | import collections
import functools
import re
import warnings
from itertools import chain
from django.core.exceptions import EmptyResultSet, FieldError
from django.db.models.constants import LOOKUP_SEP
from django.db.models.expressions import OrderBy, Random, RawSQL, Ref
from django.db.models.query_utils import QueryW... | [
"virgyperry@gmail.com"
] | virgyperry@gmail.com |
1b8d72d1f39aa5da5378a6201f01917ee8d701a4 | a81f909b8aa01565cf2ab99e5848f4e2cdd26a48 | /app/util/convert_privacy.py | 6fb0e90489c04c7b9b713bb33053e0a4b40ed3d8 | [] | no_license | hayeon123/TestDevice | 2097d9c8e64a8747d7bd0239a27b4628d09064bf | fa2b9048783c0d4fc7f0bb108283156031402a37 | refs/heads/master | 2023-01-09T00:42:59.371692 | 2020-11-09T07:58:45 | 2020-11-09T07:58:45 | 311,236,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | def privacy_converter(privacy):
if privacy == "public":
return 0
else: # progress == "private":
return 1
def privacy_deconverter(privacy_code):
if privacy_code == 0:
return "public"
else: # privacy_code == 1:
return "private"
| [
"hayeon@danal.co.kr"
] | hayeon@danal.co.kr |
4411eff5cb2a890b6f57eef93094fb70a0a66faa | 297efd4afeb46c0b56d9a975d76665caef213acc | /src/multiplicity/migrations/0026_auto_20181208_0740.py | 82eca20d3e465894fae450ae2a44b7598e792bfd | [
"MIT"
] | permissive | metabolism-of-cities/metabolism-of-cities-platform-v3 | 67716c3daae86a0fe527c18aef26ce29e069cbcc | c754d3b1b401906a21640b8eacb6b724a448b31c | refs/heads/master | 2022-12-06T22:56:22.207853 | 2020-08-25T09:53:51 | 2020-08-25T09:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 2.1.3 on 2018-12-08 07:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('multiplicity', '0025_auto_20181208_0719'),
]
operations = [
migrations.AlterField(
model_name='... | [
"paul@penguinprotocols.com"
] | paul@penguinprotocols.com |
85e2f78618a8ff42191403a21d2c43d9257d70ac | cf697cdbd5584ddd664666027fe6148d0a3ba0a2 | /source/PushbulletPython/requests/models.py | 7390d1c669523c6e378910d1ea8b67c7f017aaa8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | tempelmann/PopClip-Extensions | c7a25f0ccc18cbeba3ed82dfde0b36a86494f9c6 | 4d10135bf5ee8f2331c356b3401a794f833c151a | refs/heads/master | 2023-05-12T19:34:50.028786 | 2021-05-24T10:11:19 | 2021-05-24T10:11:19 | 369,224,565 | 2 | 0 | NOASSERTION | 2021-05-24T10:11:20 | 2021-05-20T13:50:44 | null | UTF-8 | Python | false | false | 26,200 | py | # -*- coding: utf-8 -*-
"""
requests.models
~~~~~~~~~~~~~~~
This module contains the primary objects that power Requests.
"""
import collections
import datetime
from io import BytesIO, UnsupportedOperation
from .hooks import default_hooks
from .structures import CaseInsensitiveDict
from .auth import HTTPBasicAuth
... | [
"blahgeek@gmail.com"
] | blahgeek@gmail.com |
3ca48b431ced3e96665567010223e77caf64f114 | 86ffd03015bd4b1e018b8755eafbb3199a47b0b4 | /coursefinder/migrations/0015_delete_coursefindertowncity.py | abcb33878749e20649031053a7735af36b027847 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | office-for-students/wagtail-CMS | f2f4fe4098ae6e4353941cddcb7799e64f1fc998 | 492f41211e1de3232191997c1e7b513b3994a481 | refs/heads/develop | 2023-07-09T20:03:51.684798 | 2023-06-26T15:21:08 | 2023-06-26T15:21:56 | 183,227,101 | 4 | 3 | MIT | 2023-06-27T08:44:36 | 2019-04-24T12:44:37 | Python | UTF-8 | Python | false | false | 515 | py | # Generated by Django 2.2.3 on 2019-08-14 14:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailforms', '0003_capitalizeverbose'),
('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'),
('wagtailredirects', '0006_redire... | [
"matthew.nicks@methods.co.uk"
] | matthew.nicks@methods.co.uk |
d33ec9aa8a06a9b9f986bbedcf298b1e52891b55 | 6c8e8030c993c76a21c9f2e87d9344c0cc978806 | /dir_config.py | 44b4d0a5d4b70d2ed192bef9184f64e3c76bd364 | [] | no_license | haotwo/test | 5bf6fa4919dc6ab7ae8d993286b3f87acd18d2be | de1afa717742a71426b055729afe37745437ba06 | refs/heads/master | 2022-11-07T18:54:04.413673 | 2020-06-28T14:29:49 | 2020-06-28T14:29:49 | 258,379,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#@Time :2020/6/27 23:00
#@Author :Lyle
#@File :dir_config.py
import os
#获取当前文件路径
project_path=os.path.split(os.path.split(os.path.realpath(__file__))[0])[0]
screenshot_dir=os.path.join(project_path,"Outputs","screenshots")
# print(project_path)
... | [
"noreply@github.com"
] | noreply@github.com |
8eeb01d73646ad12d434d8469f5b329ae55df47d | 9d09caaffe2cae5027be95713fcfc7e9854112a4 | /Algorithmic Toolbox/Week 4/01-Binary-Search.py | 05560f2fb740db021aded767b84248539da17797 | [] | no_license | rohanraghuwanshi/Data-Structure-and-Algorithms | 562a40559a547d017fbf311b06a9526b19a2dd20 | b34e7ba7bcbab3946acc5e6a4139e81704a0405c | refs/heads/main | 2023-03-24T20:05:09.174921 | 2021-03-18T15:51:49 | 2021-03-18T15:51:49 | 314,446,292 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | def binary_search(arr, low, high, x):
if high >= low:
mid = (high + low) // 2
if arr[mid] == x:
return mid
elif arr[mid] > x:
return binary_search(arr, low, mid - 1, x)
else:
return binary_search(arr, mid + 1, high, x)
else:
... | [
"rohanraghuvanshi001@gmail.com"
] | rohanraghuvanshi001@gmail.com |
fde3a57ed8f860a35aa92dd50132f535dbeba3f1 | bfd17b41b2d953cbce7dfe7b505a4da498bb2d9c | /logic/model_store.py | e539a0c1fde9a07224c386c105589deea992a4b3 | [] | no_license | ishefi/be-right-bot | 6982a2437a47190388581285d241a8cb8912b787 | 7a03d52efdbd9bbf34098d04fa4cd1c0e7a38572 | refs/heads/master | 2022-09-22T17:34:26.297259 | 2020-06-04T09:10:09 | 2020-06-04T09:10:09 | 269,307,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | import boto
import json
from boto.s3.key import Key
from base import config
class ModelStore(object):
BUCKET = 'telebot-models'
def __init__(self, model_uid):
self.model_uid = model_uid
self.bucket = self._bucket()
def get_model(self):
return self._get_from_s3('model')
def ... | [
"iddoyadlin@gmail.com"
] | iddoyadlin@gmail.com |
38032565e13f86e09a1cde515220aab81790ec7c | 26772bb00b0a71019ac23eca0e5b7215eb695c8d | /assignment1/cs231n/classifiers/k_nearest_neighbor.py | 3415479500e2f6fa2037d8db146ece1990f0d0c1 | [] | no_license | solpaul/CS231n-Assignments | 1416337b3c28435d34e689ae30cdc7012e5204bc | be1e8616fdf272d43550074a78b8660dc78a1ea6 | refs/heads/master | 2021-01-09T06:29:30.387369 | 2017-03-02T13:45:21 | 2017-03-02T13:45:21 | 80,994,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,186 | py | import numpy as np
class KNearestNeighbor(object):
""" a kNN classifier with L2 distance """
def __init__(self):
pass
def train(self, X, y):
"""
Train the classifier. For k-nearest neighbors this is just
memorizing the training data.
Inputs:
- X: A numpy array of shape (num_train, D) ... | [
"sol.paul@gmail.com"
] | sol.paul@gmail.com |
ebd2d190b72b4521609c610783474a4881377167 | 8820161749e3f225bd650d223b445fab248cc57d | /python_utils/utils/dw_img_from_urls.py | e400eba8dd999dec6593811141032510b91f7d0a | [] | no_license | Jayhello/python_utils | ec0e0eef2060d5f55e1d260c9e6bc2705dcea992 | d13d204add64398f3f6144c07164254a11c513be | refs/heads/master | 2021-01-22T21:37:20.322703 | 2018-12-07T02:42:46 | 2018-12-07T02:42:46 | 85,446,603 | 53 | 18 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | # coding:utf-8
"""
download image from txt file, in which all the rows in txt is a url string
"""
import json
import urllib
import numpy as np
import cv2
import glob
import os
import errno
import random
from multiprocessing import Pool as ProcessPool
def make_dir_not_exists(path):
try:
os.makedirs(path)... | [
"haluoluo@qq.com"
] | haluoluo@qq.com |
91f2400b1ac12ac6674de7b95b057475eb95b9df | 242e68a7c15e6ced652734d1d0e3e88e1074bb39 | /climetlab/plotting/drivers/magics/__init__.py | 00d73dd43bf969323001fd0d6e94f9d13a59f7af | [
"Apache-2.0"
] | permissive | mchantry/climetlab | e6edf596882560ad0b23572b24ac9e5cd9325891 | 8d655b4ac121a69e7244efe109c04d5e110cdf9e | refs/heads/main | 2023-07-22T01:16:52.859802 | 2021-07-22T09:24:00 | 2021-07-22T09:24:00 | 379,984,648 | 0 | 0 | Apache-2.0 | 2021-06-24T16:16:38 | 2021-06-24T16:16:38 | null | UTF-8 | Python | false | false | 1,348 | py | # (C) Copyright 2020 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmenta... | [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
ef10080e0b7d828ee73b5ac9879951cfc0479d63 | 3e45bb4a343482e5ee6f55d640030d4ce4d4b8cb | /code/util.py | 864f1c72e61a66e97640c3261f6fba9011bc02d6 | [] | no_license | ssjatmhmy/home_depot | 19cde3b7ec5566044ec3d7c57c122969b2a1cfda | 4cffe8c7b9527699b1568181e09c34bc8f461fab | refs/heads/master | 2020-12-25T23:57:08.440512 | 2016-07-19T06:47:31 | 2016-07-19T06:47:31 | 53,708,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | import time
from functools import wraps
import pickle
import os
import config
import numpy as np
import pandas as pd
def timethis(func):
"""
Decorator that reports the execution time.
"""
@wraps(func)
def wrapper(*args, **kwargs):
start = time.time()
result = func(*args, **kwargs)
... | [
"912111026@qq.com"
] | 912111026@qq.com |
8b95c48b6efdbe89d8dde446429c8956480f7f95 | d077ddc362142e07abdfa5c02f0505ff21cc7e03 | /matrix2.py | dd86dc6d65c4e427df9970e5f46c710a4b36f971 | [] | no_license | dev2404/Babber_List | 7295dad999c3fefeb68d8df1df9a19af93200a35 | cb7687afbeabf94972c6876cb2e7f35931e5e7e6 | refs/heads/main | 2023-01-27T23:25:59.597046 | 2020-12-05T14:07:07 | 2020-12-05T14:07:07 | 318,770,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | def matrix(arr, target):
row = len(arr)
col = len(arr[0])
if row == 0:
return False
if col == 0:
return False
if target > arr[-1][-1] and target < arr[0][0]:
return False
i = 0
j = (row * col) -1
while i <= j:
mid = i + (j - i)//2
c = mid % col
... | [
"devsharma2404@gmail.com"
] | devsharma2404@gmail.com |
de3a6dbd34991f994d65817740b5664d109638e6 | 98ea4639f62212c49e71f4fa69ea898f51247ea0 | /app.py | 65791e297456d310205ae87b0821e1dbcb7b2520 | [] | no_license | pickboy900/greyhoun-query-manager | 9dd13f02378c4575fdb8bdd83fcf5ce2cd38761b | 703453bc37eab7799960e3af075d24d622cf43f4 | refs/heads/main | 2023-01-03T06:14:01.989607 | 2020-10-23T09:07:47 | 2020-10-23T09:07:47 | 306,542,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,032 | py | # __init__file
from flask import Flask, request, render_template, flash, redirect, url_for, session
from flask_sqlalchemy import SQLAlchemy
import os
from flask_wtf import FlaskForm
from wtforms import widgets
from flask_migrate import Migrate
from wtforms import SelectMultipleField
from wtforms_alchemy import model_fo... | [
"ahmedmaruf474@outlook.com"
] | ahmedmaruf474@outlook.com |
d0e4ce4a22d58af2c71a7b3f3e1a472e5e77ad8c | a2a339434b0a432e2cf77fcf7e9564550b202d20 | /textprediction.py | 2a2eb0ba441c54f30a2b59f78b1b4201b0e92002 | [] | no_license | rewin123/PyTextGenerator | 72262d7639e7947710aaa74078a549407161475e | f89cd6b63c33fbb1d592b2f955ba56fede24c8ca | refs/heads/master | 2020-03-16T20:06:10.664573 | 2018-05-10T19:38:47 | 2018-05-10T19:38:47 | 132,946,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 10 13:07:45 2018
@author: yamaev
"""
import numpy
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import LSTM
from keras.callbacks import ModelCheckpoint
from keras.utils import ... | [
"rewin1996@gmail.com"
] | rewin1996@gmail.com |
ba4b64595dab77a252883b71d3cd199d97675b5c | b9148e49d90fb5c9d791d9e0c243c1cf76727c4d | /Label.py | 212ce354028029b4e0154328afdb97f6c796f369 | [] | no_license | rsengar7/malicious_url_check | 07df12ce8693f650c68e42a22179ab940d54ab34 | 5f1d11ca1b4532503c4355323793a1dba88d9d7c | refs/heads/main | 2023-07-06T16:23:39.687115 | 2021-08-08T05:42:51 | 2021-08-08T05:42:51 | 393,869,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,035 | py | #!/usr/bin/env python
# coding: utf-8
import pandas as pd
import numpy as np
import re
df = pd.read_csv("urldata.csv")
df.head()
df.isnull().sum()
def operation(df):
# Generating Features for the detection
df['NumDots'] = df['url'].apply(lambda x: len(x.split(".")) -1)
# Length of Url
df['urlLength... | [
"rsengar7@gmail.com"
] | rsengar7@gmail.com |
0cdbc657dc62827a0cc554f6fa825a3bca944a6d | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /findLadders.py | bbee45ac5eb94f388fe2af8dfaa11679d7959a31 | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | from collections import deque
from typing import List
# 不知道是哪个
class Solution1:
def findLadders(self, beginWord: str, endWord: str,
wordList: List[str]) -> int:
wordList.append(beginWord)
if endWord not in wordList:
return []
dic = dict()
levelLog =... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
88b9865413cebcdc91c4fcd00f30340d0b864197 | b284d59bdf2c01977eb6d80795e2c75cb95b9b2c | /config/wsgi.py | 77f49bd2bbd2fcc7f583bd1617f7e6d091ef359a | [
"MIT"
] | permissive | CoutinhoElias/danibraz | 58d27cb30661d06091196cc487a9d902f4f8dac9 | b21f3ce3477ded74c901fa377a5b2ac5e68faf36 | refs/heads/master | 2021-01-20T02:12:30.096953 | 2018-04-01T15:52:40 | 2018-04-01T15:52:40 | 89,386,992 | 0 | 1 | MIT | 2017-12-01T16:52:47 | 2017-04-25T17:14:27 | JavaScript | UTF-8 | Python | false | false | 1,930 | py | """
WSGI config for Dani Braz project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`... | [
"coutinho.elias@gmail.com"
] | coutinho.elias@gmail.com |
5f810726b186914a0a8d220e3403b3931a149fc7 | 0d45d6255f71468bbdfc0a075750e6901faf64a8 | /mysite/urls.py | 845318dc2b2bd596cf6ada2399d9f83dbe30b274 | [] | no_license | RashulChutani/my-first-blog | 53c54cfac2441be7c1da8924ff9d903c1ec3b274 | badc045bfcbb23d51adae51726d7bc184d5d4453 | refs/heads/master | 2020-04-13T14:19:17.977989 | 2018-12-27T16:31:57 | 2018-12-27T16:31:57 | 163,258,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | """mysite 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')
Class-based ... | [
"mt6180789@iitd.ac.in"
] | mt6180789@iitd.ac.in |
1703eb8c23e0af0f894521d5fce147bbb7569993 | 8414b83b90ab1074c9699c19032f2d80ceadf664 | /Arduino/Lib/lcdi2c.py | 05fa7bdc88be89feec432f5152a3e7eac83f7eda | [] | no_license | FizFury/Station_M-t-o | e1de20eaf58e8ce1df1fb6afd217ef12b39ce855 | e8a773f5caf724a96db9d71bc0d73a40d246e5ca | refs/heads/main | 2023-02-26T23:28:08.462710 | 2021-02-12T10:00:41 | 2021-02-12T10:00:41 | 337,982,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,453 | py | """
lcpi2c.py - a LiquidCrystal_I2C portage to MicroPython.
* Author(s): Meurisse D. from MCHobby (shop.mchobby.be).
Products:
---> https://shop.mchobby.be/fr/afficheur-lcd-tft-oled/882-lcd-backpack-i2c-3232100008823.html
---> https://shop.mchobby.be/fr/nouveaute/1807-afficheur-lcd-16x2-i2c-3232100018075-dfrobot.html... | [
"noreply@github.com"
] | noreply@github.com |
36253549b3f463039835b9da66f103e261d39294 | d170406d701c7bf1855f719a95980da06891911d | /ebcli/bundled/_compose/container.py | e10f13850321628bbd37c088b2735a75cc81c15a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | awsebcli/awsebcli | c2403dca942f3f2a12c1f65d1d8c398869eefbeb | d254156cd24df5e31f48f58525e3a07680f4fb47 | refs/heads/master | 2020-12-02T21:22:33.331636 | 2017-07-05T10:26:18 | 2017-07-05T10:26:18 | 96,303,976 | 4 | 3 | Apache-2.0 | 2018-09-13T11:19:05 | 2017-07-05T09:47:07 | Python | UTF-8 | Python | false | false | 5,274 | py | from __future__ import unicode_literals
from __future__ import absolute_import
import six
from functools import reduce
class Container(object):
"""
Represents a Docker container, constructed from the output of
GET /containers/:id:/json.
"""
def __init__(self, client, dictionary, has_been_inspecte... | [
"tom@procensus.com"
] | tom@procensus.com |
9bfe81e421c732c8cd7d2aaa1dff2dae70478223 | 62a6e98911c1d37b208de39b72f0e72de4df3a6d | /regeo.py | cfd77666c5030046bb7ac6794f96dd3ee4753bf0 | [] | no_license | someorz/reverse_geocode | 02ee8a7d4b6437160e048de0fb01ea0a14085a13 | 7a6b13a8336572f574acb2d2ef2fbb4976ecb50d | refs/heads/master | 2021-08-04T12:10:58.873782 | 2020-07-14T09:59:25 | 2020-07-14T09:59:25 | 197,711,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,809 | py | # -*-conding:utf-8-*-
import configparser
import json
import os
import ssl
import sys
import urllib.request as urllib2
import pandas as pd
from globalLog import log
usecols = ['province_code', 'province_name', 'city_code', 'city_name', 'district_code', 'district_name', 'short_lon',
'short_lat']
def amap... | [
"machi@aerozhonghuan.com"
] | machi@aerozhonghuan.com |
1c063331358739ec8b40f03dc2fe6eb7c4279a12 | 47d8447bfe57c0d5afaf455853b087e7c05aff55 | /37_class_tuple.py | 8fc216dc6997a20f4888f4ec7c057fa9c56cc658 | [] | no_license | RayOct18/effective_python | 9a4ed6ab1e1d54c2d217c159828f74cc7ec3e756 | c9371aa2140cf85ed442f8b14a3a0ca7d004abb7 | refs/heads/main | 2023-07-15T23:35:16.981323 | 2021-08-19T09:02:01 | 2021-08-19T09:02:01 | 373,739,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | from collections import namedtuple, defaultdict
Grade = namedtuple('Grade', ('score', 'weight'))
class Subject:
def __init__(self):
self._grades = []
def report_grade(self, score, weight):
self._grades.append(Grade(score, weight))
def average_grade(self):
total, total_wei... | [
"Ray_Xie@wistron.com"
] | Ray_Xie@wistron.com |
fef7b2cccf4dd2f948d77276e04865d176a03bd1 | 2eb4e46e799acfb95887a6072e919b626e99266a | /ImageGenerator.py | c1279f867e72ba136568f433d80dbdf1d076def9 | [] | no_license | Dovrol/Live-Img-Classification | b2311a731efe7d032c874637be6d817813f7fed3 | f402aa15ac605c3fe3c6ce0c84c6e7cb692fbb80 | refs/heads/master | 2022-11-09T14:22:42.674168 | 2020-06-26T16:40:33 | 2020-06-26T16:40:33 | 275,200,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | '''
Created by wiktorkubis on Jun, 2020
'''
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.applications import MobileNet
from tensorflow.keras.models import Model, Sequential, load_model
from tensorflow.keras.layers impor... | [
"wiktor.kubis@gmail.com"
] | wiktor.kubis@gmail.com |
9be75c7d6078b9f43d51720ebc8bf95c35dd87ab | 8dc05e70a8d358f84ca3b0b64507ccc97f92a1fe | /StudProjects/team06/Face_Classifier/LoadDataset.py | 9df6102a1e61ec0b16d46efa2109454491fbd00a | [] | no_license | lauradiosan/ITSG-2019-2020 | e7e48277e69ad1457afa287c879a989b1b8319e2 | 63dd849f96cbcd2aba8a26279a31a6d0f2b38b97 | refs/heads/master | 2022-12-12T10:32:59.325190 | 2020-01-20T07:01:22 | 2020-01-20T07:01:22 | 210,807,583 | 0 | 18 | null | 2022-12-08T09:32:59 | 2019-09-25T09:33:06 | Jupyter Notebook | UTF-8 | Python | false | false | 405 | py | from sklearn.datasets import fetch_lfw_people
lfw_people = fetch_lfw_people(data_home="dataset",min_faces_per_person=10, resize=0.4)
lfw_people.
for name in lfw_people.target_names:
print(name)
import os
for root, dirs, files in os.walk("dataset"):
path = root.split(os.sep)
print((len(path) - 1) * '---', o... | [
"diana.truta@telenav.com"
] | diana.truta@telenav.com |
ba67f6c81ba82c1296006502b0428038826dfe67 | 18168e354acfd3d23081cd35fa45b65c1ed4ecae | /mean_average_precision/__init__.py | ab6dd9e969c02f00f2dc7eb8518c1448d72becbf | [] | no_license | HedgehogCode/keras-transfer-learning | 611f81446581afa654145a17442d7f637ee7a7b0 | 5da3b18c4c6a806148fe5f2644db3ce0df60687f | refs/heads/master | 2020-07-18T23:24:53.651847 | 2019-09-17T09:49:46 | 2019-09-17T09:49:46 | 206,333,152 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | from . import utils
from . import mean_ap
| [
"benjamin.wilhelm@uni-konstanz.de"
] | benjamin.wilhelm@uni-konstanz.de |
a9fd365658511f94d226c6608b835f1e701c3220 | 9ba9f9639dca23ac2e6c8c5027120c8de6d8e15e | /backend/migrations/0013_create_profiles.py | 80dc568b7c58015cf7541417f37b5d2387502ab2 | [
"MIT"
] | permissive | SolarSPELL-Main/content-curation | 7225cb06efb6cfae3179fec6cb0c0f8d5189ad73 | 8640a3314960fbb7a4fc7a699fdf51202ffcff43 | refs/heads/master | 2022-08-25T11:24:42.722114 | 2022-08-10T00:13:33 | 2022-08-10T00:13:33 | 373,326,822 | 3 | 2 | MIT | 2022-06-03T16:44:08 | 2021-06-02T23:19:36 | TypeScript | UTF-8 | Python | false | false | 686 | py | from django.conf import settings
from django.db import migrations, models
from django.db.migrations.operations.models import DeleteModel
import django.db.models.deletion
# Create profiles for Users without them
def create_profiles(apps, schema_editor):
user = apps.get_model('auth', 'User')
profile = apps.get_m... | [
"noreply@github.com"
] | noreply@github.com |
e904cee65ac1aa784814d3ce18eaed9f75015999 | 3d12ba5a16486f15033d417dbbea292ead1dc5d3 | /utils/utils.py | 33b2da1d8d001bd4a62781eb0b46e5093839e2ba | [] | no_license | Rinavp/AnomalyDetectionCVPR2018-Pytorch | 7ec2df8aa0225e7e93634165e6fd9147bcc44c3f | b8dec6a5accfe9613198b1f24bd0d64209692b4f | refs/heads/master | 2023-01-10T14:36:13.600227 | 2020-11-06T10:58:40 | 2020-11-06T10:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import logging
import sys
from torchvision.transforms import transforms
from . import transforms_video
def register_logger(log_file, stdout=True):
log = logging.getLogger() # root logger
for hdlr in log.handlers[:]: # remove all old handlers
log.removeHandler(hdlr)
handlers = []
if stdou... | [
"eitan.kosman@gmail.com"
] | eitan.kosman@gmail.com |
db37abf8b828a49202def8b5df28069d949370dd | 8087e692772e390f96ee99d90ef7d8699be9f376 | /tests/test_user_register.py | 67ef5cc9a58e696d51bd0692e666ca1baeed86fa | [] | no_license | active73/LearnQA_PythonAPI | db3cb94e8f705b54d008ef7d5356611161337338 | 8090597024739c30a633993c8e59f787cfcf0975 | refs/heads/master | 2023-06-30T14:07:43.336160 | 2021-07-20T13:50:48 | 2021-07-20T13:50:48 | 377,771,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | import requests
from lib.base_case import BaseCase
from lib.assertions import Assertions
from datetime import datetime
import pytest
import allure
@allure.epic("Register user cases")
class TestUserRegister(BaseCase):
def setup(self):
base_part = "learnqa"
domain = "example.com"
random_par... | [
"usaleva@uchi.ru"
] | usaleva@uchi.ru |
9f69bbac15e78ca0cdd3215052def11f8adb988e | 1a3eb334e9578e23f63e17b4ee8e51d69405d29f | /cluster_analysis/interogate_clusters_for_gene_of_interest.py | 6e995babf1c21610b93935f749d52b041519d792 | [] | no_license | peterthorpe5/public_scripts | 6f0ab79c7a748dbd183ee7173576f7bcf25d7f54 | a3c64198aad3709a5c4d969f48ae0af11fdc25db | refs/heads/master | 2023-02-08T02:34:18.109091 | 2023-01-25T13:04:23 | 2023-01-25T13:04:23 | 43,360,640 | 35 | 23 | null | 2016-09-15T10:01:11 | 2015-09-29T10:21:05 | Python | UTF-8 | Python | false | false | 6,271 | py | #!/usr/bin/env python
# Code to iterogate clustering with a list
#
# (c) The James Hutton Institute 2016-2017
# Author: Peter Thorpe
import os
from sys import stdin,argv
import sys
from optparse import OptionParser
from collections import Counter
import collections
if "-v" in sys.argv or "--version" in s... | [
"peter.thorpe@hutton.ac.uk"
] | peter.thorpe@hutton.ac.uk |
af96412e1d4838c3925a147eacdf65c294669b69 | 013a114a95a66b1d8b48d5df74788dab4386936b | /ejercicios/Clase04/debugger.py | 6e48b86fe5ed45ffc94e399ddb11a17c724e9a58 | [] | no_license | fernandezfran/python_UNSAM | 6be951c7e0e33982ffc3867080e64bf370bc88dc | f3453aff17c512493ad52a0bc0069408ea7d8e07 | refs/heads/master | 2023-06-10T09:00:33.362285 | 2021-07-05T18:41:51 | 2021-07-05T18:41:51 | 346,702,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | #### debugger.py
#
# E 4.1: Debugger
#
def invertir_lista(lista):
'''Recibe una lista L y la develve invertida.'''
invertida = []
i=len(lista)
while i > 0: # tomo el último elemento
i=i-1
invertida.append(lista[i]) # .pop(i) no es necesario, solo quero leer
... | [
"fernandezfrancisco2195@gmail.com"
] | fernandezfrancisco2195@gmail.com |
d0f29f5738405925e3873c8fdb82b73fbebac5db | de977f606c7433752233b14c1aafb30340deb360 | /caelus/run/core.py | 93c491ce8977fdfa2c635ca85213a799ec0da711 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cnsidero/cpl | d033dca3c2cbe9ff236ebce542433e9e07ca077d | aad9eec2776e87265a87e0fddaf87e89b7a7abb1 | refs/heads/master | 2020-05-02T20:35:22.583031 | 2019-06-09T13:53:18 | 2019-06-09T13:53:18 | 178,196,562 | 0 | 0 | Apache-2.0 | 2019-03-28T12:12:58 | 2019-03-28T12:12:58 | null | UTF-8 | Python | false | false | 8,269 | py | # -*- coding: utf-8 -*-
"""\
CML Execution Utilities
-----------------------
"""
import os
import shutil
import logging
import glob
from ..utils import osutils
_lgr = logging.getLogger(__name__)
def is_caelus_casedir(root=None):
"""Check if the path provided looks like a case directory.
A directory is dete... | [
"shreyas@umd.edu"
] | shreyas@umd.edu |
dc61ee164ce4229a31e58738e6a44ad797733e56 | fca6663dcc43276d48cebfd2e4f5734d5a16eeb9 | /110802(class1).py | 31f61e3ab8cfcbadef7c3e8de01d87f4f7363e7b | [] | no_license | youngmo87/hello | 3ef08b1d624d551f5343ede1d2a9a18e76d20b27 | 931d65d90eb96c4d33be5380b4b42d587e4babeb | refs/heads/master | 2020-04-04T23:15:35.368115 | 2019-05-10T03:49:37 | 2019-05-10T03:49:37 | 156,352,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | class Dog:
def __init__(self):
self.name = "Dog"
print("Dog was Born")
def speak(self):
print("YELP!", self.name)
def wag(self):
print("Dog's wag tail")
def __del__(self):
print("destroy!!")
class Puppy(Dog):
def __init__(self):
self.name = "P... | [
"youngmo.jeju@gmail.com"
] | youngmo.jeju@gmail.com |
f7b60f53bd32a061dd6396c0ac42962b2b24bb8c | cd6ba24b9f3cf99b40ab164890b005bbaddf6844 | /gonewsBack/asgi.py | a9b9497731867ed60876532c34cc7dffb7787e20 | [] | no_license | Focusmind-Devel/gonews-backend | 77ea6934a157978327a1e89e8a74d25028717c5f | ecdc1d200ef4799146afb87821c927a37dba6bb2 | refs/heads/master | 2023-06-30T21:03:01.511838 | 2021-08-06T22:48:59 | 2021-08-06T22:48:59 | 393,514,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for gonewsBack project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"jacsiel.r@geopagos.com"
] | jacsiel.r@geopagos.com |
f654f52e05b95498dbdf1c51af76c90d6f91fb31 | 55c24645dd63a1c41037dcfb9fb45bc7bcdea4be | /venv/lib/python3.7/site-packages/jwt/__init__.py | 1e4d63b69dfbe1e69c8b867f879f3f5f7a0ff108 | [] | no_license | abdullah-nawaz/flask-boilerplate | 7c42801a21ee3e6a647cc8a7d92e0285f8e86cad | 01bc7fe1140e8ec613de4a38546a07ddfbdbd254 | refs/heads/master | 2022-12-02T05:06:08.297759 | 2020-06-24T21:36:32 | 2020-06-24T21:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
# flake8: noqa
"""
JSON Web Token implementation
Minimum implementation based on this spec:
http://self-issued.info/docs/draft-jones-json-web-token-01.html
"""
__title__ = "pyjwt"
__version__ = "1.7.1"
__author__ = "José Padilla"
__license__ = "MIT"
__copyright__ = "Copyright 2015-2018 José ... | [
"muhammadabdullah@wanclouds.net"
] | muhammadabdullah@wanclouds.net |
33e4f7dc39df909e234fd1bea9e257c6c9f2b69c | 7d2a3b269d0cdfd4a17d765420aeb7743ae9a88d | /Apple and Orange.py | 61d3520e4df09928cdd92f45d27bf1659180b203 | [] | no_license | marynader6/HackerRank_Problems | 76d256b19113d2bd0877f09d45d99b256580ed29 | dbca1d7a8d1a41e01f95fb50f8acf8b0e3b9c162 | refs/heads/master | 2022-12-16T22:39:34.336907 | 2020-09-22T20:54:35 | 2020-09-22T20:54:35 | 290,601,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | def countApplesAndOranges(s, t, a, b, apples, oranges):
app = 0
ora = 0
for i in apples:
if ((a+i) >= s and (a+i) <= t):
app += 1
for j in oranges:
if((b+j) <= t and (b+j) >= s):
ora += 1
print(app)
print(ora) | [
"marynader256@gmail.com"
] | marynader256@gmail.com |
af3e80c4d5e8fa52e8b9d2e04e540d39378deff3 | 1ccb3f947795164fa2fa3d75f6be42fa57ca26a6 | /AutoTheme.py | 4062f07a40aeca0d53ec2979beb52ce1d5969c47 | [] | no_license | revotu/Scripts | 1ced4485f10a0de81fa7955488dadf336c69886b | 0e44b55b2d22f100f2c947e5cc85b25f7a55a4cb | refs/heads/master | 2020-12-24T05:55:43.259545 | 2018-02-24T03:27:30 | 2018-02-24T03:27:30 | 73,440,766 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,508 | py | #-*- coding: UTF-8 -*-
import os
import random
import time
import re
from PIL import Image
def remove_html_tags(text):
"""Remove html tags from a string"""
clean = re.compile('<.*?>')
return re.sub(clean, '', text)
def randomDate(start, end, format, prop):
"""Generate a random date between two other dates"""
sti... | [
"632624460@qq.com"
] | 632624460@qq.com |
07a2b34bd12367fcd71a81f5bc07f1a40adccca8 | 0db87040f4bc846f237358d6500a77a3cd0c0c42 | /Core Transforms/Combine/Simple Function/task.py | fdf762420ef6046a07dbc94661f4934e5bc639b9 | [
"Apache-2.0"
] | permissive | EllaDing/beam-katas-python | c15ae973af6bae0e1af5e183965ed26b969e6acb | f4636d748ca6d10bb8b0cf7913f35bde3c7605cf | refs/heads/master | 2023-06-11T20:10:16.821732 | 2021-07-11T04:48:29 | 2021-07-11T04:48:29 | 384,861,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | [
"yiding@yis-macbook-air.lan"
] | yiding@yis-macbook-air.lan |
ff68038095289777c1c0ff835f28dc468e23417a | b95dc4d42009af1caafa199650903fc7793ba74c | /gameroom/app/__init__.py | 73c6ad8e818ac1e62a9deeff1afadf0fcbe6f756 | [
"MIT"
] | permissive | mcole22266/gameroom | e47d9c91d052b465a1a6d543689c56b99c7c9051 | eedb4729679b9f54b41ad5c9ef1387e953b849bc | refs/heads/master | 2023-05-11T05:58:55.221097 | 2019-12-19T20:28:43 | 2019-12-19T20:28:43 | 226,352,534 | 0 | 0 | MIT | 2019-12-12T04:30:46 | 2019-12-06T14:59:55 | HTML | UTF-8 | Python | false | false | 3,444 | py | from flask import Flask, render_template, redirect, url_for, request, flash
from flask_login import current_user, login_required, login_user, logout_user
from .models import User
from .forms import SignInForm, CreateUserForm
from .extensions import database_ready, login_manager
def create_app():
app = Flask(__n... | [
"mcole042891@gmail.com"
] | mcole042891@gmail.com |
fbaf9cc4e178d2fadabfc4ac0a9acb6617193252 | 1a6cbe035adb81fea66615323a836327d06f9e72 | /year2020/d8.py | a9a412e59e1d2f3574d82a8926248a6aa6dee291 | [] | no_license | ecurtin2/advent-of-code | a2607d857408d722b07d4cfc66855edcd019cda7 | 216db926c5bab9bf1ec3cac2aa912c1a2ff70d6c | refs/heads/main | 2022-12-15T10:06:51.202608 | 2022-12-14T17:28:15 | 2022-12-14T17:28:15 | 160,612,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | from dataclasses import dataclass, field
from enum import Enum
from typing import List, Tuple
class OpCode(Enum):
acc = "acc"
jmp = "jmp"
nop = "nop"
@dataclass
class Emu:
program: List[Tuple[OpCode, int]]
acc: int = 0
pointer: int = 0
history: List[int] = field(default_factory=list)
... | [
"ecurtin2@illinois.edu"
] | ecurtin2@illinois.edu |
7c0c9508bbcf39384153e12812ef00e37ee60fec | 330bd4ead6fa80f992c8cdddcd92feb4081d05a3 | /Calculator/Addition.py | 2a7244c97d3c95e08bb35bdbfd017343863538c0 | [] | no_license | mkm99/myCalculator | ed95de70df3707aedf4e467878c820481557b283 | ff7d7facac404263715ff4a4eafbe7234a66f32c | refs/heads/master | 2021-01-03T12:06:15.188170 | 2020-03-10T19:09:07 | 2020-03-10T19:09:07 | 240,076,559 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | def addition(augend, addend):
return float(augend) + float(addend)
| [
"marykmachado@gmail.com"
] | marykmachado@gmail.com |
6a9c4b611ea1ff1af50f6ab80e5f17cfe19852d7 | 8915e97d40600425e148e86951199790514cb40f | /getui/google/protobuf/internal/more_extensions_pb2.py | 789b2bb41396aba6cf3b57e071ed099cc71bbfd7 | [] | no_license | shaobenbin/getui | 892d25a3f09c0f3777288f7d8a3bbffa3671f8d6 | ca0e9c56137ffd31ec9d40df919068b9766a49c2 | refs/heads/master | 2019-01-21T13:14:38.661350 | 2016-05-06T02:24:18 | 2016-05-06T02:24:18 | 58,172,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 6,188 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/protobuf/internal/more_extensions.proto
from getui.google.protobuf import descriptor as _descriptor
from getui.google.protobuf import message as _message
from getui.google.protobuf import reflection as _reflection
from getui.google.protobuf im... | [
"binbin@funnysafe.com"
] | binbin@funnysafe.com |
be3b1cb7e27d92a6a08d90450fc00e12a6f1f004 | 43c97a6acb6407f889ff5e5c980bc63fa221be47 | /hn_Atom_prac.py | b0a335242f8718840af5a2fb920ad80c5e08492c | [] | no_license | datajohn/hn_Atom_prac | 6959168ea65dfb7bd19937915b1979568799d267 | 6d706513b83b437cdade66435075358386c49d18 | refs/heads/master | 2020-04-13T20:31:13.271250 | 2018-12-28T17:44:48 | 2018-12-28T17:44:48 | 163,431,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | import requests
from operator import itemgetter
# Make an API call, and store the response.
url = 'https://hacker-news.firebaseio.com/v0/topstories.json'
r = requests.get(url)
print("Status code:", r.status_code)
# Process information about each submission.
submission_ids = r.json()
submission_dicts = []
for submiss... | [
"jch01@yahoo.com"
] | jch01@yahoo.com |
818d735cb57ed1cc23e2efb5e0121b446f323abf | e1eb557737fcd15fc721facf1bb503bfa312a2cc | /Basics/functions.py | 1ae50b3ada03e489b174537e88a7ddd7ce33d079 | [] | no_license | tonymisic/python-scripts | 02db565a61057f797ba97c8565b506bfb36fa65f | 34d18cfc0ee5dbe4f7c72808d5abc553a4c8074d | refs/heads/master | 2021-04-15T16:12:43.433633 | 2018-08-10T15:29:26 | 2018-08-10T15:29:26 | 126,648,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import sys, random, copy
def div(num, den):
try:
return float(num/den)
except ZeroDivisionError:
print('Invalid argument boi.')
array = ['elephant', 'crow', 'rhino']
def ReverseArray(arr):
i = 0
temparr = []
for i in range(0, len(arr)):
temparr.insert(0, ar... | [
"noreply@github.com"
] | noreply@github.com |
5079c2b3b07cd0b1365d9842cf5c76df3c1667b5 | fef07fcf2041f69d58f5723578d1f82a04219221 | /practicepython/Exercise-3.py | 749222706b014f4a5ac11944f2b630284ef23ae8 | [] | no_license | GitVishwa/Python | 839ddebfcaeb72ca3bf4f18a674150caad84d9a6 | fda01a9db2da34ae8b326e4da20676ff5969818c | refs/heads/master | 2021-01-12T08:54:30.359874 | 2017-02-22T15:40:16 | 2017-02-22T15:40:16 | 76,713,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | #Take a list, say for example this one:
# a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
#and write a program that prints out all the elements of the list that are less than 5.
a = [1,1,2,3,4,8,13,21,34,55,89]
divList = []
def filtering(a):
for num in a:
if num < 5:
divList.append(num)
filtering(a)
print divLis... | [
"professionalvishwa@gmal.com"
] | professionalvishwa@gmal.com |
2a8d646efdc3ef7a356d71db7c1a37985daffa4e | 967c6873c8e858d5ccfcf47376174b0c22c2ae21 | /4_functions/function_composition/tests.py | ead763a853db07e0443b99f95cfa5929979692ee | [] | no_license | natsumemaya/hexlet_tasks | e2b5b1a0f041f9111dfb4c746dbb94dd54ebe71c | 15b8bed9c5e07acb04c55041dce9e5413d85ebd6 | refs/heads/main | 2022-12-30T08:48:16.141074 | 2020-10-16T17:47:04 | 2020-10-16T17:47:04 | 304,693,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from solution import compose
def add5(x):
return x + 5
def mul3(x):
return x * 3
def test_compose():
assert compose(mul3, add5)(1) == 18
assert compose(add5, mul3)(1) == 8
assert compose(mul3, str)(1) == '111'
assert compose(str, mul3)(1) == '3'
print('test_compose is Ok!')
test_compose... | [
"natsumemaya@rambler.ru"
] | natsumemaya@rambler.ru |
ef76f44de047a32592d8f7253d0fe06673a81160 | 88c7b7e00bc1fdc0b5a33914c4b7a47b6b773386 | /test/test_resources.py | 5b73ed5723e9ecfe9117957b3dd284d9cad8497d | [] | no_license | prr21/plugin_on_QGIS | c0942d116d0b7b47b312a0cd9d09a862eff29863 | d4da5e2bcc3e06005077edd0d4a31154f59165ae | refs/heads/master | 2020-08-07T14:59:45.580658 | 2019-10-08T23:57:32 | 2019-10-08T23:57:32 | 213,497,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | # coding=utf-8
"""Resources test.
.. note:: 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.
"""
__author__ = '... | [
"Mr.gustav009@gmail.com"
] | Mr.gustav009@gmail.com |
2e52644031d3a9730432e6e324d3b0b311db7a11 | 8da1a16360d39c5468f6d6a95090b306d19bee10 | /selector.py | e3ce1d8560a2d3430355f26b84fc2aa4e0d4d8b2 | [] | no_license | odgaard/VPNSelector | 9e3a5c449558f7fd7c3629df64fe8729109f34ca | da5051e0ea259ef7ab2afcf22f9d46a39f0800ab | refs/heads/master | 2020-04-02T21:20:30.854623 | 2018-10-26T07:34:58 | 2018-10-26T07:34:58 | 154,795,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | import requests
import re
import math
import time
import random
import struct
import select
import socket
def run():
download_link = "https://privatevpn.com/serverlist/"
page = requests.get(download_link)
urls = re.findall("<td>\s(.+\.privatevpn\.com)\s</td>", page.text)
url_time = []
for res in urls:
res = re... | [
"jacob.torring@gmail.com"
] | jacob.torring@gmail.com |
238ebdc526e8bb20f182dc53a253999c4b6f3f47 | 4872ba7a35bd5fe3c10e052b8e5de1137d423c71 | /Img_Training.py | 3ce1b4ac7d1f134d2cd3923df683aa0d3089becf | [] | no_license | deyiyangyang/CNN_Cell_train | b9a1a8a93fb02d28730a4feb498eb826548b7dea | a07f941f9719ec94473175df17da3ecdab1fda0d | refs/heads/master | 2022-06-18T19:10:57.598044 | 2020-05-02T17:42:15 | 2020-05-02T17:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,972 | py | #coding:utf-8
import os
import numpy as np
from PIL import Image
import tensorflow
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Convolution2D, Flatten, Dropout, MaxPooling2D,Dense,Activation
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.utils import to_categor... | [
"noreply@github.com"
] | noreply@github.com |
0a9ffca0fe6c9a6b6a984c02b4947634976dfac3 | 18f8a1c7122c0b320f17ea31192439779a8c63e8 | /zoom/fill.py | f181b9ee1ee496933103ca4f07a4d176277e13db | [
"MIT"
] | permissive | RyanLainchbury/zoom | d49afa8d3506fca2c6e426707bd60ba640420a45 | 684a16f4fe3cea3d26f2d520c743a871ca84ecc5 | refs/heads/master | 2020-12-25T19:03:12.881247 | 2017-06-09T07:29:27 | 2017-06-09T07:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,985 | py | """
fills templates
"""
import re
parts_re = (
r"""(\w+)\s*=\s*"([^"]*)"|"""
r"""(\w+)\s*=\s*'([^']*)'|"""
r"""(\w+)\s*=\s*([^\s]+)\s*|"""
r""""([^"]*)"|"""
r"""("")|"""
r"""(\w+)"""
)
tag_parts = re.compile(parts_re)
pattern_tpl = r'%s([a-z0-9_]+)\s*(.*?)%s'
patterns = {}
def _fill(tag... | [
"herb@dynamic-solutions.com"
] | herb@dynamic-solutions.com |
a93888c15b94856946b77b690aca0ee98b39f043 | 8c3c12f8c113b4939e90aa0978195e09f0c19b2f | /main.py | 582811c741fa8a439074127eeca984fbce89249c | [] | no_license | BruBel/MLOps-Alura | 8012d52ade8a64c252b50cac95214b5beca9de23 | 43c564c0107c342d08a9a79dc119d9971f2c4555 | refs/heads/master | 2023-03-26T01:31:14.873222 | 2021-03-06T19:00:54 | 2021-03-06T19:00:54 | 344,822,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | from flask import Flask, request, jsonify
from flask_basicauth import BasicAuth
from textblob import TextBlob
from sklearn.linear_model import LinearRegression
import pickle
import os
colunas = ['tamanho','ano','garagem']
modelo = pickle.load(open('models/modelo.sav','rb'))
app = Flask(__name__)
app.config['BASIC_AUT... | [
"brunobelluzzo3@gmail.com"
] | brunobelluzzo3@gmail.com |
e3a2230306811b053d39134bb33d2ff17e4ab5da | c1cd6a7a446934c428bc4fbf988f8d6680460488 | /dist/restclient.app/Contents/Resources/pip/_vendor/requests/packages/chardet/sbcharsetprober.py | 182997905ed0338ca0f69a69ac7bf6c33b8e5c08 | [] | no_license | devvmh/restclient-py2app | ed016d1763ee99779388c8700dfb9c129cf8ce1a | 6826f6cb81c08a36b30878683a58e4f7a18f5041 | refs/heads/master | 2021-01-10T12:01:31.411373 | 2016-01-18T03:34:02 | 2016-01-18T03:34:02 | 49,850,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | /Users/devin/git/restclient/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py | [
"devin@callysto.com"
] | devin@callysto.com |
17f3b1d9aa62fd425557761abaa2be74e857c7b3 | 63b914c4b0ef37ba9992b7bda5d363e368279cbf | /uservalidation/events.py | 24f42fbb9955c4e485030d44ff78e046e15841f7 | [] | no_license | celi28/cogs-sz | 99a48da3f2710e5dea1682a63efed5519023b807 | c1d4f12bca2ea11abf769232ef17b8e0d00da0a2 | refs/heads/master | 2023-03-04T21:22:41.387063 | 2021-02-17T15:16:12 | 2021-02-17T15:16:12 | 339,761,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,490 | py | import logging
import discord
import datetime
from redbot.core import Config, commands, modlog
from redbot.core.bot import Red
log = logging.getLogger("red.customcogs.uservalidation")
class UserValidationEvents:
bot: Red
config: Config
@commands.Cog.listener()
async def on_message(self, message: d... | [
"cecile@martron.me"
] | cecile@martron.me |
16717d3a2cedbcfeeb9155eeecd26f3285cbf4a5 | c8f910ec5911d987cc321d0df2fbbc66a9c65981 | /Python/EjerciciosBasicos_Medios/Ejercicio12.py | f1101111c3c8047378ebc1798be9cdb7ea52673b | [] | no_license | JoseManuelMS97/SistemasGestionEmpresarial | 180bc2e2fd3bb11978040cbd792270c2b682d8cf | 01b6ffb673ab857ca2a053337327393c4c7eae1c | refs/heads/main | 2023-05-27T13:08:33.605715 | 2021-06-11T15:12:46 | 2021-06-11T15:12:46 | 376,062,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | numero = int(input("Numero: "))
print(numero, "* 0 = ", numero * 0)
print(numero, "* 1 = ", numero * 1)
print(numero, "* 2 = ", numero * 2)
print(numero, "* 3 = ", numero * 3)
print(numero, "* 4 = ", numero * 4)
print(numero, "* 5 = ", numero * 5)
print(numero, "* 6 = ", numero * 6)
print(numero, "* 7 = ", nu... | [
"noreply@github.com"
] | noreply@github.com |
85a091deefe944fd2be257aa09942f797780f716 | 807a827e715fee09ad007ee56e952a50220e63a9 | /2019-1-6/zhihu.py | 02b90649d85db120523ec13458d8a8973f9eaabe | [] | no_license | IamZY/python-spider | f132bb33e19a95e7aa87424c376e40e78abfaacd | c5d79946601b0988de8a54fd8d5ce2a4ed12b179 | refs/heads/master | 2021-06-26T11:11:04.727033 | 2020-11-05T12:33:02 | 2020-11-05T12:33:02 | 162,438,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,704 | py | # -*-coding:utf-8 -*-
import urllib2
import urllib
from lxml import etree
def loadPage(url):
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"
}
# print url
request = urllib2.Request(... | [
"562018301@qq.com"
] | 562018301@qq.com |
25b825d27e27e80bf0bf8ad227c956a257a4aeaf | c7a1c1ae40e9d95dfb92251dcfbf3c5010e6ba81 | /unicorn-hat-cpu-status-indicator.py | 76dbd1127ffdb1b660f19b2e71e99fbcaea3b998 | [] | no_license | pranavlathigara/Raspberry-Pi-DIY-Projects | efd18e2e5b9b8369bb1a5f5418782480cf9bc729 | 0c14c316898d4d06015912ac4a8cb7b71a3980c0 | refs/heads/master | 2021-04-06T09:14:28.088223 | 2018-02-19T00:15:22 | 2018-02-19T00:15:22 | 124,649,553 | 1 | 2 | null | 2018-03-10T11:30:59 | 2018-03-10T11:30:59 | null | UTF-8 | Python | false | false | 1,500 | py | #!/usr/bin/env python
# https://forums.pimoroni.com/t/unicorn-hat-cpu-status-indicator/6150
# Import the relevant modules
import unicornhat as uh
try:
import psutil
except ImportError:
exit("This script requires psutil.n\Install with: sudo pip install psutil")
# Set the brightness of the UnicornHAT - 1.0 is ... | [
"tdamdouni@users.noreply.github.com"
] | tdamdouni@users.noreply.github.com |
7fd08ff62b0454caa2cdbcc8f974a959c737347e | 627e8b401046b37be510bb78b53fbfbdb54b5ff0 | /8Queens.py | a11c85799ee42ed473f66bd704522dcd62cafd44 | [] | no_license | 211997/DSSummit2020 | 0395ef5a3fc2db856e1e4b8a42c6b41543f257c9 | 8095554fb2d70010e27d3c7eae1d3536b98d08bb | refs/heads/master | 2022-11-13T08:37:12.776898 | 2020-07-03T14:47:36 | 2020-07-03T14:47:36 | 276,645,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | # import necessary packages
import random
import string
# Function call to generate initial random sequence
def random_seq(size):
return [ random.randint(0, 7) for _ in range(size) ]
maxFitness = 28 # Maximum fitness is calculated using (size * (size-1))/2
# Function to compute fitness score for the sequence arr... | [
"noreply@github.com"
] | noreply@github.com |
e3441ce8c0dc5493ec362e2aaa25b44fd3bed6ba | ec5091c6a2dc8b8d88d196de80b39f9189c022fe | /deep_traffic_generation/core/networks.py | 8097123d3f755ba3dc14214f0e562b68dc3e27d0 | [] | no_license | lbasora/deep-traffic-generation | 74d8e5834f0593f0b0f45049cf818a979caa4414 | afa57c0588e52e9973348131286506c8b1463b2a | refs/heads/main | 2023-07-12T22:34:58.192840 | 2021-08-25T15:43:13 | 2021-08-25T15:43:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,696 | py | # fmt: off
from typing import List, Optional
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils import weight_norm
# fmt: on
class FCN(nn.Module):
"""Fully Connected Network"""
def __init__(
self,
input_dim: int,
out_dim: int,
h_dims: List[int],
... | [
"adrienlafage@outlook.com"
] | adrienlafage@outlook.com |
c1236272f4c2eec8e32c0ff5a83426d0ebec8054 | 8d9fda18ec5a100cd9058e48f50b8341cedb7e41 | /PivotLogs.py | bf2d58bf195d1e7f3c861879f5cc43d5dce570b5 | [] | no_license | bzigon/GPUSUP | 4c583ab1660d48bdd31041e0333d9d70f2d3066d | d2b023a6c65adcd26c11afb71288e6fbbf436a03 | refs/heads/master | 2020-05-07T17:44:39.589941 | 2019-04-11T18:12:07 | 2019-04-11T18:12:07 | 180,739,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,321 | py | #
# PivotLogs.py -- this script will parse a directory full of performance log
# files, pivot them, and write them out.
#
import csv, sys
import glob
from io import StringIO
class Triple:
def __init__(self):
self.name=""
self.desc=""
self.value=0
def AddTriple(n, d, v, tl):
... | [
"bob.zigon@gmail.com"
] | bob.zigon@gmail.com |
647a3e605be9d5076192ac014e62236c61cdadba | c54c76ac4e8b27276d3201f27cd95c1e44d2e6c1 | /app/__init__.py | 2b912d37e66e50ea7ebd20cf8c81ca9bb1260db3 | [
"MIT"
] | permissive | bgildson/brote-seed | 50db239458884ae1a0a9ce865bc8ae21a8fd637c | 4a28f20803991b6e21a4e6ec670263c9517382b7 | refs/heads/master | 2021-04-09T11:25:06.614219 | 2018-03-17T22:10:31 | 2018-03-17T22:10:31 | 125,533,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # -*- coding: utf-8 -*-
import os
from flask import Flask
from flask_migrate import Migrate
CONFIG_NAME_MAPPER = {
'development': 'config.DevelopmentConfig',
'testing': 'config.TestingConfig',
'production': 'config.ProductionConfig',
'local': 'local_config.LocalConfig',
}
def create_app(script_info... | [
"gildson13@hotmail.com"
] | gildson13@hotmail.com |
f34eaa9396ba62ba344397873c8661640a3b1b81 | b2bcf07493b5a1bbfb7e29c7f13ac0b380cefead | /deprecated/scripts/thompson_sampling_bernoulli.py | d20034e1ae2c967a812d1848d366eb51673299ea | [
"MIT"
] | permissive | probml/pyprobml | e1952927bceec676eb414f9342470ba4b8e6703b | 9cc22f3238ae092c2b9bff65d6283c93d38d25d4 | refs/heads/master | 2023-08-31T07:36:11.603301 | 2023-08-13T02:47:12 | 2023-08-13T02:47:12 | 65,924,871 | 6,263 | 1,598 | MIT | 2023-01-20T23:34:23 | 2016-08-17T16:42:24 | Jupyter Notebook | UTF-8 | Python | false | false | 2,815 | py | # Resolution of a Multi-Armed Bandit problem
# using Thompson Sampling.
# Author: Gerardo Durán-Martín (@gerdm)
import jax
import jax.numpy as jnp
import matplotlib.pyplot as plt
import pyprobml_utils as pml
from jax import random
from jax.nn import one_hot
from jax.scipy.stats import beta
from functools import partia... | [
"noreply@github.com"
] | noreply@github.com |
1bd1326fdda548f8054d9fc7870d28cd15323d87 | 235f47ff67783b80f5b57692d01905ea8a7e171f | /RQ1_RQ2/Vehicle_case_study/Pymoo_MO/Solution.py | 328d5b4f5b05215e426a193eb6507cf0ef8044f6 | [
"MIT"
] | permissive | dgumenyuk/Environment_generation | 5293789b89818d961d93facad1f9604470efe55d | 092fbecdc208f84aa58f2ccd3522262984e79cda | refs/heads/main | 2023-07-01T06:26:30.972835 | 2021-08-02T19:30:28 | 2021-08-02T19:30:28 | 383,611,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | from vehicle import Car
import config as cf
from car_road import Map
class Solution:
def __init__(self):
self.road_points = []
self.states = {}
self.car = Car(cf.model["speed"], cf.model["steer_ang"], cf.model["map_size"])
self.road_builder = Map(cf.model["map_size"])
... | [
"noreply@github.com"
] | noreply@github.com |
9cca1ddb0cac0b90417963c329aa4856b072a55a | ee0f831bef991a5eaae0ac4f30f24b80fe97171d | /src/python/director/vtkAll.py | d6182df443629e8d58e7a1ddebfe86d12b38bac5 | [
"BSD-3-Clause"
] | permissive | edrumwri/director | c66e554f1789d7aa66e708502d2e6928270e2eba | c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8 | refs/heads/master | 2020-12-09T02:53:46.584798 | 2020-01-11T03:21:59 | 2020-01-11T03:21:59 | 233,169,642 | 0 | 0 | BSD-3-Clause | 2020-01-11T03:22:22 | 2020-01-11T03:22:22 | null | UTF-8 | Python | false | false | 134 | py | from vtk import *
from director.vtkDRCFiltersPython import *
try:
from vtkPCLFiltersPython import *
except ImportError:
pass
| [
"james.patrick.marion@gmail.com"
] | james.patrick.marion@gmail.com |
e091d199d36ce2190fa6249d5241bb5deb585b58 | 9527c4e0df7ee018ea76a85ba1f0b65b9609b2a1 | /tiger666/tiger_hack/main1.py | b692f0ceb991c373b5131e57f08de27b743e1f30 | [] | no_license | tangyz007/TigerHackWordCloud36 | bbe159d082b675a284dbe0d89375f5838d575006 | 47e2c53a0d1e34ffcadc4ca3eeae8f3413488e65 | refs/heads/master | 2021-08-23T23:07:26.955513 | 2017-12-07T01:09:55 | 2017-12-07T01:09:55 | 108,499,662 | 0 | 1 | null | 2017-10-27T04:35:07 | 2017-10-27T04:35:07 | null | UTF-8 | Python | false | false | 2,641 | py | #!/usr/bin/env python
# coding=utf-8
# run tang > ./temp/input/{time}.txt (n_size_of_news_now )
# run huangrui > ./temp/input/{time}.txt
# > huiming's ./model/fil9.bin & fil9.vec
# > nn = 10 > ./temp/output/{time}.txt
# > huiming's > ./tools/kumo.jar > ./temp/output/{time}.png
# NewsCrawler {para}-| Filter {para}... | [
"bamboo1886@gmail.com"
] | bamboo1886@gmail.com |
1ad5e73bdc6bb2f1b25482eb24098fb40a19d746 | 4bfc3c184e736bb68dccbb6d5657f11c950df002 | /tests/operators/dynamic_shape/test_dynamic_SIMD_v1.py | c742eb60dd2fa29b664aa45796b2afbb2b3fbc98 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | laekov/akg | 159aa64ef6135222b5af784c408731275dfa9bdb | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | refs/heads/master | 2022-12-01T04:09:03.548063 | 2020-08-19T08:38:57 | 2020-08-19T08:41:28 | 288,678,192 | 0 | 0 | Apache-2.0 | 2020-08-19T08:41:30 | 2020-08-19T08:36:53 | Python | UTF-8 | Python | false | false | 4,094 | py | import akg
import akg.topi as topi
import akg.tvm as tvm
from gen_random import random_gaussian
from akg.utils import kernel_exec as utils
from akg import platform as cce
import numpy as np
import pdb
dtype = "float16"
mapKey = {"add":"binary", "sub":"binary","div":"binary","mul":"binary","min":"binary","max":"binary"... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
e535401676d4be2780eeb9646e56268a4ced1f9b | 56e3b9488c51280912c2c1f083cd7b429eef2b71 | /sort/merge_important.py | 40af4a63f7dff241560fcb8b61182422945cdb69 | [] | no_license | biki-cloud/algorythm | ebd56c2978775f88a23540f491a2bcd98fadb86d | db7019b35e2ffcc150bd1d0a29e61a324af30e31 | refs/heads/master | 2023-02-02T00:29:36.592731 | 2020-12-19T08:38:50 | 2020-12-19T08:38:50 | 322,546,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | from typing import List
def merge_sort(numbers: List[int]) -> List[int]:
if len(numbers) <= 1:
return numbers
center = len(numbers) // 2
left = numbers[:center]
right = numbers[center:]
merge_sort(left)
merge_sort(right)
i = j = k = 0
while i < len(left) and j < len(right):
... | [
"hibiki123123@gmail.com"
] | hibiki123123@gmail.com |
20d3d1a86d5617b7e928be93498ce40fcbd8ef33 | c591a141ebadd4c9375b1305ff82bc65b464768a | /YOLO/YOLOv3/convert_weights_pb.py | cfbfd85ff4385962704a363e578a56dcec6b0d93 | [] | no_license | FantasyJXF/Learning_AI | 612f310851f19a616993926c5a1bfbac67a913ed | 92d3618148a51725a06d61578e087cf5db583d07 | refs/heads/master | 2020-04-02T17:40:37.178842 | 2019-03-28T02:05:52 | 2019-03-28T02:05:52 | 154,667,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | # -*- coding: utf-8 -*-
import numpy as np
import tensorflow as tf
import yolo_v3
import yolo_v3_tiny
from PIL import Image, ImageDraw
from YOLO.YOLOv3.utils import load_weights, load_coco_names, detections_boxes, freeze_graph
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_string(
'class_names', 'coco.names', '... | [
"fantasyjxf@qq.com"
] | fantasyjxf@qq.com |
75058396185f59409fd0bb4d749d379793ca6942 | 9d2be991b8bc262ecf96176e60862d19a88e6650 | /lib/pose/pose_estimation/valid.py | 94cc60fab888d52ae31a2ab8305526cc235f362a | [
"Apache-2.0"
] | permissive | hbsz123/Tracking-Pipeline | 0cc8776b9eeb7f9438d9ab99f832bb496db364f7 | f26834a9a414b76d5bb584a9e253b924c636acc7 | refs/heads/master | 2020-04-06T09:21:11.942276 | 2018-11-13T07:48:47 | 2018-11-13T07:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,625 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ------------------------------------------------------------------------------
from __future__... | [
"noreply@github.com"
] | noreply@github.com |
6d58ae5b2695fb375619acddc75537a9fe0dc442 | e0c1e465530d9c268bc6bc891e86619a6c00de7b | /scrap.py | 08afacc949ce6e78b6cc9e2f836efc4642a7424d | [] | no_license | subzeroice22/Project-Euler | 3e27fe7d248e7d92e612277ad2fba3b31e621cbe | 4a3237e2fb72b0a3ba660c5a65eaf2eb33ac8bc6 | refs/heads/master | 2021-01-10T03:31:17.256286 | 2015-06-02T01:04:54 | 2015-06-02T01:04:54 | 36,698,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | index = 2
stop = 65
multiples = (x for x in range(index, stop + 1) if x % index == 0)
for x in multiples:
print(x)
| [
"laramie17goode@gmail.com"
] | laramie17goode@gmail.com |
0ba95fac59a79e49da28fd1831d5d6b61331dffe | 5460b47bcf525348b7b615ce67a674b2de787915 | /working with relational databases in python/Pandas for more complex querying.py | 34050cdb305cc08e47f2117bb7b700f027857426 | [] | no_license | AnkitaDeshmukh/Importing-data-in-Python-Part-1 | 79c42677dd9887f7c9b57689634be09412a80fe9 | 3606a0510fc06c009bb30c1553e912bc6a5717a0 | refs/heads/master | 2020-03-27T11:44:50.665912 | 2018-08-29T00:41:41 | 2018-08-29T00:41:41 | 146,505,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | #Using the function create_engine(), create an engine for the SQLite database Chinook.sqlite and assign it to the variable engine.
#Use the pandas function read_sql_query() to assign to the variable df the DataFrame of results from the following query:
#select all records from the Employee table where the EmployeeId i... | [
"noreply@github.com"
] | noreply@github.com |
db24f9aa96ce58cc4cd20de79de8d71d5670be7b | a0d93725740caafdf939799b6b995bbf9708e08e | /model.py | ec52a287488aadddae3440bf2001982c6e1631ec | [] | no_license | PaperCodeReview/UDA-TF | 0a75970848d212973c94874aa9ce90c080b8b6c4 | dc3e1bd83ba75e0e0fa1a5479821334d17f98ba5 | refs/heads/master | 2023-06-12T02:31:17.532451 | 2021-07-06T05:28:22 | 2021-07-06T05:28:22 | 300,614,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py |
def set_model():
pass | [
"sungchul@node01.mi2rl.co"
] | sungchul@node01.mi2rl.co |
9022cbf868abe8040133bf2c58b6759ba2bb8d2d | fe70774ff6898c5bdb0c941b4f335de576abfdb6 | /flopy/modflow/mfsip.py | 157d25044903290c48a1a97ca47478f9397ad1af | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | robinthibaut/flopy | 35af468415d1ba6e1de119a7cb335381304fada9 | 22ef330bcfb9259fc23735d6b174d27804b624a0 | refs/heads/develop | 2023-06-30T21:43:24.101593 | 2023-06-13T19:46:03 | 2023-06-13T19:46:03 | 255,560,877 | 0 | 0 | BSD-3-Clause | 2022-10-10T12:23:38 | 2020-04-14T09:05:42 | null | UTF-8 | Python | false | false | 7,748 | py | """
mfsip module. Contains the ModflowSip class. Note that the user can access
the ModflowSip class as `flopy.modflow.ModflowSip`.
Additional information for this MODFLOW package can be found at the `Online
MODFLOW Guide
<https://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/sip.html>`_.
"""
from ..pakbase import Pa... | [
"noreply@github.com"
] | noreply@github.com |
f94f0c812e776126d7e294acc3fb14f9f162e016 | d57e6952ed41b653d9cfa7cf3036fb2bfa1379bc | /extract_bottleneck_features.py | 04e634eb54318da3388fd91cd6ed98db0ddca23b | [] | no_license | malinaelena98/Licenta | 34d4e5b84258f05f25ca6a892779e45fd60d9b4d | de55d0d21551fad4035ce048afb4295763e835d3 | refs/heads/master | 2022-12-15T09:33:20.762462 | 2020-09-07T18:12:45 | 2020-09-07T18:12:45 | 293,594,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,217 | py | from keras import applications
import math
import numpy as np
from keras.preprocessing.image import ImageDataGenerator
from tensorflow.python.client import device_lib
# images format
# all the images are resized at 224x224(resize_images.py)
img_width = 224
img_height = 224
# Create a bottleneck file
top_... | [
"noreply@github.com"
] | noreply@github.com |
0ed84082f1c0f5d795f525a0cd9b5f9257ce0ded | 5ed64ee2de362de817be666feff984f10f70391c | /ULAcode/migrations/0006_auto_20170516_1201.py | e73ec060c70682fec01b509c8d27b7e75a6e553a | [] | no_license | JesusHMazzeiF/Tesis | ad64683aab86c8be425f1d80b3a104038b900b88 | f681f1803cf02e197c34bc55544130c7173ae239 | refs/heads/master | 2021-01-22T22:28:00.802498 | 2017-08-09T20:09:09 | 2017-08-09T20:09:09 | 92,776,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-16 12:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ULAcode', '0005_framework_frameworktoken'),
]
operations = [
migrations.Add... | [
"jesushmazzeif@gmail.com"
] | jesushmazzeif@gmail.com |
f743362820fd08bfd51c082eeb06995247967556 | 3e7aad930421cda09c6e11c92364ac4fb3c55d9d | /DIFFICILE/bender_complexite_algorithmique/soluce_with_scipy.py | a1eaad82ae6e43617f1e36028cf001ecfb16227e | [] | no_license | yoyonel/CG | bcd1f77fb9b2ca2af1a98db0d54625473b7b97d2 | 6b02256fd3af2127166eafbe596db5c6f499adfc | refs/heads/master | 2021-01-21T12:54:01.352316 | 2016-05-01T12:03:36 | 2016-05-01T12:03:36 | 43,063,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,635 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
import math
import math
eps = 0.00000001 # max error allowed
def w0(x): # Lambert W function using Newton's method
w = x
while True:
ew = math.exp(w)
wNew = w - (w * ew - x) / (w * ew + ew)
if abs(w... | [
"lionel.atty@ign.fr"
] | lionel.atty@ign.fr |
06d175155b5fbed50db1d9a3cd8e1c9771426f69 | b18f01e08fdf059005c3382d97a83aba6c44268a | /InstagramBotFollowers/Utilites.py | bfdba7321dea619e4e32c3ce8b1e950911a0d9a0 | [] | no_license | Mohamed-Ahmed-Abo-El-Enen/Social-Media-Scrapping | 4c4a6800a64f8bfb0c629d79bcb62f43e461f7e6 | 3085270fe52782b4ae9e0aa7b8a6c2ebea2481df | refs/heads/main | 2023-01-02T16:13:54.312420 | 2020-11-02T17:52:26 | 2020-11-02T17:52:26 | 309,451,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import os
import json
import random
import pandas as pd
def concat_file_to_path(path, file_name):
return os.path.join(path, file_name)
def get_relative_path():
return os.path.dirname(os.path.abspath(__file__))
def read_account_info(file_path):
with open(concat_file_to_path(file_path, r"Assets\setting... | [
"45543699+Mohamed-Ahmed-Abo-El-Enen@users.noreply.github.com"
] | 45543699+Mohamed-Ahmed-Abo-El-Enen@users.noreply.github.com |
060302ed9aa158b11706c859a6368f9c4ced8cc7 | dad761fc430b47446247ca0a9ad780d91bbcdcc5 | /ListaExercicios/Exercicio4.py | e9681375aefc289839f81b40db2124166cd44300 | [] | no_license | ThiagoAnd/Python | 493928721feb6dcf9a80def4a6ba5d7df51c5ad6 | 6088973f9c2dba5dc3a2268b372c1d74c862984a | refs/heads/master | 2021-04-22T15:10:56.582962 | 2020-07-28T02:35:09 | 2020-07-28T02:35:09 | 249,856,520 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import random
rand = random.randint(2, 105)
lst = random.sample(range(1, rand + 1), rand)
print('\r', rand, lst, end=' ')
first = True
for i in range(0, rand - 1):
for j in range(1, rand - i):
if lst[j - 1] > lst[j]:
aux, lst[j - 1], = lst[j - 1], lst[j]
lst[j] = aux
fi... | [
"thiago.1301801@fapi-pinhais.edu.br"
] | thiago.1301801@fapi-pinhais.edu.br |
ceeadb588110d1c3dfba835a924a933ba280d347 | 8087147c0d06bba96125081062aa68fb87874b75 | /tests/test_test.py | 138f8772a9ba2f35dac4b39769aa5f4d4524884b | [
"MIT"
] | permissive | bgirer/rets | 702305f3fd032239556b6a99a0b09fbffc23b6a1 | 6ca64ffe7bbf5c57f42f03cf18a0256e59093cad | refs/heads/master | 2021-01-02T08:42:53.123202 | 2017-07-11T19:32:25 | 2017-07-11T19:32:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py |
def test_check():
pass
| [
"martin@opendoor.com"
] | martin@opendoor.com |
c287716186d4c89ea33ae4a37712899014734f78 | 9891e72f56e1a079a4b4f3e26c1b4b133d4e123e | /apps/core/migrations/0003_auto_20180323_0213.py | 93fd007dbd82a4282ab010f8a51f1b55a12becc2 | [] | no_license | claudioDcv/la-cosa-es-como-es-no-ma | 1d361bc6b23ba44e1b1fb1cd971aa9bf8cece0ee | a12d941379f5d8ff89395746a441a1fe64ea1b5b | refs/heads/master | 2021-04-29T18:52:45.444809 | 2018-06-02T19:29:51 | 2018-06-02T19:29:51 | 121,703,093 | 0 | 0 | null | 2018-06-08T03:03:04 | 2018-02-16T01:15:50 | JavaScript | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.0.2 on 2018-03-23 05:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20180323_0208'),
]
operations = [
migrations.AlterField(
model_name='indicator',
name='name',
... | [
""
] | |
ae2c49d2fae677fedc8120128824c586b7bb65d9 | 30cae5f72be6e06e97fc761037485cffda717eb7 | /EShop/apps/utils/yunpian.py | 5b935ae4099cf746dda1414b9ee4a1da3fe9d146 | [] | no_license | legolas007/EShop | e17f606918cea2e369b05d1529b9330c6f1b04a8 | 32b09fc1ea702b45fa934d372594fc32f709ed59 | refs/heads/master | 2021-05-14T06:38:45.091937 | 2018-01-04T11:51:08 | 2018-01-04T11:51:08 | 116,246,112 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/1/1/0001 11:04
# @Author : Usher
# @File : yunpian.py
import json
import requests
class YunPian(object):
def __init__(self, api_key):
self.api_key = api_key
self.single_send_url = "https://sms.yunpian.com/v2/sms/single_send.json"... | [
"oukuanou@163.com"
] | oukuanou@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.