seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
fi
else
echo -e "All good!"
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
alias tf='terraform'
alias pinentry='pinentry-mac'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.await
.context("failed to start container")?;
let account_0 = fund_new_account(http_endpoint)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Test
@SuppressWarnings("unchecked") // Hamcrest, R U fine?
void testMapFillerFillFromArray() {
val entries = MapFiller.from(new HashMap<String, Integer>())
.fill(Pair.of("one", 1), Pair.of("two", 2))
.map()
.entrySet();
assertThat(entries, hasSize(2));
assertThat(entries, hasItems(immutableEntry("one", 1), immutableEntry("two", 2)));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert reference_url.format(style="m") == url
# Satellite
gt = cimgt.GoogleTiles(style="satellite")
url = gt._image_url(tile)
assert reference_url.format(style="s") == url
# Terrain
gt = cimgt.GoogleTiles(style="terrain")
url = gt._image_url(tile)
assert reference_url.format(style="t") == url
| ise-uiuc/Magicoder-OSS-Instruct-75K |
channel.save()
Autopilot(chan_id=channel.chan_id, peer_alias=channel.alias, setting='Enabled', old_value=1, new_value=0).save()
elif o7D < (i7D*1.10) and inbound_percent > 75:
print('Case 4: Pass')
else:
print('Case 5: Pass')
def main():
rebalances = Rebalancer.objects.filter(status=0).order_by('id')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
snap_to_endpts: FindClosest<TripEndpoint>,
// Routing
draw_route: Drawable,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
make -j2
./sanitizer_tests.sh
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def apply_with_dict(df, dict_value):
for key in dict_value:
value = dict_value[key]
df[key] = value
return df
| ise-uiuc/Magicoder-OSS-Instruct-75K |
void * UDPClientThread(void* args);
#endif /* THREAD_UDP_HELPER_HPP */
| ise-uiuc/Magicoder-OSS-Instruct-75K |
XmlNamespaceManager^ nsmgr = gcnew XmlNamespaceManager( nt );
// Create the XmlParserContext.
XmlParserContext^ context = gcnew XmlParserContext( nullptr,nsmgr,nullptr,XmlSpace::None );
// Create the reader.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export const ideaProviders: ProviderType[] = [
{
provide: IDEA_REPOSITORY,
useValue: Idea,
},
];
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub fn delete<U: IntoUrl>(self, url: U) -> RequestBuilder {
self.request(http::Method::DELETE, url)
}
pub fn head<U: IntoUrl>(self, url: U) -> RequestBuilder {
self.request(http::Method::HEAD, url)
}
pub fn request<U: IntoUrl>(self, method: http::Method, url: U) -> RequestBuilder {
RequestBuilder {
method,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent'
],
python_requires='>=2.7,>=3.6'
) | ise-uiuc/Magicoder-OSS-Instruct-75K |
s = (math.sin(vt) + 1) * 0.5
r = m.sliders[0] * 255 * s
g = m.sliders[1] * 255 * s
b = m.sliders[2] * 255 * s
l.setval(q, r, g, b)
l.show()
m.poll()
time.sleep(0.02)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>L-Arianna/HR-M
<div class="page-wrapper">
<div class="page-content">
<?php $lokasi = base_url('assets/upload-pdf'); ?>
<div class="embed-responsive embed-responsive-16by9 col-md-12 col-lg-12 col-xs-12">
<iframe class="embed-responsive-item" width="1200" height="800" src="<?= $lokasi . "/" . $surat_masuk->file_surat_masuk; ?>.pdf" allowfullscreen></iframe>
</div>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const source = type === 'keyup' ? 'document' : 'element';
const key = type === 'keyup' && tokens.filter(t => t.type === ReactionCodeTypeEnum.LITERAL).map(t => t.value).join(' ');
return {
source,
event: {
type,
...(key && {key}),
...reactionCodeModifiers(tokens)
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Securities.Add(AccelByte.Sdk.Core.Operation.SECURITY_BEARER);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
type: "atomic",
atomicComponent: CityChip,
},
]}
autocomplete={{
strategies: [
{
items: cities,
triggerChar: "/",
atomicBlockName: "my-city",
},
],
}}
onSave={save}
{...args}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ -z "$SEMVER" ]; then
SEMVER=0.0.0
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public boolean isSupportsSnapshots() {
return true;
}
@Override
public Iterable<String> listAccess(String toProviderDatabaseId) throws CloudException, InternalException {
return Collections.emptyList();
}
@Override
public Iterable<DatabaseConfiguration> listConfigurations() throws CloudException, InternalException {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
do{
let decoder = JSONDecoder()
let map = try decoder.decode([Map].self, from: data)
complation(.success(map))
}catch{
complation(.failure(Error.serializationError(internal: error)))
}
case .failure(let error):
complation(.failure(Error.networkError(internal: error)))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
buffer.append(DEFAULT_CHARS[(int) index]);
// 每次循环按位右移 5 位
number = number >> 5;
}
return buffer.toString();
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int a[210];
int val[210][210];
int b[210];
vector<int> parent[210];
int ans[110];
int at = 0;
int n;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def to_string(self, delimiter = ',', ending = '\n'):
data = [
self.name(),
self.SizeE(),
self.SizeV(),
self.SumE()
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public function getEnv($variable)
{
return getenv($variable);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
task_vars = self._all_vars(host=result._host, task=result._task)
host = result._host.get_name()
for check_result in result._result["results"]:
skipped = check_result.get("skipped", False)
if skipped:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dependencies = [
('trainer', '0022_auto_20180517_1429'),
]
operations = [
migrations.CreateModel(
name='UserPretest',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @returns 'True' if the game should go another round
*/
export function isStillPlaying(dealer: Player, players: Player[]) {
return dealer.status === Action.hit
|| players.some((player) => player.status === Action.hit);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export type WidenLiteral<A> = A extends string ? string : A extends number ? number : A extends boolean ? boolean : A
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Default will return all dot1x interfaces, use type to get a subset.
"""
# Redo this!
dot1x_filter = set(['dot1x', 'dot1x_mab', 'dot1x_parking'])
if type not in dot1x_filter:
raise errors.AnsibleFilterError("Invalid type provided. Valid types: dot1x, dot1x_mab, dot1x_parking")
interface_list = []
for iface, iface_config in iteritems(configuration['interfaces']):
if type == 'dot1x':
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let mut url = Url::parse(database_config.url.as_str()).expect("invalid connection URL");
if let Some(user) = database_config.user.as_ref() {
if url.username().is_empty() {
url.set_username(user.as_str())
.expect("could not append username to the connection URL");
} else {
panic!("conflicting usernames in database configuration");
}
}
if let Some(file) = database_config.password_file.as_ref() {
if url.password().is_none() {
let password = std::fs::read_to_string(file)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
function create_inventory {
cat > /etc/ansible/hosts <<EOF
[mons]
localhost
[osds]
localhost
[mdss]
localhost
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// CHECK-NEXT: }
// CHECK-NEXT: {
// CHECK-NEXT: "swift": "SwiftOnoneSupport"
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "swift": "_Concurrency"
// CHECK-NEXT: }
// CHECK-NEXT: ],
// CHECK: "isFramework": true
| ise-uiuc/Magicoder-OSS-Instruct-75K |
add_module_properties(frappe.utils.data, datautils, lambda obj: hasattr(obj, "__call__"))
if "_" in getattr(frappe.local, 'form_dict', {}):
del frappe.local.form_dict["_"]
user = getattr(frappe.local, "session", None) and frappe.local.session.user or "Guest"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if location == 'Hobbitslayer':
dropbox = 'C:\\Users\\spx7cjc\\Dropbox\\'
if location in ['saruman','scoobydoo','caroline','herschel01','gandalf','ghost']:
dropbox = '/home/herdata/spx7cjc/Dropbox/'
# Import smorgasbord
import os
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public String toString() {
return "AggregatedGroupMapping [id=" + id + ", groupService=" + groupService + ", groupName=" + groupName + "]";
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
FillWithValues(MWC, B);
Matrix A1 = A;
Matrix B1 = B;
A.Release();
B.Release(2);
swap(A, B);
int a = A.size() - B1.size(), b = B.size() - A1.size();
Matrix D = A - B1;
Print(D);
D = B - A1;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def loss_total(self, mask):
def loss(y_true, y_pred):
y_comp = mask * y_true + (1-mask) * y_pred
vgg_out = self.feature_extractor(y_pred)
vgg_gt = self.feature_extractor(y_true)
vgg_comp = self.feature_extractor(y_comp)
loss_hole = (self.loss_hole(mask, y_true, y_pred) * self.loss_factors["loss_hole"]).mean()
loss_valid = (self.loss_valid(mask, y_true, y_pred) * self.loss_factors["loss_valid"]).mean()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div>
<div>Welcome home</div>
<div>{currentUrl}</div>
</div>
)}
{isRoute(routes.about) && (
<div>
<div>About us</div>
<div>{currentUrl}</div>
</div>
)}
{isRoute(routes.gallery) && <Gallery />}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
public function updateOrFail($dto)
{
$model = $this->convertDtoToModel($dto);
$model->save();
$freshModel = $model->fresh();
if (!$freshModel) {
throw new Exception();
}
return $this->convertModelToDto($freshModel);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def getPublic( self):
return self.publicKey
def setPartner( self, pk):
self.key = (pk^self.privateKey)%self.p
def encrypt( self, message):
encryptedMessage = ""
for character in message:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.next()
.ok_or("failed to connect to ZooKeeper: no servers supplied")?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import datadog.trace.api.config.GeneralConfig;
import de.thetaphi.forbiddenapis.SuppressForbidden;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<hr>
<hr>
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
Tasks Logged
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<Systemtittel tag={'h1'}>{tittel}</Systemtittel>
</button>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
@Override
public Long getId() {
return providersId;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Thunk::pure(f(self.eval()))
}
pub fn join_strict(input: &Thunk<Thunk<T>>) -> Thunk<T> {
Thunk::pure(input.eval().eval())
}
}
impl<T: 'static + Clone> Thunk<T> {
pub fn bind<U: Clone, F: 'static + Fn(T) -> Thunk<U>>(&self, f: F) -> Thunk<U> {
let thunk_ref = self.clone();
Thunk::from_func(move || f(thunk_ref.eval()).eval())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name="notebooks",
),
url(r"^(?P<cid>[a-f\d]{24})/?$", views.contribution, name="contribution"),
# downloads
url(
r"^component/(?P<oid>[a-f\d]{24})$",
views.download_component,
name="download_component",
),
url(
r"^(?P<cid>[a-f\d]{24}).json.gz$",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bash_command='echo "Hello World from Task 3"')
t4 = BashOperator(
task_id='task_4',
bash_command='echo "Hello World from Task 4"')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class KrbError(Exception):
pass
class BasicAuthError(KrbError):
pass
class GSSError(KrbError):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if 'HEXRD_EXAMPLE_REPO_PATH' not in os.environ:
pytest.fail('Environment varable HEXRD_EXAMPLE_REPO_PATH not set!')
repo_path = os.environ['HEXRD_EXAMPLE_REPO_PATH']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Migration(migrations.Migration):
initial = True
dependencies = [
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<Icon alt="RelativeScale" className={classNames} {...propsRest}>
<path d="M20,18H4V6H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4M12,10H10V12H12M8,10H6V12H8M16,14H14V16H16M16,10H14V12H16V10Z" />
</Icon>
);
};
RelativeScaleIcon.displayName = 'RelativeScaleIcon';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let include_handler = CIncludeHandler {
include_handler: input.include_handler,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('usuario', schema=None) as batch_op:
batch_op.add_column(sa.Column('facebook', sa.String(length=30), nullable=True))
batch_op.add_column(sa.Column('instagram', sa.String(length=30), nullable=True))
batch_op.add_column(sa.Column('whatsapp', sa.String(length=20), nullable=True))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
last_block_index = get_block("latest")['height']
print("last_block_index = %d" % (last_block_index))
num_txns = 2500
full_blocks = 50
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return render_template('add_article.html',form=form)
# Edit Article
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import XCTest
class UILabel_swiftUITests: XCTestCase {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System.Linq;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@author: _
"""
import cv, cv2, numpy as np
if __name__ == '__main__':
ESC_KEY = 27
INTERVAL= 33
FRAME_RATE = 30
| ise-uiuc/Magicoder-OSS-Instruct-75K |
percent = 100 if percent > 100 else percent
if c > 0:
print("\rDownloading...%5.1f%%" % percent, end="")
def sha256sum(file_name, hash_sha256):
fp = open(file_name, 'rb')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.init_app()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.source = tag
super.init(frame: CGRect.zero)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (failed_coords.find(make_pair(x, y)) != failed_coords.end()) {
os << "failed ";
}
switch (v[x][y]) {
case UNKNOWN: os << "unknown\"> "; break;
case WHITE: os << "white\">."; break;
case BLACK: os << "black\">#"; break;
default: os << "number\">" << v[x][y]; break;
}
os << "</td>";
}
os << "</tr>\n";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace analyzers
{
namespace filters
{
const util::string_view porter2_filter::id = "porter2-filter";
porter2_filter::porter2_filter(std::unique_ptr<token_stream> source)
: source_{std::move(source)}
{
next_token();
}
porter2_filter::porter2_filter(const porter2_filter& other)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"のんのんびより",
"海街diary",
"後遺症ラジオ",
"ワンパンマン",
"いぶり暮らし",
"ヒストリエ",
"つれづれダイアリー",
"ダンジョン飯",
"メイドインアビス",
"ドメスティックな彼女",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
STARTUP_MODE_VAR_PATH = "/var/lib/optimus-manager/startup_mode"
REQUESTED_MODE_VAR_PATH = "/var/lib/optimus-manager/requested_mode"
DPI_VAR_PATH = "/var/lib/optimus-manager/dpi"
TEMP_CONFIG_PATH_VAR_PATH = "/var/lib/optimus-manager/temp_conf_path"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
impl EliasFano {
#[inline]
pub fn len(&self) -> usize {
self.current_number_of_elements as usize
}
#[inline]
pub fn is_empty(&self) -> bool {
self.current_number_of_elements == 0
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# if there are multiple copies of the item.
#
# Loans periods could be represented as start + duration, but since we'll need
# to test against the end of a loan repeatedly, it's easier to store the end
# time here.
class Loan(BaseModel):
loanid = AutoField()
item = ForeignKeyField(Item, column_name = 'itemid', backref = 'loanref')
user = TextField() # Login, probably <EMAIL>
started = DateTimeField() # When did the patron start the loan?
endtime = DateTimeField() # When does the loan end?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if __name__ == "__main__":
# some test samples
a = [0, 1, 0, 1]
b = [0, 1, 0, 2]
box1 = Box(*a)
box2 = Box(*b)
print(box1)
print(box1.area)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
validate(): boolean;
rollback(): void;
reload(): void;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_router():
""" returns all routes as nested router in the auth package """
router = APIRouter()
router.include_router(user.router, prefix='/users', tags=['User Actions'])
router.include_router(login.router, prefix='/login', tags=['Login Actions'])
router.include_router(logout.router, prefix='/logout', tags=['Login Actions'])
return router
| ise-uiuc/Magicoder-OSS-Instruct-75K |
time2=time.time()
print time2-time1
run_no+=1
numpy.savetxt("DE_fitness_d1_m2"+str(mode)+str(D)+".csv",fitness_val,delimiter=",")
numpy.savetxt("DE_bestpos_d1_m2"+str(mode)+str(D)+".csv",best_pos,delimiter=",")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
-type f \
-regextype posix-egrep \
-regex ".*findregex_0[0-9]7\.txt" \
-print0 \
| xargs -0 -I{} rm -v -f {}
echo $(ls -1 "${basedirpath}" | wc -l) 'files' | ise-uiuc/Magicoder-OSS-Instruct-75K |
ip_lst = flow.get_ip_lst_4(3)
flow.check_ip(ip_lst, song_id=157014)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class InvalidVersion(errors.InvalidDependency):
def __init__(self, ver, rev, err=''):
errors.InvalidDependency.__init__(
self,
"Version restriction ver='%s', rev='%s', is malformed: error %s" %
(ver, rev, err))
self.ver, self.rev, self.err = ver, rev, err
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace TogglerService.Models
{
public class ExcludedService
{
public GlobalToggle GlobalToggle { get; set; }
public string ToggleId { get; set; }
public string ServiceId { get; set; }
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
../shared_sync.sh "Litecoin" | ise-uiuc/Magicoder-OSS-Instruct-75K |
return 0
# QuantizedBiasAdd
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
startVol = volume;
endVol = 0.0;
}
firstVol = false;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import javax.net.ssl.TrustManagerFactory;
import static java.util.Objects.requireNonNull;
/**
* Builder for configuring a new SslContext for creation.
*/
public final class SslConfigBuilder {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
path=path,
data=None,
token=token,
**kwargs)
def simulate_post(self, path, data, token=None, **kwargs):
return self._simulate_request(
method='POST',
path=path,
data=data,
token=token,
**kwargs)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
A Payment is a transaction between an entity and the organisation. A
payment can be either incoming or outgoing, depending on the sign of
"amount".
"""
time = DateTimeField() # Date & time the payment occured
entity = ForeignKeyField(Entity, related_name='payments')
amount = FloatField()
source = IntegerField(choices=[(0, 'Other'), (1, 'Bank Transfer')])
is_donation = BooleanField() # For members, donation vs payment for goods
notes = TextField(null=True)
bank_reference = CharField(null=True) # For bank transfers
pending = BooleanField()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
extension MarvelDataModel {
struct SeriesSummary: Decodable {
/// The path to the individual series resource.
let resourceURI: String
/// The canonical name of the series.
let name: String
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
response = table.put_item(
Item={
'code': code,
'originalUrl': params['originalUrl']
}
)
return{
'url': os.environ['BASE_URL'] + code,
'originalUrl': params['originalUrl']
}
except Exception as e:
return(e)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
///
/// - Note: Responds live to being set at any time, and will update automatically
///
/// - Warning: Will not do anything if delegate is not implemented
open var streamFrames = false {
didSet {
LuminaLogger.notice(message: "Setting frame streaming mode to \(streamFrames)")
self.camera?.streamFrames = streamFrames
| ise-uiuc/Magicoder-OSS-Instruct-75K |
)
@pytest.fixture
def smartthings(event_loop):
"""Fixture for testing against the SmartThings class."""
# Python 3.5 doesn't support yield in an async method so we have to
# run the creation and clean-up of the session in the loop manually.
mocker = ClientMocker()
register_url_mocks(mocker)
session = event_loop.run_until_complete(__create_session(event_loop, mocker))
yield SmartThings(session, AUTH_TOKEN)
event_loop.run_until_complete(session.close())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
gui = PyHtmlGui(
appInstance = App(),
appViewClass = AppView,
)
gui.start(show_frontend=True, block=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if NeuerFall == -1 {
//Logger.log.notice("Decrement of incidents.")
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def export_failed_eval_robot(self, individual):
individual.genotype.export_genotype(os.path.join(self.data_folder, 'failed_eval_robots', f'genotype_{individual.phenotype.id}.txt'))
individual.phenotype.save_file(os.path.join(self.data_folder, 'failed_eval_robots', f'phenotype_{individual.phenotype.id}.yaml'))
individual.phenotype.save_file(os.path.join(self.data_folder, 'failed_eval_robots', f'phenotype_{individual.phenotype.id}.sdf'), conf_type='sdf')
def export_snapshots(self, individuals, gen_num):
self._gen_num = gen_num
if self.settings.recovery_enabled:
path = os.path.join(self.experiment_folder, f'selectedpop_{gen_num}')
if os.path.exists(path):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bt_main['text'] = '主页'
bt_main['font'] = title_font_bold
bt_main['command'] = lambda: self.__to_main_menu()
bt_main.place(relx=0.02, rely=0.86, relwidth=0.96, relheight=0.06)
bt_back: tk.Button = self._win_ctrl_button[0]
bt_back['text'] = '后退'
bt_back['font'] = title_font_bold
bt_back['state'] = 'disable'
bt_back['command'] = lambda: self.__to_back_menu()
bt_back.place(relx=0.02, rely=0.93, relwidth=0.96, relheight=0.06)
rely = 0.02
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Data format: ( is_enabled, override_choice, expected_result )
@data((True, OVERRIDE_CHOICES.on, OVERRIDE_CHOICES.on),
(True, OVERRIDE_CHOICES.off, OVERRIDE_CHOICES.off),
(False, OVERRIDE_CHOICES.on, OVERRIDE_CHOICES.unset))
@unpack
def test_setting_override(self, is_enabled, override_choice, expected_result):
RequestCache.clear_all_namespaces()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$resultado->where('st.id', $c->signo_comparacion, $c->valor_condicion);
} else {
$resultado->orWhere('st.id', $c->signo_comparacion, $c->valor_condicion);
}
break;
case 'Plantel':
if ($c->operador_condicion == "and" or $c->operador_condicion == "Primera Condición") {
$resultado->where('cc.plantel_id', $c->signo_comparacion, $c->valor_condicion);
} else {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
public void loadImage(Context context, ImageLoader imageLoader) {
loadNormal(context,imageLoader);
}
private void loadNormal(Context context,ImageLoader imageLoader){
RequestOptions options = new RequestOptions().placeholder(imageLoader.getPlaceHolder());
Glide.with(context).load(imageLoader.getUrl()).apply(options).into(imageLoader.getImageView());
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use libfuzzer_sys::fuzz_target;
use devolutions_crypto::ciphertext::Ciphertext;
use devolutions_crypto::key::PrivateKey;
#[derive(Arbitrary, Clone, Debug)]
struct Input {
data: Ciphertext,
key: PrivateKey,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export const MusicApi: String = 'https://songs-api-ubiwhere.now.sh';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private ObservableCollection<LoggerBase> _Loggers;
public ObservableCollection<LoggerBase> Loggers
{
get { return this._Loggers; }
set
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
//! Implementation of simple baseline models, used for testing and demonstration.
mod naive_bayes_classifier;
mod naive_linear_regression;
pub use self::naive_bayes_classifier::NaiveBayesClassifier;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.